You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3 lines
31 KiB
3 lines
31 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["eorder"],{"1da1":function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("d3b7");function a(e,t,r,a,n,o,i){try{var l=e[o](i),s=l.value}catch(u){return void r(u)}l.done?t(s):Promise.resolve(s).then(a,n)}function n(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){a(i,n,o,l,s,"next",e)}function s(e){a(i,n,o,l,s,"throw",e)}l(void 0)}))}}},"2a66":function(e,t,r){"use strict";r.d(t,"e",(function(){return o})),r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return l})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return u}));var a=r("b775"),n={list:"/setting.express/list",all:"/setting.express/all",add:"/setting.express/add",edit:"/setting.express/edit",delete:"/setting.express/delete"};function o(e){return Object(a["b"])({url:n.list,method:"get",params:e})}function i(e){return Object(a["b"])({url:n.all,method:"get",params:e})}function l(e){return Object(a["b"])({url:n.add,method:"post",data:e})}function s(e){return Object(a["b"])({url:n.edit,method:"post",data:e})}function u(e){return Object(a["b"])({url:n.delete,method:"post",data:e})}},"2c13":function(e,t,r){},5953:function(e,t,r){"use strict";r("2c13")},"632d":function(e,t,r){"use strict";r.d(t,"f",(function(){return o})),r.d(t,"b",(function(){return i})),r.d(t,"d",(function(){return l})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return u})),r.d(t,"c",(function(){return c}));var a=r("b775"),n={list:"/eorder.template/list",all:"/eorder.template/all",detail:"/eorder.template/detail",add:"/eorder.template/add",edit:"/eorder.template/edit",delete:"/eorder.template/delete"};function o(e){return Object(a["b"])({url:n.list,method:"get",params:e})}function i(e){return Object(a["b"])({url:n.all,method:"get",params:e})}function l(e,t){return Object(a["b"])({url:n.detail,method:"get",params:{templateId:e,params:t}})}function s(e){return Object(a["b"])({url:n.add,method:"post",data:e})}function u(e){return Object(a["b"])({url:n.edit,method:"post",data:e})}function c(e){return Object(a["b"])({url:n.delete,method:"post",data:e})}},6537:function(e,t,r){},"691a":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[t("a-form-item",{attrs:{label:"模板名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}],attrs:{placeholder:"请输入模板名称"}})],1),t("a-form-item",{attrs:{label:"API网关",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["provider",{initialValue:"kdniao",rules:[{required:!0}]}],expression:"['provider', { initialValue: 'kdniao', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"kdniao"}},[e._v("快递鸟")]),t("a-radio",{attrs:{value:"kd100"}},[e._v("快递100")])],1)],1),t("a-form-item",{attrs:{label:"物流公司",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_id",{rules:[{required:!0,message:"请选择物流公司"}]}],expression:"['express_id', { rules: [{ required: true, message: '请选择物流公司' }] }]"}],attrs:{placeholder:"请选择物流公司"}},e._l(e.expressList,(function(r,a){return t("a-select-option",{key:a,attrs:{value:r.express_id}},[e._v(e._s(r.express_name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/setting/delivery/express/index"}}},[e._v("物流公司管理")])],1)],1),t("a-form-item",{attrs:{label:"电子面单客户号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.customerName",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['config.customerName', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}],attrs:{placeholder:"需快递线下(网点)申请"}})],1),t("a-form-item",{attrs:{label:"电子面单密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.customerPwd"],expression:"['config.customerPwd']"}],attrs:{placeholder:"需快递线下(网点)申请"}})],1),t("a-form-item",{attrs:{label:"月结编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.monthCode"],expression:"['config.monthCode']"}]})],1),t("a-form-item",{attrs:{label:"网点名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.stationName"],expression:"['config.stationName']"}]})],1),t("a-form-item",{attrs:{label:"网点编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.sendSite"],expression:"['config.sendSite']"}]})],1),t("a-form-item",{attrs:{label:"邮费支付方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.payType",{initialValue:"SHIPPER",rules:[{required:!0}]}],expression:"['config.payType', { initialValue: 'SHIPPER', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"SHIPPER"}},[e._v("现付")]),t("a-radio",{attrs:{value:"CONSIGNEE"}},[e._v("到付")]),t("a-radio",{attrs:{value:"MONTHLY"}},[e._v("月结")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入排序值"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入排序值' }] }]"}],attrs:{min:0}})],1),t("a-form-item",{staticClass:"mt-20",attrs:{wrapperCol:{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},n=[],o=r("c7eb"),i=r("1da1"),l=(r("d3b7"),r("2ef0")),s=r("632d"),u=r("2a66"),c=r("ca00"),d={data:function(){return{isLoading:!1,isBtnLoading:!1,labelCol:{span:3},wrapperCol:{span:10},form:this.$form.createForm(this),templateId:null,record:{},expressList:[]}},created:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,e.templateId=e.$route.query.templateId,t.next=4,e.getDetail();case 4:return t.next=6,e.getExpressList();case 6:e.setFieldsValue(),e.isLoading=!1;case 8:case"end":return t.stop()}}),t)})))()},methods:{getDetail:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,s["d"](e.templateId).then((function(t){return e.record=t.data.detail}));case 3:case"end":return t.stop()}}),t)})))()},getExpressList:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,u["b"]().then((function(t){return e.expressList=t.data.list}));case 3:case"end":return t.stop()}}),t)})))()},setFieldsValue:function(){var e=this.record,t=this.form,r=this.$nextTick;!Object(c["f"])(t.getFieldsValue())&&r((function(){t.setFieldsValue(Object(l["pick"])(e,["name","provider","express_id","config","sort"]))}))},handleSubmit:function(e){e.preventDefault();var t=this.form.validateFields,r=this.onFormSubmit;t((function(e,t){!e&&r(t)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["e"]({templateId:this.templateId,form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){return t.$router.push("./index")}),1500)})).catch((function(){return t.isBtnLoading=!1})).finally((function(){return t.isLoading=!1}))}}},p=d,f=(r("c9ec"),r("2877")),m=Object(f["a"])(p,a,n,!1,null,"79faf411",null);t["default"]=m.exports},"6a9d":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v("电子面单设置")]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[t("a-form-item",{attrs:{label:"是否开启电子面单",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["enable",{initialValue:1,rules:[{required:!0}]}],expression:"['enable', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-form-item",{attrs:{label:"API 服务网关",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["provider",{initialValue:"kdniao",rules:[{required:!0}]}],expression:"['provider', { initialValue: 'kdniao', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"kdniao"}},[e._v("快递鸟")]),t("a-radio",{attrs:{value:"kd100"}},[e._v("快递100")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"kd100"===e.form.getFieldValue("provider"),expression:"form.getFieldValue('provider') === 'kd100'"}]},[t("a-form-item",{attrs:{label:"授权 KEY",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["providerConfig.kd100.key"],expression:"['providerConfig.kd100.key']"}]}),t("div",{staticClass:"form-item-help"},[t("small",[e._v("快递100官网提供,登录快递100")]),t("a",{attrs:{href:"https://api.kuaidi100.com/manager/page/myinfo/enterprise",target:"_blank"}},[e._v("企业信息")]),t("small",[e._v("获取")])])],1),t("a-form-item",{attrs:{label:"Secret",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["providerConfig.kd100.secret"],expression:"['providerConfig.kd100.secret']"}]}),t("div",{staticClass:"form-item-help"},[t("small",[e._v("快递100官网提供,登录快递100")]),t("a",{attrs:{href:"https://api.kuaidi100.com/manager/page/myinfo/enterprise",target:"_blank"}},[e._v("企业信息")]),t("small",[e._v("获取")])])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"kdniao"===e.form.getFieldValue("provider"),expression:"form.getFieldValue('provider') === 'kdniao'"}]},[t("a-form-item",{attrs:{label:"用户ID",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["providerConfig.kdniao.eBusinessID"],expression:"['providerConfig.kdniao.eBusinessID']"}]}),t("div",{staticClass:"form-item-help"},[t("small",[e._v("快递鸟官网提供,登录快递鸟")]),t("a",{attrs:{href:"https://www.kdniao.com/UserCenter/v4/UserHome.aspx",target:"_blank"}},[e._v("会员中心")]),t("small",[e._v("获取")])])],1),t("a-form-item",{attrs:{label:"API KEY",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["providerConfig.kdniao.apiKey"],expression:"['providerConfig.kdniao.apiKey']"}]}),t("div",{staticClass:"form-item-help"},[t("small",[e._v("快递鸟官网提供,登录快递鸟")]),t("a",{attrs:{href:"https://www.kdniao.com/UserCenter/v4/UserHome.aspx",target:"_blank"}},[e._v("会员中心")]),t("small",[e._v("获取")])])],1)],1),t("a-form-item",{attrs:{wrapperCol:{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],1)],1)],1)},n=[],o=r("c7eb"),i=r("1da1"),l=(r("d3b7"),r("88bc")),s=r.n(l),u=r("5530"),c=r("b775"),d={detail:"/eorder.setting/detail",update:"/eorder.setting/update"};function p(e){return Object(c["b"])({url:d.detail,method:"get",params:{key:e}})}function f(e,t){return Object(c["b"])({url:d.update,method:"post",data:Object(u["a"])({key:e},t)})}var m=r("ca00"),v={data:function(){return{key:"basic",labelCol:{span:4},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getDetail();case 2:e.setFieldsValue();case 3:case"end":return t.stop()}}),t)})))()},methods:{getDetail:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.abrupt("return",p(e.key).then((function(t){e.record=t.data.detail})).finally((function(){return e.isLoading=!1})));case 2:case"end":return t.stop()}}),t)})))()},setFieldsValue:function(){var e=this.record,t=this.$nextTick,r=this.form;!Object(m["f"])(r.getFieldsValue())&&t((function(){r.setFieldsValue(s()(e,["enable","provider","providerConfig"]))}))},handleSubmit:function(e){var t=this;e.preventDefault();var r=this.form.validateFields;r((function(e,r){!e&&t.onFormSubmit(r)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,f(this.key,{form:e}).then((function(e){return t.$message.success(e.message,1.5)})).finally((function(){return t.isLoading=!1}))}}},h=v,b=(r("d7fd"),r("2877")),g=Object(b["a"])(h,a,n,!1,null,"093b7666",null);t["default"]=g.exports},"84ea":function(e,t,r){"use strict";r.r(t);r("ac1f"),r("841c");var a=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v("电子面单模板")]),t("div",{staticClass:"table-operator"},[t("a-row",[t("a-col",{attrs:{span:6}},[e.$auth("/apps/eorder/template/create")?t("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]):e._e()],1),t("a-col",{attrs:{span:8,offset:10}},[t("a-input-search",{staticStyle:{"max-width":"300px","min-width":"150px",float:"right"},attrs:{placeholder:"请输入模板名称"},on:{search:e.onSearch},model:{value:e.queryParam.search,callback:function(t){e.$set(e.queryParam,"search",t)},expression:"queryParam.search"}})],1)],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"template_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pagination:e.pagination},scopedSlots:e._u([{key:"provider",fn:function(r){return t("span",{},[t("a-tag",[e._v(e._s(e.ProviderEnum[r]))])],1)}},{key:"express",fn:function(r){return t("span",{},[t("a-tag",[e._v(e._s(r.express_name))])],1)}},{key:"action",fn:function(r,a){return t("span",{staticClass:"actions"},[e.$auth("/apps/eorder/template/update")?t("a",{on:{click:function(t){return e.handleEdit(a)}}},[e._v("编辑")]):e._e(),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")])])}}])})],1)},n=[],o=r("5530"),i=(r("d3b7"),r("632d")),l=r("2af9"),s={kd100:"快递100",kdniao:"快递鸟"},u={name:"Index",components:{STable:l["d"]},data:function(){var e=this;return{queryParam:{},isLoading:!1,ProviderEnum:s,columns:[{title:"模板ID",dataIndex:"template_id"},{title:"模板名称",dataIndex:"name"},{title:"API网关",dataIndex:"provider",scopedSlots:{customRender:"provider"}},{title:"物流公司",dataIndex:"express",scopedSlots:{customRender:"express"}},{title:"排序",dataIndex:"sort"},{title:"添加时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],loadData:function(t){return i["f"](Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){},methods:{handleAdd:function(){this.$router.push("./create")},handleEdit:function(e){this.$router.push({path:"./update",query:{templateId:e.template_id}})},handleDelete:function(e){var t=this,r=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return i["c"]({templateId:e["template_id"]}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){return r.destroy()}))}})},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)},onSearch:function(){this.handleRefresh(!0)}}},c=u,d=r("2877"),p=Object(d["a"])(c,a,n,!1,null,null,null);t["default"]=p.exports},"88bc":function(e,t,r){(function(t){var r=1/0,a=9007199254740991,n="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",l="[object Symbol]",s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")();function d(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function p(e,t){var r=-1,a=e?e.length:0,n=Array(a);while(++r<a)n[r]=t(e[r],r,e);return n}function f(e,t){var r=-1,a=t.length,n=e.length;while(++r<a)e[n+r]=t[r];return e}var m=Object.prototype,v=m.hasOwnProperty,h=m.toString,b=c.Symbol,g=m.propertyIsEnumerable,w=b?b.isConcatSpreadable:void 0,y=Math.max;function C(e,t,r,a,n){var o=-1,i=e.length;r||(r=j),n||(n=[]);while(++o<i){var l=e[o];t>0&&r(l)?t>1?C(l,t-1,r,a,n):f(n,l):a||(n[n.length]=l)}return n}function x(e,t){return e=Object(e),_(e,t,(function(t,r){return r in e}))}function _(e,t,r){var a=-1,n=t.length,o={};while(++a<n){var i=t[a],l=e[i];r(l,i)&&(o[i]=l)}return o}function k(e,t){return t=y(void 0===t?e.length-1:t,0),function(){var r=arguments,a=-1,n=y(r.length-t,0),o=Array(n);while(++a<n)o[a]=r[t+a];a=-1;var i=Array(t+1);while(++a<t)i[a]=r[a];return i[t]=o,d(e,this,i)}}function j(e){return N(e)||L(e)||!!(w&&e&&e[w])}function O(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}function L(e){return S(e)&&v.call(e,"callee")&&(!g.call(e,"callee")||h.call(e)==n)}var N=Array.isArray;function E(e){return null!=e&&P(e.length)&&!I(e)}function S(e){return F(e)&&E(e)}function I(e){var t=q(e)?h.call(e):"";return t==o||t==i}function P(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function F(e){return!!e&&"object"==typeof e}function V(e){return"symbol"==typeof e||F(e)&&h.call(e)==l}var $=k((function(e,t){return null==e?{}:x(e,p(C(t,1),O))}));e.exports=$}).call(this,r("c8ba"))},a3dc:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[t("a-form-item",{attrs:{label:"模板名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}],attrs:{placeholder:"请输入模板名称"}})],1),t("a-form-item",{attrs:{label:"API网关",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["provider",{initialValue:"kdniao",rules:[{required:!0}]}],expression:"['provider', { initialValue: 'kdniao', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"kdniao"}},[e._v("快递鸟")]),t("a-radio",{attrs:{value:"kd100"}},[e._v("快递100")])],1)],1),t("a-form-item",{attrs:{label:"物流公司",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_id",{rules:[{required:!0,message:"请选择物流公司"}]}],expression:"['express_id', { rules: [{ required: true, message: '请选择物流公司' }] }]"}],attrs:{placeholder:"请选择物流公司"}},e._l(e.expressList,(function(r,a){return t("a-select-option",{key:a,attrs:{value:r.express_id}},[e._v(e._s(r.express_name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/setting/delivery/express/index"}}},[e._v("物流公司管理")])],1)],1),t("a-form-item",{attrs:{label:"电子面单客户号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.customerName",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['config.customerName', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}],attrs:{placeholder:"需快递线下(网点)申请"}})],1),t("a-form-item",{attrs:{label:"电子面单密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.customerPwd"],expression:"['config.customerPwd']"}],attrs:{placeholder:"需快递线下(网点)申请"}})],1),t("a-form-item",{attrs:{label:"月结编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.monthCode"],expression:"['config.monthCode']"}]})],1),t("a-form-item",{attrs:{label:"网点名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.stationName"],expression:"['config.stationName']"}]})],1),t("a-form-item",{attrs:{label:"网点编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.sendSite"],expression:"['config.sendSite']"}]})],1),t("a-form-item",{attrs:{label:"邮费支付方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["config.payType",{initialValue:"SHIPPER",rules:[{required:!0}]}],expression:"['config.payType', { initialValue: 'SHIPPER', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"SHIPPER"}},[e._v("现付")]),t("a-radio",{attrs:{value:"CONSIGNEE"}},[e._v("到付")]),t("a-radio",{attrs:{value:"MONTHLY"}},[e._v("月结")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入排序值"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入排序值' }] }]"}],attrs:{min:0}})],1),t("a-form-item",{staticClass:"mt-20",attrs:{wrapperCol:{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},n=[],o=r("c7eb"),i=r("1da1"),l=(r("d3b7"),r("2ef0"),r("632d")),s=r("2a66"),u=(r("ca00"),{data:function(){return{isLoading:!1,isBtnLoading:!1,labelCol:{span:3},wrapperCol:{span:10},form:this.$form.createForm(this),expressList:[]}},created:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getExpressList();case 2:case"end":return t.stop()}}),t)})))()},methods:{getExpressList:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,s["b"]().then((function(t){return e.expressList=t.data.list})).finally((function(){return e.isLoading=!1}));case 3:case"end":return t.stop()}}),t)})))()},handleSubmit:function(e){e.preventDefault();var t=this.form.validateFields,r=this.onFormSubmit;t((function(e,t){!e&&r(t)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,l["a"]({form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){return t.$router.push("./index")}),1500)})).catch((function(){return t.isBtnLoading=!1})).finally((function(){return t.isLoading=!1}))}}}),c=u,d=(r("5953"),r("2877")),p=Object(d["a"])(c,a,n,!1,null,"ef7f3db4",null);t["default"]=p.exports},c7eb:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var a=r("53ca");function n(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
n=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",c=l.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function p(e,t,r,a){var n=t&&t.prototype instanceof w?t:w,o=Object.create(n.prototype),l=new P(a||[]);return i(o,"_invoke",{value:N(e,r,l)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",v="suspendedYield",h="executing",b="completed",g={};function w(){}function y(){}function C(){}var x={};d(x,s,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(q([])));k&&k!==r&&o.call(k,s)&&(x=k);var j=C.prototype=w.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(n,i,l,s){var u=f(e[n],e,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==Object(a["a"])(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,l,s)}),(function(e){r("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return r("throw",e,l,s)}))}s(u.arg)}var n;i(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,n){r(e,a,t,n)}))}return n=n?n.then(o,o):o()}})}function N(t,r,a){var n=m;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=E(l,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===m)throw n=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=h;var u=f(t,r,a);if("normal"===u.type){if(n=a.done?b:v,u.arg===g)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(n=b,a.method="throw",a.arg=u.arg)}}}function E(t,r){var a=r.method,n=t.iterator[a];if(n===e)return r.delegate=null,"throw"===a&&t.iterator["return"]&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function q(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Object(a["a"])(t)+" is not iterable")}return y.prototype=C,i(j,"constructor",{value:C,configurable:!0}),i(C,"constructor",{value:y,configurable:!0}),y.displayName=d(C,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,d(e,c,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},O(L.prototype),d(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var i=new L(p(e,r,a,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(j),d(j,c,"Generator"),d(j,s,(function(){return this})),d(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=q,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(a,n){return l.type="throw",l.arg=t,r.next=a,n&&(r.method="next",r.arg=e),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&o.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var i=n?n.completion:{};return i.type=e,i.arg=t,n?(this.method="next",this.next=n.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;I(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:q(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}},c9ec:function(e,t,r){"use strict";r("d921")},d7fd:function(e,t,r){"use strict";r("6537")},d921:function(e,t,r){}}]); |