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
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-655a0f84"],{"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 s})),a.d(e,"d",(function(){return n})),a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return r})),a.d(e,"e",(function(){return d}));var i=a("b775"),l=a("2d46");function s(){return Object(l["a"])("tools/getdictlist")}function n(t,e){return Object(i["a"])({url:"tools/getdjydict/"+t,method:"get",params:e})}function o(t){return Object(i["a"])({url:"tools/getdictkeylist/"+t,method:"get"})}function r(t){return Object(i["a"])({url:"tools/getdictlist/"+t})}function d(t){var e="/api/tools/download?name="+encodeURI(t);return e}},"508b":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":"80px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[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:3}},[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:3}},[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:3}},[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:6}},[a("el-form-item",{attrs:{label:"创建时间"}},[a("el-date-picker",{staticClass:"eldate-date",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)],1),a("el-col",{staticClass:"search-btn",attrs:{span:3}},[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("重置")])],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-row",{attrs:{gutter:20}},[a("el-col",[a("el-button",{attrs:{type:"primary"},on:{click:t.fun_add}},[t._v("新建")])],1)],1),a("el-table",{ref:"tab_list",staticClass:"mainbody",staticStyle:{width:"98%"},attrs:{data:t.datalist,"max-height":"800",border:"",stripe:""},on:{"row-dblclick":t.tab_row_show,"selection-change":t.tab_list_select}},[a("el-table-column",{attrs:{type:"index",width:"60"}}),t._l(t.tablecols,(function(t){return a("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:t.label,fixed:t.fixed,prop:t.prop,width:t.width}})})),a("el-table-column",{attrs:{label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.$ysapp.todatetime(e.row.addTime)))]}}])}),a("el-table-column",{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_preview(e)}}},[t._v(" "+t._s(e.name)+" ")])],1)})),a("el-button",{attrs:{slot:"reference",type:"primary",size:"mini"},slot:"reference"},[t._v("附件 ")])],2)]}}])})],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("div",[a("el-dialog",{attrs:{width:"800px",title:t.win_show_add_title,visible:t.win_show_add},on:{"update:visible":function(e){t.win_show_add=e}}},[a("el-form",{ref:"frm_add",staticClass:"dialog-form frm_add",staticStyle:{"margin-top":"0px","margin-left":"15px"},attrs:{model:t.data_add,inline:!0,"label-width":"100px"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"提单号"}},[a("el-input",{attrs:{placeholder:""},model:{value:t.data_add.shipOrderNo,callback:function(e){t.$set(t.data_add,"shipOrderNo",e)},expression:"data_add.shipOrderNo"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"进出口类型"}},[a("el-select",{attrs:{placeholder:"进口/出口"},model:{value:t.data_add.ieFlag,callback:function(e){t.$set(t.data_add,"ieFlag",e)},expression:"data_add.ieFlag"}},[a("el-option",{key:"E",attrs:{label:"出口",value:"E"}}),a("el-option",{key:"I",attrs:{label:"进口",value:"I"}})],1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"报关行"}},[a("el-input",{attrs:{placeholder:""},model:{value:t.data_add.baoguanAgent,callback:function(e){t.$set(t.data_add,"baoguanAgent",e)},expression:"data_add.baoguanAgent"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备注"}},[a("el-input",{attrs:{placeholder:""},model:{value:t.data_add.memo,callback:function(e){t.$set(t.data_add,"memo",e)},expression:"data_add.memo"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-upload",{staticClass:"upload-demo",attrs:{action:t.fileup.url,headers:t.fileup.head,"on-success":t.fun_fileupend,"on-preview":t.fun_preview,"file-list":t.data_fileList}},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传 Excel Word PDF文件")])],1)],1)],1),a("el-row",[a("el-col",{attrs:{offset:16}},[a("el-button",{attrs:{type:"primary"},on:{click:t.fun_add_submit}},[t._v("提交")]),a("el-button",{on:{click:function(e){t.win_show_add=!1}}},[t._v("取 消")])],1)],1)],1)],1)],1)],1)},l=[],s=a("6fd2"),n=a("121a"),o=a("5f87"),r=(a("837c"),{data(){return{win_show_add:!1,win_show_add_title:"新建",data_fileList:[],data_add:{},data_addinit:{shipOrderNo:"",ieFlag:"E",baoguanAgent:"",memo:"",FileUrl:""},fileup:{url:"/api/tools/UpFile",head:{Authorization:"Bearer "+Object(o["a"])()}},tablecols:[{label:"客户名称",prop:"compName"},{label:"进口/出口",prop:"ieFlanName",width:80},{label:"报关订单号",prop:"uniqueNumber",width:145},{label:"提单号",prop:"shipOrderNo"},{label:"票数",prop:"pollCount"},{label:"报关行",prop:"baoguanAgent"},{label:"查验时间",prop:"checkDate"},{label:"报关状态",prop:"stateName"},{label:"备注",prop:"memo"}],loading:!1,datalist:[],selectdata:[],data_clientlist:[],selectdatainit:{limit:this.$pagesize,page:1,count:0}}},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(),this.data_add=this.$ysapp.copyobj(this.data_addinit)},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(s["d"])(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)}),this.datalist=t.data,this.selectdata=this.$ysapp.getpagebind(t,this.selectdata),this.loading=!1})},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){this.data_add=[],this.data_fileList=new Array,this.data_add=t,this.data_fileList=t.fileList,this.win_show_add=!0,this.win_show_add_title="更新"},fun_add(){console.log(this.data_add),this.data_add.gid&&(this.data_add=this.$ysapp.copyobj(this.data_addinit),this.data_fileList=new Array),this.win_show_add_title="新建",this.win_show_add=!0},fun_fileupend(t){if(t.data){let e=t.data;e.forEach(t=>{console.log(t),this.data_fileList.push(t)})}},fun_add_submit(){this.data_add.fileList=this.data_fileList,this.data_add.gid?Object(s["e"])(this.data_add).then(t=>{this.data_add=this.$ysapp.copyobj(this.data_addinit),this.win_show_add=!1,this.getlist(),this.data_fileList=[],this.$thisapp.msg("更新成功!")}):Object(s["c"])(this.data_add).then(t=>{this.data_add=this.$ysapp.copyobj(this.data_addinit),this.win_show_add=!1,this.getlist(),this.data_fileList=[],this.$thisapp.msg("创建成功!")})},fun_preview(t){location.href=Object(n["e"])(t.url)}}}),d=r,c=(a("ecca"),a("2877")),p=Object(c["a"])(d,i,l,!1,null,null,null);e["default"]=p.exports},"6fd2":function(t,e,a){"use strict";a.d(e,"g",(function(){return s})),a.d(e,"i",(function(){return n})),a.d(e,"f",(function(){return o})),a.d(e,"l",(function(){return r})),a.d(e,"j",(function(){return d})),a.d(e,"h",(function(){return c})),a.d(e,"b",(function(){return p})),a.d(e,"k",(function(){return u})),a.d(e,"d",(function(){return h})),a.d(e,"c",(function(){return f})),a.d(e,"e",(function(){return m})),a.d(e,"a",(function(){return b}));var i=a("2d46"),l="baoguan";function s(){return Object(i["a"])(l+"/gettoken")}function n(t){return Object(i["a"])(l,t)}function o(t){return Object(i["a"])(l+"/export",t)}function r(t){return Object(i["b"])(l,t)}function d(t){return Object(i["b"])(l+"/ordercheck",t)}function c(t){return Object(i["a"])(l+"/"+t)}function p(t){return Object(i["b"])(l+"/bindclient",t)}function u(t){return Object(i["b"])(l+"/sendmail",t)}function h(t){return Object(i["a"])(l+"/client",t)}function f(t){return Object(i["b"])(l+"/client",t)}function m(t){return Object(i["b"])(l+"/client/up",t)}function b(){return Object(i["b"])(l+"/baoguanjob")}},"863e":function(t,e,a){var i=a("9615");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var l=a("499e").default;l("44bdd7ee",i,!0,{sourceMap:!1,shadowMode:!1})},9615: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}",""]),t.exports=e},ecca:function(t,e,a){"use strict";a("863e")}}]);