chunk-3841e722.5f488e58.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3841e722"],{2101:function(t,e,r){"use strict";var n=r("76aa");r.n(n).a},"31b4":function(t,e,r){"use strict";var n=r("9860"),o=r.n(n),a=r("b6bd"),i=r("2f62");function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u={name:"edit",components:{formCreate:o.a.$form()},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(r,!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(i.e)("admin/userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},userEdit:{type:Number,default:0}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}},isDisable:!1}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e,r=this;(setTimeout((function(){r.isDisable=!1}),1e3),this.isDisable)||(this.isDisable=!0,e=t,Object(a.a)({url:this.FromData.action,method:this.FromData.method,data:e}).then((function(t){r.$parent.getList(),r.$Message.success(t.msg),r.modals=!1,setTimeout((function(){r.$emit("submitFail")}),1e3)})).catch((function(t){r.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},d=(r("cf4e"),r("2877")),l=Object(d.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.FromData?r("div",[r("Modal",{class:t.userEdit?"userEdit":"",attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/marketing/coupon/save.html"===t.FromData.action?r("div",{staticClass:"radio acea-row row-middle"},[r("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),r("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[r("Radio",{attrs:{label:0}},[t._v("通用券")]),r("Radio",{attrs:{label:1}},[t._v("品类券")]),r("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],r("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{"on-submit":t.onSubmit}})],2)],1):t._e()}),[],!1,null,"9db30b62",null);e.a=l.exports},"73f5":function(t,e,r){"use strict";r.d(e,"y",(function(){return o})),r.d(e,"r",(function(){return a})),r.d(e,"n",(function(){return i})),r.d(e,"q",(function(){return c})),r.d(e,"s",(function(){return s})),r.d(e,"t",(function(){return u})),r.d(e,"j",(function(){return d})),r.d(e,"i",(function(){return l})),r.d(e,"P",(function(){return f})),r.d(e,"h",(function(){return m})),r.d(e,"v",(function(){return h})),r.d(e,"u",(function(){return p})),r.d(e,"w",(function(){return b})),r.d(e,"p",(function(){return g})),r.d(e,"G",(function(){return v})),r.d(e,"H",(function(){return O})),r.d(e,"E",(function(){return j})),r.d(e,"F",(function(){return w})),r.d(e,"g",(function(){return y})),r.d(e,"B",(function(){return _})),r.d(e,"C",(function(){return F})),r.d(e,"D",(function(){return k})),r.d(e,"O",(function(){return x})),r.d(e,"J",(function(){return C})),r.d(e,"I",(function(){return D})),r.d(e,"e",(function(){return P})),r.d(e,"N",(function(){return S})),r.d(e,"l",(function(){return $})),r.d(e,"K",(function(){return M})),r.d(e,"L",(function(){return E})),r.d(e,"M",(function(){return L})),r.d(e,"k",(function(){return I})),r.d(e,"o",(function(){return T})),r.d(e,"z",(function(){return R})),r.d(e,"m",(function(){return A})),r.d(e,"x",(function(){return B})),r.d(e,"f",(function(){return z})),r.d(e,"A",(function(){return J})),r.d(e,"b",(function(){return N})),r.d(e,"d",(function(){return W})),r.d(e,"c",(function(){return q})),r.d(e,"a",(function(){return G}));var n=r("b6bd");function o(t){return Object(n.a)({url:"merchant/store_list",method:"get",params:t})}function a(t){return Object(n.a)({url:"store/order/list",method:"get",params:t})}function i(t){return Object(n.a)({url:"store/order/chart",method:"get",params:t})}function c(t){return Object(n.a)({url:"store/order/header",method:"get"})}function s(t){return Object(n.a)({url:"store/recharge",method:"get",params:t})}function u(t){return Object(n.a)({url:"store/vip_order",method:"get",params:t})}function d(t){return Object(n.a)({url:"store/order/edit/".concat(t),method:"get"})}function l(t){return Object(n.a)({url:"store/order/distribution/".concat(t),method:"get"})}function f(t){return Object(n.a)({url:"store/order/write_update/".concat(t),method:"put"})}function m(t){return Object(n.a)({url:"store/order/info/".concat(t),method:"get"})}function h(t){return Object(n.a)({url:"order/remark/".concat(t.id),method:"put",data:t.remark})}function p(t){return Object(n.a)({url:"store/recharge/remark/".concat(t.id),method:"put",data:t.remark})}function b(t){return Object(n.a)({url:"store/vip/remark/".concat(t.id),method:"put",data:t.remark})}function g(t,e){return Object(n.a)({url:"store/order/export/".concat(e),method:"post",data:t})}function v(t){return Object(n.a)({url:"store/finance_flow/list",method:"get",params:t})}function O(t,e){return Object(n.a)({url:"store/finance_flow/mark/".concat(t),method:"put",params:e})}function j(t){return Object(n.a)({url:"store/finance_flow/fund_record",method:"get",params:t})}function w(t){return Object(n.a)({url:"store/finance_flow/fund_record_info",method:"get",params:t})}function y(t){return Object(n.a)({url:"/export/storeFinanceRecord",method:"get",params:t})}function _(t){return Object(n.a)({url:"/store/extract/list",method:"get",params:t})}function F(t,e){return Object(n.a)({url:"store/extract/mark/".concat(t),method:"post",data:e})}function k(t,e){return Object(n.a)({url:"store/extract/verify/".concat(t),method:"post",data:e})}function x(t){return Object(n.a)({url:"store/extract/transfer/".concat(t),method:"get"})}function C(t){return Object(n.a)({url:"store/store",method:"get",params:t})}function D(t){return Object(n.a)({url:"store/store/get_info/".concat(t),method:"get"})}function P(t){return Object(n.a)({url:"city",method:"get",params:t})}function S(t,e){return Object(n.a)({url:"store/store/".concat(t),method:"post",data:e})}function $(){return Object(n.a)({url:"store/store/address",method:"get"})}function M(t){return Object(n.a)({url:"store/store/login/".concat(t),method:"get"})}function E(t,e){return Object(n.a)({url:"store/store/set_show/".concat(t,"/").concat(e),method:"put"})}function L(t){return Object(n.a)({url:"store/share/order",method:"post",params:t})}function I(t){return Object(n.a)({url:"store/home/header",method:"get",params:t})}function T(t){return Object(n.a)({url:"store/home/orderChart",method:"get",params:t})}function R(t){return Object(n.a)({url:"store/home/store",method:"get",params:t})}function A(t){return Object(n.a)({url:"store/home/operate",method:"get",params:t})}function B(t){return Object(n.a)({url:"store/store/reset_admin/".concat(t),method:"get"})}function z(t,e,r){return Object(n.a)({url:"export/storeFlowExport?store_id=".concat(t,"&keyword=").concat(e,"&data=").concat(r),method:"get"})}function J(t){return Object(n.a)({url:"/store/category",params:t,method:"get"})}function N(t){return Object(n.a)({url:"/store/category/create/".concat(t),method:"get"})}function W(t){return Object(n.a)({url:"/store/category/tree/".concat(t),method:"get"})}function q(t){return Object(n.a)({url:"/store/category/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function G(t){return Object(n.a)({url:"store/category/cascader_list/".concat(t),method:"get"})}},"76aa":function(t,e,r){},cc66:function(t,e,r){"use strict";r.r(e);var n=r("a34a"),o=r.n(n),a=r("2f62"),i=r("73f5");function c(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){c(a,n,o,i,s,"next",t)}function s(t){c(a,n,o,i,s,"throw",t)}i(void 0)}))}}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={name:"product_productClassify",components:{editFrom:r("31b4").a},data:function(){return{treeSelect:[],FromData:null,grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,artFrom:{pid:0,is_show:"",page:1,name:"",limit:15,id:0},total:0,tableData:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(r,!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(a.e)("admin/layout",["isMobile"]),{},Object(a.e)("admin/userLevel",["categoryId"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.goodsCategory(),this.getList()},methods:{goodsCategory:function(){var t=this;Object(i.d)(0).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,this.artFrom.is_show=this.artFrom.is_show||"",Object(i.A)(this.artFrom).then(function(){var e=s(o.a.mark((function e(r){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tableData=n.list,t.total=n.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},loadChildrenMethod:function(t){var e=t.row;return this.artFrom.pid=e.id,new Promise((function(t,r){Object(i.A)({pid:e.id}).then((function(e){var r=e.data.list;t(r)}))}))},pageChange:function(t){this.artFrom.page=t,this.getList()},addClass:function(){var t=this;this.$modalForm(Object(i.b)(0)).then((function(){t.artFrom.pid=0,t.getList(),t.goodsCategory()}))},edit:function(t){var e=this;this.$modalForm(Object(i.b)(t.id)).then((function(){e.artFrom.pid=0,e.getList(),e.goodsCategory()}))},findSupId:function(t,e,r){!function t(e,n){if(e&&e.length>0)for(var o in e){if(e[o].id==n)return e[o].name=r.data.name,e[o].is_show=r.data.is_show,e[o].sort=r.data.sort,void(e[o].pic=r.data.pic);e[o].children&&e[o].children.length>0&&t(e[o].children,n)}}(t,e)},onchangeIsShow:function(t){var e=this,r={id:t.id,is_show:t.is_show};Object(i.c)(r).then(function(){var t=s(o.a.mark((function t(r){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg),e.artFrom.pid=0,e.getList();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},handleCheckChange:function(t){var e="",r="";this.list=[],this.artFrom.pid=0,t.forEach((function(t,n){e+="".concat(t.id,","),r+="".concat(t.title,",")})),e=e.substring(0,e.length-1),r=r.substring(0,r.length-1),this.list.push({value:e,title:r}),this.artFrom.pid=e,this.getList()},del:function(t,e,r){var n=this,o={title:e,num:r,url:"store/category/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(o).then((function(t){n.$Message.success(t.msg),n.artFrom.pid=0,n.getList(),n.goodsCategory()})).catch((function(t){n.$Message.error(t.msg)}))},userSearchs:function(){this.artFrom.pid=0,this.artFrom.page=1,this.getList()}}},f=(r("2101"),r("2877")),m=Object(f.a)(l,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"article-manager"},[r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[r("div",{staticClass:"new_card_pd"},[r("Form",{ref:"artFrom",attrs:{model:t.artFrom,"label-width":t.labelWidth,inline:"","label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{attrs:{label:"商品分类:",prop:"pid","label-for":"pid"}},[r("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.userSearchs},model:{value:t.artFrom.id,callback:function(e){t.$set(t.artFrom,"id",e)},expression:"artFrom.id"}},t._l(t.treeSelect,(function(e){return r("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),r("FormItem",{attrs:{label:"状态:","label-for":"is_show"}},[r("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.artFrom.is_show,callback:function(e){t.$set(t.artFrom,"is_show",e)},expression:"artFrom.is_show"}},[r("Option",{attrs:{value:"1"}},[t._v("显示")]),r("Option",{attrs:{value:"0"}},[t._v("隐藏")])],1)],1),r("FormItem",{attrs:{label:"分类名称:","label-for":"status2"}},[r("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入"},model:{value:t.artFrom.name,callback:function(e){t.$set(t.artFrom,"name",e)},expression:"artFrom.name"}}),r("Button",{attrs:{type:"primary"},on:{click:function(e){return t.userSearchs()}}},[t._v("查询")])],1)],1)],1)]),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("div",[r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["product-save-cate"],expression:"['product-save-cate']"}],staticClass:"bnt",attrs:{type:"primary"},on:{click:t.addClass}},[t._v("添加分类")])],1),r("vxe-table",{ref:"xTable",staticClass:"ivu-mt",attrs:{data:t.tableData,"highlight-hover-row":"",loading:t.loading,"header-row-class-name":"false","row-id":"id","tree-config":{lazy:!0,children:"children",hasChild:"children",loadMethod:t.loadChildrenMethod,reserve:!0}}},[r("vxe-table-column",{attrs:{field:"id",title:"ID",tooltip:"",width:"80"}}),r("vxe-table-column",{attrs:{field:"name","tree-node":"",title:"分类名称","min-width":"250"}}),r("vxe-table-column",{attrs:{field:"sort",title:"排序","min-width":"100",tooltip:"true"}}),r("vxe-table-column",{attrs:{field:"is_show",title:"状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("i-switch",{attrs:{value:n.is_show,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(n)}},model:{value:n.is_show,callback:function(e){t.$set(n,"is_show",e)},expression:"row.is_show"}},[r("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),r("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}}])}),r("vxe-table-column",{attrs:{field:"date",title:"操作",width:"150",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row,o=e.index;return[r("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")]),r("Divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.del(n,"删除商品分类",o)}}},[t._v("删除")])]}}])})],1)],1),r("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.userSearchs}})],1)}),[],!1,null,"09c3916c",null);e.default=m.exports},cf4e:function(t,e,r){"use strict";var n=r("f047");r.n(n).a},f047:function(t,e,r){}}]);