(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-82c4d252"],{"0025":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.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}",""]),e.exports=t},"121a":function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"e",(function(){return c}));var i=a("b775"),s=a("2d46");function l(){return Object(s["a"])("tools/getdictlist")}function o(e,t){return Object(i["a"])({url:"tools/getdjydict/"+e,method:"get",params:t})}function n(e){return Object(i["a"])({url:"tools/getdictkeylist/"+e,method:"get"})}function r(e){return Object(i["a"])({url:"tools/getdictlist/"+e})}function c(e){var t="/api/tools/download?name="+encodeURI(e);return t}},"37f8":function(e,t,a){"use strict";a("70ff")},5433:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"e",(function(){return l})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return r}));var i=a("b775");function s(e){return e.orderby||(e.orderby=2),Object(i["a"])({url:"changeship",method:"get",params:e})}function l(e){return Object(i["a"])({url:"changeship/readorder",method:"post",data:e})}function o(e){return Object(i["a"])({url:"changeship/"+e,method:"get"})}function n(e){return Object(i["a"])({url:"changeship/del",method:"post",data:e})}function r(e){return Object(i["a"])({url:"changeship",method:"post",data:e})}},"58f6":function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"c",(function(){return r}));var i=a("b775"),s=a("2d46");function l(e){return Object(i["a"])({url:"workbench",method:"get",params:e})}function o(e){return Object(i["a"])({url:"workbench/"+e,method:"get"})}function n(e,t){return Object(i["a"])({url:"workbench/upstatus",method:"post",data:{gid:e,status:t}})}function r(){return Object(s["a"])("workbench/total",{})}},"70ff":function(e,t,a){var i=a("9564");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("6f731fa0",i,!0,{sourceMap:!1,shadowMode:!1})},"92a2":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"mainbody"},[a("div",[a("el-form",{ref:"frm_select",staticClass:"search-form",staticStyle:{"margin-top":"0px"},attrs:{model:e.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:e.selectdata.workName,callback:function(t){e.$set(e.selectdata,"workName",t)},expression:"selectdata.workName"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"任务编号"}},[a("el-input",{attrs:{clearable:""},model:{value:e.selectdata.workCode,callback:function(t){e.$set(e.selectdata,"workCode",t)},expression:"selectdata.workCode"}})],1)],1),e.select_isopen?a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"类型"}},[a("el-select",{attrs:{placeholder:"请选择","allow-create":"","default-first-option":""},model:{value:e.selectdata.workType,callback:function(t){e.$set(e.selectdata,"workType",t)},expression:"selectdata.workType"}},e._l(e.data_typelist,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1)],1):e._e(),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"操作员"}},[a("el-input",{attrs:{clearable:""},model:{value:e.selectdata.operatorName,callback:function(t){e.$set(e.selectdata,"operatorName",t)},expression:"selectdata.operatorName"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"创建时间"}},[a("el-date-picker",{staticClass:"eldate-date",attrs:{type:"date",placeholder:""},model:{value:e.selectdata.timestart,callback:function(t){e.$set(e.selectdata,"timestart",t)},expression:"selectdata.timestart"}}),a("span",{staticClass:"space"},[e._v("至")]),a("el-date-picker",{staticClass:"eldate-date",attrs:{type:"date",placeholder:""},model:{value:e.selectdata.timeend,callback:function(t){e.$set(e.selectdata,"timeend",t)},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(t){return e.getlist(1)}}},[e._v("查询")]),a("el-button",{attrs:{icon:"el-icon-refresh-right"},on:{click:function(t){return e.fun_select_reset()}}},[e._v("重置")])],1)],1),e.select_isopen?a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:1}},[a("div",{staticClass:"grid-content"})]),a("el-col",{attrs:{span:1}},[a("div",{staticStyle:{"margin-top":"8px","padding-left":"13px"}},[e._v("筛选:")])]),a("el-col",{staticStyle:{"padding-left":"6px !important"},attrs:{span:1}},[a("el-link",{on:{click:function(t){return e.fun_linkselect(0)}}},[e._v(" 全 部 ")])],1),a("el-col",{attrs:{span:1}},[a("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.fun_linkselect("1")}}},[e._v("未处理 ")])],1),a("el-col",{attrs:{span:1}},[a("el-link",{attrs:{type:"success"},on:{click:function(t){return e.fun_linkselect("100")}}},[e._v("已完成 ")])],1),a("el-col",{attrs:{span:1}},[a("el-link",{attrs:{type:"danger"},on:{click:function(t){return e.fun_linkselect("101")}}},[e._v(" 已取消 ")])],1)],1):e._e()],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:24}},[a("el-table",{ref:"tab_list",staticStyle:{width:"100%",margin:"0 auto"},attrs:{data:e.datalist,stripe:""},on:{"selection-change":e.tab_list_select,"row-dblclick":e.tab_row_show}},[a("el-table-column",{attrs:{label:"任务编号",fixed:"left",prop:"workCode",width:"100"}}),a("el-table-column",{attrs:{label:"状态",width:"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",{domProps:{innerHTML:e._s(e.fun_getstatus(t.row))}})]}}])}),a("el-table-column",{attrs:{label:"类型",width:"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.fun_getworkType(t.row.workType))+" ")]}}])}),a("el-table-column",{attrs:{label:"任务标题",prop:"workName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.tab_row_show(t.row)}}},[e._v(e._s(t.row.workName))])]}}])}),a("el-table-column",{attrs:{label:"创建时间",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.$ysapp.todatetime(t.row.addTime))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作员",prop:"operatorName",width:"120"}}),a("el-table-column",{attrs:{label:"处理时间",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.$ysapp.todatetime(t.row.adminTime))+" ")]}}])}),a("el-table-column",{attrs:{width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.status>1&&e.win_show.toptools?a("el-tooltip",{attrs:{effect:"light",content:"恢复任务",placement:"top-start"}},[a("el-button",{attrs:{icon:"el-icon-refresh-left",type:"primary",size:"small",circle:""},on:{click:function(a){return e.fun_work_getwell(t.row.gid)}}})],1):e._e()]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"total, sizes, prev, pager, next, jumper",total:e.selectdata.count,"page-size":e.selectdata.limit,"current-page":e.selectdata.page},on:{"size-change":e.pagesize,"current-change":e.pagechange}})],1)],1),a("el-dialog",{staticClass:"mainbody dialog-margin",attrs:{title:e.win_show.win_work_publice_title,fullscreen:"",visible:e.win_show.win_work_publice},on:{close:e.fun_win_close,"update:visible":function(t){return e.$set(e.win_show,"win_work_publice",t)}}},[a("div",{staticStyle:{"border-top":"1px solid #e8e8e8","padding-top":"5px"},domProps:{innerHTML:e._s(e.win_show.win_work_publice_iframe)}}),a("el-row",{staticClass:"dialog-footer",staticStyle:{height:"36px","text-align":"center","margin-top":"10px"},attrs:{slot:"footer",gutter:24},slot:"footer"},[a("el-col",{staticClass:"bottom-button",attrs:{span:24}},[1==e.workdata_status&&e.win_show.toptools?a("el-button",{attrs:{icon:"el-icon-check",size:"small",type:"success"},on:{click:function(t){return e.fun_work_uptatus(e.workdata.gid,100)}}},[e._v("完结任务 ")]):e._e(),1==e.workdata_status?a("el-button",{attrs:{icon:"el-icon-close",size:"small",type:"info"},on:{click:function(t){return e.fun_work_uptatus(e.workdata.gid,101)}}},[e._v("取消任务 ")]):e._e(),a("el-button",{attrs:{icon:"el-icon-arrow-right",size:"small",type:"primary"},on:{click:function(t){return e.fun_work_next(e.workdata.gid)}}},[e._v("下一条任务 ")])],1)],1)],1),a("el-dialog",{staticClass:"mainbody",attrs:{title:e.changeShipdata.title,fullscreen:"",visible:e.win_show.win_ch_show},on:{close:function(t){e.win_show.win_ch_show=!1},"update:visible":function(t){return e.$set(e.win_show,"win_ch_show",t)}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:2}},[a("el-select",{attrs:{placeholder:"换船方式","allow-create":"","default-first-option":""},model:{value:e.changeShipdata.changeType,callback:function(t){e.$set(e.changeShipdata,"changeType",t)},expression:"changeShipdata.changeType"}},e._l(e.data_changeTypelist,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{attrs:{span:2}},[a("el-select",{attrs:{filterable:"",placeholder:"船公司","allow-create":"","default-first-option":""},model:{value:e.changeShipdata.carrierCode,callback:function(t){e.$set(e.changeShipdata,"carrierCode",t)},expression:"changeShipdata.carrierCode"}},e._l(e.carrierlist,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name+" "+e.code,value:e.code}})})),1)],1),a("el-col",{attrs:{span:3}},[a("el-input",{attrs:{clearable:"",placeholder:"船 名"},model:{value:e.changeShipdata.shipName,callback:function(t){e.$set(e.changeShipdata,"shipName",t)},expression:"changeShipdata.shipName"}})],1),a("el-col",{attrs:{span:3}},[a("el-input",{attrs:{clearable:"",placeholder:"内部航次"},model:{value:e.changeShipdata.voyNo,callback:function(t){e.$set(e.changeShipdata,"voyNo",t)},expression:"changeShipdata.voyNo"}})],1),a("el-col",{attrs:{span:3}},[a("el-input",{attrs:{clearable:"",placeholder:"海关航次"},model:{value:e.changeShipdata.voyNoCustome,callback:function(t){e.$set(e.changeShipdata,"voyNoCustome",t)},expression:"changeShipdata.voyNoCustome"}})],1),a("el-col",{attrs:{span:2}},[a("el-input",{attrs:{clearable:"",placeholder:"目的港"},model:{value:e.changeShipdata.portDischarge,callback:function(t){e.$set(e.changeShipdata,"portDischarge",t)},expression:"changeShipdata.portDischarge"}})],1),a("el-col",{attrs:{span:3}},[a("el-select",{attrs:{filterable:"",placeholder:"--船代--","allow-create":"","default-first-option":""},model:{value:e.changeShipdata.agentName,callback:function(t){e.$set(e.changeShipdata,"agentName",t)},expression:"changeShipdata.agentName"}},e._l(e.data_shipagentlist,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name+" "+e.code,value:e.name}})})),1)],1),a("el-col",{attrs:{span:4}},[100!=e.changeShipdata.status&&1==e.workdata_status?a("el-button",{attrs:{icon:"el-icon-success",size:"mini",type:"primary"},on:{click:e.fun_publish}},[e._v("发 布")]):e._e(),1==e.workdata_status?a("el-button",{attrs:{icon:"el-icon-success",type:"success",size:"mini"},on:{click:function(t){return e.fun_work_uptatus(e.changeShipdata.workGid,100)}}},[e._v("完结 ")]):e._e(),1==e.workdata_status?a("el-button",{attrs:{icon:"el-icon-success",size:"mini",type:"info"},on:{click:function(t){return e.fun_work_uptatus(e.changeShipdata.workGid,101)}}},[e._v(" 取消 ")]):e._e()],1),a("el-col",{attrs:{span:2}},[a("el-button",{attrs:{icon:"el-icon-success",size:"small",type:"primary"},on:{click:function(t){return e.fun_work_next(e.workdata.gid)}}},[e._v("下一条任务 ")])],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[e._v(" From:"+e._s(e.changeShipdata.fromAddr)+" "+e._s(e.$ysapp.todatetime(e.changeShipdata.emailTime))+" (北京时间) ")])],1),a("el-row",[a("el-col",{attrs:{span:5}},[a("el-input",{attrs:{clearable:"",type:"textarea",autosize:{minRows:33,maxRows:33},placeholder:"请解析或输入要换船/取消换船的单号"},model:{value:e.changeShipdata.orderBody,callback:function(t){e.$set(e.changeShipdata,"orderBody",t)},expression:"changeShipdata.orderBody"}})],1),a("el-col",{attrs:{span:2}},[a("el-container",[a("div",{staticClass:"tools_main"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"自动从Email内容中解析出所有单号!",placement:"left-start"}},[a("el-button",{attrs:{plain:"",icon:"el-icon-d-arrow-right",type:"primary"},on:{click:function(t){return e.fun_readorder(1)}}},[e._v(" 解析全部")])],1),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"将右侧数据自动解析出单号!",placement:"left-start"}},[a("el-button",{staticStyle:{"margin-top":"20px"},attrs:{icon:"el-icon-finished",type:"primary"},on:{click:function(t){return e.fun_readorder(2)}}},[e._v("解析左侧指定")])],1),a("div",{staticClass:"span_red tools_count"},[e._v(" 解析出"+e._s(e.changeShipdata.orderBody.split("\n").length)+"条 ")])],1)])],1),a("el-col",{attrs:{span:15}},[a("div",{staticStyle:{width:"100%",height:"700px","overflow-y":"auto",border:"1px solid #aaa"},domProps:{innerHTML:e._s(e.changeShipdata.mailBody)}})])],1)],1),a("el-dialog",{staticClass:"mainbody",attrs:{title:" 编号:"+e.workdata.workCode+" DataId:"+e.workdata.dataId+" 标题:"+e.workdata.workName,fullscreen:"",visible:e.win_show.win_show_shipchedule},on:{close:function(t){e.win_show.win_show_shipchedule=!1},"update:visible":function(t){return e.$set(e.win_show,"win_show_shipchedule",t)}}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("el-select",{attrs:{filterable:"",placeholder:"船公司","allow-create":"","default-first-option":""},model:{value:e.data_shipschedule.carrierCode,callback:function(t){e.$set(e.data_shipschedule,"carrierCode",t)},expression:"data_shipschedule.carrierCode"}},e._l(e.carrierlist,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name+" "+e.code,value:e.code}})})),1)],1),a("el-col",{attrs:{span:3}},[a("el-select",{attrs:{filterable:"",placeholder:"航线","allow-create":"","default-first-option":""},model:{value:e.data_shipschedule.shipRouteName,callback:function(t){e.$set(e.data_shipschedule,"shipRouteName",t)},expression:"data_shipschedule.shipRouteName"}},e._l(e.shiproutelist,(function(e){return a("el-option",{key:e.code,attrs:{clearable:"",label:e.name,value:e.name}})})),1)],1),a("el-col",{attrs:{span:3}},[a("el-date-picker",{attrs:{format:"yyyyMM",type:"month",placeholder:"本船期月份"},model:{value:e.data_shipschedule.shipRoutetime,callback:function(t){e.$set(e.data_shipschedule,"shipRoutetime",t)},expression:"data_shipschedule.shipRoutetime"}})],1),a("el-col",{attrs:{span:4}},[1==e.workdata_status?a("el-button",{attrs:{icon:"el-icon-success",type:"primary"},on:{click:function(t){return e.fun_shipschedule_parsetodata(e.workdata.gid)}}},[e._v("解 析")]):e._e(),1==e.workdata_status?a("el-button",{attrs:{icon:"el-icon-refresh",type:"warning"},on:{click:function(t){return e.fun_shipschedule_parseall(e.workdata.gid)}}},[e._v("即时解析")]):e._e()],1),a("el-col",{attrs:{span:4}},[1==e.workdata_status?a("el-button",{attrs:{icon:"el-icon-success",type:"success"},on:{click:function(t){return e.fun_work_uptatus(e.workdata.gid,100)}}},[e._v("完结任务 ")]):e._e(),1==e.workdata_status?a("el-button",{attrs:{icon:"el-icon-success",type:"info"},on:{click:function(t){return e.fun_work_uptatus(e.workdata.gid,101)}}},[e._v("取消任务 ")]):e._e()],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{icon:"el-icon-success",size:"small",type:"primary"},on:{click:function(t){return e.fun_work_next(e.workdata.gid)}}},[e._v("下一条任务 ")])],1)],1),a("el-collapse",{model:{value:e.data_shipschedule.collapse,callback:function(t){e.$set(e.data_shipschedule,"collapse",t)},expression:"data_shipschedule.collapse"}},[a("el-collapse-item",{attrs:{name:"email"}},[a("template",{slot:"title"},[a("span",{staticStyle:{"font-weight":"800"}},[e._v(" "+e._s(e.workdata.mailtitle))])]),a("div",e._l(e.data_shipschedule.mailFiles,(function(t){return a("el-link",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary",icon:"el-icon-files",href:e.fun_getdownurl(t)}},[e._v(e._s(t.FileName)+" ")])})),1),a("div",{staticStyle:{width:"100%",height:"650px","overflow-y":"auto",border:"1px solid #aaa"},domProps:{innerHTML:e._s(e.workdata.dataBody)}})],2),a("el-collapse-item",{attrs:{name:"shipdata"}},[a("template",{slot:"title"},[a("span",{staticStyle:{"font-weight":"800"}},[e._v(" "+e._s("解析结果 "+e.data_shipschedule.parsetodatalist.length+"条"))]),a("span",{staticStyle:{"margin-left":"20px",color:"red"}},[e._v("修改后请注意发布处理!")])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%",height:"690px","overflow-y":"auto",border:"1px solid #aaa"},attrs:{"element-loading-text":"拼命解析中.......","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"}},e._l(e.data_shipschedule.parsetodatalist,(function(t){return a("div",{staticStyle:{"margin-top":"30px","padding-bottom":"20px","border-bottom":"2px solid #263445"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:4}},[t.issave?e._e():a("el-button",{attrs:{size:"medium",icon:"el-icon-circle-plus-outline"},on:{click:function(a){return e.fun_shipschedule_add(t)}}},[e._v(" 新建 ")]),t.issave?e._e():a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:function(a){return e.fun_shipschedule_save(t.shipRouteName)}}},[e._v(" 发布此航线 ")]),t.issave?a("span",{staticStyle:{color:"red","margin-left":"20px"}},[e._v("已经发布!")]):e._e()],1),a("el-col",{attrs:{span:4}},[a("span",{staticStyle:{"font-weight":"800"}},[e._v(" "+e._s(e.data_shipschedule.carrierCode)+" - "+e._s(t.shipRouteName))])])],1),a("ux-grid",{ref:"tbl_up"+e.data_shipschedule.carrierCode+"-"+t.shipRouteName,refInFor:!0,staticStyle:{width:"100%"},attrs:{data:t.scheduleList,resizable:"","show-overflow":"title",border:"","use-virtual":"","keep-source":"","edit-config":{trigger:"click",mode:"row"}},on:{"row-dblclick":function(a){return e.fun_shipschedule_rowdouble(t.scheduleList)}}},[a("ux-table-column",{attrs:{type:"expand",title:">",width:"40"},scopedSlots:e._u([{key:"content",fn:function(t){var i=t.row;t.rowIndex;return[a("teleport",[a("ul",[a("li",[e._v("目的港: "),a("ul",e._l(i.portList,(function(t){return a("li",[a("span",[e._v(e._s(t.PortName))]),e._v(" "),a("span",[e._v(e._s(t.Time))])])})),0)]),a("li",[a("span",[e._v("联系人:"+e._s(i.linkMain))])]),a("li",[a("span",[e._v("电话:"+e._s(i.tel))])]),a("li",[a("span",[e._v("邮箱:"+e._s(i.email))])]),a("li",[a("span",[e._v("截港时间:"+e._s(i.timePortEnd))])]),a("li",[a("span",[e._v("截单时间:"+e._s(i.timeOrderEnd))])]),a("li",[a("span",[e._v("截VGM时间:"+e._s(i.timeVGMEnd))])]),a("li",[a("span",[e._v("备注:"+e._s(i.memo))])])])])]}}],null,!0)}),a("ux-table-column",{attrs:{title:"船公司",width:"100",field:"carrierCode","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.carrierCode,callback:function(a){e.$set(t.row,"carrierCode",a)},expression:"scope.row.carrierCode"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"航线",width:"140","edit-render":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.shipRouteName)+" ")]}},{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.shipRouteName,callback:function(a){e.$set(t.row,"shipRouteName",a)},expression:"scope.row.shipRouteName"}})]}}],null,!0)}),a("ux-table-column",{attrs:{width:"100",field:"week",title:"周次","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.week,callback:function(a){e.$set(t.row,"week",a)},expression:"scope.row.week"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"船名","min-width":"140","edit-render":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.shipName)+" ")]}},{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.shipName,callback:function(a){e.$set(t.row,"shipName",a)},expression:"scope.row.shipName"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"中文船名","min-width":"140","edit-render":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.shipNameCN)+" ")]}},{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.shipNameCN,callback:function(a){e.$set(t.row,"shipNameCN",a)},expression:"scope.row.shipNameCN"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"海关航次","min-width":"140",field:"voyNoCustomes","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.voyNoCustomes,callback:function(a){e.$set(t.row,"voyNoCustomes",a)},expression:"scope.row.voyNoCustomes"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"船司航次","min-width":"140",field:"voyNo","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.voyNo,callback:function(a){e.$set(t.row,"voyNo",a)},expression:"scope.row.voyNo"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"船代","min-width":"140",field:"shipAgent","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-select",{attrs:{filterable:"","allow-create":"","default-first-option":""},model:{value:t.row.shipAgent,callback:function(a){e.$set(t.row,"shipAgent",a)},expression:"scope.row.shipAgent"}},e._l(e.data_shipagentlist,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name+" "+e.code,value:e.name}})})),1)]}}],null,!0)}),a("ux-table-column",{attrs:{title:"起运港","min-width":"140",field:"portSend","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.portSend,callback:function(a){e.$set(t.row,"portSend",a)},expression:"scope.row.portSend"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"预计到港时间",width:"140","edit-render":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.timePredictArrival)+" ")]}},{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.timePredictArrival,callback:function(a){e.$set(t.row,"timePredictArrival",a)},expression:"scope.row.timePredictArrival"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"预计离港时间",width:"140","edit-render":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.timePredictDeparture)+" ")]}},{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.timePredictDeparture,callback:function(a){e.$set(t.row,"timePredictDeparture",a)},expression:"scope.row.timePredictDeparture"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"联系人",field:"linkMain",width:"140","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.linkMain,callback:function(a){e.$set(t.row,"linkMain",a)},expression:"scope.row.linkMain"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"电话",field:"tel",width:"140","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.tel,callback:function(a){e.$set(t.row,"tel",a)},expression:"scope.row.tel"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"Email",field:"email",width:"140","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.email,callback:function(a){e.$set(t.row,"email",a)},expression:"scope.row.email"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"截港时间",field:"timePortEnd",width:"140","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.timePortEnd,callback:function(a){e.$set(t.row,"timePortEnd",a)},expression:"scope.row.timePortEnd"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"截单时间",field:"timeOrderEnd",width:"140","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{attrs:{clearable:""},model:{value:t.row.timeOrderEnd,callback:function(a){e.$set(t.row,"timeOrderEnd",a)},expression:"scope.row.timeOrderEnd"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"截VGM时间",field:"timeVGMEnd",width:"140","edit-render":""},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("el-input",{model:{value:t.row.timeVGMEnd,callback:function(a){e.$set(t.row,"timeVGMEnd",a)},expression:"scope.row.timeVGMEnd"}})]}}],null,!0)}),a("ux-table-column",{attrs:{title:"操作",fixed:"right",width:"140"},scopedSlots:e._u([{key:"default",fn:function(i){return[a("el-tooltip",{attrs:{effect:"light",content:"OMIT此船不再来,标记为无效",placement:"top-start"}},[a("el-button",{attrs:{icon:"el-icon-error",type:"info",circle:"",size:"mini"},on:{click:function(t){return e.fun_shipschedule_cancel(i.row,"omit")}}})],1),a("el-tooltip",{attrs:{effect:"light",content:"BLANK SAILING此船不再来,标记为无效",placement:"top-start"}},[a("el-button",{attrs:{icon:"el-icon-sort",type:"warning",circle:"",size:"mini"},on:{click:function(t){return e.fun_shipschedule_cancel(i.row,"blank")}}})],1),a("el-tooltip",{attrs:{effect:"light",content:"删除此记录",placement:"top-start"}},[a("el-button",{attrs:{icon:"el-icon-delete",type:"danger",circle:"",size:"mini"},on:{click:function(a){return e.fun_shipschedule_del(t.scheduleList,i.row)}}})],1)]}}],null,!0)})],1),t.scheduleListNew.length>0?a("div",[t.isupdata?a("div",{staticStyle:{height:"35px","padding-top":"10px",color:"red"}},[e._v("Updata 数据 ")]):e._e(),t.isupdata?e._e():a("div",{staticStyle:{height:"35px","padding-top":"10px"}},[e._v("解析数据 ")]),a("el-table",{ref:"tab_list_ssnew",refInFor:!0,staticStyle:{width:"100%"},attrs:{data:t.scheduleListNew,height:"300",border:""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"ship-table-expand",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"目的港"}},[a("el-card",{staticClass:"box-card"},e._l(t.row.portList,(function(t){return a("div",[e._v(e._s(t.PortName)+" "+e._s(t.Time)+" ")])})),0)],1),a("el-form-item",{staticClass:"row_info",attrs:{label:"详情"}},[a("span",[e._v("联系人:"+e._s(t.row.linkMain))]),a("span",[e._v("电话:"+e._s(t.row.tel))]),a("span",[e._v("邮箱:"+e._s(t.row.email))]),a("span",[e._v("截港时间:"+e._s(t.row.timePortEnd))]),a("span",[e._v("截单时间:"+e._s(t.row.timeOrderEnd))]),a("span",[e._v("截VGM时间:"+e._s(t.row.timeVGMEnd))]),a("span",[e._v("备注:"+e._s(t.row.memo))])])],1)]}}],null,!0)}),a("el-table-column",{attrs:{label:"船公司",width:"80",prop:"carrierCode"}}),a("el-table-column",{attrs:{label:"航线"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.shipRouteName)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{width:"40",prop:"week",label:"周次"}}),a("el-table-column",{attrs:{label:"船名","min-width":"100","edit-render":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{domProps:{innerHTML:e._s(e.fun_shipschedule_tableshow(t.row.shipName))}}),e._v(" "),a("span",{domProps:{innerHTML:e._s(e.fun_shipschedule_tableshow(t.row.shipNameCN))}})]}}],null,!0)}),a("el-table-column",{attrs:{label:"海关航次",prop:"voyNoCustomes"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{domProps:{innerHTML:e._s(e.fun_shipschedule_tableshow(t.row.voyNoCustomes))}})]}}],null,!0)}),a("el-table-column",{attrs:{label:"船司航次",prop:"voyNo"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{domProps:{innerHTML:e._s(e.fun_shipschedule_tableshow(t.row.voyNo))}})]}}],null,!0)}),a("el-table-column",{attrs:{label:"船代"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{domProps:{innerHTML:e._s(e.fun_shipschedule_tableshow(t.row.shipAgent))}})]}}],null,!0)}),a("el-table-column",{attrs:{label:"起运港"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{domProps:{innerHTML:e._s(e.fun_shipschedule_tableshow(t.row.portSend))}})]}}],null,!0)}),a("el-table-column",{attrs:{label:"预计到港时间",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{domProps:{innerHTML:e._s(e.fun_shipschedule_tableshow(t.row.timePredictArrival))}})]}}],null,!0)}),a("el-table-column",{attrs:{label:"预计离港时间",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{domProps:{innerHTML:e._s(e.fun_shipschedule_tableshow(t.row.timePredictArrival))}})]}}],null,!0)}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"80"},scopedSlots:e._u([{key:"default",fn:function(i){return[a("el-tooltip",{attrs:{effect:"light",content:"Up更新到船期",placement:"top-start"}},[a("el-button",{attrs:{icon:"el-icon-upload2",type:"primary",circle:"",size:"mini"},on:{click:function(a){return e.fun_shipschedule_up(t,i.row)}}})],1)]}}],null,!0)})],1)],1):e._e()],1)})),0)],2)],1)],1)],1)},s=[],l=a("58f6"),o=a("5433"),n=a("adc2"),r=a("121a"),c=(a("837c"),{data(){return{fid:0,select_isopen:!0,win_show:{win_show_shipchedule:!1,win_ch_show:!1,win_work_publice:!1,win_work_publice_title:"任务处理",win_work_publice_iframe:"",toptools:!0},workdata:[],workdata_status:0,data_changeTypelist:[{code:1,name:"换船"},{code:2,name:"取消换船"}],data_shipagentlist:[],data_statuslist:[],data_typelist:[],carrierlist:[],shiproutelist:[],win_worktype:"",loading:!1,datalist:[],selectdata:{limit:this.$pagesize,page:1,count:0,workName:null,workCode:null,status:null,workType:null,operatorName:null,timestart:null,timeend:null},changeShipdata:{workGid:"",changeShipdata:null,orderBody:"",title:null,carrierCode:null,changeType:null,agentName:null,shipName:null,voyNo:null,emailTime:0},data_shipschedule:{carrierCode:"",shipRoutetime:null,shipRouteName:null,parsetodatalist:[],collapse:["email"],uprowcols:["shipName","shipNameCN","voyNo","voyNoCustomes","portSend","shipAgent","timePredictArrival","timePredictDeparture"]}}},created(){this.$route.query.type&&(this.selectdata.workType=this.$route.query.type,this.select_isopen=!1),this.$route.query.status&&(this.selectdata.status=this.$route.query.status,this.select_isopen=!1),this.$route.query.orderby&&(this.selectdata.orderby=this.$route.query.orderby,this.select_isopen=!1);var e=this;document.onkeydown=function(t){let a=t||event||window.event||arguments.callee.caller.arguments[0];if(a){let t=a.keyCode;13==t&&e.getlist(1)}},this.pageinit()},mounted(){document.addEventListener("copy",e=>{const t=document.getSelection().toString().replace(/^\s*|\s*$/g,"");if(1==this.win_show.win_ch_show&&"changeship"==this.win_worktype)if(null==this.changeShipdata.shipName||0==this.changeShipdata.shipName.length)this.changeShipdata.shipName=t,this.$message({message:"复制到船名!",type:"success"});else if(null==this.changeShipdata.voyNo||0==this.changeShipdata.voyNo.length)this.changeShipdata.voyNo=t,this.$message({message:"复制到航次!",type:"success"});else if(this.win_show.win_ch_show&&null!=this.changeShipdata.shipName&&this.changeShipdata.shipName.length>0&&null!=this.changeShipdata.voyNo&&this.changeShipdata.voyNo.length>0){let e=this.changeShipdata.orderBody;this.changeShipdata.orderBody=t,this.fun_readorder(2,e)}})},watch:{$route(e,t){e.query.type&&(this.selectdata.workType=e.query.type,this.select_isopen=!1),e.query.status&&(this.selectdata.status=e.query.status,this.select_isopen=!1),this.$route.query.orderby&&(this.selectdata.orderby=this.$route.query.orderby,this.select_isopen=!1),this.pageinit()}},methods:{pageinit(){this.getlist(),Object(r["d"])("carrierlist").then(e=>{this.carrierlist=e.data}),Object(r["d"])("shiproute").then(e=>{this.shiproutelist=e.data}),Object(r["d"])("shipagent").then(e=>{this.data_shipagentlist=e.data}),Object(r["a"])("workstatus").then(e=>{this.data_statuslist=[],e.data.forEach(e=>{e.code>0&&this.data_statuslist.push(e)})}),Object(r["b"])("worktype").then(e=>{this.data_typelist=[],e.data.forEach(e=>{this.data_typelist.push({code:e.key,name:e.title,value:e.value})})})},getlist(e=0){if(1==e&&(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,this.win_show.toptools=!0,this.selectdata.workType){var t=this.data_typelist.filter(e=>e.code==this.selectdata.workType);if(null!=t&&t.length>0){var a=t[0];this.$ysapp.isjson(a.value)&&(a.config=JSON.parse(a.value),this.win_show.toptools=a.config.toptools)}}Object(l["b"])(this.selectdata).then(e=>{this.datalist=e.data,this.selectdata=this.$ysapp.getpagebind(e,this.selectdata),this.loading=!1})},pagesize(e){this.selectdata.limit=e,this.getlist()},pagechange(e){this.selectdata.page=e,this.getlist()},tab_list_select(e){this.tableselect=e},fun_select_reset(){let e=this.selectdata.count,t={limit:this.$pagesize,page:1,count:e,title:null,orderBody:null,changeCode:null,status:null,changeType:null,operatorName:null,carrierCode:null,agentName:null,shipName:null,voyNo:null,timestart:null,timeend:null,workType:""};this.select_isopen||(t.status=this.selectdata.status,t.workType=this.selectdata.workType),this.selectdata=t},tab_row_show(e){this.loading=!0,Object(l["a"])(e.gid).then(e=>{this.workdata_status=e.data.status,this.win_worktype=e.data.workType,this.workdata=e.data;let t=this.workdata.workType;if(this.win_show.toptools=!0,"changeship"==t){let t=JSON.parse(e.data.dataJson);this.changeShipdata.title=" 编号:"+e.data.workCode+" DataId:"+this.workdata.dataId+" 标题:"+e.data.workName,this.changeShipdata.orderBody="",this.changeShipdata.mailBody=e.data.dataBody,this.changeShipdata.workGid=e.data.gid,this.changeShipdata.fromAddr=t.Sender,this.changeShipdata.emailTime=e.data.addTime,this.changeShipdata.carrierCode=null;let a=/\[([A-Z]*)?\]/,i=this.changeShipdata.title.match(a);i&&(this.changeShipdata.carrierCode=i[1]),this.fun_readorder(1),this.win_show.win_ch_show=!0}else if("scheduleship"==t){this.data_shipschedule.parsetodatalist=[],this.data_shipschedule.collapse=["email"],this.data_shipschedule.shipRouteName=null,this.data_shipschedule.shipRoutetime="",this.data_shipschedule.carrierCode="";let t=JSON.parse(e.data.dataJson),a="";t.MailFiles.length>0&&(a="附件:"+t.MailFiles.length+" 个"),this.data_shipschedule.mailFiles=t.MailFiles,this.workdata.mailtitle=t.Sender+" "+this.$ysapp.todatetime(this.workdata.addTime)+"(北京时间) "+a,this.win_show.win_show_shipchedule=!0}else{var a=this.data_typelist.filter(e=>e.code==t);if(null!=a&&a.length>0){var i=a[0];if(this.$ysapp.isjson(i.value)?(i.config=JSON.parse(i.value),i.value.indexOf("toptools")>=0&&(this.win_show.toptools=i.config.toptools)):i.config={url:i.value},this.win_show.win_work_publice_iframe="",i.config.url||i.config.url.length>0){let e=i.config.url+"?workgid="+this.workdata.gid;this.fid++;let t='';this.win_show.win_work_publice_title=this.workdata.workCode+" "+this.workdata.workName,this.win_show.win_work_publice_iframe=t,this.win_show.win_work_publice=!0}else this.$thisapp.msg("没有找到合适的处理模型!",0)}else this.$thisapp.msg("没有找到合适的处理模型!",0)}this.loading=!1})},fun_btn_del(e){let t=new Array;t.push(e),0!=t.length?this.$confirm("您确定要取消本任务?").then(()=>{Object(l["d"])(e,101).then(e=>{this.getlist(),this.$message({message:"取消成功!",type:"success"})})}).catch(()=>{}):this.$message.error({message:"没有找到操作数据"})},fun_work_getwell(e){this.$confirm("您确定要恢复此任务?").then(t=>{Object(l["d"])(e,1).then(e=>{this.getlist(),this.$message({message:"恢复成功!",type:"success"})})}).catch(()=>{})},fun_readorder(e=1,t=""){let a={content:this.changeShipdata.orderBody};1==e&&(a.content=this.changeShipdata.mailBody),Object(o["e"])(a).then(e=>{this.$thisapp.isnull(e.data)?this.changeShipdata.orderBody=t:(this.changeShipdata.orderBody=e.data,this.$message({message:"解析成功!",type:"success"}))})},fun_publish(e=1){let t={workGid:this.changeShipdata.workGid,gid:this.changeShipdata.gid,orderBody:this.changeShipdata.orderBody,carrierCode:this.changeShipdata.carrierCode,changeType:this.changeShipdata.changeType,agentName:this.changeShipdata.agentName,shipName:this.changeShipdata.shipName,voyNo:this.changeShipdata.voyNo,status:100};if(null==t.changeType||0==t.changeType.length)return void this.$message.error({message:"请选择换船方式!"});if(null==t.carrierCode||0==t.carrierCode.length)return void this.$message.error({message:"请选择船公司!"});if(null==t.shipName||0==t.shipName.length)return void this.$message.error({message:"船名不能为空!"});if(null==t.voyNo||0==t.voyNo.length)return void this.$message.error({message:"航次不能为空!"});let a="你确定要发布:"+this.changeShipdata.carrierCode+(1==this.changeShipdata.changeType?"换船":"取消换船");this.$confirm(a).then(()=>{Object(o["d"])(t).then(e=>{this.changeShipdata.shipName="",this.changeShipdata.voyNo="",this.changeShipdata.voyNoCustome=null,this.changeShipdata.portDischarge=null,this.changeShipdata.changeType=null,this.$message({message:"发布成功!",type:"success"}),this.getlist()})}).catch(()=>{})},fun_linkselect(e){this.selectdata.status=0==e||"0"==e?null:e,this.getlist(1)},fun_getworkType(e){let t="";for(let a of this.data_typelist)if(a.code==e){t=a.name;break}return t},fun_work_uptatus(e,t){let a=100==t?"确定要完结此任务?":101==t?"确定要取消此任务?":"错误请求";"错误请求"!=a?this.$confirm(a).then(()=>{Object(l["d"])(e,t).then(e=>{this.win_show.win_ch_show=!1,this.win_show.win_show_shipchedule=!1,this.getlist(),this.$message({message:"提交成功!",type:"success"})})}).catch(()=>{}):this.$message.error(a)},fun_getstatus(e){let t=e.status,a="#303133";return 100==t?a="#3dc459":101==t?a="#ff4a49":1==t&&(a="#409EFF"),""+e.statusName+""},fun_shipschedule_parseall(e){if(this.$thisapp.isnull(this.data_shipschedule.carrierCode)||this.$thisapp.isnull(this.data_shipschedule.shipRoutetime)||this.$thisapp.isnull(this.data_shipschedule.shipRouteName))return void this.$thisapp.msg("请选择船公司、航线、船期月份",0);let t={workgid:e,carrierCode:this.data_shipschedule.carrierCode,monthCode:this._fun_getmothtime(this.data_shipschedule.shipRoutetime),shipRouteName:this.data_shipschedule.shipRouteName};this.loading=!0,this.data_shipschedule.collapse=["shipdata"],Object(n["f"])(t).then(t=>{this.loading=!0,this.fun_shipschedule_parsetodata(e)}).catch(()=>{this.loading=!1})},fun_shipschedule_parsetodata(e){this.data_shipschedule.parsetodatalist=[];let t=null;if(this.$thisapp.isnull(this.data_shipschedule.carrierCode)||this.$thisapp.isnull(this.data_shipschedule.shipRoutetime)||this.$thisapp.isnull(this.data_shipschedule.shipRouteName))return void this.$thisapp.msg("请选择船公司、航线、船期月份",0);this.data_shipschedule.collapse=["shipdata"];let a={workgid:e,carrierCode:this.data_shipschedule.carrierCode,monthCode:this._fun_getmothtime(this.data_shipschedule.shipRoutetime),shipRouteName:this.data_shipschedule.shipRouteName};this.loading=!0,Object(n["e"])(a).then(e=>{t=e.memoData,t.forEach(e=>{e.scheduleList.forEach(e=>{e.portList=JSON.parse(e.portList)}),e.scheduleListNew.forEach(e=>{e.portList=JSON.parse(e.portList)}),null!=e.scheduleList&&0!=e.scheduleList.length||(e.scheduleList=e.scheduleListNew,e.scheduleListNew=[])}),null!=e.memoData&&e.memoData.length>0&&(this.data_shipschedule.carrierCode=e.memoData[0].carrierCode),t.forEach(e=>{e.isupdata=!1,e.issave=!1,e.scheduleListNew.forEach(t=>{let a=null;for(var i of e.scheduleList)if(i.week==t.week&&i.shipRouteName==t.shipRouteName){a=i;break}let s=this.data_shipschedule.uprowcols;for(var l of s){let i=t[l];null==i&&(i="null");let s=null;null!=a&&(s=a[l]),"string"==typeof i&&i!=s&&(t[l]={value:i,type:"red"},e.isupdata=!0)}})}),this.data_shipschedule.parsetodatalist=t,this.loading=!1,this.$thisapp.msg("解析成功!")}).catch(()=>{this.loading=!1})},fun_shipschedule_tableshow(e){let t="";return"string"==typeof e?t=e:"object"==typeof e&&"red"==e.type&&(t=''+e.value+""),t},fun_shipschedule_up(e,t){let a=null;for(let i of e.scheduleList)if(i.carrierCode==t.carrierCode&&i.week==t.week){a=i;for(let e of this.data_shipschedule.uprowcols)i[e]="object"==typeof t[e]?t[e].value:t[e];break}if(null==a){for(let e of this.data_shipschedule.uprowcols)"object"==typeof t[e]&&(t[e]=t[e].value);e.scheduleList.push(t),e.scheduleList.sort((function(e,t){return e.week-t.week}))}this.$thisapp.msg("更新成功!")},_fun_getmothtime(e){let t=new Date(e),a=t.getFullYear()+""+(parseInt(t.getMonth())+1);return 5==a.length&&(a=this.$ysapp.insertstr(a,4,"0")),a},fun_shipschedule_save(e){this.$confirm("确定要发布此航线?").then(()=>{let t=[];for(var a of this.data_shipschedule.parsetodatalist)if(a.shipRouteName==e){if(t=a.scheduleList,1==a.issave)return void this.$thisapp.msg("已发送过了!",0);break}t.forEach(e=>{"string"==typeof e.portList&&(e.portList=JSON.parse(e.portList)),e.portList=JSON.stringify(e.portList)});let i=this._fun_getmothtime(this.data_shipschedule.shipRoutetime),s={data:t,carrierCode:this.data_shipschedule.carrierCode,shipRouteName:this.data_shipschedule.shipRouteName,code:i,gid:this.workdata.gid};Object(n["g"])(s).then(t=>{if(200==t.code){for(var a of this.data_shipschedule.parsetodatalist)if(a.shipRouteName==e){a.issave=!0;break}this.$thisapp.msg("发布成功!")}}).catch(()=>{})}).catch(e=>{})},fun_shipschedule_add(e){let t={workGid:"",shipScheduleVoyNo:null,shipRouteGid:null,week:0,carrierCode:"",shipName:"",shipNameCN:"",voyNo:"",voyNoCustomes:"",shipAgent:"",shipRouteCode:null,shipRouteName:"",location:null,importAgent:null,portArriveStatus:0,freighter:null,shipPerth:null,imoCode:null,portSend:"青岛",portSendCode:null,timePredictArrival:new Date,timeArrival:0,timePredictDeparture:new Date,timeDeparture:0,timeStartBox:null,timeEndBox:null,timePortEnd:null,timeOrderEnd:null,timeVGMEnd:null,linkMain:"",tel:"",email:null,portList:""};e.scheduleList.push(t)},fun_getdownurl(e){return Object(r["e"])(e.MailFilePath)},fun_shipschedule_cancel(e,t){let a="omit"==t?"OMIT":"BLANK SAILING";this.$confirm("你确定要"+a+"本船期?").then(()=>{for(let t of this.data_shipschedule.uprowcols)e[t]=a}).catch(()=>{})},fun_shipschedule_del(e,t){this.$confirm("确定要删除本船期?").then(()=>{for(let a in e)if(e[a]==t){e.splice(a,1);break}this.$thisapp.msg("删除成功!")}).catch(()=>{})},fun_shipschedule_rowdouble(e){let t=e[0];e.forEach(e=>{e["carrierCode"]=t["carrierCode"],e["shipRouteName"]=t["shipRouteName"],e["shipAgent"]=t["shipAgent"]}),this.$thisapp.msg("同步成功!")},fun_win_close(){this.getlist(1),this.win_show.win_work_publice=!1,this.win_show.win_work_publice_iframe=null},fun_work_next(e){let t=-1;for(let a=0;a