pages.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/order/orderPakin.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/order/orderPutDown.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/order/orderPutOn.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
pages.json
@@ -1,28 +1,6 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/print/printUNI", "style": { "navigationBarTitleText": "UNI打印" } }, { "path": "pages/print/print", "style": { "navigationBarTitleText": "打印" } }, { "path": "pages/print/qr", "style": { "navigationBarTitleText": "二维码" } }, { "path": "pages/login/login", "style": { "navigationBarTitleText": "登 录" @@ -82,9 +60,28 @@ "navigationBarTitleText": "库存盘点" } }, { "path": "pages/print/printUNI", "style": { "navigationBarTitleText": "UNI打印" } }, { "path": "pages/print/print", "style": { "navigationBarTitleText": "打印" } }, { "path": "pages/print/qr", "style": { "navigationBarTitleText": "二维码" } }, { "path": "pages/mat/matList", "style": { "navigationBarTitleText": "商品列表" pages/order/orderPakin.vue
@@ -196,6 +196,9 @@ that.matData = result.data that.matnr = '' that.matData['batch'] = '' // if (matnr[2] === null) { // matnr[2] = '' // } result.data.batch = matnr[2] uni.navigateTo({ url: "../mat/matSelected", @@ -240,28 +243,34 @@ var len = this.dataList.length var add = true ,sameItem = false for (var i = 0; i < len; i++) { if (mat.matnr == this.dataList[i].matnr) { for (var j = 0; j < len; j++) { if (mat.batch == this.dataList[j].batch) { sameItem = true if (mat.orderNo != this.dataList[i].orderNo) { add = true break; } else { if (mat.matnr == this.dataList[i].matnr) { for (var j = 0; j < len; j++) { if (mat.batch == this.dataList[j].batch) { sameItem = true } } } // 相同物料 不同批号 新加列表 if (mat.batch != this.dataList[i].batch) { this.$forceUpdate() // 强制刷新 if (sameItem) { add = false // 相同物料 不同批号 新加列表 if (mat.batch != this.dataList[i].batch) { this.$forceUpdate() // 强制刷新 if (sameItem) { add = false } else { add = true } } else { add = true // 相同物料相同批号 数量累加 this.dataList[i].anfme += mat.anfme this.$forceUpdate() // 强制刷新 add = false } } else { // 相同物料相同批号 数量累加 this.dataList[i].anfme += mat.anfme this.$forceUpdate() // 强制刷新 add = false } } } if (add) { this.dataList.unshift(mat) @@ -335,6 +344,7 @@ this.dataList = [] this.order = '' this.barcode = '' this.matnr = '' this.messageText = "重置完成" this.messageToggle('success') }, @@ -381,6 +391,12 @@ changeValue(value) { this.count = value }, // 清空 resst() { this.dataList = [] this.barcode = '' this.barcodeFocuss() }, } } </script> pages/order/orderPutDown.vue
@@ -240,28 +240,34 @@ var len = this.dataList.length var add = true ,sameItem = false for (var i = 0; i < len; i++) { if (mat.matnr == this.dataList[i].matnr) { for (var j = 0; j < len; j++) { if (mat.batch == this.dataList[j].batch) { sameItem = true if (mat.orderNo != this.dataList[i].orderNo) { add = true break; } else { if (mat.matnr == this.dataList[i].matnr) { for (var j = 0; j < len; j++) { if (mat.batch == this.dataList[j].batch) { sameItem = true } } } // 相同物料 不同批号 新加列表 if (mat.batch != this.dataList[i].batch) { this.$forceUpdate() // 强制刷新 if (sameItem) { add = false // 相同物料 不同批号 新加列表 if (mat.batch != this.dataList[i].batch) { this.$forceUpdate() // 强制刷新 if (sameItem) { add = false } else { add = true } } else { add = true // 相同物料相同批号 数量累加 this.dataList[i].anfme += mat.anfme this.$forceUpdate() // 强制刷新 add = false } } else { // 相同物料相同批号 数量累加 this.dataList[i].anfme += mat.anfme this.$forceUpdate() // 强制刷新 add = false } } } if (add) { this.dataList.unshift(mat) @@ -381,6 +387,12 @@ changeValue(value) { this.count = value }, // 清空 resst() { this.dataList = [] this.barcode = '' this.barcodeFocuss() }, } } </script> pages/order/orderPutOn.vue
@@ -7,12 +7,12 @@ @input="orderInput()" disabled> </view> --> <view class="item"> <view class="code-decs">托盘码:</view> <view class="code-decs">库位号:</view> <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" @confirm="barcodeInput()"> </view> <view class="item"> <view class="code-decs">库位号:</view> <view class="code-decs">物料号:</view> <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> <view class="item-right"> <button></button> @@ -71,7 +71,7 @@ <!-- 底部操作按钮 --> <view class="buttom"> <button size="mini" @click="reset('warn')">重置</button> <button size="mini" type="primary" @click="combConfirm('warn')">组托</button> <button size="mini" type="primary" @click="combConfirm('warn')">上架</button> </view> <!-- 弹窗 --> <!-- 修改数量 --> @@ -240,28 +240,34 @@ var len = this.dataList.length var add = true ,sameItem = false for (var i = 0; i < len; i++) { if (mat.matnr == this.dataList[i].matnr) { for (var j = 0; j < len; j++) { if (mat.batch == this.dataList[j].batch) { sameItem = true if (mat.orderNo != this.dataList[i].orderNo) { add = true break; } else { if (mat.matnr == this.dataList[i].matnr) { for (var j = 0; j < len; j++) { if (mat.batch == this.dataList[j].batch) { sameItem = true } } } // 相同物料 不同批号 新加列表 if (mat.batch != this.dataList[i].batch) { this.$forceUpdate() // 强制刷新 if (sameItem) { add = false // 相同物料 不同批号 新加列表 if (mat.batch != this.dataList[i].batch) { this.$forceUpdate() // 强制刷新 if (sameItem) { add = false } else { add = true } } else { add = true // 相同物料相同批号 数量累加 this.dataList[i].anfme += mat.anfme this.$forceUpdate() // 强制刷新 add = false } } else { // 相同物料相同批号 数量累加 this.dataList[i].anfme += mat.anfme this.$forceUpdate() // 强制刷新 add = false } } } if (add) { this.dataList.unshift(mat) @@ -294,9 +300,9 @@ } } uni.request({ url: that.baseUrl + '/mobile/comb/auth', url: that.baseUrl + '/mobile/manDetl/in', data: JSON.stringify({ locno: that.barcode, locNo: that.barcode, combMats: that.dataList }), method: 'POST', @@ -381,6 +387,12 @@ changeValue(value) { this.count = value }, // 清空 resst() { this.dataList = [] this.barcode = '' this.barcodeFocuss() }, } } </script>