feat: 切换采集工位、是否自动提交提示

20240912_adapter
chenhc 9 months ago
parent ce705e4cb0
commit 8c513de3ad

@ -696,6 +696,15 @@ export default {
this.formData.workplaceId = Number(this.$route.query.workplaceId); this.formData.workplaceId = Number(this.$route.query.workplaceId);
if(this.workPlaceClass == 1) { if(this.workPlaceClass == 1) {
this.getWorkBindBusTypes(this.formData.workPlaceCode); this.getWorkBindBusTypes(this.formData.workPlaceCode);
}else if(this.workPlaceClass == 2) {
this.busQuery.workplaceCode = this.formData.workPlaceCode
filterListByWorkplace(this.busQuery).then(res => {
if (res.code == 20000) {
this.busTypeList = res.data.list
this.busTypeTotal = res.data.total
}
return
})
} }
} }
} }

@ -473,6 +473,7 @@ export default {
}, },
curRow: null, curRow: null,
panelALive: false, panelALive: false,
autoFinishOrderFlag: true,//
// //
scanCode: "", scanCode: "",
@ -1160,17 +1161,21 @@ export default {
vailOrderFinish() { vailOrderFinish() {
if (!this.autoFinishOrderFlag){
return
}
vailOrderFinish(this.formData).then(res => { vailOrderFinish(this.formData).then(res => {
this.loading = false this.loading = false
if (res.code == 20000) { if (res.code == 20000) {
if (res.data) { if (res.data) {
this.$confirm("单据已赋码或可自动赋码,是否立即完成单据?", '提示', { this.$confirm("单据已赋码或可自动赋码,是否立即完成单据?", '提示', {
confirmButtonText: '确定', confirmButtonText: '立即提交',
cancelButtonText: '取消', cancelButtonText: '手动扫码',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.finishOrder(); this.finishOrder();
}).catch(() => { }).catch(() => {
this.autoFinishOrderFlag = false
}); });
} }
} else { } else {

Loading…
Cancel
Save