| 
					
				 | 
			
			
				@@ -15,8 +15,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <!--    <div>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <!--    </div>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <el-button  size="small" type="primary" style="margin-right: 8px" @click="addEdit">新 建 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-dropdown style="line-height: 0" v-if="saberTenantId=='409341'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    <el-button size="small" type="warning" style="margin-right: 8px" :disabled="form.id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <el-button size="small" type="warning" style="margin-right: 8px" :disabled="form.billStatus>=3"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         导入模板<i class="el-icon-arrow-down el-icon--right"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <el-dropdown-menu slot="dropdown"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -499,31 +501,6 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                label: "MB/L NO", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                text:"请输入MB/L NO", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                prop: "mblno", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                span:18, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                disabled:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                label: "",  // MB/L 付款方式 PP=预付, CC=到付, FPA, Other 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                text:"请选择付款方式", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                prop: "mpaymode", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                type:'select', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                labelWidth:'30px', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                disabled:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                span:6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                dicData:[], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                forParameter:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    key:'dictKey', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    label:'dictValue', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    value:'dictKey', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 label: "HB/L NO",  //弹窗点击确认还是取消申请 调后台接口获取到一个编号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 prop: "HB/L NO", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 type:'button', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -560,6 +537,31 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             prop: "bookingNo", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             disabled:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                label: "MB/L NO", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                text:"请输入MB/L NO", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                prop: "mblno", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                span:18, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                disabled:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                label: "",  // MB/L 付款方式 PP=预付, CC=到付, FPA, Other 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                text:"请选择付款方式", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                prop: "mpaymode", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                type:'select', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                labelWidth:'30px', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                disabled:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                span:6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                dicData:[], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                forParameter:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    key:'dictKey', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    label:'dictValue', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    value:'dictKey', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             label: "REF MBLNO", // Co-Loader 中文名称  往来单位 类别 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             text:"请输入REF MBLNO", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -786,6 +788,21 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.postSelectByUserfun() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         methods:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        addEdit(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(this.form.billStatus>=3){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$emit('toAddEdit') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$confirm('此操作将保存并新建, 是否继续?', '提示', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 confirmButtonText: '确定', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 cancelButtonText: '取消', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 type: 'warning' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 this.editCustomer('toAddEdit') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }).catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //文档导入 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         importData(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(row==0){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -811,12 +828,27 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 上传成功 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        onSuccess(res, done, loading, column) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           const obj = Object.assign(res,this.removeEmptyValues(this.form)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           this.form=obj; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //    const obj = Object.assign(res,this.removeEmptyValues(this.form)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$confirm('此操作将覆盖数据, 是否继续?', '提示', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          confirmButtonText: '确定', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          cancelButtonText: '取消', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          type: 'warning' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.form=res; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            this.excelBox = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            this.$message.success("导入成功!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            done(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type: 'info', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            message: '已取消操作' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          });           
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.excelBox = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          done(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 获取EDI列表数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             editypesListfun(){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1161,6 +1193,7 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // 往来单位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     for(let item of this.columnforfun('corpCnName').dicData) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         if (item.cnName == value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            console.log(1111) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             this.form.corpCnName = item.cnName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             this.form.corpEnName = item.enName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             this.form.corpId = item.id 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1177,13 +1210,13 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             // 航线带出往来单位的优势航线 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             this.$set(this.form,'lineCnName',item.advantageRoute) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             // 带出发货人数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            this.$set(this.form,'hshipperId',item.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            this.$set(this.form,'hshipperCnName',item.cnName) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            this.$set(this.form,'hshipperEnName',item.enName) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            this.$set(this.form,'hshipperCode',item.code) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            this.$set(this.form,'hshipperDetails',item.details) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            this.$set(this.form,'hshipperCntyName',item.cntyName) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            this.$set(this.form,'hshipperCntyCode',item.cntyCode) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // this.$set(this.form,'hshipperId',item.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // this.$set(this.form,'hshipperCnName',item.cnName) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // this.$set(this.form,'hshipperEnName',item.enName) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // this.$set(this.form,'hshipperCode',item.code) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // this.$set(this.form,'hshipperDetails',item.details) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // this.$set(this.form,'hshipperCntyName',item.cntyName) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // this.$set(this.form,'hshipperCntyCode',item.cntyCode) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1420,7 +1453,7 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.detailData.seeDisabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 大保存按钮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            editCustomer(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            editCustomer(status){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.$refs.form.validate((valid)=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         // 判断必填项 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1482,12 +1515,12 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         // 赋值 ETD 日期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         this.form.billDate = this.form.etd?this.form.etd.slice(0,10) + ' 00:00:00':null // 单据日期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         // 调用保存接口 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        this.billsSubmitfun() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.billsSubmitfun(status) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 主表保存接口大保存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            billsSubmitfun(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            billsSubmitfun(status){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (this.form.cargoType == 'dry') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // 普货 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.form.billNoFormat = 'HYCK-PH' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1607,9 +1640,10 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         message: "操作成功!" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // this.detailData.seeDisabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.billsDetailfun(res.data.data.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.billsDetailfun(res.data.data.id,status) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }).catch(err=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.pageLoading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }).finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 提取箱专用的保存 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1693,7 +1727,7 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 详情接口 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            async billsDetailfun(id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            async billsDetailfun(id,status){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 const res = await billsDetail(id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // this.form = res.data.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.$set(this, 'form', res.data.data) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1798,7 +1832,10 @@ import {editypesList} from "@/api/iosBasicData/editypes"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 for(let item of this.form.filesList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.$set(item,'edit',false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(status=='toAddEdit'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        this.$emit(status) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // tbas切换 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             handleClick(tba,event) { 
			 |