diff --git a/manifest.json b/manifest.json index 68b134e..3ba8a25 100644 --- a/manifest.json +++ b/manifest.json @@ -107,5 +107,10 @@ "uniStatistics" : { "enable" : false }, - "vueVersion" : "2" + "vueVersion" : "2", + "h5" : { + "router" : { + "base" : "./" + } + } } diff --git a/pages/login/login.vue b/pages/login/login.vue index af13265..8731927 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -181,27 +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: "确定" - }) - }) - } + // , + // 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: "确定" + // }) + // }) + // } } } diff --git a/pages/management/hcxcheck.vue b/pages/management/hcxcheck.vue index 3890f2e..6229f43 100644 --- a/pages/management/hcxcheck.vue +++ b/pages/management/hcxcheck.vue @@ -40,7 +40,7 @@ - + {{e.vehicle_code}} {{e.material_spec}} @@ -152,7 +152,10 @@ }, created () { // for(let i = 1; i < 16; i++) { - // this.dataList.push({vehicle_code: i + '', material_spec: 'a', status: '4'}) + // this.dataList.push({vehicle_code: i + '', material_spec: 'a', vehicle_status: '4'}) + // if (i === 5) { + // this.dataList.push({vehicle_code: i + '', material_spec: 'a', vehicle_status: '5'}) + // } // } this._getCacheLine('A1') this._workprocedureQuery() @@ -165,7 +168,7 @@ this.val2 = this.$store.getters.publicObj.material_code this.val3 = this.$store.getters.publicObj.material_name this.val4 = this.$store.getters.publicObj.material_spec - this.val5 = this.$store.getters.publicObj.material_id + this.val5 = this.$store.getters.publicObj.material_uuid } }, methods: { @@ -228,7 +231,7 @@ this.val2 = this.obj.material_code this.val3 = this.obj.material_name this.val4 = this.obj.material_spec - this.val5 = this.obj.material_id + this.val5 = this.obj.material_uuid this.val6 = this.obj.quantity this.val7 = this.obj.weight }, @@ -247,14 +250,15 @@ return } try { - this.$set(this.obj, 'position_code', this.obj.position_code) - this.$set(this.obj, 'vehicle_code', this.val1) - 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) + let obj = {} + this.$set(obj, 'position_code', this.obj.position_code) + this.$set(obj, 'vehicle_code', this.val1) + this.$set(obj, 'material_uuid', this.val5) + this.$set(obj, 'workprocedure_code', this.index3) + this.$set(obj, 'wcsdevice_code', this.obj.wcsdevice_code) + this.$set(obj, 'quantity', this.val6) + this.$set(obj, 'weight', this.val7) + let res = await setfullBox(obj) this.disabled1 = false this.toSearch() uni.showToast({ @@ -274,6 +278,7 @@ try { let obj = {} this.$set(obj, 'vehicle_code', this.val1) + this.$set(obj, 'wcsdevice_code', this.obj.wcsdevice_code) this.$set(obj, 'position_code', this.obj.position_code) let res = await setEmptyBox(obj) this.disabled2 = false diff --git a/pages/management/searchMater.vue b/pages/management/searchMater.vue index 721c606..db13a52 100644 --- a/pages/management/searchMater.vue +++ b/pages/management/searchMater.vue @@ -29,7 +29,7 @@ - + {{e.material_code}} {{e.material_name}} @@ -68,8 +68,8 @@ this.dataList = [...res] }, toRadio (e) { - this.pkId = this.pkId === e.material_id ? '' : e.material_id - this.pkObj = this.pkId === e.material_id ? e : {} + this.pkId = this.pkId === e.material_uuid ? '' : e.material_uuid + this.pkObj = this.pkId === e.material_uuid ? e : {} }, toSure () { if (!this.pkId) {