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-3c3653d9"],{"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 d})),a.d(e,"d",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return o})),a.d(e,"e",(function(){return n}));var l=a("b775"),i=a("2d46");function d(){return Object(i["a"])("tools/getdictlist")}function r(t,e){return Object(l["a"])({url:"tools/getdjydict/"+t,method:"get",params:e})}function s(t){return Object(l["a"])({url:"tools/getdictkeylist/"+t,method:"get"})}function o(t){return Object(l["a"])({url:"tools/getdictlist/"+t})}function n(t){var e="/api/tools/download?name="+encodeURI(t);return e}},"14fc":function(t,e,a){"use strict";a("8959")},"27ea":function(t,e,a){var l=a("24fb"),i=a("0025");e=l(!1),e.i(i),e.push([t.i,".tools_main{margin-top:50px;padding-top:50px;text-align:center}.tools_count{padding-top:20px}.ship-table-expand{padding:5px;font-size:0}.ship-table-expand label{width:90px;color:#99a9bf}.ship-table-expand .el-form-item{margin-right:0;margin-bottom:0;width:50%}.el-table__expanded-cell[class*=cell]{padding:5px 50px}.frm_add .el-input--suffix{max-width:150px}.eldate-datetime .el-input__inner{width:180px!important}.row_info span{padding-left:10px}",""]),t.exports=e},6553: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-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:20}},[a("div",{staticClass:"btn_tools"},[a("el-button",{attrs:{icon:"el-icon-plus",type:"primary",size:"medium"},on:{click:t.fun_add}},[t._v("新建")])],1)])],1),a("el-form",{ref:"frm_select",staticClass:"search-form",attrs:{model:t.selectdata,"label-width":"80px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"船公司"}},[a("el-select",{staticStyle:{width:"150px"},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-select",{attrs:{filterable:"",placeholder:"航线","allow-create":"","default-first-option":""},model:{value:t.selectdata.ShipRouteNameMain,callback:function(e){t.$set(t.selectdata,"ShipRouteNameMain",e)},expression:"selectdata.ShipRouteNameMain"}},t._l(t.data_shiproutelist,(function(t){return a("el-option",{key:t.code,attrs:{clearable:"",label:t.name,value:t.name}})})),1)],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"时间"}},[a("el-date-picker",{staticStyle:{width:"120px"},attrs:{format:"yyyyMM",type:"month",placeholder:"时间"},model:{value:t.selectdata.MonthCode,callback:function(e){t.$set(t.selectdata,"MonthCode",e)},expression:"selectdata.MonthCode"}})],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:3}},[a("el-form-item",{attrs:{label:"海关航次"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.voyNoCustomes,callback:function(e){t.$set(t.selectdata,"voyNoCustomes",e)},expression:"selectdata.voyNoCustomes"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"船 代"}},[a("el-input",{attrs:{clearable:""},model:{value:t.selectdata.shipAgent,callback:function(e){t.$set(t.selectdata,"shipAgent",e)},expression:"selectdata.shipAgent"}})],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){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:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){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"},t._l(e.row.portList,(function(e){return a("div",[t._v(t._s(e.PortName)+" "+t._s(e.Time)+" ")])})),0)],1),a("el-form-item",{staticClass:"row_info",attrs:{label:"详情"}},[a("span",[t._v("联系人:"+t._s(e.row.linkMain))]),a("span",[t._v("电话:"+t._s(e.row.tel))]),a("span",[t._v("邮箱:"+t._s(e.row.email))]),a("span",[t._v("截港时间:"+t._s(e.row.timePortEnd))]),a("span",[t._v("截单时间:"+t._s(e.row.timeOrderEnd))]),a("span",[t._v("截VGM时间:"+t._s(e.row.timeVGMEnd))])])],1)]}}])}),a("el-table-column",{attrs:{label:"船公司",width:"80",prop:"carrierCode"}}),a("el-table-column",{attrs:{label:"航线"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.shipRouteCode)+" "+t._s(e.row.shipRouteName)+" ")]}}])}),a("el-table-column",{attrs:{width:"40",prop:"week",label:"周"}}),a("el-table-column",{attrs:{label:"船名"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.shipName)+" "+t._s(e.row.shipNameCN)+" ")]}}])}),a("el-table-column",{attrs:{label:"船司航次",prop:"voyNo"}}),a("el-table-column",{attrs:{label:"海关航次",prop:"voyNoCustomes"}}),a("el-table-column",{attrs:{label:"船代",prop:"shipAgent"}}),a("el-table-column",{attrs:{label:"起运港"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.portSendCode)+" "+t._s(e.row.portSend)+" ")]}}])}),a("el-table-column",{attrs:{label:"预计到港时间",width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$ysapp.todatetime(e.row.timePredictArrival))+" ")]}}])}),a("el-table-column",{attrs:{label:"预计离港时间",width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$ysapp.todatetime(e.row.timePredictDeparture))+" ")]}}])}),a("el-table-column",{attrs:{label:"实际到港时间",width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$ysapp.todatetime(e.row.timeArrival))+" ")]}}])}),a("el-table-column",{attrs:{label:"实际离港时间",width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$ysapp.todatetime(e.row.timeSend))+" ")]}}])}),a("el-table-column",{attrs:{label:"收箱开始时间",width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$ysapp.todatetime(e.row.timeStartBox))+" ")]}}])}),a("el-table-column",{attrs:{label:"收箱结束时间",width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$ysapp.todatetime(e.row.timeEndBox))+" ")]}}])}),t._v(" --\x3e ")],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",{attrs:{width:"1000px",title:t.data_add.win_title,visible:t.data_add.win_show},on:{"update:visible":function(e){return t.$set(t.data_add,"win_show",e)}}},[a("el-form",{ref:"frm_add",staticClass:"dialog-form frm_add",staticStyle:{"margin-top":"0px","margin-left":"15px"},attrs:{model:t.data_add.frm_data,inline:!0,rules:t.data_add.addorderrules,"label-width":"80px"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{staticStyle:{"margin-bottom":"5px !important"},attrs:{prop:"carrierCode",label:"船公司"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:t.data_add.frm_data.carrierCode,callback:function(e){t.$set(t.data_add.frm_data,"carrierCode",e)},expression:"data_add.frm_data.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:6}},[a("el-form-item",{attrs:{prop:"shipName",label:"船 名"}},[a("el-input",{attrs:{clearable:""},model:{value:t.data_add.frm_data.shipName,callback:function(e){t.$set(t.data_add.frm_data,"shipName",e)},expression:"data_add.frm_data.shipName"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"voyNo",label:"船司航次"}},[a("el-input",{attrs:{clearable:""},model:{value:t.data_add.frm_data.voyNo,callback:function(e){t.$set(t.data_add.frm_data,"voyNo",e)},expression:"data_add.frm_data.voyNo"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"voyNoCustomes",label:"海关航次"}},[a("el-input",{attrs:{clearable:""},model:{value:t.data_add.frm_data.voyNoCustomes,callback:function(e){t.$set(t.data_add.frm_data,"voyNoCustomes",e)},expression:"data_add.frm_data.voyNoCustomes"}})],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{staticStyle:{"margin-bottom":"5px !important"},attrs:{prop:"CarrierCode",label:"船 代"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:t.data_add.frm_data.shipAgent,callback:function(e){t.$set(t.data_add.frm_data,"shipAgent",e)},expression:"data_add.frm_data.shipAgent"}},t._l(t.data_shipagentlist,(function(t){return a("el-option",{key:t.code,attrs:{label:t.name+" "+t.code,value:t.name}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"linkMain",label:"联系人 "}},[a("el-input",{attrs:{clearable:""},model:{value:t.data_add.frm_data.linkMain,callback:function(e){t.$set(t.data_add.frm_data,"linkMain",e)},expression:"data_add.frm_data.linkMain"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"tel",label:"电 话"}},[a("el-input",{attrs:{clearable:""},model:{value:t.data_add.frm_data.tel,callback:function(e){t.$set(t.data_add.frm_data,"tel",e)},expression:"data_add.frm_data.tel"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"email",label:"邮 箱"}},[a("el-input",{attrs:{clearable:""},model:{value:t.data_add.frm_data.email,callback:function(e){t.$set(t.data_add.frm_data,"email",e)},expression:"data_add.frm_data.email"}})],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{prop:"timePortEnd",label:"截港时间"}},[a("el-date-picker",{staticClass:"eldate-datetime",attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm",placeholder:"选择日期"},model:{value:t.data_add.frm_data.timePortEnd,callback:function(e){t.$set(t.data_add.frm_data,"timePortEnd",e)},expression:"data_add.frm_data.timePortEnd"}})],1)],1),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{prop:"timeOrderEnd",label:"截单时间"}},[a("el-date-picker",{staticClass:"eldate-datetime",attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm",placeholder:"选择日期"},model:{value:t.data_add.frm_data.timeOrderEnd,callback:function(e){t.$set(t.data_add.frm_data,"timeOrderEnd",e)},expression:"data_add.frm_data.timeOrderEnd"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{prop:"timePortEnd","label-width":"100px",label:"截VGM时间"}},[a("el-date-picker",{staticClass:"eldate-datetime",attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm",placeholder:"选择日期"},model:{value:t.data_add.frm_data.timeVGMEnd,callback:function(e){t.$set(t.data_add.frm_data,"timeVGMEnd",e)},expression:"data_add.frm_data.timeVGMEnd"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-switch",{staticStyle:{"margin-right":"20px"},attrs:{"active-text":"连续"},model:{value:t.data_add.add_isNext,callback:function(e){t.$set(t.data_add,"add_isNext",e)},expression:"data_add.add_isNext"}}),a("el-button",{attrs:{type:"primary"},on:{click:t.fun_add_submit}},[t._v("提交")]),a("el-button",{on:{click:function(e){t.data_add.win_show=!1}}},[t._v("取 消")])],1)],1)],1)},i=[],d=a("adc2"),r=a("121a"),s={data(){return{data_add:{add_isNext:!1,win_title:"新 建",win_show:!1,frm_data:[],frm_data_init:{carrierCode:null,shipName:null,voyNo:null,voyNoCustomes:null,shipRouteCode:null,shipRouteName:null,shipAgent:null,linkMain:null,tel:null,email:null,timePortEnd:null,timeOrderEnd:null,timeVGMEnd:null},addorderrules:{carrierCode:[{required:!0,message:"请选船公司!",trigger:"change"}],shipName:[{required:!0,message:"必填项不能为空!",type:"string",trigger:"blur"}]}},carrierlist:[],data_shipagentlist:[],data_shiproutelist:[],win_ch_show:!1,loading:!1,datalist:[],selectdata:{},selectdatainit:{limit:this.$pagesize,page:1,count:0,carrierCode:null,shipRouteName:null,ShipRouteNameMain:null,shipName:null,voyNo:null,voyNoCustomes:null,shipAgent:null}}},created(){this.pageinit()},methods:{pageinit(){this.selectdata=this.$ysapp.copyobj(this.selectdatainit),this.data_add.frm_data=this.$ysapp.copyobj(this.data_add.frm_data_init),this.getlist(),Object(r["d"])("carrierlist").then(t=>{this.carrierlist=t.data}),Object(r["d"])("shipagent").then(t=>{this.data_shipagentlist=t.data}),Object(r["d"])("shiproute").then(t=>{this.data_shiproutelist=t.data})},getlist(t=0){1==t&&(this.selectdata.page=1);let e=this.$ysapp.copyobj(this.selectdata);null!=this.selectdata.MonthCode&&(e.MonthCode=this._fun_getmothtime(this.selectdata.MonthCode)),this.loading=!0,Object(d["d"])(e).then(t=>{this.datalist=t.data,this.datalist.forEach(t=>{t.portList=JSON.parse(t.portList)}),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_add(){this.data_add.win_title="新 建",this.data_add.frm_data=this.$ysapp.copyobj(this.data_add.frm_data_init),this.data_add.win_show=!0},fun_select_reset(){this.selectdata.count;this.selectdata=this.selectdata=this.$ysapp.copyobj(this.selectdatainit)},_fun_getmothtime(t){let e=new Date(t),a=e.getFullYear()+""+(parseInt(e.getMonth())+1);return 5==a.length&&(a=this.$ysapp.insertstr(a,4,"0")),a},tab_row_show(t){this.loading=!0,Object(d["c"])(t.gid).then(t=>{this.data_add.win_title="修 改",this.data_add.frm_data={gid:t.data.gid,carrierCode:t.data.carrierCode,shipName:t.data.shipName,voyNo:t.data.voyNo,voyNoCustomes:t.data.voyNoCustomes,shipRouteCode:t.data.shipRouteCode,shipRouteName:t.data.shipRouteName,shipAgent:t.data.shipAgent,linkMain:t.data.linkMain,tel:t.data.tel,email:t.data.email,timePortEnd:this.$ysapp.todatetime(t.data.timePortEnd),timeOrderEnd:this.$ysapp.todatetime(t.data.timeOrderEnd),timeVGMEnd:this.$ysapp.todatetime(t.data.timeVGMEnd)},this.data_add.win_show=!0,this.loading=!1})},fun_add_submit(){this.$refs["frm_add"].validate(t=>{if(t){let t=this.$ysapp.copyobj(this.data_add.frm_data);t.timeVGMEnd=new Date(t.timeVGMEnd)/1e3,t.timePortEnd=new Date(t.timePortEnd)/1e3,t.timeOrderEnd=new Date(t.timeOrderEnd)/1e3,null!=t.gid&&void 0!=t&&t.gid.length>0?Object(d["h"])(t).then(t=>{this.$thisapp.msg("修改成功!!"),this.data_add.frm_data=this.$ysapp.copyobj(this.data_add.frm_data_init),this.getlist(),this.data_add.add_isNext=!1,this.data_add.win_show=!1}):Object(d["a"])(t).then(t=>{this.$thisapp.msg("新建成功!"),this.data_add.frm_data=this.$ysapp.copyobj(this.data_add.frm_data_init),this.getlist(),this.data_add.add_isNext||(this.data_add.win_show=!1)})}})},fun_btn_del(t){let e=new Array;e.push(t),console.log(e),0!=e.length?this.$confirm("您确定要删除选择的 "+e.length+" 条数据?").then(()=>{Object(d["b"])(e).then(t=>{this.getlist(),this.$thisapp.msg("删除成功!")})}).catch(()=>{}):this.$message.error({message:"没有找到操作数据"})}}},o=s,n=(a("14fc"),a("2877")),c=Object(n["a"])(o,l,i,!1,null,null,null);e["default"]=c.exports},8959:function(t,e,a){var l=a("27ea");l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[t.i,l,""]]),l.locals&&(t.exports=l.locals);var i=a("499e").default;i("046bb59c",l,!0,{sourceMap:!1,shadowMode:!1})},adc2:function(t,e,a){"use strict";a.d(e,"d",(function(){return i})),a.d(e,"c",(function(){return d})),a.d(e,"b",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"h",(function(){return o})),a.d(e,"e",(function(){return n})),a.d(e,"f",(function(){return c})),a.d(e,"g",(function(){return p}));var l=a("b775");function i(t){return Object(l["a"])({url:"shipschedule",method:"get",params:t})}function d(t){return Object(l["a"])({url:"shipschedule/"+t,method:"get"})}function r(t){return Object(l["a"])({url:"shipschedule/del",method:"post",data:t})}function s(t){return Object(l["a"])({url:"shipschedule",method:"post",data:t})}function o(t){return Object(l["a"])({url:"shipschedule/up",method:"post",data:t})}function n(t){return Object(l["a"])({url:"shipschedule/parsetodata",method:"get",params:t})}function c(t){return Object(l["a"])({url:"shipschedule/parsetojson",method:"get",params:t})}function p(t){return Object(l["a"])({url:"shipschedule/save",method:"post",data:t})}}}]); |