| 
					
				 | 
			
			
				@@ -167,7 +167,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         label="入库日期" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        prop="fcreatetime" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        prop="fCreatetime" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width="180" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ><template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <span>{{ parseTime(scope.row.fcreatetime, "{y}-{m}-{d}") }}</span> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -207,6 +207,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-if="scope.row.fBillstatus !== '6'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @click="handleDelete(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v-hasPermi="['warehouseBusiness:warehousebills:remove']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             >删除 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -342,6 +343,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-col :span="8"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-form-item label="存货编号" prop="fBscorpno"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                disabled 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-model="form.fBscorpno" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 style="width: 250px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 laceholder="存货编号" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1064,7 +1066,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="scope.row.fFeeUnitid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              placeholder="请选择计费单位" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              placeholder="请选择计价单位" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1272,7 +1274,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          prop="fFeeunitid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          prop="fFeeUnitid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           header-align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           width="180px" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1280,16 +1282,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-model="scope.row.fFeeunitid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              placeholder="请选择计费单位" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-model="scope.row.fFeeUnitid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              filterable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              remote 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :remote-method="corpsRemoteMethod" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              placeholder="计价单位" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                v-for="dict in jFeetunitOptions" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                :key="dict.dictValue" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                v-for="(dict, index) in jFeetunitOptions" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :key="index.dictValue" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 :label="dict.dictLabel" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 :value="dict.dictValue" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              ></el-option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </el-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-table-column> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1439,7 +1443,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           @click="showEditDialog_s" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           >入库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-button type="primary" @click="submitForm">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" @click="submitForm(2)">暂 存</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" @click="submitForm(6)">提 交</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-button @click="cancel">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-dialog 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1887,9 +1892,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fWarehouseid: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { required: true, message: "请选择仓库", trigger: "blur" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fBscorpno: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { required: true, message: "请输入存货编号", trigger: "blur" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fbillingway: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             required: true, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1915,7 +1917,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.getDicts("data_unitfees").then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.fFeetunitOptions = response.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.jFeetunitOptions = response.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.jFeetunitOptions = JSON.parse(JSON.stringify(response.data)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.getDicts("data_stltype_type").then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.fStltypeOptions = response.data; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1964,23 +1966,27 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 添加list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     addRelevant() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let time = null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (this.form.fBsdate) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        time = this.form.fBsdate 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.dataList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fbsdate: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fgoodsid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fcntrtype: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fBsdate: time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fGoodsid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fCntrtype: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fCntqty: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fplangrossweight: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fplanvolumn: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fplanqty: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fgrossweight: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fqty: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fPlangrossweight: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fPlanvolumn: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fPlanqty: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fGrossweight: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fQty: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fPackagespecs: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fwarehouselocid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fWarehouselocid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fBoxno: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fGoodsval: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ftruckno: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fTruckno: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         remark: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 收货单打印界面 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     showEditDialog_s() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1992,11 +1998,11 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 收款信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     addCollection() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.warehouseDrList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fcorpid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ffeeid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ffeeUnitid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fCorpid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fFeeid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fFeeUnitid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fQty: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        funitprice: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fUnitprice: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fAmount: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fCurrency: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fCxrate: null, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2006,17 +2012,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     addpayment() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.warehouseCrList.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fcorpid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ffeeid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ffeeUnitid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fCorpid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fFeeid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fFeeUnitid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fQty: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        funitprice: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fUnitprice: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fAmount: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fCurrency: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fCxrate: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fRate: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         remarks: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     queryUser() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       queryUserVal().then((response) => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2164,25 +2170,31 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const fId = row.fId || this.ids; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       getWarehousebills(fId).then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.form = response.data.warehousebills; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.fMblnoOptions = response.data.corps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.KHblnoOptions = response.data.corps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.fSbuOptions = response.data.corps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form = response.data.warehousebills 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.fMblnoOptions = response.data.corps 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.KHblnoOptions = response.data.corps 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.fSbuOptions = response.data.corps 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.fWbuOptions = response.data.feesList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.warehouseOptions = response.data.warehouse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.dataList = response.data.warehouseBillsItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (let list in this.dataList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$set(this.dataList[list], 'fBsdate', this.dataList[list].fBsdate) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.goodsOptions = response.data.goodsList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.kqhouseOptions = response.data.warehouseAreas 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.relevantAttachments = response.data.enclosures 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.warehouseDrList = response.data.warehousebillsfeesDr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (let dr in this.warehouseDrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$set(this.warehouseDrList[dr], 'fFeeUnitid', this.warehouseDrList[dr].fFeeUnitid + "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.warehouseCrList = response.data.warehousebillsfeesCr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (let cr in this.warehouseCrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$set(this.warehouseCrList[cr], 'fFeeUnitid', this.warehouseCrList[cr].fFeeUnitid + "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.userOptions = response.data.sysUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$set(this.form, "fBsdate", Date.parse(response.data.warehousebills.fBsdate)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.open = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.title = "修改仓库主(出入库)"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2222,14 +2234,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 提交按钮 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    submitForm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        typeof this.form.fBillstatus === "undefined" || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.form.fBillstatus == null || this.dataList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.form.fBillstatus = 6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    submitForm(status) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs["form"].validate((valid) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.dataList.length ===  0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$message.error('请添加库存明细!') 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2252,63 +2257,65 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error('请输入品名!') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (let list in this.dataList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (!this.dataList[list].fWarehouselocid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error('请输入库区!') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (let list in this.relevantAttachments) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (this.relevantAttachments[list].fName === null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (let relevant in this.relevantAttachments) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!this.relevantAttachments[relevant].fName) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error('请输入附件名称!') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (let list in this.warehouseDrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (!this.warehouseDrList[list].fCorpid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (let warehouseDr in this.warehouseDrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!this.warehouseDrList[warehouseDr].fCorpid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error('请选择客户名称') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!this.warehouseDrList[warehouseDr].fFeeid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error('请选择费用名称') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!this.warehouseDrList[warehouseDr]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error('请选择收款计费单位') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (let list in this.warehouseCrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (!this.warehouseDrList[list].fCorpid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (let warehouseCr in this.warehouseCrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!this.warehouseCrList[warehouseCr].fCorpid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error('请选择客户名称') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!this.warehouseCrList[warehouseCr].fFeeid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error('请选择费用名称') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (!this.warehouseCrList[warehouseCr].fFeeUnitid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.error('请选择付款计费单位') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.form.fBillstatus = status; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           let formData = new window.FormData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // 附件数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          formData.append("tWarehouseBills", JSON.stringify(this.form)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          formData.append("tWarehouseBills", JSON.stringify(this.form)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // 库存明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          formData.append("tWarehousebillsitems", JSON.stringify(this.dataList)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // 附件数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          formData.append( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "tWhgenleg", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            JSON.stringify(this.relevantAttachments) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          // // 费用明细付款 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          formData.append( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "tWarehousebillsfeesCr", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            JSON.stringify(this.warehouseCrList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          // // 收款 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          formData.append( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "tWarehousebillsfeesDr", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            JSON.stringify(this.warehouseDrList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          // // 库存明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          formData.append( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "tWarehousebillsitems", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            JSON.stringify(this.dataList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          formData.append("tWhgenleg", JSON.stringify(this.relevantAttachments)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // 费用明细付款 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          formData.append("tWarehousebillsfeesCr", JSON.stringify(this.warehouseCrList)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // 收款 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          formData.append("tWarehousebillsfeesDr", JSON.stringify(this.warehouseDrList)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           addWarehousebills(formData).then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.msgSuccess("新增成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.msgSuccess("提交成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.open = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 删除按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleDelete(row) { 
			 |