(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fe2eccf4"],{"408a":function(e,t,i){var n=i("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},"8a65":function(e,t,i){var n=i("921b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("499e").default;a("a0b4ab5c",n,!0,{sourceMap:!1,shadowMode:!1})},"921b":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,"#app{width:99%}.el-input__inner{height:34px;line-height:34px}.bill_cls{padding:15px 0;border-bottom:2px dashed #e8eaec}.bill_cls:last-child{border-bottom:none}.cls_total{font-size:16px;color:#409eff;font-weight:900;text-align:right}.failure-reason{margin-top:5px}.failure-reason div{color:#f45e5e;font-size:14px}.failure-reason .el-icon-warning{margin-right:5px}.file-download a span.el-link--inner{border:none!important;padding-right:0}.information-list{margin-top:3px}.information-list span{border-right:2px solid #d8d8d8;padding-right:10px;border-radius:2px}.information-list span b{color:#858585;font-weight:400}.vxe-header--column .vxe-cell--edit-icon,.vxe-header--column .vxe-cell-help-icon{margin-top:-4px}.vxe-table--body tbody tr td:first-child,.vxe-table--header thead tr th:first-child{padding-left:10px!important}",""]),e.exports=t},a9e3:function(e,t,i){"use strict";var n=i("83ab"),a=i("da84"),l=i("94ca"),r=i("6eeb"),o=i("5135"),u=i("c6b6"),c=i("7156"),d=i("c04e"),s=i("d039"),f=i("7c73"),m=i("241c").f,p=i("06cf").f,h=i("9bf2").f,b=i("58a8").trim,g="Number",v=a[g],y=v.prototype,A=u(f(y))==g,x=function(e){var t,i,n,a,l,r,o,u,c=d(e,!1);if("string"==typeof c&&c.length>2)if(c=b(c),t=c.charCodeAt(0),43===t||45===t){if(i=c.charCodeAt(2),88===i||120===i)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+c}for(l=c.slice(2),r=l.length,o=0;oa)return NaN;return parseInt(l,n)}return+c};if(l(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var N,_=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof _&&(A?s((function(){y.valueOf.call(i)})):u(i)!=g)?c(new v(x(t)),i,_):x(t)},k=n?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;k.length>w;w++)o(v,N=k[w])&&!o(_,N)&&h(_,N,p(v,N));_.prototype=y,y.constructor=_,r(a,g,_)}},b680:function(e,t,i){"use strict";var n=i("23e7"),a=i("a691"),l=i("408a"),r=i("1148"),o=i("d039"),u=1..toFixed,c=Math.floor,d=function(e,t,i){return 0===t?i:t%2===1?d(e,t-1,i*e):d(e*e,t/2,i)},s=function(e){var t=0,i=e;while(i>=4096)t+=12,i/=4096;while(i>=2)t+=1,i/=2;return t},f=u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){u.call({})}));n({target:"Number",proto:!0,forced:f},{toFixed:function(e){var t,i,n,o,u=l(this),f=a(e),m=[0,0,0,0,0,0],p="",h="0",b=function(e,t){var i=-1,n=t;while(++i<6)n+=e*m[i],m[i]=n%1e7,n=c(n/1e7)},g=function(e){var t=6,i=0;while(--t>=0)i+=m[t],m[t]=c(i/e),i=i%e*1e7},v=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==m[e]){var i=String(m[e]);t=""===t?i:t+r.call("0",7-i.length)+i}return t};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>1e-21)if(t=s(u*d(2,69,1))-69,i=t<0?u*d(2,-t,1):u/d(2,t,1),i*=4503599627370496,t=52-t,t>0){b(0,i),n=f;while(n>=7)b(1e7,0),n-=7;b(d(10,n,1),0),n=t-1;while(n>=23)g(1<<23),n-=23;g(1<0?(o=h.length,h=p+(o<=f?"0."+r.call("0",f-o)+h:h.slice(0,o-f)+"."+h.slice(o-f))):h=p+h,h}})},b85c:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("fb6a"),i("b0c0"),i("a630"),i("ac1f"),i("00b4");function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,u=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){u=!0,r=e},f:function(){try{o||null==i["return"]||i["return"]()}finally{if(u)throw r}}}}},c0b3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:24}},[i("el-col",{attrs:{span:10}},[i("el-popconfirm",{attrs:{title:"确认已经完成所有账单解析并检查无误?"},on:{onConfirm:e.fun_attsave}},[i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{slot:"reference",icon:"el-icon-check",type:"success",size:"small"},slot:"reference"},[e._v("提交保存 ")])],1),i("el-tooltip",{staticStyle:{"margin-left":"10px"},attrs:{content:"如果一个文件多个账单则新建"}},[i("el-button",{attrs:{icon:"el-icon-plus",type:"primary",size:"small"},on:{click:e.fun_billadd}},[e._v("新建账单 ")])],1)],1)],1),e._l(e.data_attach.billRecordList,(function(t,n){return i("div",{key:n,staticClass:"bill_cls"},[i("el-row",{attrs:{gutter:24}},[i("el-form",{attrs:{"label-width":"100px"}},[i("el-col",[i("el-tooltip",{attrs:{content:"将此账单复制成一个新的账单"}},[i("el-button",{attrs:{size:"small",icon:"el-icon-copy-document",type:"primary",circle:""},on:{click:function(i){return e.fun_billcopy(t.tableid)}}})],1),i("el-tooltip",{staticStyle:{"margin-left":"20px"},attrs:{content:"删除当前账单"}},[i("el-popconfirm",{attrs:{title:"确定要删除?"},on:{onConfirm:function(i){return e.fun_billdel(t.tableid)}}},[i("el-button",{attrs:{slot:"reference",type:"danger",size:"small",icon:"el-icon-delete",circle:""},slot:"reference"})],1)],1)],1)],1)],1),i("vxe-table",{ref:"xTable"+t.tableid,refInFor:!0,attrs:{border:"","show-overflow":"","show-footer":"",data:t.billRecordDetailList,"mouse-config":{selected:!0},"edit-rules":e.data_datacheck,"footer-method":e.footerMethod,"footer-cell-class-name":e.footerCellClassName,"checkbox-config":{range:!0},"keyboard-config":{isArrow:!0,isDel:!0,isEnter:!0,isTab:!0,isEdit:!0,enterToTab:!0,editMethod:function(i){return e.editMethod(i,"xTable"+t.tableid)}},"edit-config":{showStatus:!0,trigger:"dblclick",mode:"cell"}},on:{keydown:function(i){return e.fun_tablekeydown({$event:i},t.tableid)}}},[i("vxe-column",{attrs:{field:"costName",width:"180",title:"原始费用名称"}}),i("vxe-column",{attrs:{field:"myshippingSysCode",width:"180",title:"费用名称","edit-render":{name:"$select",options:e.dict_fee}}}),i("vxe-column",{attrs:{field:"feeStandard",title:"标准",width:"100","edit-render":{name:"$select",options:e.dict_feestandard}}}),i("vxe-column",{attrs:{field:"unitPrice",title:"单价",width:"160","edit-render":{name:"$input",props:{type:"number"}}}}),i("vxe-column",{attrs:{field:"quantity",title:"数量",width:"100","edit-render":{name:"$input",props:{type:"number"}}}}),i("vxe-column",{attrs:{field:"amount",title:"金额",width:"160","edit-render":{name:"$input",props:{type:"number"}}}}),i("vxe-column",{attrs:{field:"currency",title:"币别",width:"100","edit-render":{name:"$select",options:e.dict_currency}}}),i("vxe-column",{attrs:{field:"exchangeRate",title:"汇率",width:"100","edit-render":{name:"$input"}}}),i("vxe-column",{attrs:{field:"remark",title:"备注","edit-render":{name:"$input"}}}),i("vxe-column",{attrs:{span:1,width:"60"},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.row;return[i("vxe-button",{attrs:{status:"danger",size:"small",icon:"el-icon-delete",circle:""},on:{click:function(i){return e.fun_billdetailrow_del(t.tableid,a)}}})]}}],null,!0)})],1)],1)}))],2)},a=[],l=i("b85c"),r=(i("d3b7"),i("159b"),i("a9e3"),i("d81d"),i("b680"),i("caad"),i("4de4"),{data:function(){return{workgid:"",workdata:{},data_attach:{status:"ok",billRecordList:[]},activeNames:[1,2,3],billaddinit:{payingFor:"",bookingBill:"",portOfLoading:"",unloadingPort:"",sailingDate:"",totalrmb:0,totalusd:0,billRecordDetailList:[]},billDecailinit:{id:0,myshippingSysName:"",feeStandard:"",unitPrice:0,quantity:1,amount:0,currency:"",exchangeRate:"",remark:""},dict_currency:[{indexint:0,groupName:"currency",key:"RMB",value:"RMB",title:"China",memo:null},{indexint:0,groupName:"currency",key:"USD",value:"USD",title:"USA Dollar",memo:null},{indexint:0,groupName:"currency",key:"THB",value:"THB",title:"Thai Baht",memo:null},{indexint:0,groupName:"currency",key:"JPY",value:"JPY",title:"Japan",memo:null}],dict_fee:[{indexint:0,groupName:"fee",key:"A035",value:"A035",title:"晚单费",memo:null},{indexint:0,groupName:"fee",key:"A020",value:"A020",title:"海运费",memo:null},{indexint:0,groupName:"fee",key:"A012",value:"A012",title:"ISF申报费",memo:null},{indexint:0,groupName:"fee",key:"A025",value:"A025",title:"铅封费",memo:null},{indexint:0,groupName:"fee",key:"A024",value:"A024",title:"设备交接费",memo:null},{indexint:0,groupName:"fee",key:"A003",value:"A003",title:"机械使用费",memo:null},{indexint:0,groupName:"fee",key:"A013",value:"A013",title:"机械费",memo:null},{indexint:0,groupName:"fee",key:"A006",value:"A006",title:"仓库信息费",memo:null},{indexint:0,groupName:"fee",key:"A016",value:"A016",title:"燃油附加费",memo:null},{indexint:0,groupName:"fee",key:"A029",value:"A029",title:"HAZ HAZ ADDITIONAL",memo:null},{indexint:0,groupName:"fee",key:"A038",value:"A038",title:"CDC CDDC CORRECT FEE",memo:null},{indexint:0,groupName:"fee",key:"A002",value:"A002",title:"还柜纸打单费",memo:null},{indexint:0,groupName:"fee",key:"A005",value:"A005",title:"其他",memo:null},{indexint:0,groupName:"fee",key:"A023",value:"A023",title:"单证费",memo:null},{indexint:0,groupName:"fee",key:"A031",value:"A031",title:"PCT PANAMA CANAL",memo:null},{indexint:0,groupName:"fee",key:"A004",value:"A004",title:"码头拥挤费",memo:null},{indexint:0,groupName:"fee",key:"A001",value:"A001",title:"拖车费",memo:null},{indexint:0,groupName:"fee",key:"A032",value:"A032",title:"CSS CARRIER",memo:null},{indexint:0,groupName:"fee",key:"A011",value:"A011",title:"清关费",memo:null},{indexint:0,groupName:"fee",key:"A019",value:"A019",title:"港口附加费",memo:null},{indexint:0,groupName:"fee",key:"A028",value:"A028",title:"CSS CARRIER SECURITY",memo:null},{indexint:0,groupName:"fee",key:"A008",value:"A008",title:"滞港费",memo:null},{indexint:0,groupName:"fee",key:"A015",value:"A015",title:"码头操作费",memo:null},{indexint:0,groupName:"fee",key:"A039",value:"A039",title:"场站费",memo:null},{indexint:0,groupName:"fee",key:"A021",value:"A021",title:"CSS CARRIER",memo:null},{indexint:0,groupName:"fee",key:"A010",value:"A010",title:"关税",memo:null},{indexint:0,groupName:"fee",key:"A027",value:"A027",title:"OBS ONE BUNKER",memo:null},{indexint:0,groupName:"fee",key:"A022",value:"A022",title:"CDD CARGO",memo:null},{indexint:0,groupName:"fee",key:"A014",value:"A014",title:"换单费",memo:null},{indexint:0,groupName:"fee",key:"A009",value:"A009",title:"待时费",memo:null},{indexint:0,groupName:"fee",key:"A026",value:"A026",title:"码头通行费",memo:null},{indexint:0,groupName:"fee",key:"A018",value:"A018",title:"码头附加费",memo:null},{indexint:0,groupName:"fee",key:"A017",value:"A017",title:"电放费",memo:null},{indexint:0,groupName:"fee",key:"A034",value:"A034",title:"改单费",memo:null},{indexint:0,groupName:"fee",key:"A033",value:"A033",title:"AMS ADVANCE MANIFEST",memo:null},{indexint:0,groupName:"fee",key:"A036",value:"A036",title:"TSD TERMINAL",memo:null},{indexint:0,groupName:"fee",key:"A030",value:"A030",title:"PSS PEAK SEASON",memo:null},{indexint:0,groupName:"fee",key:"A037",value:"A037",title:"ECA ECA REG",memo:null},{indexint:0,groupName:"fee",key:"A007",value:"A007",title:"信息费",memo:null}],dict_feestandard:[{indexint:0,groupName:"feestandard",key:"BILL",value:"BILL",title:"票",memo:null},{indexint:0,groupName:"feestandard",key:"PACKAGES",value:"PACKAGES",title:"件数",memo:null},{indexint:0,groupName:"feestandard",key:"CBM",value:"CBM",title:"尺码",memo:null},{indexint:0,groupName:"feestandard",key:"CTN",value:"CTN",title:"箱",memo:null},{indexint:0,groupName:"feestandard",key:"KGS",value:"KGS",title:"公斤",memo:null}],data_datacheck:{unitPrice:[{type:"number",message:"必须是数值!"}],quantity:[{type:"number",message:"必须是数值!"}]}}},mounted:function(){this.dict_currency.forEach((function(e){e.label=e.title})),this.dict_fee.forEach((function(e){e.label=e.title})),this.dict_feestandard.forEach((function(e){e.label=e.title})),this.fun_billadd()},methods:{fun_getbilltotal:function(){var e,t=0,i=0,n=Object(l["a"])(this.data_attach.billRecordList);try{for(n.s();!(e=n.n()).done;){var a,r=e.value,o=Object(l["a"])(r.billRecordDetailList);try{for(o.s();!(a=o.n()).done;){var u=a.value;"RMB"==u.currency&&(t+=Number(u.amount)),"USD"==u.currency&&(i+=Number(u.amount))}}catch(c){o.e(c)}finally{o.f()}}}catch(c){n.e(c)}finally{n.f()}return"RMB:"+t+" USD:"+i},editMethod:function(e,t){var i=e.row,n=e.column,a=this.$refs[t];a[0].setActiveCell(i,n)},footerMethod:function(e){var t=e.columns,i=e.data;return[t.map((function(e,t){if(2!=t&&3!=t||i.forEach((function(e){e.unitPrice&&e.quantity&&(e.amount=(e.unitPrice*e.quantity).toFixed(2))})),["quantity"].includes(e.property))return"合计:";if(["amount"].includes(e.property)){var n=0,a=0;return i.forEach((function(e){e&&("RMB"==e.currency&&(n+=Number(e.amount)),"USD"==e.currency&&(a+=Number(e.amount)))})),"RMB:"+n+" \r\n USD:"+a}}))]},footerCellClassName:function(e){var t=e.$rowIndex,i=e.columnIndex;if(3===i&&0===t)return"cls_total"},fun_billadd:function(){var e=this.$thisapp.copyobj(this.billaddinit);this.data_attach.billRecordList||(this.data_attach.billRecordList=[]),e.tableid=this.data_attach.billRecordList.length,this.data_attach.billRecordList.push(e),this.fun_billddetail_add(e.tableid),console.log(this.data_attach.billRecordList)},fun_billcopy:function(e){var t=this.$thisapp.copyobj(this.data_attach.billRecordList.filter((function(t){return t.tableid==e}))[0]);t.tableid=this.data_attach.billRecordList.length,t.gid=null,this.data_attach.billRecordList.push(t)},fun_attsave:function(){var e=this;this.fun_attdataformat(),attachsave(this.data_attach).then((function(t){e.data_attach.status="Ok",e.fun_workupstatus(100),e.$thisapp.msg("保存成功!")}))},fun_attdataformat:function(){var e=this;return this.data_attach.billRecordList.forEach((function(t){t.billRecordDetailList.forEach((function(t){var i=e.dict_fee.filter((function(e){return e.value==t.myshippingSysCode}));i&&i.length>0&&(t.myshippingSysName=i[0].title)}))})),!0},fun_attcheck:function(){var e=this;this.fun_attdataformat(),attachcheck(this.data_attach).then((function(t){e.data_attach.status="Ok",e.fun_workupstatus(100),e.$thisapp.msg("审核成功!")}))},fun_attcancel:function(){var e=this;attachupstatus({Gid:this.data_attach.gid,status:"Cancel"}).then((function(t){e.data_attach.status="Cancel",e.fun_workupstatus(101),e.$thisapp.msg("操作成功!")}))},fun_billdel:function(e){for(var t=this.data_attach.billRecordList.filter((function(t){return t.tableid!=e})),i=0;i0?i[0]:(i={key:t,title:t,value:t,label:t},i)},fun_workupstatus:function(e){var t=this.workdata.gid;upstatus(t,e).then((function(e){}))},fun_inset:function(e){console.log(e)}}}),o=r,u=(i("f941"),i("2877")),c=Object(u["a"])(o,n,a,!1,null,null,null);t["default"]=c.exports},f941:function(e,t,i){"use strict";i("8a65")}}]);