Jelajahi Sumber

与普通版本同步

asd26269546 2 tahun lalu
induk
melakukan
4b727c8fd7

+ 2 - 2
src/components/my-modal-form/my-modal-material.vue

@@ -379,7 +379,7 @@ export default {
 
         this.data.forEach(item => {
           if (item.name.split('-')[0] === findObj.name) {
-            let canApplyNum = (findObj.canTakeQty - (quantity * item.width / 100)) / (item.width / 100) - (item.width * item.userStockQty / 100)
+            let canApplyNum = (findObj.canTakeQty - (quantity * item.width / 100)) / (item.width / 100) - (item.width * item.userStockQty / 100)  * 1.2
             console.log('计算可领用数量')
             console.log(canApplyNum)
             this.$set(item, 'oldCanTakeQty', item.canTakeQty)
@@ -412,7 +412,7 @@ export default {
 
         this.data.forEach(item => {
           if (item.name.split('-')[0] === findObj.name) {
-            let canApplyNum = (findObj.canTakeQty - (quantity * item.width / 100)) / (item.width / 100)
+            let canApplyNum = (findObj.canTakeQty - (quantity * item.width / 100)) / (item.width / 100) * 1.2
             console.log('计算可领用数量')
             console.log(canApplyNum)
             this.$set(item, 'oldCanTakeQty', item.canTakeQty)

+ 4 - 4
src/views/store-out.vue

@@ -496,16 +496,16 @@ export default {
 					this.tempDelData.forEach((temp) => {
 						for (const index in this.scanData.rfidTagItems) {
 							if (
-								temp.materialCode ===
-								this.scanData.rfidTagItems[index].materialCode
+								temp.rfidCode ===
+								this.scanData.rfidTagItems[index].rfidCode
 							) {
 								this.scanData.rfidTagItems.splice(index, 1)
 							}
 						}
 						for (const index in this.scanData.materialItems) {
 							if (
-								temp.materialCode ===
-								this.scanData.materialItems[index].materialCode
+								temp.rfidCode ===
+								this.scanData.materialItems[index].rfidCode
 							) {
 								this.scanData.materialItems.splice(index, 1)
 							}