This commit is contained in:
2023-03-30 11:30:28 +08:00
parent 1b82f84494
commit 145349d379
4 changed files with 69 additions and 9 deletions

View File

@@ -181,6 +181,27 @@
return status;
}
// #endif
,
async checkMpaasScan () {
var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
mpaasScanModule.mpaasScan({
// 扫码识别类型参数可多选qrCode、barCode不设置默认识别所有
'scanType': ['qrCode','barCode'],
// 是否隐藏相册默认false不隐藏
'hideAlbum': false
},
(ret) => {
uni.showModal({
title: "弹窗标题",
// 返回值中resp_code 表示返回结果值10用户取消11其他错误1000成功
// 返回值中resp_message 表示返回结果信息
// 返回值中resp_result 表示扫码结果,只有成功才会有返回
content: JSON.stringify(ret),
showCancel: false,
confirmText: "确定"
})
})
}
}
}
</script>

View File

@@ -109,7 +109,7 @@
<view class="confirm-button-wrap">
<button class="confirm-button" :class="{'confirm-button_disabled': !val1 || !index3 || !val6 || !val7}" :disabled="disabled1" @tap="_setfullBox">设为满框</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !val1}" :disabled="disabled2" @tap="_setEmptyBox">设为空框</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !val1}" :disabled="disabled3" @tap="_deleteBox">设为空位</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !val1}" :disabled="disabled3" @tap="_deleteBox">删除</button>
</view>
</view>
</view>
@@ -247,12 +247,11 @@
return
}
try {
this.$set(this.obj, 'position_code', this.obj.position_code)
this.$set(this.obj, 'vehicle_code', this.val1)
this.$set(this.obj, 'workprocedure_code', this.index3)
this.$set(this.obj, 'material_code', this.val2)
this.$set(this.obj, 'material_name', this.val3)
this.$set(this.obj, 'material_spec', this.val4)
this.$set(this.obj, 'material_id', this.val5)
this.$set(this.obj, 'workprocedure_code', this.index3)
this.$set(this.obj, 'wcsdevice_code', this.obj.wcsdevice_code)
this.$set(this.obj, 'quantity', this.val6)
this.$set(this.obj, 'weight', this.val7)
let res = await setfullBox(this.obj)
@@ -275,7 +274,7 @@
try {
let obj = {}
this.$set(obj, 'vehicle_code', this.val1)
this.$set(obj, 'workprocedure_code', this.index3)
this.$set(obj, 'position_code', this.obj.position_code)
let res = await setEmptyBox(obj)
this.disabled2 = false
this.toSearch()