| 
					
				 | 
			
			
				@@ -325,7 +325,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label: '批次号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           prop: 'dot', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            cell:true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          cell:true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           type: 'select', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           disabled: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dicData: [], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -334,7 +334,13 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             value: "dot" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dicUrl: "/api/blade-sales-part/stockDesc/dotList", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            change: (data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (let item of data.column.dicData) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (item.dot == data.value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.$set(this.form.shipItemsList[data.index],'inventory',item.balanceQuantity) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label: '单位', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           prop: 'units', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -346,6 +352,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           dicUrl: "/api/blade-system/dict-biz/dictionary?code=unit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            label: '库存', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            prop: 'inventory', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        },{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label: '出库数量', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           prop: 'goodsNum', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           disabled: false, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -498,7 +507,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rowEdit(row, index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.form.statusName == '待出库') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.optionContactsBack.column.forEach(its => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.optionContacts.column.forEach(its => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (its.prop == 'dot') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$set(its, 'disabled', false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -509,7 +518,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         storageId: this.form.storageId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsId: row.goodsId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.findObject(this.optionContactsBack.column, "dot").dicData = res.data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.findObject(this.optionContacts.column, "dot").dicData = res.data.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (row.$cellEdit) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$set(row,'$cellEdit',false) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -564,9 +573,18 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             background: 'rgba(255,255,255,0.7)' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           console.log(this.form) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.form.shipItemsList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.goodsName = item.$goodsId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 判断处理 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (let index in this.form.shipItemsList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.form.shipItemsList[index].goodsName = this.form.shipItemsList[index].$goodsId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (Number(this.form.shipItemsList[index].sendNum) > Number(this.form.shipItemsList[index].inventory)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.$message.warning(`序号${index+1}的实际数量不能大于库存`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    loading.close(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // this.form.shipItemsList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   item.goodsName = item.$goodsId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // this.goodsName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           submit({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ...this.form, 
			 |