分切下料修改
This commit is contained in:
@@ -11,8 +11,28 @@
|
||||
<zxz-uni-data-select v-model="index" :localdata="options" @change="selectChange"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">上轴子卷号</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">下轴子卷号</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<search-box
|
||||
v-model="val2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper">
|
||||
<!-- <view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">上轴子卷号</span>
|
||||
@@ -31,7 +51,7 @@
|
||||
</view>
|
||||
<view class="zd-col-17 filter_msg">{{obj.msg}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
||||
@@ -54,6 +74,8 @@
|
||||
title: '',
|
||||
options: [],
|
||||
index: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
obj: {up: '-', down: '-', msg: '-'},
|
||||
disabled: false
|
||||
};
|
||||
@@ -68,7 +90,7 @@
|
||||
this.options = [...res]
|
||||
},
|
||||
selectChange (e) {
|
||||
this._querySlitterDeviceSubVolumeInfos(e)
|
||||
// this._querySlitterDeviceSubVolumeInfos(e)
|
||||
},
|
||||
async _querySlitterDeviceSubVolumeInfos (e) {
|
||||
try {
|
||||
@@ -80,7 +102,9 @@
|
||||
},
|
||||
clearUp () {
|
||||
this.index = ''
|
||||
this.obj = {up: '-', down: '-', msg: '-'}
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
// this.obj = {up: '-', down: '-', msg: '-'}
|
||||
this.disabled = false
|
||||
},
|
||||
async _slitterDown () {
|
||||
@@ -90,7 +114,7 @@
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await slitterDown(this.index)
|
||||
let res = await slitterDown(this.index, this.val1, this.val2)
|
||||
this.clearUp()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
@@ -140,9 +140,9 @@ export const querySlitterDeviceSubVolumeInfos = (code) => request({
|
||||
url:'api/pda/slitter/querySlitterDeviceSubVolumeInfos',
|
||||
data: {point_code: code}
|
||||
})
|
||||
export const slitterDown = (code) => request({
|
||||
export const slitterDown = (code, cn1, cn2) => request({
|
||||
url:'api/pda/slitter/slitterDown',
|
||||
data: {point_code: code}
|
||||
data: {point_code: code, container1: cn1, container2: cn2}
|
||||
})
|
||||
// 子卷绑定
|
||||
export const devicePointQuery = (code) => request({
|
||||
|
||||
Reference in New Issue
Block a user