分切下料修改

This commit is contained in:
蔡玲
2025-01-02 17:11:23 +08:00
parent b02e3fc86a
commit ea2fb5c02f
2 changed files with 31 additions and 7 deletions

View File

@@ -11,8 +11,28 @@
<zxz-uni-data-select v-model="index" :localdata="options" @change="selectChange"></zxz-uni-data-select> <zxz-uni-data-select v-model="index" :localdata="options" @change="selectChange"></zxz-uni-data-select>
</view> </view>
</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>
<view class="zd_wrapper"> <!-- <view class="zd_wrapper">
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
<view class="zd-col-7"> <view class="zd-col-7">
<span class="filter_label">上轴子卷号</span> <span class="filter_label">上轴子卷号</span>
@@ -31,7 +51,7 @@
</view> </view>
<view class="zd-col-17 filter_msg">{{obj.msg}}</view> <view class="zd-col-17 filter_msg">{{obj.msg}}</view>
</view> </view>
</view> </view> -->
</view> </view>
<view class="zd-row submit-bar"> <view class="zd-row submit-bar">
<button class="zd-col-8 button-default" @tap="clearUp">清空</button> <button class="zd-col-8 button-default" @tap="clearUp">清空</button>
@@ -54,6 +74,8 @@
title: '', title: '',
options: [], options: [],
index: '', index: '',
val1: '',
val2: '',
obj: {up: '-', down: '-', msg: '-'}, obj: {up: '-', down: '-', msg: '-'},
disabled: false disabled: false
}; };
@@ -68,7 +90,7 @@
this.options = [...res] this.options = [...res]
}, },
selectChange (e) { selectChange (e) {
this._querySlitterDeviceSubVolumeInfos(e) // this._querySlitterDeviceSubVolumeInfos(e)
}, },
async _querySlitterDeviceSubVolumeInfos (e) { async _querySlitterDeviceSubVolumeInfos (e) {
try { try {
@@ -80,7 +102,9 @@
}, },
clearUp () { clearUp () {
this.index = '' this.index = ''
this.obj = {up: '-', down: '-', msg: '-'} this.val1 = ''
this.val2 = ''
// this.obj = {up: '-', down: '-', msg: '-'}
this.disabled = false this.disabled = false
}, },
async _slitterDown () { async _slitterDown () {
@@ -90,7 +114,7 @@
return return
} }
try { try {
let res = await slitterDown(this.index) let res = await slitterDown(this.index, this.val1, this.val2)
this.clearUp() this.clearUp()
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

@@ -140,9 +140,9 @@ export const querySlitterDeviceSubVolumeInfos = (code) => request({
url:'api/pda/slitter/querySlitterDeviceSubVolumeInfos', url:'api/pda/slitter/querySlitterDeviceSubVolumeInfos',
data: {point_code: code} data: {point_code: code}
}) })
export const slitterDown = (code) => request({ export const slitterDown = (code, cn1, cn2) => request({
url:'api/pda/slitter/slitterDown', url:'api/pda/slitter/slitterDown',
data: {point_code: code} data: {point_code: code, container1: cn1, container2: cn2}
}) })
// 子卷绑定 // 子卷绑定
export const devicePointQuery = (code) => request({ export const devicePointQuery = (code) => request({