| 
					
				 | 
			
			
				@@ -41,6 +41,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :disabled=" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 form.fBillstatus >= 4 || readOnly == 0 || tableData.length > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               " 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-for="item in corpList" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -61,6 +62,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               format="yyyy-MM-dd" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               value-format="yyyy-MM-dd" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-col> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -72,6 +74,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               placeholder="请选择" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-for="item in TVesselfs" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -90,6 +93,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               placeholder="请选择" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-for="item in TVoyagefs" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -101,16 +105,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-col :span="6"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-form-item label="系统编号"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-model="form.srcBillNo" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              placeholder="请输入" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              disabled 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-col :span="6"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-form-item label="提单号"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="form.tMblno" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -128,6 +122,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               placeholder="请选择" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-for="item in portNames" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -146,6 +141,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               placeholder="请选择" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-for="item in portNames" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -163,6 +159,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option label="是" value="1" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option label="否" value="0" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -176,6 +173,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option label="应收" value="D" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option label="应付" value="C" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -183,6 +181,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-col :span="6"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-form-item label="系统编号"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-model="form.srcBillNo" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              placeholder="请输入" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              disabled 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-col :span="6"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-form-item label="备注"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-model="form.fRemarks" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              placeholder="请输入" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-col :span="6"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-form-item label="制单人"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="form.createBy" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -201,19 +219,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               format="yyyy-MM-dd" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               value-format="yyyy-MM-dd 00:00:00" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               disabled 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-col :span="6"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-form-item label="备注"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-model="form.fRemarks" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              placeholder="请输入" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :disabled="form.fBillstatus >= 4 || readOnly == 0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-row> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="head-but"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -261,7 +270,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           保存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-button type="warning" size="mini"> 导出 </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          type="warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          :disabled="!form.fId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          @click="handleExport" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          导出 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           type="cyan" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           icon="el-icon-search" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -418,6 +434,7 @@ import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   getdetail, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   infoRemove, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   revoke, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  getExcelInfo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } from "@/api/finance/kaihe/contrast"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ApprovalComments from "@/views/startApproval"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import addOrUpdate from "./add-or-update.vue"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -458,6 +475,21 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created() {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 导出按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handleExport() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let _this = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$confirm("是否确认导出明细数据?", "警告", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        confirmButtonText: "确定", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: "warning", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .then(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          return getExcelInfo(_this.form.fId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.download(response.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getRowdata(list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.tableOption = list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -485,9 +517,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       listCorps().then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.corpList = res; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      setTimeout(e=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      setTimeout((e) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$refs.columnSetting.getRow(this.tableOption); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      },100) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 100); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     fAmtChange(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (Number(row.fAmt) > Number(row.fAmtdr)) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -665,7 +697,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs["form"].validate((valid) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$refs.addOrUpdate.init(data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$refs.addOrUpdate.init(data, this.tableData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$message.error("请选择客户名称"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           return false; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -725,9 +757,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.form.fCtrlcorpid = e.fName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (this.tableData.length == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return this.$message.error("明细表不能为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.form.date) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.form.fFromDate = this.form.date[0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.form.fToDate = this.form.date[1]; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -790,10 +819,4 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   display: flex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   justify-content: flex-end; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-::v-deep .el-select { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-::v-deep .el-date-editor { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </style> 
			 |