Your Name
2022-11-30 f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-3130","chunk-5b08","chunk-9193"],{"/sDw":function(t,e,r){"use strict";r.d(e,"c",function(){return i}),r.d(e,"a",function(){return o}),r.d(e,"d",function(){return c}),r.d(e,"b",function(){return s});var a=r("t3Un"),n=r("X4fA");function i(t,e,r){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/enterprise/document?id="+e+"&type="+r,method:"get",params:t||{}})}function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/enterprise/adddocument",method:"post",data:t})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/enterprise/putdocument",method:"post",data:t})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/enterprise/deldocument?id="+t,method:"post"})}},"2iYP":function(t,e,r){"use strict";r.d(e,"c",function(){return i}),r.d(e,"a",function(){return o}),r.d(e,"d",function(){return c}),r.d(e,"b",function(){return s});var a=r("t3Un"),n=r("X4fA");function i(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/transport/personList",method:"post",data:t})}function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/transport/addperson",method:"post",data:t})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/transport/putperson",method:"post",data:t})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/transport/delperson?id="+t,method:"post"})}},A3Fo:function(t,e,r){},CC1o:function(t,e,r){"use strict";r.d(e,"c",function(){return i}),r.d(e,"a",function(){return o}),r.d(e,"d",function(){return c}),r.d(e,"b",function(){return s});var a=r("t3Un"),n=r("X4fA");function i(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/transport/certList",method:"post",data:t})}function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/transport/addcert",method:"post",data:t})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/transport/putcert",method:"post",data:t})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/transport/delcert?id="+t,method:"post"})}},Mcbo:function(t,e,r){"use strict";var a=r("pEXj");r.n(a).a},Na1v:function(t,e,r){"use strict";r.d(e,"c",function(){return i}),r.d(e,"e",function(){return o}),r.d(e,"h",function(){return c}),r.d(e,"y",function(){return s}),r.d(e,"j",function(){return l}),r.d(e,"x",function(){return u}),r.d(e,"f",function(){return d}),r.d(e,"t",function(){return p}),r.d(e,"k",function(){return h}),r.d(e,"d",function(){return m}),r.d(e,"q",function(){return f}),r.d(e,"l",function(){return b}),r.d(e,"g",function(){return v}),r.d(e,"a",function(){return g}),r.d(e,"o",function(){return _}),r.d(e,"i",function(){return j}),r.d(e,"r",function(){return y}),r.d(e,"n",function(){return O}),r.d(e,"w",function(){return x}),r.d(e,"u",function(){return z}),r.d(e,"v",function(){return C}),r.d(e,"s",function(){return P}),r.d(e,"p",function(){return w}),r.d(e,"m",function(){return A}),r.d(e,"b",function(){return k}),r.d(e,"z",function(){return F});var a=r("X4fA"),n=r("t3Un");function i(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/getApply",method:"get",params:t||{}})}function o(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/getConfirm",method:"get",params:t||{}})}function c(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/addApply",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/putApply",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/delApply",method:"post",data:t})}function u(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/submitApply",method:"post",data:t})}function d(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/confirmProduct",method:"post",data:t})}function p(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/rejectProduct",method:"post",data:t})}function h(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/exportRFID",method:"post",data:t})}function m(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/batchBarCode",method:"post",data:t})}function f(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/printBarCode",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/replenishBox?code="+t,method:"get"})}function v(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/contractUnitList",method:"post",data:t})}function g(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/addContractUnit",method:"post",data:t})}function _(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/contractUnit",method:"post",data:t})}function j(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/delContractUnit",method:"post",params:t})}function y(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/zplPrint",method:"post",data:t})}function O(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxPrint",method:"post",data:t})}function x(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/replenishInnerPrint",method:"post",data:t})}function z(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxBatch",method:"post",data:t})}function C(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxBatchPrint",method:"post",data:t})}function P(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/produce",method:"post",data:t})}function w(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/getControlParams",method:"get",params:t||{}})}function A(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/getOwnSelectType?type="+t,method:"get"})}function k(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/addControlParams",method:"post",data:t})}function F(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/contract/updateControlParams",method:"post",data:t})}},SWCH:function(t,e,r){},WHHl:function(t,e,r){"use strict";r.r(e);var a=r("14Xm"),n=r.n(a),i=r("gDS+"),o=r.n(i),c=r("D3Ub"),s=r.n(c),l=r("k57G"),u=r("hjPX"),d=r("mt9p"),p=r("CC1o"),h=r("Na1v"),m=r("X4fA"),f=(r("/sDw"),{name:"CarrierLicense",data:function(){return{title:"",tableKey:"",recordTotal:0,currentPage:1,pageSize:10,isMod:!1,transportPerson:[],fileList:[],transportProduct:[],actionUrlPrefixx:"http://39.104.85.193:4105",headers:{Authorization:Object(m.a)()},dataForm:{id:0,code:"",contractcode:"",receivercompanyname:"",receiveraddress:"",receiverprincipalname:"",receiverprincipalphone:"",carnumber:"",processtime:"",transportPerson:[],transportProduct:[],file:[]},ruleForm:{},typeList:[{id:1,name:"出口"},{id:2,name:"购买"},{id:3,name:"本单位运输"}],contractList:[],carrierLicenseVisible:!1}},components:{driverSelectForm:d.default,addProduct:u.default},created:function(){this.getConfirmList()},methods:{showCarrierLicense:function(t,e){this.title=t,this.carrierLicenseVisible=!0,"新增"===this.title?(this.isMod=!1,this.dataForm={id:0,code:"",contractcode:"",receivercompanyname:"",receiveraddress:"",receiverprincipalname:"",receiverprincipalphone:"",carnumber:"",processtime:"",transportPerson:[],transportProduct:[],file:[]},this.transportPerson=[],this.transportProduct=[]):(this.isMod=!0,this.dataForm=e,this.transportPerson=e.transportPerson,this.transportProduct=e.transportProduct)},submitCarrier:function(){var t=this;return s()(n.a.mark(function e(){var r,a,i,c,s,l;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(a in t.dataForm.transportPerson=o()(t.transportPerson),t.dataForm.transportProduct=o()(t.transportProduct),r=new FormData,0===t.$refs.upload.files.length&&(t.dataForm.imgids=[]),t.dataForm)void 0!=t.dataForm[a]&&""!=t.dataForm[a].toString()&&r.append(a,t.dataForm[a]);if((i=t.$refs.upload.files)&&i.length>0)for(c=0;c<i.length;c++)r.append("file",i[c]);if(0!==t.$refs.upload.files.length&&(t.$refs.upload.value=[]),"新增"!==t.title){e.next=15;break}return e.next=11,Object(p.a)(r);case 11:"200"===(s=e.sent).data.code?(t.carrierLicenseVisible=!1,t.$emit("getinfo"),t.$notify({title:"成功",duration:2e3,type:"success",message:"新增运输证成功"})):t.$message({message:s.data.message,type:"success"}),e.next=19;break;case 15:return e.next=17,Object(p.d)(r);case 17:"200"===(l=e.sent).data.code?(t.carrierLicenseVisible=!1,t.$emit("getinfo"),t.$notify({title:"成功",duration:2e3,type:"success",message:"修改运输证成功"})):t.$message({message:l.data.message,type:"success"});case 19:case"end":return e.stop()}},e,t)}))()},downloadFile:function(t){window.open(Object(l.a)()+t,"_blank")},addDriver:function(){this.$refs.driverSelectForm.selectDriver()},achieveDriver:function(t){var e=!1;this.transportPerson.length>0&&this.transportPerson.forEach(function(r){r.personid===t.id&&(e=!0)}),e||this.transportPerson.push({personid:t.id,type:t.type,personname:t.name,personidentify:t.identify,number:t.certificate,validtime:t.validtime,phone:t.phone})},deleteDriver:function(t){this.transportPerson.splice(t,1)},addProduct:function(){this.$refs.product.selectProduct()},achieveProduct:function(t){this.transportProduct.length>0&&this.transportProduct.forEach(function(e){for(var r=0;r<t.length;r++)t[r].directionCode===e.productcode&&t.splice(r,1)});for(var e=0;e<t.length;e++)this.transportProduct.push({productcode:t[e].directionCode,type:t[e].type,name:t[e].name,level:t[e].level,packing:t[e].packing,specification:t[e].specification,productnum:t[e].boxNumber,num:null})},deleteProduct:function(t){this.transportProduct.splice(t,1)},beforeUpload:function(t){var e=t.name.substring(t.name.lastIndexOf(".")+1);if(-1===["xls","xlsx"].indexOf(e))return this.$message.warning("上传文件只能是 xls、xlsx格式","error"),!1},clearProduct:function(){this.transportProduct=[]},handleRemove:function(t,e){if(t&&"success"===t.status)return this.transportProduct=[],this.$confirm("已清空产品信息")},handlePreview:function(t){},handleExceed:function(t,e){this.$message.warning("当前限制选择 1个文件,本次选择了 "+t.length+" 个文件")},beforeRemove:function(t,e){if(t&&"success"===t.status)return this.$confirm("确定移除 "+t.name+",并清空产品信息吗?")},handleSuccess:function(t,e,r){if("200"==t.code){var a=t.result;if(null!=a&&a.length>0)for(var n=0;n<a.length;n++)this.transportProduct.push({productcode:a[n].directionCode,type:a[n].type,name:a[n].name,level:a[n].level,packing:a[n].packing,specification:a[n].specification,productnum:a[n].boxNumber,num:a[n].num});this.$notify({title:"成功",duration:2e3,message:"上传成功",type:"success"}),this.fileList=[]}else this.$message.warning(t.message),this.fileList=[]},handleError:function(t,e,r){this.fileList=[]},getConfirmList:function(){var t=this;return s()(n.a.mark(function e(){var r,a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r={}).pageIndex=1,r.pageSize=1e3,e.next=5,Object(h.e)();case 5:a=e.sent,t.contractList=a.data.result.result;case 7:case"end":return e.stop()}},e,t)}))()},showPic:function(t){window.open(t,"_blank")}}}),b=(r("lEeK"),r("KHd+")),v=Object(b.a)(f,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{visible:t.carrierLicenseVisible,"append-to-body":"",title:t.title,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){t.carrierLicenseVisible=e}}},[r("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.ruleForm,"label-position":"right","label-width":"150px","element-loading-text":"保存中..."}},[r("div",{staticClass:"enterpriseBasicInformation_title"},[r("span",[t._v("基本信息(带*为必填项)")])]),t._v(" "),r("el-divider"),t._v(" "),r("div",[r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"运输证编号:"}},[r("el-input",{staticClass:"carrierLicense_select",attrs:{disabled:t.isMod},model:{value:t.dataForm.code,callback:function(e){t.$set(t.dataForm,"code","string"==typeof e?e.trim():e)},expression:"dataForm.code"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"收货人:单位名称:"}},[r("el-input",{staticClass:"carrierLicense_select",model:{value:t.dataForm.receivercompanyname,callback:function(e){t.$set(t.dataForm,"receivercompanyname","string"==typeof e?e.trim():e)},expression:"dataForm.receivercompanyname"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"收货人:地址:"}},[r("el-input",{staticClass:"carrierLicense_select",model:{value:t.dataForm.receiveraddress,callback:function(e){t.$set(t.dataForm,"receiveraddress","string"==typeof e?e.trim():e)},expression:"dataForm.receiveraddress"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"收货人:负责人姓名:"}},[r("el-input",{staticClass:"carrierLicense_select",model:{value:t.dataForm.receiverprincipalname,callback:function(e){t.$set(t.dataForm,"receiverprincipalname","string"==typeof e?e.trim():e)},expression:"dataForm.receiverprincipalname"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"收货人:负责人电话:"}},[r("el-input",{staticClass:"carrierLicense_select",model:{value:t.dataForm.receiverprincipalphone,callback:function(e){t.$set(t.dataForm,"receiverprincipalphone","string"==typeof e?e.trim():e)},expression:"dataForm.receiverprincipalphone"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"运输车辆牌号:"}},[r("el-input",{staticClass:"carrierLicense_select",model:{value:t.dataForm.carnumber,callback:function(e){t.$set(t.dataForm,"carnumber","string"==typeof e?e.trim():e)},expression:"dataForm.carnumber"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"预计送达时间:",prop:"specification"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",placeholder:"选择日期时间"},model:{value:t.dataForm.processtime,callback:function(e){t.$set(t.dataForm,"processtime",e)},expression:"dataForm.processtime"}})],1)],1)],1)],1),t._v(" "),r("div",{staticClass:"enterpriseBasicInformation_title"},[r("span",[t._v("驾驶员/押运员信息(带*为必填项)")])]),t._v(" "),r("el-divider"),t._v(" "),r("div",[r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"驾驶员/押运员:",prop:"成立时间"}},[r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.addDriver("新增","")}}},[t._v("添加")])],1)],1)],1),t._v(" "),r("div",{staticClass:"table_content"},[r("el-table",{key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.transportPerson,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),t._v(" "),r("el-table-column",{attrs:{label:"类型",prop:"type",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"姓名",prop:"personname",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"身份证号",prop:"personidentify",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"资格证号",prop:"number",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"资格证号有效期",prop:"validtime",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"联系电话",prop:"phone",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){t.deleteDriver(e.$index)}}},[t._v("删除")])]}}])})],1)],1)],1),t._v(" "),r("div",{staticClass:"enterpriseBasicInformation_title"},[r("span",[t._v("物品信息(带*为必填项)")])]),t._v(" "),r("el-divider"),t._v(" "),r("div",[r("el-row",[r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"添加物品:"}},[r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.addProduct("新增","")}}},[t._v("添加产品")])],1)],1),t._v(" "),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"上传产品:"}},[r("el-upload",{staticClass:"upload",attrs:{action:t.actionUrlPrefixx+"/transport/product2json",headers:t.headers,"on-preview":t.handlePreview,"on-remove":t.handleRemove,"before-remove":t.beforeRemove,limit:1,"before-upload":t.beforeUpload,"on-exceed":t.handleExceed,"on-success":t.handleSuccess,"on-error":t.handleError,"show-file-list":!1,"file-list":t.fileList}},[r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary"}},[t._v("上传产品")])],1)],1)],1),t._v(" "),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"清空产品:"}},[r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.clearProduct()}}},[t._v("清空产品")])],1)],1)],1),t._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"注意事项:"}},[r("span",{staticClass:"tip-important",staticStyle:{"margin-left":"10px"},attrs:{"data-role":"time-label"}},[t._v("需要上传请先上传产品!")])])],1),t._v(" "),r("div",{staticClass:"table_content"},[r("el-table",{key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.transportProduct,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),t._v(" "),r("el-table-column",{attrs:{label:"类别",prop:"type",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"名称",prop:"name",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"级别",prop:"level",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"包装方式",prop:"packing",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"规格",prop:"specification",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"箱含量",prop:"productnum",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"运输数量",prop:"num",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{model:{value:e.row.num,callback:function(r){t.$set(e.row,"num",r)},expression:"scope.row.num"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){t.deleteProduct(e.$index)}}},[t._v("删除")])]}}])})],1)],1)],1),t._v(" "),r("div",{staticClass:"enterpriseBasicInformation_title"},[r("span",[t._v("文件")])]),t._v(" "),r("el-divider"),t._v(" "),r("div",[r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"文件:"}},[r("input",{ref:"upload",attrs:{id:"upload",type:"file",multiple:""}})])],1)],1),t._v(" "),t._l(t.dataForm.transportFile,function(e){return r("div",[r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"文件名:"}},[r("a",{staticStyle:{height:"36px","text-decoration":"underline",color:"blue","padding-left":"10px"},on:{click:function(r){t.downloadFile(e.url)}}},[t._v(t._s(e.filename))])])],1)],1)],1)})],2)],1),t._v(" "),r("div",{staticStyle:{"margin-top":"20px"},attrs:{align:"right"}},[r("el-button",{on:{click:function(e){t.carrierLicenseVisible=!1}}},[t._v("取消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitCarrier()}}},[t._v("确认")])],1),t._v(" "),r("driverSelectForm",{ref:"driverSelectForm",on:{getinfo:t.achieveDriver}}),t._v(" "),r("addProduct",{ref:"product",on:{giveProduct:t.achieveProduct}})],1)},[],!1,null,"0d94f3b2",null);v.options.__file="carrierLicense.vue";e.default=v.exports},ZjCf:function(t,e,r){"use strict";var a=r("A3Fo");r.n(a).a},hjPX:function(t,e,r){"use strict";r.r(e);var a=r("14Xm"),n=r.n(a),i=r("D3Ub"),o=r.n(i),c=r("7Qib"),s=r("xMja"),l={name:"addProduct",data:function(){return{name:"",code:"",type:"",tableKey:0,listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,searchContent:"",passList:[],productList:[],productFormVisible:!1}},created:function(){this.getProductData()},methods:{selectProduct:function(){this.productFormVisible=!0},getProductData:function(){var t=this;return o()(n.a.mark(function e(){var r,a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,(r={}).pageIndex=t.currentPage,r.pageSize=t.pageSize,e.next=6,Object(s.o)(r,t.name,t.code,t.type);case 6:"200"===(a=e.sent).data.code&&(t.recordTotal=a.data.result.totalCount,t.pageSize=a.data.result.pageSize,t.pageTotal=Object(c.a)(a.data.result.total,a.data.result.size),t.currentPage=a.data.result.pageIndex,t.productList=a.data.result.result),t.listLoading=!1;case 9:case"end":return e.stop()}},e,t)}))()},giveProduct:function(){this.$emit("giveProduct",this.passList),this.productFormVisible=!1},searchData:function(){this.getProductData()},handleSizeChange:function(t){this.pageSize=t,this.currentPage=1,this.getProductData()},handleCurrentChange:function(t){this.currentPage=t,this.getProductData()},handleSelectionChange:function(t){this.passList=t},getRowKey:function(t){return t.id}}},u=(r("Mcbo"),r("KHd+")),d=Object(u.a)(l,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{visible:t.productFormVisible,"append-to-body":"","close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){t.productFormVisible=e}}},[r("div",{staticClass:"app-container"},[r("div",{staticClass:"filter-container"},[r("div",{staticStyle:{display:"block","padding-top":"10px"}},[r("div",{staticClass:"carrier_search"},[r("span",[t._v("产品名称:")]),t._v(" "),r("el-input",{staticClass:"product_input",model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),t._v(" "),r("div",{staticClass:"carrier_search"},[r("span",[t._v("流向码:")]),t._v(" "),r("el-input",{staticClass:"product_input",model:{value:t.code,callback:function(e){t.code=e},expression:"code"}})],1),t._v(" "),r("div",{staticClass:"carrier_search"},[r("span",[t._v("类别:")]),t._v(" "),r("el-input",{staticClass:"product_input",model:{value:t.type,callback:function(e){t.type=e},expression:"type"}})],1),t._v(" "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.searchData()}}},[t._v("查询")])],1)]),t._v(" "),r("div",{staticClass:"table_content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.productList,border:"",fit:"","row-key":t.getRowKey,"highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[r("el-table-column",{attrs:{"reserve-selection":!0,type:"selection",width:"55"}}),t._v(" "),r("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),t._v(" "),r("el-table-column",{attrs:{label:"类别",prop:"type",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"名称",prop:"name",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"级别",prop:"level",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"包装方式",prop:"packing",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"规格",prop:"specification",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"数量",prop:"boxNumber",align:"center"}})],1),t._v(" "),r("br"),t._v(" "),r("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":t.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}),t._v(" "),r("br")],1),t._v(" "),r("div",{staticStyle:{"margin-top":"40px"},attrs:{align:"right"}},[r("el-button",{on:{click:function(e){t.productFormVisible=!1}}},[t._v("取消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.giveProduct()}}},[t._v("选择")])],1)])])},[],!1,null,"f85c3af6",null);d.options.__file="addProduct.vue";e.default=d.exports},k57G:function(t,e,r){"use strict";function a(){return"http://39.104.85.193:4105/upload/"}r.d(e,"a",function(){return a})},lEeK:function(t,e,r){"use strict";var a=r("SWCH");r.n(a).a},mt9p:function(t,e,r){"use strict";r.r(e);var a=r("14Xm"),n=r.n(a),i=r("D3Ub"),o=r.n(i),c=r("7Qib"),s=r("2iYP"),l={name:"carrier",data:function(){return{tableKey:0,listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,listQuery:{filter:{name:"",belongname:""},pageIndex:1,pageSize:10},searchContent:"",carrierList:[],driverSelectFormVisible:!1}},created:function(){this.getDriverData()},methods:{selectDriver:function(){this.driverSelectFormVisible=!0},getDriverData:function(){var t=this;return o()(n.a.mark(function e(){var r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(s.c)(t.listQuery);case 3:"200"===(r=e.sent).data.code&&(t.recordTotal=r.data.result.total,t.pageSize=r.data.result.size,t.pageTotal=Object(c.a)(r.data.result.total,r.data.result.size),t.currentPage=r.data.result.current,t.carrierList=r.data.result.records),t.listLoading=!1;case 6:case"end":return e.stop()}},e,t)}))()},giveDriver:function(t){this.$emit("getinfo",t),this.driverSelectFormVisible=!1},searchData:function(){this.getDriverData()},handleSizeChange:function(t){this.pageSize=t,this.currentPage=1,this.getDriverData()},handleCurrentChange:function(t){this.currentPage=t,this.getDriverData()}}},u=(r("ZjCf"),r("KHd+")),d=Object(u.a)(l,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{visible:t.driverSelectFormVisible,"append-to-body":"","close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){t.driverSelectFormVisible=e}}},[r("div",{staticClass:"app-container"},[r("div",{staticClass:"filter-container"},[r("div",{staticClass:"carrier_search"},[r("span",[t._v("按隶属承运人查:")]),t._v(" "),r("el-input",{staticClass:"carrier_search_input",model:{value:t.listQuery.filter.companyname,callback:function(e){t.$set(t.listQuery.filter,"companyname",e)},expression:"listQuery.filter.companyname"}})],1),t._v(" "),r("div",{staticClass:"carrier_search"},[r("span",[t._v("按姓名查:")]),t._v(" "),r("el-input",{staticClass:"carrier_search_input",model:{value:t.listQuery.filter.name,callback:function(e){t.$set(t.listQuery.filter,"name",e)},expression:"listQuery.filter.name"}})],1),t._v(" "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.searchData()}}},[t._v("查询")])],1),t._v(" "),r("div",{staticClass:"table_content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.carrierList,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),t._v(" "),r("el-table-column",{attrs:{label:"单位名称",prop:"belongname",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"类型",prop:"type",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"姓名",prop:"name",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"身份证",prop:"identify",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"资格证",prop:"certificate",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"证件有效期",prop:"validtime",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){t.giveDriver(e.row)}}},[t._v("选择")])]}}])})],1),t._v(" "),r("br"),t._v(" "),r("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":t.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}),t._v(" "),r("br")],1)])])},[],!1,null,"76888d0f",null);d.options.__file="driverSelectForm.vue";e.default=d.exports},pEXj:function(t,e,r){},xMja:function(t,e,r){"use strict";r.d(e,"n",function(){return i}),r.d(e,"c",function(){return o}),r.d(e,"b",function(){return c}),r.d(e,"q",function(){return s}),r.d(e,"d",function(){return l}),r.d(e,"g",function(){return u}),r.d(e,"p",function(){return d}),r.d(e,"k",function(){return p}),r.d(e,"j",function(){return h}),r.d(e,"a",function(){return m}),r.d(e,"r",function(){return f}),r.d(e,"e",function(){return b}),r.d(e,"f",function(){return v}),r.d(e,"m",function(){return g}),r.d(e,"h",function(){return _}),r.d(e,"o",function(){return j}),r.d(e,"i",function(){return y}),r.d(e,"l",function(){return O});var a=r("X4fA"),n=r("t3Un");function i(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/info",method:"get",params:t||{}})}function o(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/add",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/addNew",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/update",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/delete",method:"post",data:t})}function u(){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/enterprise/manufacturerTree",method:"get"})}function d(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/setThreshold",method:"post",data:t})}function p(){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/getThreshold",method:"get"})}function h(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/categorise?name="+t,method:"get"})}function m(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/addCategory",method:"post",data:t})}function f(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/editCategory",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/delCategory",method:"post",data:t})}function v(){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/majorTree",method:"get"})}function g(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/secondaryTree?major="+t,method:"get"})}function _(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/permitLevelTree?secondary="+t,method:"get"})}function j(t,e,r,i){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/info?name="+e+"&code="+r+"&type="+i,method:"get",params:t||{}})}function y(t){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/get?directionCode="+t,method:"get"})}function O(t,e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://39.104.85.193:4105/product/gets?directionCode="+t+"&endCode="+e,method:"get"})}}}]);