|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63671414"],{"0025":function(t,e,a){var l=a("24fb");e=l(!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 r})),a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return i})),a.d(e,"e",(function(){return c}));var l=a("b775"),n=a("2d46");function r(){return Object(n["a"])("tools/getdictlist")}function s(t,e){return Object(l["a"])({url:"tools/getdjydict/"+t,method:"get",params:e})}function o(t){return Object(l["a"])({url:"tools/getdictkeylist/"+t,method:"get"})}function i(t){return Object(l["a"])({url:"tools/getdictlist/"+t})}function c(t){var e="/api/tools/download?name="+encodeURI(t);return e}},"2e07":function(t,e,a){var l=a("24fb"),n=a("0025");e=l(!1),e.i(n),e.push([t.i,".tools_main{margin-top:50px;padding-top:50px;text-align:center}.tools_count{padding-top:20px}",""]),t.exports=e},5433:function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"e",(function(){return r})),a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"d",(function(){return i}));var l=a("b775");function n(t){return t.orderby||(t.orderby=2),Object(l["a"])({url:"changeship",method:"get",params:t})}function r(t){return Object(l["a"])({url:"changeship/readorder",method:"post",data:t})}function s(t){return Object(l["a"])({url:"changeship/"+t,method:"get"})}function o(t){return Object(l["a"])({url:"changeship/del",method:"post",data:t})}function i(t){return Object(l["a"])({url:"changeship",method:"post",data:t})}},"58f6":function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"c",(function(){return i}));var l=a("b775"),n=a("2d46");function r(t){return Object(l["a"])({url:"workbench",method:"get",params:t})}function s(t){return Object(l["a"])({url:"workbench/"+t,method:"get"})}function o(t,e){return Object(l["a"])({url:"workbench/upstatus",method:"post",data:{gid:t,status:e}})}function i(){return Object(n["a"])("workbench/total",{})}},accb:function(t,e,a){"use strict";a("e5a4")},dfbc:function(t,e,a){"use strict";a.r(e);var l=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("div",[a("el-form",{ref:"frm_select",staticClass:"search-form",attrs:{model:t.selectdata,"label-width":"80px"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"主题名称"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.title,callback:function(e){t.$set(t.selectdata,"title",e)},expression:"selectdata.title"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"订舱单号"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.orderBody,callback:function(e){t.$set(t.selectdata,"orderBody",e)},expression:"selectdata.orderBody"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"任务编号"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.changeCode,callback:function(e){t.$set(t.selectdata,"changeCode",e)},expression:"selectdata.changeCode"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"操作员"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.operatorName,callback:function(e){t.$set(t.selectdata,"operatorName",e)},expression:"selectdata.operatorName"}})],1)],1),a("el-col",{attrs:{span:3}},[a("div",t._l(t.data_typelist,(function(e){return a("el-link",{key:e.code,staticStyle:{"margin-left":"12px"},attrs:{type:e.type},on:{click:function(a){return t.fun_linkselect(e.code)}}},[t._v(t._s(e.name))])})),1)])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"船公司"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择","allow-create":"","default-first-option":""},model:{value:t.selectdata.carrierCode,callback:function(e){t.$set(t.selectdata,"carrierCode",e)},expression:"selectdata.carrierCode"}},t._l(t.carrierlist,(function(t){return a("el-option",{key:t.code,attrs:{label:t.name+" "+t.code,value:t.code}})})),1)],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"船代"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.agentName,callback:function(e){t.$set(t.selectdata,"agentName",e)},expression:"selectdata.agentName"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"船名"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.shipName,callback:function(e){t.$set(t.selectdata,"shipName",e)},expression:"selectdata.shipName"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"内部航次"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.voyNo,callback:function(e){t.$set(t.selectdata,"voyNo",e)},expression:"selectdata.voyNo"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"Mail时间"}},[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:4}},[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){return t.fun_select_reset()}}},[t._v("重置")])],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-table",{ref:"tab_list",staticStyle:{width:"98%"},attrs:{data:t.datalist,border:"",stripe:""},on:{"selection-change":t.tab_list_select,"row-dblclick":t.tab_row_show}},[a("el-table-column",{attrs:{label:"任务编号",fixed:"left",prop:"changeCode",width:"100"}}),a("el-table-column",{attrs:{label:"类型",width:"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{domProps:{innerHTML:t._s(t.fun_getchangeType(e.row))}})]}}])}),a("el-table-column",{attrs:{label:"主题名称",prop:"title"}}),a("el-table-column",{attrs:{label:"Mail时间",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$ysapp.todatetime(e.row.emailTime))+" ")]}}])}),a("el-table-column",{attrs:{label:"船公司",prop:"carrierCode",width:"100"}}),a("el-table-column",{attrs:{label:"船名航次",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.shipName)),a("br"),t._v(" 内部航次:"+t._s(e.row.voyNo)+" "),a("br"),t._v(" 海关航次:"+t._s(e.row.voyNoCustome)+" ")]}}])}),a("el-table-column",{attrs:{label:"目的港",prop:"PortDischarge",width:"100"}}),a("el-table-column",{attrs:{label:"船代",prop:"agentName",width:"180"}}),a("el-table-column",{attrs:{label:"操作员",prop:"operatorName",width:"120"}}),a("el-table-column",{attrs:{label:"处理时间",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$ysapp.todatetime(e.row.adminTime))+" ")]}}])})],1),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)],1),a("el-dialog",{staticClass:"mainbody",attrs:{title:t.changeShipdata.title,fullscreen:"",visible:t.win_ch_show},on:{"update:visible":function(e){t.win_ch_show=e}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:2}},[t._v(" 类型:"+t._s(1==t.changeShipdata.changeType?"换船":"取消换船")+" ")]),a("el-col",{attrs:{span:2}},[t._v(" 船公司:"+t._s(t.changeShipdata.carrierCode)+" ")]),a("el-col",{attrs:{span:3}},[t._v(" 船名:"+t._s(t.changeShipdata.shipName)+" ")]),a("el-col",{attrs:{span:3}},[t._v(" 内部航次:"+t._s(t.changeShipdata.voyNo)+" ")]),a("el-col",{attrs:{span:3}},[t._v(" 海关航次:"+t._s(t.changeShipdata.voyNoCustome)+" ")]),a("el-col",{attrs:{span:2}},[t._v(" 目的港:"+t._s(t.changeShipdata.portDischarge)+" ")]),a("el-col",{attrs:{span:3}},[t._v(" 船代: "+t._s(t.changeShipdata.agentName)+" ")]),a("el-col",{attrs:{span:4}},[t._v(" 操作员:"+t._s(t.changeShipdata.operatorName)+" "+t._s(t.$ysapp.todatetime(t.changeShipdata.adminTime))+" ")])],1),a("el-row",[a("el-col",{attrs:{span:24}},[t._v(" From:"+t._s(t.changeShipdata.fromAddr)+" "+t._s(t.$ysapp.todatetime(t.changeShipdata.emailTime))+" (北京时间) ")])],1),a("el-row",[a("el-col",{attrs:{span:15}},[a("div",{staticStyle:{width:"100%",height:"700px","overflow-y":"auto",border:"1px solid #aaa"},domProps:{innerHTML:t._s(t.changeShipdata.mailBody)}})]),a("el-col",{attrs:{span:5}},[a("el-input",{attrs:{clearable:"",type:"textarea",autosize:{minRows:33,maxRows:33},placeholder:""},model:{value:t.changeShipdata.orderBody,callback:function(e){t.$set(t.changeShipdata,"orderBody",e)},expression:"changeShipdata.orderBody"}})],1)],1)],1)],1)},n=[],r=a("5433"),s=a("121a"),o=a("58f6"),i={data(){return{data_typelist:[{code:0,name:"全部",type:""},{code:1,name:"换船",type:"success"},{code:2,name:"取消换船",type:"danger"}],carrierlist:[],win_ch_show:!1,loading:!1,datalist:[],selectdata:{limit:this.$pagesize,page:1,count:0,title:null,orderBody:null,changeCode:null,status:null,changeType:null,operatorName:null,carrierCode:null,agentName:null,shipName:null,voyNo:null,timestart:null,timeend:null},changeShipdata:{changeShipdata:null,orderBody:"",title:null}}},created(){this.pageinit()},methods:{pageinit(){this.getlist(),Object(s["d"])("carrierlist").then(t=>{this.carrierlist=t.data})},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(r["c"])(this.selectdata).then(t=>{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},fun_select_reset(){let t=this.selectdata.count;this.selectdata={limit:this.$pagesize,page:1,count:t,title:null,orderBody:null,changeCode:null,status:null,changeType:null,operatorName:null,carrierCode:null,agentName:null,shipName:null,voyNo:null,timestart:null,timeend:null}},tab_row_show(t){this.loading=!0,Object(r["b"])(t.gid).then(e=>{this.changeShipdata=e.data,this.win_ch_show=!0,Object(o["a"])(t.workGid).then(t=>{var e=JSON.parse(t.data.dataJson);this.changeShipdata.mailBody=t.data.dataBody,this.changeShipdata.fromAddr=e.Sender}),this.loading=!1})},fun_btn_del(t){let e=new Array;e.push(t),0!=e.length?this.$confirm("您确定要删除选择的 "+e.length+" 条数据?").then(()=>{Object(r["a"])(e).then(t=>{this.getlist(),this.$message({message:"删除成功!",type:"success"})})}).catch(()=>{}):this.$message.error({message:"没有找到操作数据"})},fun_getchangeType(t){let e=t.changeType,a="#303133";return 1==e?a="#67C23A":2==e&&(a="#F56C6C"),"<span style='color:"+a+"'>"+(1==e?"换船":"取消换船")+"</span>"},fun_linkselect(t){this.selectdata.changeType=t,this.getlist()}}},c=i,d=(a("accb"),a("2877")),p=Object(d["a"])(c,l,n,!1,null,null,null);e["default"]=p.exports},e5a4:function(t,e,a){var l=a("2e07");l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[t.i,l,""]]),l.locals&&(t.exports=l.locals);var n=a("499e").default;n("7556f00b",l,!0,{sourceMap:!1,shadowMode:!1})}}]); |