| 
					
				 | 
			
			
				@@ -253,10 +253,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-table 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       v-loading="loading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :data="warehousebillsList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      show-summary :summary-method="getSum" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       @selection-change="handleSelectionChange" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column type="selection" width="55" fixed align="center" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column type="index" label="行号" fixed align="center" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column  label="制单人" align="center" prop="createBy" fixed/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width="100" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fixed 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -268,18 +270,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span v-if="scope.row.fItemsStatus === 1">计划</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span v-if="scope.row.fItemsStatus === 2">待调拨</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span v-if="scope.row.fItemsStatus === 3">调拨中</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <span v-if="scope.row.fItemsStatus === 6">已调拨</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-if="scope.row.fItemsStatus === 4">已调拨</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        :show-overflow-tooltip="true" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        width="180" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         label="货权方" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fixed 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         prop="fCorpid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="提单号" fixed align="center" prop="fMblno" show-overflow-tooltip/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="提单号" fixed width="100" align="center" prop="fMblno" show-overflow-tooltip/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="品名" fixed :show-overflow-tooltip="true" align="ceter" prop="fProductName" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="品牌" fixed align="center" prop="fMarks" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1111,7 +1113,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   v-model="scope.row.fPackagespecs" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   :disabled=" browseStatus || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     scope.row.fBillstatus === 20 || 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1215,7 +1216,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   v-model="scope.row.fCntrtype" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   :disabled=" browseStatus || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     scope.row.fBillstatus === 20 || 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2249,6 +2249,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span v-if="scope.row.fFeeUnitid === 3">净重</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span v-if="scope.row.fFeeUnitid === 4">尺码</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span v-if="scope.row.fFeeUnitid === 5">固定</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <span v-if="scope.row.fFeeUnitid === 6">其它</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <span v-if="scope.row.fFeeUnitid === 7">箱量</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table-column 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -3005,6 +3007,29 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.Jump() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getSum(param){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const { columns, data } = param 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const sums = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      columns.forEach((column, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (index === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          sums[index] = '总计' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else if (index ===13  || index ===10 || index ===11 || index ===12 ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const values = data.map(item => Number(item[column.property])) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!values.every(value => isNaN(value))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            sums[index] = values.reduce((prev, curr) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              const value = Number(curr) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (!isNaN(value)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return prev + curr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return prev 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return sums 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     closeDialog() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       for (let aorp in this.Printinglist) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$set( 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -3731,7 +3756,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.warehouseDrList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fcorpid: this.form.fCorpid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ffeeid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          fFeeunitid: '2', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fFeeunitid: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fQty: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           funitprice: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fAmount: 0, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -3754,7 +3779,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.warehouseCrList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fcorpid: this.form.fCorpid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           ffeeid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          fFeeunitid: '2', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fFeeunitid: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fQty: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           funitprice: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fAmount: 0, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -4376,30 +4401,31 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let fQty = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let fGrossweight = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let fNetweight = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let volumn = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let fCntqty = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let fixed = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       for (let li in this.dataList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.dataList[li].fQty) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fQty = parseFloat(Number(fQty) + Number(this.dataList[li].fQty)).toFixed(2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(this.dataList[li].fGrossweight) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.dataList[li].fGrossweight) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fGrossweight = parseFloat(Number(fGrossweight) + Number(this.dataList[li].fGrossweight)).toFixed(2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.dataList[li].fNetweight) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fNetweight = parseFloat(Number(fNetweight) + Number(this.dataList[li].fNetweight)).toFixed(2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (this.dataList[li].volumn) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          volumn = parseFloat(Number(volumn) + Number(this.dataList[li].volumn)).toFixed(2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (this.dataList[li].fCntqty) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fCntqty = parseFloat(Number(fCntqty) + Number(this.dataList[li].fCntqty)).toFixed(2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (row.fFeeunitid == "1") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$set(row, 'fQty', this.fPlanqty.toFixed(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$set(row, 'fQty', fQty) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else if (row.fFeeunitid == "2") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$set(row, 'fQty', (fPlannetweight/1000).toFixed(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$set(row, 'fQty', (fNetweight/1000).toFixed(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }else if (row.fFeeunitid == "3") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$set(row, 'fQty', (fPlangrossweight/1000).toFixed(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$set(row, 'fQty', (fGrossweight/1000).toFixed(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }else if (row.fFeeunitid == "7") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$set(row, 'fQty', this.fCntqty.toFixed(2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$set(row, 'fQty', fCntqty) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$set(row, "fQty", 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -4456,6 +4482,91 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            getStockTransfer(this.form.fId).then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.warehousebills) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.form = response.data.warehousebills; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$set(this.form, "fEta", Date.parse(this.form.fEta)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$set(this.form, "fStltypeid", this.form.fStltypeid + ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$set(this.form, 'fFeetunit', Number(this.form.fFeetunit)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$set(this.form, 'createTime', Date.parse(this.form.createTime)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(this.form.fBillstatus > 2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.approvalStatus = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.approvalStatus = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.corps) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.flabourOptions = response.data.corps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.fMblnoOptions = response.data.corps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.KHblnoOptions = response.data.corps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.fCompanyOptIons = response.data.corps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.fleetOptions = response.data.corps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.feesList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.fWbuOptions = response.data.feesList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.warehouse) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.warehouseOptions = response.data.warehouse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.warehouseBillsItem) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.dataList = response.data.warehouseBillsItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (let list in this.dataList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  if (!this.form.fMblno) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.$set(this.form, "fMblno", this.dataList[list].fMblno); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  if (this.dataList[list].fBillstatus > 10) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.formBrowseStatus = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.enclosures) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.relevantAttachments = response.data.enclosures; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.warehouse) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.warehouseDrList = response.data.warehousebillsfeesDr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.warehousebillsfeesDr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.warehouseDrList = response.data.warehousebillsfeesDr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (let dr in this.warehouseDrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.$set(this.warehouseDrList[dr], "fFeeunitid", this.warehouseDrList[dr].fFeeunitid + ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.warehousebillsfeesCr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.warehouseCrList = response.data.warehousebillsfeesCr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (let cr in this.warehouseCrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.$set(this.warehouseCrList[cr], "fFeeunitid", this.warehouseCrList[cr].fFeeunitid + ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.sysUser) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.userVal = response.data.sysUser 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.dept) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.deptOptions = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.deptOptions.push(response.data.dept) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.feesList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.fWbuOptions = response.data.feesList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.goodsList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.goodsOptions = response.data.goodsList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.warehouse) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.warehouseOptions = response.data.warehouse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (response.data.warehouseAreas) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.kqhouseOptions = response.data.warehouseAreas; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.open = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.title = "修改调拨"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.warehousesssMethod() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //保存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$refs['form'].validate((valid) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               // if (this.dataList.length === 0) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -4467,8 +4578,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  this.form.fBillstatus = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   let formData = new window.FormData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.form.fItemsStatus = 4 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   // this.dataList.fTransferWarehouselocid = this.treeselectList.fWarehouselocid 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   formData.append("warehouseBills", JSON.stringify(this.form)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   formData.append("warehousebillsitems", JSON.stringify(this.dataList)); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -4492,6 +4603,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }, 200); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              console.log(this.form.fItemsStatus) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -4514,22 +4626,26 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             formData.append("warehousebillsitems", JSON.stringify(dataList)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            addJoblist(formData).then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.formBrowseStatus = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              // this.$refs.tableDr.clearSelection(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              // this.$refs.tableList.clearSelection(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              let dataSelection = response.data.warehousebillsitems 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              for (let ite in dataSelection) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                for (let li in this.dataList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  if (dataSelection[ite].fId === this.dataList[li].fId && this.dataList[li].fBillstatus === 10) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.$set(this.dataList[li], 'fBillstatus', dataSelection[li].fBillstatus) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.$set(this.dataList[li], 'fSerialNumber', dataSelection[li].fSerialNumber) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for(let index in dataList){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if(dataList[index].fBillstatus < 20) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                addJoblist(formData).then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.formBrowseStatus = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  // this.$refs.tableDr.clearSelection(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  // this.$refs.tableList.clearSelection(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  let dataSelection = response.data.warehousebillsitems 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  for (let ite in dataSelection) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    for (let li in this.dataList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      if (dataSelection[ite].fId === this.dataList[li].fId && this.dataList[li].fBillstatus === 10) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.$set(this.dataList[li], 'fBillstatus', dataSelection[li].fBillstatus) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.$set(this.dataList[li], 'fSerialNumber', dataSelection[li].fSerialNumber) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.$refs.tableList.clearSelection() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.$refs.tableList.clearSelection() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -4780,18 +4896,18 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (let list in this.warehouseDrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (!this.warehouseDrList[list].fCorpid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$message.error('请选择客户名称') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (let list in this.warehouseCrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (!this.warehouseCrList[list].fCorpid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$message.error('请选择客户名称') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // for (let list in this.warehouseDrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   if (!this.warehouseDrList[list].fCorpid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     this.$message.error('请选择客户名称') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // for (let list in this.warehouseCrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   if (!this.warehouseCrList[list].fCorpid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     this.$message.error('请选择客户名称') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.form.fBillstatus = status 
			 |