产线转运

This commit is contained in:
2025-08-05 16:01:58 +08:00
parent c2c9b81570
commit f20f72c81d
4 changed files with 35 additions and 5 deletions

View File

@@ -50,6 +50,15 @@
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">物料校验</span>
</view>
<view class="relative zd-col-24">
<switch :checked="isChecked" color="#4e6ef2" style="transform:scale(0.8); transform-origin: left;"/>
<text @tap="setWStatus" style="position: absolute;display: inline-block;width: 52px; height: 32px;left: 0;"></text>
</view>
</view>
</view>
</view>
<view class="zd-row submit-bar">
@@ -81,6 +90,7 @@
index2: '',
disabled: false,
currentData: {},
isChecked: true
};
},
onLoad (options) {
@@ -115,6 +125,7 @@
this.index2 = ''
this.disabled = false
this.kwData = {}
this.isChecked = true
},
async _transferConfirm () {
this.disabled = true
@@ -123,7 +134,8 @@
return
}
try {
let res = await transferConfirm(this.val3, this.val1, this.val2, this.index2)
let check = this.isChecked ? '1' : '0'
let res = await transferConfirm(this.val3, this.val1, this.val2, this.index2, check)
if (res.code === '200') {
uni.showToast({
title: res.message,
@@ -140,6 +152,9 @@
} catch (e) {
this.disabled = false
}
},
setWStatus () {
this.isChecked = !this.isChecked
}
}
}

View File

@@ -50,6 +50,15 @@
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">物料校验</span>
</view>
<view class="relative zd-col-24">
<switch :checked="isChecked" color="#4e6ef2" style="transform:scale(0.8); transform-origin: left;"/>
<text @tap="setWStatus" style="position: absolute;display: inline-block;width: 52px; height: 32px;left: 0;"></text>
</view>
</view>
</view>
</view>
<view class="zd-row submit-bar">
@@ -81,6 +90,7 @@
index2: '',
disabled: false,
currentData: {},
isChecked: true
};
},
onLoad (options) {
@@ -115,6 +125,7 @@
this.index2 = ''
this.disabled = false
this.kwData = {}
this.isChecked = true
},
async _transferConfirm () {
this.disabled = true
@@ -123,7 +134,8 @@
return
}
try {
let res = await transferConfirm(this.val3, this.val1, this.val2, this.index2)
let check = this.isChecked ? '1' : '0'
let res = await transferConfirm(this.val3, this.val1, this.val2, this.index2, check)
if (res.code === '200') {
uni.showToast({
title: res.message,
@@ -140,6 +152,9 @@
} catch (e) {
this.disabled = false
}
},
setWStatus () {
this.isChecked = !this.isChecked
}
}
}