子卷拼盘
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
"name" : "海亮铜箔",
|
"name" : "海亮铜箔",
|
||||||
"appid" : "__UNI__3A002CD",
|
"appid" : "__UNI__3A002CD",
|
||||||
"description" : "海亮铜箔二期手持系统",
|
"description" : "海亮铜箔二期手持系统",
|
||||||
"versionName" : "1.3.9",
|
"versionName" : "1.4.0",
|
||||||
"versionCode" : 139,
|
"versionCode" : 140,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -711,6 +711,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/SecondPhase/slitting/Zjpindan",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
115
pages/SecondPhase/slitting/Zjpindan.vue
Normal file
115
pages/SecondPhase/slitting/Zjpindan.vue
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<!-- <nav-bar title="子卷拼单"></nav-bar> -->
|
||||||
|
<nav-bar :title="title"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">区域</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd_wrapper grid-wraper">
|
||||||
|
<view class="slide_new">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<!-- <th @tap="toAllCheck"><uni-icons :type="allCheck ? 'checkbox' : 'circle'" size="24" color="#4e6ef2"></uni-icons></th> -->
|
||||||
|
<th>选择</th>
|
||||||
|
<th>点位编码</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="(e, i) in dataList" :key="i">
|
||||||
|
<td @tap="toCheck(e)"><uni-icons :type="e.checked ? 'checkbox' : 'circle'" size="24" color="#4e6ef2"></uni-icons></td>
|
||||||
|
<td>{{e.point_code}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submitbar">
|
||||||
|
<button class="zd-col-22 btn-submit btn-success" :class="{'btn-info': checkedArr.length !== 2}" :disabled="disabled" @tap="_conCombination">拼单</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {getConmbinationlnfo, conCombination} from '@/utils/getData3.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
options: [{text:'B1', value:'B1'}, {text:'B2', value: 'B2'}],
|
||||||
|
index: '',
|
||||||
|
dataList: [],
|
||||||
|
// dataList: [{point_code: 'c001'}, {point_code: 'c002'}, {point_code: 'c003'}, {point_code: 'c004'}],
|
||||||
|
allCheck: false,
|
||||||
|
checkedArr: [],
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async _getConmbinationlnfo () {
|
||||||
|
let res = await getConmbinationlnfo(this.index)
|
||||||
|
this.dataList = res.data
|
||||||
|
this.dataList.map(el => {
|
||||||
|
this.$set(el, 'checked', false)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selectChange (e) {
|
||||||
|
if (e) {
|
||||||
|
this.index = e
|
||||||
|
this._getConmbinationlnfo()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toAllCheck () {
|
||||||
|
this.allCheck = !this.allCheck
|
||||||
|
this.dataList.map(el => {
|
||||||
|
el.checked = this.allCheck
|
||||||
|
})
|
||||||
|
},
|
||||||
|
toCheck (e) {
|
||||||
|
e.checked = !e.checked
|
||||||
|
this.checkedArr = this.dataList.filter(el => el.checked === true)
|
||||||
|
this.allCheck = this.checkedArr.length === this.dataList.length
|
||||||
|
},
|
||||||
|
async _conCombination () {
|
||||||
|
this.disabled = true
|
||||||
|
if (this.checkedArr.length !== 2) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择两条数据',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await conCombination(this.checkedArr)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.index = ''
|
||||||
|
this.disabled = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -588,3 +588,17 @@ export const doCallTubeShaft = (code, row) => request({
|
|||||||
url:'api/pda/slitter/doCallTubeShaft',
|
url:'api/pda/slitter/doCallTubeShaft',
|
||||||
data: {device_code: code, row: row}
|
data: {device_code: code, row: row}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 子卷拼单(二期-分切管理)
|
||||||
|
*/
|
||||||
|
// 1、查询可用点位
|
||||||
|
export const getConmbinationlnfo = (parea) => request({
|
||||||
|
url:'/api/pda/slitter/getConmbinationlnfo',
|
||||||
|
data: {product_area: parea}
|
||||||
|
})
|
||||||
|
// 2、拼单
|
||||||
|
export const conCombination = (rows) => request({
|
||||||
|
url:'api/pda/slitter/conCombination',
|
||||||
|
data: {rows: rows}
|
||||||
|
})
|
||||||
|
|||||||
@@ -110,7 +110,8 @@ export const allAuthority = () => {
|
|||||||
{menu_id: '8', title: '空轴绑定', path: '/pages/SecondPhase/slitting/EmptyAxisBind'},
|
{menu_id: '8', title: '空轴绑定', path: '/pages/SecondPhase/slitting/EmptyAxisBind'},
|
||||||
{menu_id: '8', title: '空轴退回', path: '/pages/SecondPhase/slitting/EmptyAxisReturn'},
|
{menu_id: '8', title: '空轴退回', path: '/pages/SecondPhase/slitting/EmptyAxisReturn'},
|
||||||
{menu_id: '8', title: '分切暂存维护', path: '/pages/SecondPhase/slitting/CacheSave'},
|
{menu_id: '8', title: '分切暂存维护', path: '/pages/SecondPhase/slitting/CacheSave'},
|
||||||
{menu_id: '8', title: '呼叫套轴', path: '/pages/SecondPhase/slitting/CallAxis'}
|
{menu_id: '8', title: '呼叫套轴', path: '/pages/SecondPhase/slitting/CallAxis'},
|
||||||
|
{menu_id: '8', title: '子卷拼单', path: '/pages/SecondPhase/slitting/Zjpindan'}
|
||||||
]},
|
]},
|
||||||
{menu_id: '10', path: 'RF15', title: '打包间管理', sonTree: [
|
{menu_id: '10', path: 'RF15', title: '打包间管理', sonTree: [
|
||||||
{menu_id: '1', title: '子卷包装解绑', path: '/pages/SecondPhase/SubRollPackUnbind'},
|
{menu_id: '1', title: '子卷包装解绑', path: '/pages/SecondPhase/SubRollPackUnbind'},
|
||||||
|
|||||||
Reference in New Issue
Block a user