1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8d95f6c6"],{"0fae":function(t,e,n){},5334:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Modal",{attrs:{title:"运费模版",width:"70%",if:"isTemplate"},on:{"on-cancel":t.cancel},model:{value:t.isTemplate,callback:function(e){t.isTemplate=e},expression:"isTemplate"}},[n("div",{staticClass:"Modals"},[n("Form",{ref:"formData",staticClass:"form",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition}},[n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{attrs:{xl:18,lg:18,md:18,sm:24,xs:24}},[n("FormItem",{attrs:{label:"模板名称:",prop:"name"}},[n("Input",{attrs:{type:"text",placeholder:"请输入模板名称",maxlength:20},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1)],1)],1),n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{attrs:{xl:18,lg:18,md:18,sm:24,xs:24}},[n("FormItem",{attrs:{label:"计费方式:",props:"state","label-for":"state"}},[n("RadioGroup",{staticClass:"radio",attrs:{"element-id":"state"},on:{"on-change":t.changeRadio},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[n("Radio",{attrs:{label:1}},[t._v("按件数")]),n("Radio",{attrs:{label:2}},[t._v("按重量")]),n("Radio",{attrs:{label:3}},[t._v("按体积")])],1)],1)],1)],1),n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[n("FormItem",{staticClass:"label",attrs:{label:"配送区域及运费:",props:"state","label-for":"state"}},[n("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.templateList,"no-data-text":"暂无数据",border:""},scopedSlots:t._u([{key:"regionName",fn:function(e){e.row;var r=e.index;return[0===r?n("div",[t._v("默认全国 "),n("span",{staticStyle:{"font-weight":"bold"}},[t._v("(开启指定区域不配送时无效)")])]):n("LazyCascader",{staticStyle:{width:"98%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1,size:"mini"},model:{value:t.templateList[r].city_ids,callback:function(e){t.$set(t.templateList[r],"city_ids",e)},expression:"templateList[index].city_ids"}})]}},{key:"action",fn:function(e){var r=e.row,a=e.index;return[0!==a?n("a",{on:{click:function(e){return t.delCity(r,"配送区域",a,1)}}},[t._v("删除")]):t._e()]}}])}),n("Row",{staticClass:"addTop",attrs:{type:"flex"}},[n("Col",[n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.addCity(1)}}},[t._v("单独添加配送区域")])],1)],1)],1)],1)],1),n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[n("FormItem",{attrs:{label:"指定包邮:",prop:"store_name","label-for":"store_name"}},[n("Radio-group",{staticClass:"radio",model:{value:t.formData.appoint_check,callback:function(e){t.$set(t.formData,"appoint_check",e)},expression:"formData.appoint_check"}},[n("Radio",{attrs:{label:1}},[t._v("开启")]),n("Radio",{attrs:{label:0}},[t._v("关闭")])],1),1===t.formData.appoint_check?n("Table",{ref:"table",staticClass:"addTop ivu-mt",attrs:{columns:t.columns2,data:t.appointList,"no-data-text":"暂无数据",border:""},scopedSlots:t._u([{key:"placeName",fn:function(e){e.row;var r=e.index;return[n("LazyCascader",{staticStyle:{width:"98%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1,size:"mini"},model:{value:t.appointList[r].city_ids,callback:function(e){t.$set(t.appointList[r],"city_ids",e)},expression:"appointList[index].city_ids"}})]}},{key:"action",fn:function(e){var r=e.row,a=e.index;return[n("a",{on:{click:function(e){return t.delCity(r,"配送区域",a,2)}}},[t._v("删除")])]}}],null,!1,1551961943)}):t._e(),1===t.formData.appoint_check?n("Row",{staticClass:"addTop",attrs:{type:"flex"}},[n("Col",[n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.addCity(2)}}},[t._v("单独指定包邮")])],1)],1):t._e()],1)],1)],1),n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[n("FormItem",{attrs:{label:"指定不送达:",prop:"store_name","label-for":"store_name"}},[n("Radio-group",{staticClass:"radio",model:{value:t.formData.no_delivery_check,callback:function(e){t.$set(t.formData,"no_delivery_check",e)},expression:"formData.no_delivery_check"}},[n("Radio",{attrs:{label:1}},[t._v("开启")]),n("Radio",{attrs:{label:0}},[t._v("关闭")])],1),1===t.formData.no_delivery_check?n("Table",{ref:"table",staticClass:"addTop ivu-mt",attrs:{columns:t.columns3,data:t.noDeliveryList,"no-data-text":"暂无数据",border:""},scopedSlots:t._u([{key:"placeName",fn:function(e){e.row;var r=e.index;return[n("LazyCascader",{staticStyle:{width:"98%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1,size:"mini"},model:{value:t.noDeliveryList[r].city_ids,callback:function(e){t.$set(t.noDeliveryList[r],"city_ids",e)},expression:"noDeliveryList[index].city_ids"}})]}},{key:"action",fn:function(e){var r=e.row,a=e.index;return[n("a",{on:{click:function(e){return t.delCity(r,"配送区域",a,3)}}},[t._v("删除")])]}}],null,!1,3510670902)}):t._e(),1===t.formData.no_delivery_check?n("Row",{staticClass:"addTop",attrs:{type:"flex"}},[n("Col",[n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.addCity(3)}}},[t._v("单独指定不送达")])],1)],1):t._e()],1)],1)],1),n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{attrs:{xl:18,lg:18,md:18,sm:24,xs:24}},[n("FormItem",{attrs:{label:"排序:",prop:"store_name","label-for":"store_name"}},[n("InputNumber",{attrs:{min:0,placeholder:"输入值越大越靠前"},model:{value:t.formData.sort,callback:function(e){t.$set(t.formData,"sort",e)},expression:"formData.sort"}})],1)],1)],1),n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",[n("FormItem",{attrs:{prop:"store_name","label-for":"store_name"}},[n("Button",{attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v(t._s(t.id?"立即修改":"立即提交"))])],1)],1)],1)],1)],1),n("div",{attrs:{slot:"footer"},slot:"footer"})])],1)},a=[],i=(n("0fae"),n("2f62")),s=n("90e7"),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lazy-cascader",style:{width:t.width}},[t.disabled?n("div",{staticClass:"el-input__inner lazy-cascader-input lazy-cascader-input-disabled"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,r){return n("el-tag",{key:r,staticClass:"lazy-cascader-tag",attrs:{type:"info","disable-transitions":"",closable:""}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1)]):n("el-popover",{ref:"popover",attrs:{trigger:"click",placement:"bottom-start"}},[n("div",{staticClass:"lazy-cascader-search"},[t.filterable?n("el-autocomplete",{staticClass:"inline-input",style:{width:t.searchWidth||"100%"},attrs:{"popper-class":t.suggestionsPopperClass,"prefix-icon":"el-icon-search",label:"name","fetch-suggestions":t.querySearch,"trigger-on-focus":!1,placeholder:"请输入"},on:{select:t.handleSelect,blur:function(e){t.isSearchEmpty=!1}},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.item;return[n("div",{staticClass:"name",class:t.isChecked(r[t.props.value])},[t._v("\n "+t._s(r[t.props.label].join(t.separator))+"\n ")])]}}],null,!1,1538741936),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isSearchEmpty,expression:"isSearchEmpty"}],staticClass:"empty"},[t._v(t._s(t.searchEmptyText))])],1),n("div",{staticClass:"lazy-cascader-panel"},[n("el-cascader-panel",{ref:"panel",attrs:{options:t.options,props:t.currentProps},on:{change:t.change},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1),n("div",{staticClass:"el-input__inner lazy-cascader-input",class:t.disabled?"lazy-cascader-input-disabled":"",attrs:{slot:"reference"},slot:"reference"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,r){return n("el-tag",{key:r,staticClass:"lazy-cascader-tag",attrs:{type:"info",size:"small","disable-transitions":"",closable:""},on:{close:function(n){return t.handleClose(e)}}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1),t.clearable&&t.current.length>0?n("span",{staticClass:"lazy-cascader-clear",on:{click:function(e){return e.stopPropagation(),t.clearBtnClick(e)}}},[n("i",{staticClass:"el-icon-close"})]):t._e()])])],1)},l=[],c=n("a34a"),u=n.n(c);function p(t){return h(t)||f(t)||d()}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function f(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function h(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function m(t,e,n,r,a,i,s){try{var o=t[i](s),l=o.value}catch(c){return void n(c)}o.done?e(l):Promise.resolve(l).then(r,a)}function y(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function s(t){m(i,r,a,s,o,"next",t)}function o(t){m(i,r,a,s,o,"throw",t)}s(void 0)}))}}var b={props:{value:{type:Array,default:function(){return[]}},separator:{type:String,default:"/"},placeholder:{type:String,default:"请选择"},width:{type:String,default:"400px"},filterable:Boolean,clearable:Boolean,disabled:Boolean,props:{type:Object,default:function(){return{}}},suggestionsPopperClass:{type:String,default:"suggestions-popper-class"},searchWidth:{type:String},searchEmptyText:{type:String,default:"暂无数据"}},data:function(){return{isSearchEmpty:!1,keyword:"",options:[],current:[],labelObject:{label:[],value:[]},labelArray:[],currentProps:{multiple:this.props.multiple,checkStrictly:this.props.checkStrictly,value:this.props.value,label:this.props.label,leaf:this.props.leaf,lazy:!0,lazyLoad:this.lazyLoad}}},computed:{placeholderVisible:function(){return!this.current||0==this.current.length}},watch:{current:function(){this.getLabelArray()},value:function(t){this.current=t},keyword:function(){this.isSearchEmpty=!1}},created:function(){this.initOptions()},methods:{isChecked:function(t){if(this.props.multiple){var e=this.current.findIndex((function(e){return e.join()==t.join()}));return e>-1?"el-link el-link--primary":""}return t.join()==this.current.join()?"el-link el-link--primary":""},querySearch:function(t,e){var n=this;this.props.lazySearch(t,(function(t){e(t),t&&t.length||(n.isSearchEmpty=!0)}))},handleSelect:function(t){var e=this;if(this.props.multiple){var n=this.current.findIndex((function(n){return n.join()==t[e.props.value].join()}));-1==n&&(this.$refs.panel.clearCheckedNodes(),this.current.push(t[this.props.value]),this.$emit("change",this.current))}else null!=this.current&&t[this.props.value].join()===this.current.join()||(this.$refs.panel.activePath=[],this.current=t[this.props.value],this.$emit("change",this.current));this.keyword=""},initOptions:function(){var t=y(u.a.mark((function t(){var e=this;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.props.lazyLoad(0,(function(t){e.$set(e,"options",t),e.props.multiple?e.current=p(e.value):e.current=e.value}));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getLabelArray:function(){var t=y(u.a.mark((function t(){var e,n,r,a=this;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.props.multiple){t.next=16;break}e=[],n=0;case 3:if(!(n<this.current.length)){t.next=11;break}return t.next=6,this.getObject(this.current[n]);case 6:r=t.sent,e.push(r);case 8:n++,t.next=3;break;case 11:this.labelArray=e,this.$emit("input",this.current),this.disabled||this.$nextTick((function(){a.$refs.popover.updatePopper()})),t.next=20;break;case 16:return t.next=18,this.getObject(this.current||[]);case 18:this.labelObject=t.sent,this.$emit("input",this.current);case 20:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getObject:function(){var t=y(u.a.mark((function t(e){var n,r,a,i,s,o=this;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,n=this.options,r=[],a=u.a.mark((function t(a){var i,s;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=n.findIndex((function(t){return t[o.props.value]==e[a]})),!(i<0)){t.next=3;break}return t.abrupt("return","continue");case 3:if(r.push(n[i][o.props.label]),!(a<e.length-1)||n[i].children.length){t.next=15;break}return s=new Promise((function(t){o.props.lazyLoad(e[a],(function(e){t(e)}))})),t.t0=o,t.t1=n[i],t.next=10,s;case 10:t.t2=t.sent,t.t0.$set.call(t.t0,t.t1,"children",t.t2),n=n[i].children,t.next=16;break;case 15:n=n[i].children;case 16:case"end":return t.stop()}}),t)})),i=0;case 5:if(!(i<e.length)){t.next=13;break}return t.delegateYield(a(i),"t0",7);case 7:if(s=t.t0,"continue"!==s){t.next=10;break}return t.abrupt("continue",10);case 10:i++,t.next=5;break;case 13:return t.abrupt("return",{value:e,label:r});case 16:return t.prev=16,t.t1=t["catch"](0),this.current=[],t.abrupt("return",{value:[],label:[]});case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));function e(e){return t.apply(this,arguments)}return e}(),lazyLoad:function(){var t=y(u.a.mark((function t(e,n){var r,a=this;return u.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=this.current,this.props.multiple&&(r=p(this.current)),e.root?n():e.data[this.props.leaf]?n():e.data.children&&e.data.children.length?(this.props.multiple&&(this.current=r),n()):this.props.lazyLoad(e.value,(function(t){e.data.children=t,a.props.multiple&&(a.current=r),n(t)}));case 3:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),handleClose:function(t){var e=this.current.findIndex((function(e){return e.join()==t.value.join()}));e>-1&&(this.$refs.panel.clearCheckedNodes(),this.current.splice(e,1),this.$emit("change",this.current))},clearBtnClick:function(){this.$refs.panel.clearCheckedNodes(),this.current=[],this.$emit("change",this.current)},change:function(){this.$emit("change",this.current)}}},v=b,g=(n("f26e"),n("2877")),_=Object(g["a"])(v,o,l,!1,null,null,null),k=_.exports;function x(t){return C(t)||L(t)||w()}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function L(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function C(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(n,!0).forEach((function(e){D(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $={},S={name:"freightTemplate",components:{LazyCascader:k},props:{},data:function(){var t=this;return{props:{children:"children",label:"label",value:"value",multiple:!0,lazy:!0,lazyLoad:this.lazyLoad,checkStrictly:!0},isTemplate:!1,columns:[{title:"可配送区域",slot:"regionName",minWidth:200},{title:"首件",key:"first",minWidth:70,render:function(e,n){return e("Input",{props:{type:"number",value:t.templateList[n.index].first},on:{"on-change":function(e){t.templateList[n.index].first=e.target.value}}})}},{title:"运费(元)",key:"price",minWidth:70,render:function(e,n){return e("Input",{props:{type:"number",value:t.templateList[n.index].first_price},on:{"on-change":function(e){t.templateList[n.index].first_price=e.target.value}}})}},{title:"续件",key:"continue",minWidth:70,render:function(e,n){return e("Input",{props:{type:"number",value:t.templateList[n.index].continue},on:{"on-change":function(e){t.templateList[n.index].continue=e.target.value}}})}},{title:"续费(元)",key:"continue_price",minWidth:70,render:function(e,n){return e("Input",{props:{type:"number",value:t.templateList[n.index].continue_price},on:{"on-change":function(e){t.templateList[n.index].continue_price=e.target.value}}})}},{title:"操作",slot:"action",minWidth:70}],columns2:[{title:"选择地区",slot:"placeName",minWidth:250},{title:"包邮件数",key:"number",minWidth:100,render:function(e,n){return e("Input",{props:{type:"number",value:t.appointList[n.index].number},on:{"on-change":function(e){t.appointList[n.index].number=e.target.value}}})}},{title:"包邮金额(元)",key:"price",minWidth:100,render:function(e,n){return e("Input",{props:{type:"number",value:t.appointList[n.index].price},on:{"on-change":function(e){t.appointList[n.index].price=e.target.value}}})}},{title:"操作",slot:"action",minWidth:100}],columns3:[{title:"选择地区",slot:"placeName",minWidth:250},{title:"操作",slot:"action",minWidth:100}],templateList:[{first:1,first_price:0,continue:1,continue_price:0,city_ids:[[0]]}],appointList:[],noDeliveryList:[],formData:{type:1,sort:0,name:"",appoint_check:0,no_delivery_check:0},id:0}},computed:O({},Object(i["e"])("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){},methods:{lazyLoad:function(t,e){var n=this;if($[t])$[t]().then((function(t){e(x(t.data))}));else{var r=Object(s["e"])({pid:t});$[t]=function(){return r},r.then((function(n){n.data.forEach((function(t){t.leaf=!t.hasOwnProperty("children")})),$[t]=function(){return new Promise((function(t){setTimeout((function(){return t(n)}),300)}))},e(n.data)})).catch((function(t){n.$message.error(t.message)}))}},onChange:function(t){},editFrom:function(t){var e=this;this.id=t,Object(s["i"])(t).then((function(t){var n=t.data.formData;e.templateList=t.data.templateList,e.appointList=t.data.appointList,e.noDeliveryList=t.data.noDeliveryList,e.formData={type:n.type,sort:n.sort,name:n.name,appoint_check:n.appoint_check,no_delivery_check:n.no_delivery_check},e.headerType()}))},selectCity:function(t){switch(t){case 1:this.templateList.push({first:1,first_price:0,continue:1,continue_price:0,city_ids:[]});break;case 2:this.appointList.push({placeName:"",number:0,price:0,city_ids:[]});break;case 3:this.noDeliveryList.push({placeName:"",city_ids:[]});break}},addCity:function(t){this.type=t,this.selectCity(t)},changeRadio:function(){this.headerType()},headerType:function(){var t=this;2===this.formData.type?(t.columns[1].title="首重量(KG)",t.columns[3].title="续重量(KG)",t.columns2[1].title="包邮重量(KG)"):3===this.formData.type?(t.columns[1].title="首体积(m³)",t.columns[3].title="续体积(m³)",t.columns2[1].title="包邮体积(m³)"):(t.columns[1].title="首件",t.columns[3].title="续件",t.columns2[1].title="包邮件数")},handleSubmit:function(){var t=this,e=this;if(!e.formData.name.trim().length)return e.$Message.error("请填写模板名称");if(!e.templateList.length)return e.$Message.error("请设置配送区域");for(var n=0;n<e.templateList.length;n++){if(e.templateList[n].first<=0)return e.$Message.error("首件/重量/体积应大于0");if(e.templateList[n].first_price<0)return e.$Message.error("运费应大于等于0");if(e.templateList[n].continue<=0)return e.$Message.error("续件/重量/体积应大于0");if(e.templateList[n].continue_price<0)return e.$Message.error("续费应大于等于0")}if(1===e.formData.appoint_check)for(var r=0;r<e.appointList.length;r++){if(e.appointList[r].number<=0)return e.$Message.error("包邮件数应大于0");if(e.appointList[r].price<0)return e.$Message.error("包邮金额应大于等于0")}var a={no_delivery_info:e.noDeliveryList,appoint_info:e.appointList,region_info:e.templateList,sort:e.formData.sort,type:e.formData.type,name:e.formData.name,appoint:e.formData.appoint_check,no_delivery:e.formData.no_delivery_check};Object(s["m"])(e.id,a).then((function(e){t.isTemplate=!1,t.$parent.getList(),t.formData={type:1,sort:0,name:"",appoint_check:0,no_delivery_check:0},t.appointList=[],t.noDeliveryList=[],t.templateList=[{first:1,first_price:0,continue:1,continue_price:0,city_ids:[[0]]}],t.$Message.success(e.msg)}))},delCity:function(t,e,n,r){var a=this,i={title:e,num:n,url:"setting/shipping_templates/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(i).then((function(t){a.$Message.success(t.msg),1===r?a.templateList.splice(n,1):2==r?a.appointList.splice(n,1):a.noDeliveryList.splice(n,1)})).catch((function(t){a.$Message.error(t.msg)}))},cancel:function(){this.formData={type:1,sort:0,name:"",appoint_check:0,no_delivery_check:0},this.noDeliveryList=[],this.appointList=[],this.templateList=[{first:0,first_price:0,continue:0,continue_price:0,city_ids:[[0]]}]}}},z=S,T=(n("ee85"),Object(g["a"])(z,r,a,!1,null,"b3a448a2",null));e["a"]=T.exports},"56cf":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"g",(function(){return i})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"l",(function(){return p})),n.d(e,"m",(function(){return d})),n.d(e,"i",(function(){return f})),n.d(e,"e",(function(){return h})),n.d(e,"k",(function(){return m})),n.d(e,"f",(function(){return y}));var r=n("b6bd");function a(){return Object(r["a"])({url:"/supplier",method:"get"})}function i(t){return Object(r["a"])({url:"/supplier",method:"put",data:t})}function s(t){return Object(r["a"])({url:"city",method:"get",params:t})}function o(t){return Object(r["a"])({url:"admin",method:"get",params:t})}function l(){return Object(r["a"])({url:"admin/create",method:"get"})}function c(t){return Object(r["a"])({url:"admin/".concat(t,"/edit"),method:"get"})}function u(t){return Object(r["a"])({url:"admin/set_status/".concat(t.id,"/").concat(t.status),method:"put"})}function p(t){return Object(r["a"])({url:"setting/shipping_templates/list",method:"get",params:t})}function d(t,e){return Object(r["a"])({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function f(t){return Object(r["a"])({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function h(t){return Object(r["a"])({url:"city",method:"get",params:t})}function m(t,e){return Object(r["a"])({url:"/system/form/info/".concat(t),method:"get",params:e})}function y(t){return Object(r["a"])({url:"system/config/edit_new_build/"+t,method:"get"})}},ee85:function(t,e,n){"use strict";var r=n("f5f9"),a=n.n(r);a.a},f26e:function(t,e,n){"use strict";var r=n("56cf"),a=n.n(r);a.a},f5f9:function(t,e,n){}}]);
|