| 
														
															@@ -269,19 +269,36 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       :data="warehousebillsList" 
														 | 
														
														 | 
														
															       :data="warehousebillsList" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       @selection-change="handleSelectionChange" 
														 | 
														
														 | 
														
															       @selection-change="handleSelectionChange" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     > 
														 | 
														
														 | 
														
															     > 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      <el-table-column type="selection" width="55" align="center" /> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      <el-table-column type="index" label="行号" align="center" /> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      <el-table-column type="selection" width="55" fixed align="center" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      <el-table-column type="index" label="行号" align="center" fixed/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      <el-table-column 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        width="100" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        label="入库状态" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        fixed 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        align="center" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        prop="fItemsStatus" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      > 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        <template slot-scope="scope"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          <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 === 4">已入库</span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      </el-table-column> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <el-table-column 
														 | 
														
														 | 
														
															       <el-table-column 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         :show-overflow-tooltip="true" 
														 | 
														
														 | 
														
															         :show-overflow-tooltip="true" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         label="货权方" 
														 | 
														
														 | 
														
															         label="货权方" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        fixed 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         align="center" 
														 | 
														
														 | 
														
															         align="center" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         prop="fCorpid" 
														 | 
														
														 | 
														
															         prop="fCorpid" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       /> 
														 | 
														
														 | 
														
															       /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      <el-table-column label="提单号" align="center" prop="fMblno" show-overflow-tooltip/> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      <el-table-column label="品名" :show-overflow-tooltip="true" align="center" prop="fProductName" /> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      <el-table-column label="品牌" align="center" prop="fMarks" /> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      <el-table-column label="提单号" fixed align="center" prop="fMblno" show-overflow-tooltip/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      <el-table-column label="品名" fixed :show-overflow-tooltip="true" align="center" prop="fProductName" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      <el-table-column label="品牌" fixed align="center" prop="fMarks" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <el-table-column 
														 | 
														
														 | 
														
															       <el-table-column 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         label="入库日期" 
														 | 
														
														 | 
														
															         label="入库日期" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        fixed 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         align="center" 
														 | 
														
														 | 
														
															         align="center" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         prop="fBsdate" 
														 | 
														
														 | 
														
															         prop="fBsdate" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         width="100" 
														 | 
														
														 | 
														
															         width="100" 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -295,7 +312,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         prop="fTrademodeid" 
														 | 
														
														 | 
														
															         prop="fTrademodeid" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         :formatter="fTrademodeidFormat" 
														 | 
														
														 | 
														
															         :formatter="fTrademodeidFormat" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       /> --> 
														 | 
														
														 | 
														
															       /> --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      <el-table-column label="仓库" align="center" prop="fWarehouseid" /> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      <el-table-column label="仓库" fixed align="center" prop="fWarehouseid" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <el-table-column label="计划件数" align="center" prop="fPlanqty" /> 
														 | 
														
														 | 
														
															       <el-table-column label="计划件数" align="center" prop="fPlanqty" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <el-table-column label="入库件数" align="center" prop="fQty" /> 
														 | 
														
														 | 
														
															       <el-table-column label="入库件数" align="center" prop="fQty" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <!--      <el-table-column label="入库毛重" align="center" prop="fGrossweight"/>--> 
														 | 
														
														 | 
														
															       <!--      <el-table-column label="入库毛重" align="center" prop="fGrossweight"/>--> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -310,19 +327,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                        :formatter="fBusinessTypeFormat"/> 
														 | 
														
														 | 
														
															                        :formatter="fBusinessTypeFormat"/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <el-table-column 
														 | 
														
														 | 
														
															       <el-table-column 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         width="100" 
														 | 
														
														 | 
														
															         width="100" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        label="入库状态" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        align="center" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        prop="fItemsStatus" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      > 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        <template slot-scope="scope"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-          <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 === 4">已入库</span> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        </template> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      </el-table-column> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      <el-table-column 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        width="100" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         label="费用状态" 
														 | 
														
														 | 
														
															         label="费用状态" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         align="center" 
														 | 
														
														 | 
														
															         align="center" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         prop="fBillstatus" 
														 | 
														
														 | 
														
															         prop="fBillstatus" 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -4774,116 +4778,130 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               } 
														 | 
														
														 | 
														
															               } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.msgSuccess('入账成功') 
														 | 
														
														 | 
														
															             this.msgSuccess('入账成功') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.$refs['form'].validate((valid) => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              if (valid) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                if(!this.dataList.length){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fBillstatus = status 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fNetweight = this.fNetweight 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fPlanvolumn = this.fPlanvolumn 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fGrossweight = this.fGrossweight 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fQty = this.fQty 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // if (!this.form.fId) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  //   this.form.fId = this.fid 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // if (!this.form.fBusinessType) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  //   this.$message.error('请选择货物属性!') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  //   return false 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  for (let list in this.dataList) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    if (!this.dataList[list].fBusinessType) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      this.$message.error('请输入库存明细的货物属性!') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      return false 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            getWarehousebills(this.form.fId).then((response) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              if (response.data.warehousebills) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.form = response.data.warehousebills; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.before = this.form.createBy 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (this.form.fBillstatus > 2) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.approvalStatus = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.fMblno = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.form, "fEta", Date.parse(this.form.fEta)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.form, "fStltypeid", this.form.fStltypeid + ""); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                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)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.form, "fFeeUnitid", this.form.fFeeunitid + ""); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.form, "fPlannetweight", this.form.fPlannetweight.toFixed(2)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.form, "fPlangrossweight", this.form.fPlangrossweight.toFixed(2)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              if (response.data.warehouseBillsItem) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.dataList = response.data.warehouseBillsItem; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                for (let list in this.dataList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  if (this.dataList[list].fBillstatus > 10) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.formBrowseStatus = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  }else{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.formBrowseStatus = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                   } 
														 | 
														
														 | 
														
															                   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  let formDatae = new window.FormData() 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 附件数据 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fBillingway = this.form.fFeetunit 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // this.form.fBstime = JSON.stringify(this.form.fBstime) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tWarehouseBills', JSON.stringify(this.form)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 库存明细 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 附件数据 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tEnclosure', JSON.stringify(this.relevantAttachments)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 费用明细付款 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 收款 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  addWarehousebills(formDatae).then((response) => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    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, 'fBsdate', Date.parse(this.form.fBsdate)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.$set(this.form, 'createTime', Date.parse(this.form.createTime)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.dataList = response.data.warehousebillsitems 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    for (let list in this.dataList) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.fid = response.data.warehouseBills.fId 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.getList() 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  }) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                }else{ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  for(let item in this.dataList){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    if(!this.dataList[item].fGoodsids){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      this.$message.error("请维护第"+ (Number(item)+1) +"行品名!") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      return false 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    if(!this.dataList[item].fMarks){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      this.$message.error("请维护第"+ (Number(item)+1) +"行货物属性!") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      return false 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  if(this.dataList[list].fBillstatus === 40){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.contrOl = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  }else{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.contrOl = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                   } 
														 | 
														
														 | 
														
															                   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fBillstatus = status 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fNetweight = this.fNetweight 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fPlanvolumn = this.fPlanvolumn 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fGrossweight = this.fGrossweight 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fQty = this.fQty 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // if (!this.form.fId) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  //   this.form.fId = this.fid 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // if (!this.form.fBusinessType) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  //   this.$message.error('请选择货物属性!') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  //   return false 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  for (let list in this.dataList) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    if (!this.dataList[list].fBusinessType) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      this.$message.error('请输入库存明细的货物属性!') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      return false 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              if (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.dataList[list].fBillstatus > 10) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.formBrowseStatus = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                   } 
														 | 
														
														 | 
														
															                   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  let formDatae = new window.FormData() 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 附件数据 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  this.form.fBillingway = this.form.fFeetunit 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tWarehouseBills', JSON.stringify(this.form)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 库存明细 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 附件数据 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tEnclosure', JSON.stringify(this.relevantAttachments)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 费用明细付款 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  // 收款 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  addWarehousebills(formDatae).then((response) => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.msgSuccess('保存成功') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    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, 'fBsdate', Date.parse(this.form.fBsdate)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.$set(this.form, 'createTime', Date.parse(this.form.createTime)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.dataList = response.data.warehousebillsitems 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    for (let list in this.dataList) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                      this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.fid = response.data.warehouseBills.fId 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    this.getList() 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                  }) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               } 
														 | 
														
														 | 
														
															               } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              if (response.data.enclosures) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.relevantAttachments = response.data.enclosures; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              for (let list in this.dataList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.kqhouseOptions = response.data.warehouseAreas; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.warehouseDrList = response.data.warehousebillsfeesDr; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              for (let dr in this.warehouseDrList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.warehouseDrList[dr], "fFeeUnitid", this.warehouseDrList[dr].fFeeunitid + ''); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              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.warehouseDrList[0].fBusinessType = this.form.fBusinessType 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.open = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.title = "修改仓入库"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.warehousesssMethod() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            this.form.fNetweight = this.fNetweight 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            this.form.fPlanvolumn = this.fPlanvolumn 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            this.form.fGrossweight = this.fGrossweight 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            this.form.fQty = this.fQty 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // if (!this.form.fId) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            //   this.form.fId = this.fid 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // if (!this.form.fBusinessType) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            //   this.$message.error('请选择货物属性!') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            //   return false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            for (let list in this.dataList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              if (!this.dataList[list].fBusinessType) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$message.error('请输入库存明细的货物属性!') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                return false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let formDatae = new window.FormData() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 附件数据 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            this.form.fBillingway = this.form.fFeetunit 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // this.form.fBstime = JSON.stringify(this.form.fBstime) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            formDatae.append('tWarehouseBills', JSON.stringify(this.form)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 库存明细 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 附件数据 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            formDatae.append('tEnclosure', JSON.stringify(this.relevantAttachments)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 费用明细付款 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            formDatae.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 收款 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            addWarehousebills(formDatae).then((response) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              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, 'fBsdate', Date.parse(this.form.fBsdate)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.$set(this.form, 'createTime', Date.parse(this.form.createTime)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.dataList = response.data.warehousebillsitems 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              for (let list in this.dataList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.fid = response.data.warehouseBills.fId 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.getList() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              console.log("000") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }) 
														 | 
														
														 | 
														
															             }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.$refs.checkout.clearSelection() 
														 | 
														
														 | 
														
															             this.$refs.checkout.clearSelection() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.contrOl = true 
														 | 
														
														 | 
														
															             this.contrOl = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           }) 
														 | 
														
														 | 
														
															           }) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -5004,6 +5022,85 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 this.$set(this.dataList[li], "fBusinessType", this.dataList[li].fBusinessType + '') 
														 | 
														
														 | 
														
															                 this.$set(this.dataList[li], "fBusinessType", this.dataList[li].fBusinessType + '') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               } 
														 | 
														
														 | 
														
															               } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.msgSuccess("卸货成功"); 
														 | 
														
														 | 
														
															               this.msgSuccess("卸货成功"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              getWarehousebills(this.form.fId).then((response) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (response.data.warehousebills) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.form = response.data.warehousebills; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.before = this.form.createBy 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  if (this.form.fBillstatus > 2) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.approvalStatus = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.fMblno = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.form, "fEta", Date.parse(this.form.fEta)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.form, "fStltypeid", this.form.fStltypeid + ""); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  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)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.form, "fFeeUnitid", this.form.fFeeunitid + ""); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.form, "fPlannetweight", this.form.fPlannetweight.toFixed(2)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.form, "fPlangrossweight", this.form.fPlangrossweight.toFixed(2)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (response.data.warehouseBillsItem) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.dataList = response.data.warehouseBillsItem; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  for (let list in this.dataList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    if (this.dataList[list].fBillstatus > 10) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                      this.formBrowseStatus = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                      this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    }else{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                      this.formBrowseStatus = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    if(this.dataList[list].fBillstatus === 40){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                      this.contrOl = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    }else{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                      this.contrOl = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (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.dataList[list].fBillstatus > 10) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                      this.formBrowseStatus = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if (response.data.enclosures) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.relevantAttachments = response.data.enclosures; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                for (let list in this.dataList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.kqhouseOptions = response.data.warehouseAreas; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.warehouseDrList = response.data.warehousebillsfeesDr; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                for (let dr in this.warehouseDrList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.warehouseDrList[dr], "fFeeUnitid", this.warehouseDrList[dr].fFeeunitid + ''); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                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.warehouseDrList[0].fBusinessType = this.form.fBusinessType 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.open = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.title = "修改仓入库"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                this.warehousesssMethod() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.$refs.checkout.clearSelection(); 
														 | 
														
														 | 
														
															               this.$refs.checkout.clearSelection(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }); 
														 | 
														
														 | 
														
															             }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           } 
														 | 
														
														 | 
														
															           } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -5056,7 +5153,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.$refs['form'].validate((valid) => { 
														 | 
														
														 | 
														
															       this.$refs['form'].validate((valid) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (valid) { 
														 | 
														
														 | 
														
															         if (valid) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           if(!this.dataList.length){ 
														 | 
														
														 | 
														
															           if(!this.dataList.length){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.form.fBillstatus = status 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            console.log(status) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // this.form.fBillstatus = status 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.form.fNetweight = this.fNetweight 
														 | 
														
														 | 
														
															             this.form.fNetweight = this.fNetweight 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.form.fPlanvolumn = this.fPlanvolumn 
														 | 
														
														 | 
														
															             this.form.fPlanvolumn = this.fPlanvolumn 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.form.fGrossweight = this.fGrossweight 
														 | 
														
														 | 
														
															             this.form.fGrossweight = this.fGrossweight 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -5102,10 +5200,12 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               } 
														 | 
														
														 | 
														
															               } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.fid = response.data.warehouseBills.fId 
														 | 
														
														 | 
														
															               this.fid = response.data.warehouseBills.fId 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.getList() 
														 | 
														
														 | 
														
															               this.getList() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              console.log("000") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }) 
														 | 
														
														 | 
														
															             }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           }else{ 
														 | 
														
														 | 
														
															           }else{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             for(let item in this.dataList){ 
														 | 
														
														 | 
														
															             for(let item in this.dataList){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               if(!this.dataList[item].fGoodsids){ 
														 | 
														
														 | 
														
															               if(!this.dataList[item].fGoodsids){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                console.log(this.dataList[item].fGoodsids) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 this.$message.error("请维护第"+ (Number(item)+1) +"行品名!") 
														 | 
														
														 | 
														
															                 this.$message.error("请维护第"+ (Number(item)+1) +"行品名!") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 return false 
														 | 
														
														 | 
														
															                 return false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               } 
														 | 
														
														 | 
														
															               } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -5114,7 +5214,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 return false 
														 | 
														
														 | 
														
															                 return false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               } 
														 | 
														
														 | 
														
															               } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.form.fBillstatus = status 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            console.log(status) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // this.form.fBillstatus = status 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.form.fNetweight = this.fNetweight 
														 | 
														
														 | 
														
															             this.form.fNetweight = this.fNetweight 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.form.fPlanvolumn = this.fPlanvolumn 
														 | 
														
														 | 
														
															             this.form.fPlanvolumn = this.fPlanvolumn 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.form.fGrossweight = this.fGrossweight 
														 | 
														
														 | 
														
															             this.form.fGrossweight = this.fGrossweight 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -5134,7 +5235,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             let formDatae = new window.FormData() 
														 | 
														
														 | 
														
															             let formDatae = new window.FormData() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             // 附件数据 
														 | 
														
														 | 
														
															             // 附件数据 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.form.fBillingway = this.form.fFeetunit 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // this.form.fBillingway = this.form.fFeetunit 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            console.log(this.form.fBillstatus) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             formDatae.append('tWarehouseBills', JSON.stringify(this.form)) 
														 | 
														
														 | 
														
															             formDatae.append('tWarehouseBills', JSON.stringify(this.form)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             // 库存明细 
														 | 
														
														 | 
														
															             // 库存明细 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList)) 
														 | 
														
														 | 
														
															             formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList)) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -5145,6 +5247,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             // 收款 
														 | 
														
														 | 
														
															             // 收款 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList)) 
														 | 
														
														 | 
														
															             formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             addWarehousebills(formDatae).then((response) => { 
														 | 
														
														 | 
														
															             addWarehousebills(formDatae).then((response) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              console.log(this.form.fBillstatus) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.msgSuccess('保存成功') 
														 | 
														
														 | 
														
															               this.msgSuccess('保存成功') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.form = response.data.warehouseBills 
														 | 
														
														 | 
														
															               this.form = response.data.warehouseBills 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.$set(this.form, 'fEta', Date.parse(this.form.fEta)) 
														 | 
														
														 | 
														
															               this.$set(this.form, 'fEta', Date.parse(this.form.fEta)) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -5159,6 +5262,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               } 
														 | 
														
														 | 
														
															               } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.fid = response.data.warehouseBills.fId 
														 | 
														
														 | 
														
															               this.fid = response.data.warehouseBills.fId 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               this.getList() 
														 | 
														
														 | 
														
															               this.getList() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              console.log("111") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }) 
														 | 
														
														 | 
														
															             }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           } 
														 | 
														
														 | 
														
															           } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -5215,6 +5319,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.msgSuccess('提交成功') 
														 | 
														
														 | 
														
															             this.msgSuccess('提交成功') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.open = false 
														 | 
														
														 | 
														
															             this.open = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.getList() 
														 | 
														
														 | 
														
															             this.getList() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.reset() 
														 | 
														
														 | 
														
															             this.reset() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           }) 
														 | 
														
														 | 
														
															           }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 |