You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b469f12"],{"0025":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".el-row{margin-bottom:10px}.el-link{margin-top:10px}.el-form{margin-top:25px}.el-form-item{margin-bottom:0!important}.search-form .el-select{display:block}.el-form .el-input__inner{height:36px}.el-form .el-row .el-col{padding-left:0!important;padding-right:0!important}.eldate-datetime{height:36px!important;width:180px!important}.eldate-date{height:36px!important;width:140px!important}.search-btn .el-button--default{padding:13px 20px!important}.el-table--border{border-right:1px solid #ebeef5}.pagetable .el-table{margin-top:10px;margin-left:15px;min-height:600px}.el-table table thead tr th{border-top:none;border-right:none}.el-table table tbody tr td{border:none}.el-pagination{margin-top:15px;margin-right:40px;float:right}.dialog-form.el-form .el-form-item{margin-bottom:20px!important}.el-input-number .el-input input{height:40px!important}.el-delete:hover{background:#fff0f0}.span_red{color:red}.el-dialog__headerbtn{font-size:24px}.el-dialog__headerbtn:hover{background-color:#cecaca}",""]),t.exports=e},"121a":function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return o})),a.d(e,"e",(function(){return c}));var i=a("b775"),l=a("2d46");function n(){return Object(l["a"])("tools/getdictlist")}function s(t,e){return Object(i["a"])({url:"tools/getdjydict/"+t,method:"get",params:e})}function r(t){return Object(i["a"])({url:"tools/getdictkeylist/"+t,method:"get"})}function o(t){return Object(i["a"])({url:"tools/getdictlist/"+t})}function c(t){var e="/api/tools/download?name="+encodeURI(t);return e}},"6fd2":function(t,e,a){"use strict";a.d(e,"g",(function(){return n})),a.d(e,"i",(function(){return s})),a.d(e,"f",(function(){return r})),a.d(e,"l",(function(){return o})),a.d(e,"j",(function(){return c})),a.d(e,"h",(function(){return d})),a.d(e,"b",(function(){return u})),a.d(e,"k",(function(){return p})),a.d(e,"d",(function(){return h})),a.d(e,"c",(function(){return m})),a.d(e,"e",(function(){return b})),a.d(e,"a",(function(){return f}));var i=a("2d46"),l="baoguan";function n(){return Object(i["a"])(l+"/gettoken")}function s(t){return Object(i["a"])(l,t)}function r(t){return Object(i["a"])(l+"/export",t)}function o(t){return Object(i["b"])(l,t)}function c(t){return Object(i["b"])(l+"/ordercheck",t)}function d(t){return Object(i["a"])(l+"/"+t)}function u(t){return Object(i["b"])(l+"/bindclient",t)}function p(t){return Object(i["b"])(l+"/sendmail",t)}function h(t){return Object(i["a"])(l+"/client",t)}function m(t){return Object(i["b"])(l+"/client",t)}function b(t){return Object(i["b"])(l+"/client/up",t)}function f(){return Object(i["b"])(l+"/baoguanjob")}},a958:function(t,e,a){"use strict";a("aecc")},aa9e:function(t,e,a){var i=a("24fb"),l=a("0025");e=i(!1),e.i(l),e.push([t.i,".tools_main{margin-top:50px;padding-top:50px;text-align:center}.tools_count{padding-top:20px}.el-link--inner{margin-bottom:0}.el-dropdown-link{cursor:pointer;color:#409eff}.el-icon-arrow-down{font-size:12px}.el-link-table .el-table__body .el-table_1_column_2 .el-link .el-link--inner{margin-top:-10px}",""]),t.exports=e},aecc:function(t,e,a){var i=a("aa9e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var l=a("499e").default;l("6df77764",i,!0,{sourceMap:!1,shadowMode:!1})},d4db:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"mainbody"},[a("el-form",{ref:"frm_select",staticClass:"search-form",attrs:{"label-width":"10px"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:2}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"客户名称&境内发货人",clearable:""},model:{value:t.selectdata.clientName,callback:function(e){t.$set(t.selectdata,"clientName",e)},expression:"selectdata.clientName"}})],1)],1),a("el-col",{attrs:{span:2}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"进口/出口"},model:{value:t.selectdata.IEFlag,callback:function(e){t.$set(t.selectdata,"IEFlag",e)},expression:"selectdata.IEFlag"}},[a("el-option",{key:"E",attrs:{label:"出口",value:"E"}}),a("el-option",{key:"I",attrs:{label:"进口",value:"I"}})],1)],1)],1),a("el-col",{attrs:{span:2}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"报关订单号",clearable:""},model:{value:t.selectdata.uniqueNumber,callback:function(e){t.$set(t.selectdata,"uniqueNumber",e)},expression:"selectdata.uniqueNumber"}})],1)],1),a("el-col",{attrs:{span:2}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"提单号",clearable:""},model:{value:t.selectdata.shipOrderNo,callback:function(e){t.$set(t.selectdata,"shipOrderNo",e)},expression:"selectdata.shipOrderNo"}})],1)],1),a("el-col",{attrs:{span:2}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"申报地海关",filterable:""},model:{value:t.selectdata.DeclareCustoms,callback:function(e){t.$set(t.selectdata,"DeclareCustoms",e)},expression:"selectdata.DeclareCustoms"}},t._l(t.data_dictlist.filter((function(t){return"关区代码"==t.groupName})),(function(t){return a("el-option",{key:t.key,attrs:{label:t.key+" "+t.title,value:t.key}})})),1)],1)],1),a("el-col",{attrs:{span:2}},[a("el-select",{staticStyle:{"margin-left":"10px"},attrs:{placeholder:"申报状态",filterable:""},model:{value:t.selectdata.stateCode,callback:function(e){t.$set(t.selectdata,"stateCode",e)},expression:"selectdata.stateCode"}},t._l(t.data_stateCodelist,(function(t){return a("el-option",{key:t.value,attrs:{value:t.value,label:t.label}})})),1)],1),a("el-col",{attrs:{span:2}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"报关行名称",clearable:""},model:{value:t.selectdata.compName,callback:function(e){t.$set(t.selectdata,"compName",e)},expression:"selectdata.compName"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-date-picker",{staticClass:"eldate-date",staticStyle:{"margin-left":"10px"},attrs:{type:"date",placeholder:"创建开始时间"},model:{value:t.selectdata.timestart,callback:function(e){t.$set(t.selectdata,"timestart",e)},expression:"selectdata.timestart"}}),t._v(" 至 "),a("el-date-picker",{staticClass:"eldate-date",attrs:{type:"date",placeholder:"创建结束时间"},model:{value:t.selectdata.timeend,callback:function(e){t.$set(t.selectdata,"timeend",e)},expression:"selectdata.timeend"}})],1),a("el-col",{staticClass:"search-btn",attrs:{span:5}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getlist(1)}}},[t._v("查询")]),a("el-button",{attrs:{icon:"el-icon-refresh-right"},on:{click:function(e){t.selectdata=t.$ysapp.copyobj(t.selectdatainit)}}},[t._v("重置")]),a("el-button",{attrs:{type:"success",icon:"el-icon-refresh"},on:{click:t.fun_baoguanjob}},[t._v("更新")]),a("el-button",{attrs:{icon:"el-icon-download"},on:{click:function(e){return t.exportlist()}}},[t._v("导出")])],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-table",{ref:"tab_list",staticClass:"mainbody el-link-table",staticStyle:{width:"98%"},attrs:{data:t.datalist,border:"",stripe:""},on:{"row-dblclick":t.tab_row_show,"selection-change":t.tab_list_select}},[a("el-table-column",{attrs:{type:"index",width:"60"}}),a("el-table-column",{attrs:{label:"客户名称",width:"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{width:"500px",trigger:"click"},model:{value:e.row.data_clentbindstatus,callback:function(a){t.$set(e.row,"data_clentbindstatus",a)},expression:"data.row.data_clentbindstatus"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:14}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"选择绑定客户关系联系人信息"},model:{value:t.data_clientbind,callback:function(e){t.data_clientbind=e},expression:"data_clientbind"}},t._l(t.data_clientinfolist,(function(t){return a("el-option",{key:t.gid,attrs:{label:t.clientName+" "+t.clientCodeName+t.linkName+" "+t.email,value:t.gid}})})),1)],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return t.fun_clientsave(e.row)}}},[t._v("绑定")])],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(a){return t.fun_clientcancel(e.row)}}},[t._v("解绑")])],1)],1),a("el-link",{attrs:{slot:"reference",type:"primary"},on:{click:t.fun_getconentlinkinfo},slot:"reference"},[t._v(t._s(e.row.clientName))])],1)]}}])}),t._l(t.tablecols,(function(e,i){return a("el-table-column",{key:i,attrs:{"show-overflow-tooltip":!0,label:e.label,fixed:e.fixed,width:e.width},scopedSlots:t._u([{key:"default",fn:function(i){return[a("el-tooltip",{attrs:{content:"复制"+e.label}},[i.row[e.prop]&&e.copy?a("el-button",{attrs:{icon:"el-icon-document-copy",size:"mini",circle:""},on:{click:function(a){return t.$ysapp.copy(i.row[e.prop])}}}):t._e()],1),t._v(" "+t._s(i.row[e.prop])+" ")]}}],null,!0)})})),a("el-table-column",{attrs:{label:"主单号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{width:"500px",trigger:"click"},model:{value:e.row.data_shipOrderNoMainstatus,callback:function(a){t.$set(e.row,"data_shipOrderNoMainstatus",a)},expression:"data.row.data_shipOrderNoMainstatus"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:14}},[a("el-input",{attrs:{placeholder:"主提单号"},model:{value:t.data_shipOrderNoMain,callback:function(e){t.data_shipOrderNoMain=e},expression:"data_shipOrderNoMain"}})],1),a("el-col",{attrs:{span:10}},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return t.fun_shipOrderNoMainsave(e.row)}}},[t._v("绑定")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return t.fun_shipOrderNoMaincancel(e.row)}}},[t._v("解绑")])],1)],1),a("el-link",{attrs:{slot:"reference",type:"primary"},slot:"reference"},[t._v(t._s(e.row.shipOrderNoMain))])],1)]}}])}),a("el-table-column",{attrs:{label:"申报状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.stateName?a("div",[a("el-tag",{attrs:{type:t.fun_getstatetype(e.row.stateCode).type,effect:t.fun_getstatetype(e.row.stateCode).ect}},[t._v(t._s(e.row.stateName))])],1):t._e()]}}])}),a("el-table-column",{attrs:{width:"110px","show-overflow-tooltip":!0,label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.$ysapp.todatetime(e.row.addTime)))]}}])}),a("el-table-column",{attrs:{width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{width:"460px",trigger:"hover"}},[t._l(e.row.fileList,(function(e){return a("div",{key:e.name},[a("el-link",{on:{click:function(a){return t.fun_filedown(e.url)}}},[t._v(" "+t._s(e.name)+" ")])],1)})),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{slot:"reference",type:"primary",size:"small",plain:""},slot:"reference"},[t._v("附件 ")])],2),a("el-dropdown",{staticClass:"el-dropdown-link",staticStyle:{"margin-left":"10px"},on:{command:function(a){return t.fun_tools_command(a,e.row)}}},[a("span",[t._v(" 操作")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"sendmail",icon:"el-icon-position"}},[t._v("发送校验稿")]),a("el-dropdown-item",{attrs:{command:"check",icon:"el-icon-circle-check"}},[t._v("核对校验稿")]),a("el-dropdown-item",{attrs:{command:"checkcopyurl",icon:"el-icon-circle-check"}},[t._v("复制校验稿URL")])],1)],1)]}}])})],2),a("el-pagination",{attrs:{background:"",layout:"total, sizes, prev, pager, next, jumper",total:t.selectdata.count,"page-size":t.selectdata.limit,"current-page":t.selectdata.page},on:{"size-change":t.pagesize,"current-change":t.pagechange}})],1),a("el-dialog",{staticClass:"mainbody dialog-margin",attrs:{title:t.data_bgcheck.win_show_title,width:"90%",fullscreen:"",visible:t.data_bgcheck.win_show},on:{"update:visible":function(e){return t.$set(t.data_bgcheck,"win_show",e)}}},[a("div",{staticStyle:{"border-top":"1px solid #e8e8e8","padding-top":"5px"},domProps:{innerHTML:t._s(t.data_bgcheck.htmlvalue)}})])],1)},l=[],n=a("6fd2"),s=a("121a"),r={data(){return{tablecols:[{label:"联系人",prop:"clientMain",width:80},{label:"Email",prop:"clientEmail",width:100},{label:"报关行名称",prop:"compName",width:100},{label:"进口/出口",prop:"ieFlanName",width:80},{label:"报关订单号",prop:"uniqueNumber",copy:!0,width:160},{label:"报关单号",prop:"customsNo",copy:!0,width:200},{label:"申报地海关",prop:"declareCustomsName",width:100},{label:"境内收发",prop:"tradeName"},{label:"提单号",prop:"shipOrderNo"},{label:"查验时间",prop:"checkDate",width:80}],loading:!1,datalist:[],selectdata:[],data_clientlist:[],data_alifilelist:[],data_stateCodelist:[{label:"完成结单",value:"01"},{label:"完成打单",value:"02"},{label:"完成审核",value:"21"},{label:"提交单一",value:"22"},{label:"海关已申报",value:"10"},{label:"海关入库",value:"11"},{label:"海关审结",value:"12"},{label:"海关查验",value:"13"},{label:"海关放行",value:"14"},{label:"海关结关",value:"15"},{label:"准予入港",value:"18"}],win_show_alifile:!1,win_show_alifile_title:"",data_bgcheck:{win_show:!1,win_show_title:"核对校验稿",htmlvalue:"",data:null},data_clientinfolist:[],data_dictlist_guanqu:[],data_clentbindstatus:!1,data_shipOrderNoMainstatus:!1,data_clientbind:null,data_shipOrderNoMain:null,data_dictlist:[],selectdatainit:{limit:this.$pagesize,page:1,count:0}}},created(){let t=localStorage.getItem("dictlist");t&&0!=t.length?this.data_dictlist=JSON.parse(localStorage.getItem("dictlist")):Object(s["c"])().then(t=>{this.data_dictlist=t.data,localStorage.setItem("dictlist",JSON.stringify(t.data))})},mounted(){this.pageinit(),this.$route.query.status&&(this.selectdata.status=this.$route.query.status,this.getlist())},watch:{$route(t,e){this.$route.query.status&&(this.selectdata.status=this.$route.query.status,this.getlist())}},methods:{pageinit(){this.selectdata=this.$ysapp.copyobj(this.selectdatainit),this.getlist()},getlist(t=0){1==t&&(this.selectdata.page=1),null!=this.selectdata.timestart&&(this.selectdata.startTime=Date.parse(this.selectdata.timestart)/1e3),null!=this.selectdata.timeend&&(this.selectdata.endTime=Date.parse(this.selectdata.timeend)/1e3),this.loading=!0,Object(n["i"])(this.selectdata).then(t=>{t.data.forEach(t=>{t.AddDate=this.$ysapp.todatetime(t.addTime),t.checkDate=this.$ysapp.todatetime(t.checkTime),t.EtdDate=this.$ysapp.todate(t.etdTime),t.EtaDate=this.$ysapp.todate(t.etaTime),t.declareCustomsName=t.declareCustoms?t.declareCustoms+" "+this.fun_getdict("关区代码",t.declareCustoms):"",t.data_clentbindstatus=!1,t.data_shipOrderNoMainstatus=!1,this.$thisapp.isnull(t.clientName)&&(t.clientName="绑定客户"),this.$thisapp.isnull(t.shipOrderNoMain)&&(t.shipOrderNoMain="绑定"),"22"==t.stateCode&&(t.stateName="提交单一")});this.datalist=t.data,this.selectdata=this.$ysapp.getpagebind(t,this.selectdata),this.loading=!1})},exportlist(){this.selectdata.page=1,null!=this.selectdata.timestart&&(this.selectdata.startTime=Date.parse(this.selectdata.timestart)/1e3),null!=this.selectdata.timeend&&(this.selectdata.endTime=Date.parse(this.selectdata.timeend)/1e3),this.loading=!0,Object(n["f"])(this.selectdata).then(t=>{window.open("/excel/"+t.data),this.selectdata=this.$ysapp.getpagebind(t,this.selectdata),this.loading=!1})},fun_getdict(t,e,a="title"){let i="",l=this.data_dictlist.filter(a=>a.groupName==t&&a.key==e);return l&&l.length>0&&(i=l[0][a]),i},pagesize(t){this.selectdata.limit=t,this.getlist()},pagechange(t){this.selectdata.page=t,this.getlist()},tab_list_select(t){this.tableselect=t},tab_row_show(t){},fun_filedown(t){location.href=Object(s["e"])(t)},fun_clientsave(t){this.data_clientbind||this.$thisapp.msg("请选择要绑定的客户信息",0);let e=this.data_clientinfolist.filter(t=>t.gid==this.data_clientbind)[0],a={datagid:t.gid,email:e.email,linkName:e.linkName,clientName:e.clientName};Object(n["b"])(a).then(e=>{this.$thisapp.msg("绑定成功"),this.data_clientbind=null,t.data_clentbindstatus=!1,this.getlist()})},fun_shipOrderNoMainsave(t){if(!this.data_shipOrderNoMain)return void this.$thisapp.msg("请填写主单号",0);let e={gid:t.gid,shipOrderNoMain:this.data_shipOrderNoMain};Object(n["l"])(e).then(e=>{this.$thisapp.msg("绑定成功"),this.data_shipOrderNoMain=null,t.data_shipOrderNoMainstatus=!1,this.getlist()})},fun_shipOrderNoMaincancel(t){let e={gid:t.gid,shipOrderNoMain:"[null]"};Object(n["l"])(e).then(e=>{this.$thisapp.msg("修改成功!"),this.data_shipOrderNoMain=null,t.data_shipOrderNoMainstatus=!1,this.getlist()})},fun_clientcancel(t){let e={datagid:t.gid,email:"",linkName:"",clientName:""};Object(n["b"])(e).then(e=>{this.$thisapp.msg("解绑成功"),this.data_clientbind=null,t.data_clentbindstatus=!1,this.getlist()})},fun_tools_command(t,e){switch(t){case"sendmail":this.fun_sendmail(e);break;case"check":if(!this.$ysapp.isjson(e.customsMessage))return void this.$thisapp.msg("当前状态不可核对校验",0);{let t='<iframe height="790px" frameborder=0 src="#/baoguan/ordercheck?gid='+e.gid+'" style="width:100%;"></iframe>';this.data_bgcheck.htmlvalue=t,this.data_bgcheck.win_show_title="核对校验稿"+e.uniqueNumber,this.data_bgcheck.win_show=!0}break;case"checkcopyurl":if(!this.$ysapp.isjson(e.customsMessage))return void this.$thisapp.msg("当前状态不可核对校验",0);let t=window.location.hostname,a=window.location.port;a&&80!=a&&(t+=":"+a);let i=t+"/#/baoguan/ordercheck?gid="+e.gid;this.$ysapp.copy(i);break}},fun_sendmail(t){Object(n["k"])({gid:t.gid,filename:"校验稿"}).then(t=>{this.$thisapp.msg("发送成功!")})},fun_getstatetype(t){let e="dark",a="";switch(t){case"10":a="success",e="plain";break;case"12":a="success",e="plain";break;case"13":a="danger";break;case"14":a="success";break;case"15":a="";break;default:a="info",e="plain";break}return{type:a,ect:e}},fun_baoguanjob(){this.$confirm("执行后将快速更新获取最新报关单状态数据,请勿频繁操作,确定要执行?").then(()=>{this.loading=!0,Object(n["a"])().then(t=>{this.getlist(),this.loading=!1,this.$thisapp.msg("执行成功")}).catch(()=>{this.loading=!1})}).catch(()=>{})},fun_getconentlinkinfo(){this.$thisapp.apiget("clientlink",{limit:1e3}).then(t=>{this.data_clientinfolist=t.data})}}},o=r,c=(a("a958"),a("2877")),d=Object(c["a"])(o,i,l,!1,null,null,null);e["default"]=d.exports}}]); |