new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-82b00b2e.fbc78d48.js
2025-03-13 09:24:48 +08:00

1 line
12 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-82b00b2e"],{"15ef":function(t,e,r){},"314d":function(t,e,r){r("15ef")},"31b4":function(t,e,r){r("a630"),r("3ca3");var n=r("5530"),a=(r("e9f5"),r("7d54"),r("d3b7"),r("159b"),r("da05")),o=r("6b6c"),c=r("2f62");a={name:"edit",components:{formCreate:a.a.$form()},computed:Object(n.a)({},Object(c.c)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},watch:{FromData:function(){this.FromData.rules.forEach((function(t){t.title+=""}))}},data:function(){return{modals:!1,type:0,loading:!1,fapi:null,config:{form:{labelWidth:"100px"},resetBtn:!1,submitBtn:!1,global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},formSubmit:function(){this.fapi.submit()},onSubmit:function(t){var e=this;this.loading||(this.loading=!0,Object(o.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$message.error(t.msg)})))},cancel:function(){this.type=0}}},r("fae3"),n=r("2877"),c=Object(n.a)(a,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("el-dialog",{attrs:{visible:t.modals,title:t.FromData.title,"z-index":1,width:"720px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("el-radio-group",{on:{input:t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio",{attrs:{label:0}},[t._v("通用券")]),e("el-radio",{attrs:{label:1}},[t._v("品类券")]),e("el-radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(this.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit},model:{value:t.fapi,callback:function(e){t.fapi=e},expression:"fapi"}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.modals=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v("确 定")])],1)],2)],1):t._e()}),[],!1,null,"224af4d2",null);e.a=c.exports},4967:function(t,e,r){},"8aca":function(t,e,r){r.r(e);var n=r("c7eb"),a=r("1da1"),o=r("5530"),c=(r("14d9"),r("e9f5"),r("7d54"),r("d3b7"),r("159b"),r("2f62")),i=r("c4c8");o={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,cate_name:"",limit:15},total:0,tableData:[]}},computed:Object(o.a)({},Object(c.c)("admin/userLevel",["categoryId"])),mounted:function(){this.goodsCategory(),this.getList()},methods:{goodsCategory:function(){var t=this;Object(i.F)(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||"",this.artFrom.pid=this.artFrom.pid||"",Object(i.u)(this.artFrom).then((()=>{var e=Object(a.a)(Object(n.a)().mark((function e(r){var a;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=r.data,t.tableData=a.list,t.total=a.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)}))},pageChange:function(t){this.artFrom.page=t,this.getList()},addClass:function(){var t=this;this.$modalForm(Object(i.o)()).then((function(){return t.getList()}))},edit:function(t){var e=this;this.$modalForm(Object(i.p)(t.id)).then((function(){return e.getList()}))},onchangeIsShow:function(t){var e=this;t={id:t.id,is_show:t.is_show};Object(i.E)(t).then((()=>{var t=Object(a.a)(Object(n.a)().mark((function t(r){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(r.msg);case 1: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;e={title:e,num:r,url:"product/category/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){n.$message.success(t.msg),n.getList()})).catch((function(t){n.$message.error(t.msg)}))},userSearchs:function(){this.artFrom.page=1,this.getList()}}},r("314d"),c=r("2877"),r=Object(c.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-manager"},[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"artFrom",attrs:{model:t.artFrom,inline:"","label-width":"80px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"商品分类:",prop:"pid","label-for":"pid"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择商品分类",clearable:""},on:{change:t.userSearchs},model:{value:t.artFrom.pid,callback:function(e){t.$set(t.artFrom,"pid",e)},expression:"artFrom.pid"}},t._l(t.treeSelect,(function(r){return e("el-option",{key:r.id,attrs:{value:r.id,label:r.cate_name}},[t._v(t._s(r.cate_name))])})),1)],1),e("el-form-item",{attrs:{label:"分类状态:","label-for":"is_show"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择分类状态",clearable:""},on:{change:t.userSearchs},model:{value:t.artFrom.is_show,callback:function(e){t.$set(t.artFrom,"is_show",e)},expression:"artFrom.is_show"}},[e("el-option",{attrs:{value:"1",label:"显示"}}),e("el-option",{attrs:{value:"0",label:"隐藏"}})],1)],1),e("el-form-item",{attrs:{label:"分类名称:","label-for":"status2"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入分类名称"},model:{value:t.artFrom.cate_name,callback:function(e){t.$set(t.artFrom,"cate_name",e)},expression:"artFrom.cate_name"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),e("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[e("el-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("添加分类")]),e("vxe-table",{staticClass:"mt14",attrs:{"highlight-hover-row":"",loading:t.loading,"header-row-class-name":"false","tree-config":{children:"children"},data:t.tableData}},[e("vxe-table-column",{attrs:{field:"id",title:"ID",tooltip:"",width:"80"}}),e("vxe-table-column",{attrs:{field:"cate_name","tree-node":"",title:"分类名称","min-width":"250"}}),e("vxe-table-column",{attrs:{field:"pic",title:"分类图标","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return r=r.row,[r.pic?e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.pic,expression:"row.pic"}]})]):t._e()]}}])}),e("vxe-table-column",{attrs:{field:"sort",title:"排序","min-width":"100",tooltip:"true"}}),e("vxe-table-column",{attrs:{field:"is_show",title:"状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.row;return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:n.is_show,size:"large","active-text":"开启","inactive-text":"关闭"},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"}})]}}])}),e("vxe-table-column",{attrs:{field:"date",title:"操作",width:"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.row,a=r.index;return[e("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(n,"删除商品分类",a)}}},[t._v("删除")])]}}])})],1)],1),e("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.userSearchs}})],1)}),[],!1,null,"077e55d2",null);e.default=r.exports},c4c8:function(t,e,r){r.d(e,"j",(function(){return a})),r.d(e,"k",(function(){return o})),r.d(e,"n",(function(){return c})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return u})),r.d(e,"v",(function(){return s})),r.d(e,"C",(function(){return l})),r.d(e,"w",(function(){return d})),r.d(e,"F",(function(){return f})),r.d(e,"d",(function(){return m})),r.d(e,"t",(function(){return p})),r.d(e,"m",(function(){return h})),r.d(e,"u",(function(){return b})),r.d(e,"o",(function(){return g})),r.d(e,"p",(function(){return v})),r.d(e,"E",(function(){return _})),r.d(e,"y",(function(){return w})),r.d(e,"D",(function(){return O})),r.d(e,"f",(function(){return j})),r.d(e,"g",(function(){return y})),r.d(e,"h",(function(){return F})),r.d(e,"i",(function(){return x})),r.d(e,"B",(function(){return k})),r.d(e,"z",(function(){return S})),r.d(e,"A",(function(){return C})),r.d(e,"q",(function(){return $})),r.d(e,"s",(function(){return D})),r.d(e,"r",(function(){return T})),r.d(e,"e",(function(){return L})),r.d(e,"x",(function(){return E})),r.d(e,"G",(function(){return P})),r.d(e,"l",(function(){return I})),r.d(e,"b",(function(){return B})),r("99af");var n=r("6b6c");function a(t){return Object(n.a)({url:"product/product/type_header",method:"get",params:t})}function o(t){return Object(n.a)({url:"product/product",method:"get",params:t})}function c(){return Object(n.a)({url:"product/cache",method:"get"})}function i(){return Object(n.a)({url:"product/cache",method:"delete"})}function u(t,e){return Object(n.a)({url:"product/product/set_show/".concat(t,"/").concat(e),method:"put"})}function s(t){return Object(n.a)({url:"product/product/product_show",method:"put",data:t})}function l(t){return Object(n.a)({url:"product/reply/save_fictitious_reply",method:"post",data:t})}function d(t){return Object(n.a)({url:"product/product/product_unshow",method:"put",data:t})}function f(t){return Object(n.a)({url:"product/category/tree/".concat(t),method:"get"})}function m(t){return Object(n.a)({url:"product/category/cascader/".concat(t),method:"get"})}function p(t){return Object(n.a)({url:"product/product/".concat(t),method:"get"})}function h(t){return Object(n.a)({url:"product/product/".concat(t.id),method:"POST",data:t})}function b(t){return Object(n.a)({url:"product/category",method:"get",params:t})}function g(){return Object(n.a)({url:"product/category/create",method:"get"})}function v(t){return Object(n.a)({url:"product/category/".concat(t),method:"get"})}function _(t){return Object(n.a)({url:"product/category/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function w(t){return Object(n.a)({url:"product/reply",method:"get",params:t})}function O(t,e){return Object(n.a)({url:"product/reply/set_reply/".concat(e),method:"PUT",data:t})}function j(){return Object(n.a)({url:"product/copy_config",method:"get"})}function y(t){return Object(n.a)({url:"product/copy",method:"POST",data:t})}function F(t){return Object(n.a)({url:"product/crawl/save",method:"POST",data:t})}function x(t,e,r){return Object(n.a)({url:"product/generate_attr/".concat(e,"/").concat(r),method:"POST",data:t})}function k(t){return Object(n.a)({url:"product/product/rule",method:"GET",params:t})}function S(t,e){return Object(n.a)({url:"product/product/rule/".concat(e),method:"POST",data:t})}function C(t){return Object(n.a)({url:"product/product/rule/".concat(t),method:"get"})}function $(){return Object(n.a)({url:"product/product/get_rule",method:"get"})}function D(){return Object(n.a)({url:"product/product/get_template",method:"get"})}function T(t){return Object(n.a)({url:"product/product/get_temp_keys",method:"get",params:t})}function L(t){return Object(n.a)({url:"product/product/check_activity/".concat(t),method:"get"})}function E(){return Object(n.a)({url:"user/user_tree_label",method:"get"})}function P(){return Object(n.a)({url:"file/upload_type",method:"get"})}function I(t){return Object(n.a)({url:"product/product/import_card",method:"get",params:t})}function B(t){return Object(n.a)({url:"product/batch/setting",method:"POST",data:t})}},fae3:function(t,e,r){r("4967")}}]);