chunk-5624c146.da499342.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5624c146"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(t,e,n){var u=a(),i=t-u,c=20,s=0;e="undefined"===typeof e?500:e;var d=function t(){s+=c;var a=Math.easeInOutQuad(s,u,i,e);o(a),s<e?r(t):n&&"function"===typeof n&&n()};d()}},1824:function(t,e,n){"use strict";var r=n("e1b6"),o=n.n(r);o.a},2543:function(t,e,n){"use strict";n.d(e,"i",function(){return i}),n.d(e,"j",function(){return c}),n.d(e,"m",function(){return s}),n.d(e,"g",function(){return d}),n.d(e,"k",function(){return l}),n.d(e,"h",function(){return f}),n.d(e,"a",function(){return p}),n.d(e,"b",function(){return m}),n.d(e,"c",function(){return g}),n.d(e,"f",function(){return b}),n.d(e,"l",function(){return h}),n.d(e,"e",function(){return y}),n.d(e,"d",function(){return j});var r=n("b775"),o=n("4328"),a=n.n(o),u="/api-web";function i(t){return Object(r["a"])({url:u+"/goods/queryPage",method:"get",params:t})}function c(t){return Object(r["a"])({url:u+"/goods/get/".concat(t),method:"get"})}function s(t){return Object(r["a"])({url:u+"/goods/updateGoodsStatus",method:"post",data:a.a.stringify(t)})}function d(t){return Object(r["a"])({url:u+"/goods/add",method:"post",data:a.a.stringify(t)})}function l(t){return Object(r["a"])({url:u+"/goods/update",method:"post",data:a.a.stringify(t)})}function f(t){return Object(r["a"])({url:u+"/goods/del/".concat(t),method:"post"})}function p(t){return Object(r["a"])({url:u+"/category/queryPage",method:"get",params:t})}function m(t){return Object(r["a"])({url:u+"/category/upset",method:"post",data:t})}function g(t){return Object(r["a"])({url:u+"/category/del",method:"post",data:a.a.stringify(t)})}function b(t){return Object(r["a"])({url:u+"/subjectChange/queryPage",method:"get",params:t})}function h(t){return Object(r["a"])({url:u+"/subjectChange/updateCostMargin",method:"post",data:a.a.stringify(t)})}function y(t){return Object(r["a"])({url:u+"/goodsProcurement/queryGoodsProcurements",method:"get",params:t})}function j(t){return Object(r["a"])({url:u+"/goods/addGoodsProcurement",method:"post",params:t})}},a536:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"category/upset",expression:"'category/upset'"}],staticClass:"newBand",on:{click:function(e){return t.openTypes("create")}}},[t._v("添加")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"分类名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"声部属性"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("joinArray")(e.row.subjectName,","))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"category/upset",expression:"'category/upset'"}],attrs:{type:"text"},on:{click:function(n){return t.openTypes("update",e.row)}}},[t._v("修改")]),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"category/del",expression:"'category/del'"}],attrs:{type:"text"},on:{click:function(n){return t.onTypesDelOpeation(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)]),t._v(" "),n("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.typeStatus,width:"500px"},on:{"update:visible":function(e){t.typeStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[n("el-form-item",{attrs:{label:"商品分类名称",prop:"name","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name","string"===typeof e?e.trim():e)},expression:"form.name"}})],1),t._v(" "),"MIX"!=t.form.classGroupType?n("el-form-item",{attrs:{label:"声部属性",prop:"subjectIds","label-width":t.formLabelWidth}},[n("el-select",{attrs:{clearable:"",filterable:"",multiple:""},model:{value:t.form.subjectIds,callback:function(e){t.$set(t.form,"subjectIds","string"===typeof e?e.trim():e)},expression:"form.subjectIds"}},t._l(t.subjectList,function(e){return n("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)}),1)],1):t._e()],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.typeStatus=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onTypesSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)],1)},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("商品分类管理\n ")])}],a=(n("7f7f"),n("ac6a"),n("333d")),u=(n("4360"),n("d349")),i=n("2543"),c={components:{pagination:a["a"]},name:"shopCategory",data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加商品分类",update:"修改商品分类"},typeStatus:!1,formLabelWidth:"120px",form:{name:null,subjectIds:[]},rules:{name:[{required:!0,message:"请输入类型名称",trigger:"blur"}],subjectIds:[{required:!0,message:"请选择声部组合",trigger:"change"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList(),this.getSubjectTree()},methods:{onTypesDelOpeation:function(t){var e=this;this.$confirm("您确定删除该分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i["c"])({id:t.id}).then(function(t){e.messageTips("删除",t)})})},onTypesSubmit:function(t){var e=this;this.$refs[t].validate(function(t){if(!t)return!1;"create"==e.formActionTitle?(e.form.id&&delete e.form.id,Object(i["b"])(e.form).then(function(t){e.messageTips("添加",t)})):"update"==e.formActionTitle&&Object(i["b"])(e.form).then(function(t){e.messageTips("修改",t)})})},messageTips:function(t,e){200==e.code?(this.$message.success(t+"成功"),this.typeStatus=!1,this.getList()):this.$message.error(e.msg)},getList:function(){var t=this;Object(i["a"])({delFlag:0,rows:this.pageInfo.limit,page:this.pageInfo.page}).then(function(e){var n=e.data;200==e.code&&(n.rows.forEach(function(t){var e=[],n=[];t.subjects.forEach(function(t){e.push(t.name),n.push(t.id)}),t.subjectName=e,t.subjectIds=n}),t.tableList=n.rows,t.pageInfo.total=n.total)})},openTypes:function(t,e){this.typeStatus=!0,this.formActionTitle=t,"update"==t&&(this.form={id:e.id,name:e.name,subjectIds:e.subjectIds})},onFormClose:function(t){this.form={name:null,subjectIds:[]},this.$refs[t].resetFields()},getSubjectTree:function(){var t=this;Object(u["z"])({delFlag:0,rows:9999}).then(function(e){var n=e.data;if(200==e.code){var r=[];n.rows.forEach(function(t,e){var n=[];t.subjects.forEach(function(t){n.push({value:t.id,label:t.name})}),r[e]={label:t.name,options:n}}),t.subjectList=r}})}}},s=c,d=(n("1824"),n("2877")),l=Object(d["a"])(s,r,o,!1,null,"a5c7d23e",null);e["default"]=l.exports},a8db:function(t,e,n){"use strict";var r=n("e265"),o=n.n(r),a=n("a4bb"),u=n.n(a);function i(t,e){if(null==t)return{};var n,r,o={},a=u()(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}function c(t,e){if(null==t)return{};var n,r,a=i(t,e);if(o.a){var u=o()(t);for(r=0;r<u.length;r++)n=u[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}n.d(e,"a",function(){return c})},d349:function(t,e,n){"use strict";n.d(e,"d",function(){return s}),n.d(e,"c",function(){return d}),n.d(e,"e",function(){return l}),n.d(e,"b",function(){return f}),n.d(e,"p",function(){return p}),n.d(e,"z",function(){return m}),n.d(e,"A",function(){return g}),n.d(e,"g",function(){return b}),n.d(e,"k",function(){return h}),n.d(e,"f",function(){return y}),n.d(e,"l",function(){return j}),n.d(e,"s",function(){return v}),n.d(e,"q",function(){return O}),n.d(e,"r",function(){return T}),n.d(e,"h",function(){return w}),n.d(e,"i",function(){return _}),n.d(e,"n",function(){return S}),n.d(e,"j",function(){return I}),n.d(e,"t",function(){return q}),n.d(e,"B",function(){return k}),n.d(e,"m",function(){return C}),n.d(e,"u",function(){return z}),n.d(e,"x",function(){return P}),n.d(e,"v",function(){return x}),n.d(e,"w",function(){return F}),n.d(e,"o",function(){return E}),n.d(e,"a",function(){return L}),n.d(e,"y",function(){return A});var r=n("a8db"),o=n("b775"),a=n("829b"),u=n("4328"),i=n.n(u),c="/api-web";function s(t){return Object(o["a"])({url:c+"/organization/queryPage",method:"get",params:t})}function d(t){return Object(o["a"])({url:c+"/organization/add",method:"post",data:i.a.stringify(t)})}function l(t){return Object(o["a"])({url:c+"/organization/update",method:"post",data:i.a.stringify(t)})}function f(t){return Object(o["a"])({url:c+"/area/queryChild",method:"get",params:t})}function p(t){return Object(o["a"])({url:c+"/area/getParentArea/".concat(t.id),method:"get"})}function m(t){return Object(o["a"])({url:c+"/subject/queryPageTree",method:"get",params:t})}function g(t){return Object(o["a"])({url:c+"/subject/upset",method:"post",data:t})}function b(t){return Object(o["a"])({url:c+"/chargeType/queryPage",method:"get",params:t})}function h(t){return Object(o["a"])({url:c+"/chargeType/upSet",method:"post",data:t})}function y(t){return Object(o["a"])({url:c+"/chargeType/del/".concat(t),method:"post"})}function j(t){return Object(o["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function v(t){return Object(o["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:i.a.stringify(t)})}function O(t){return Object(o["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:i.a.stringify(t)})}function T(t){return Object(o["a"])({url:c+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function w(t){return Object(o["a"])({url:c+"/chargeTypeOrganizationFee/add",method:"post",data:i.a.stringify(t)})}function _(t){return Object(o["a"])({url:c+"/chargeTypeOrganizationFee/update",method:"post",data:i.a.stringify(t)})}function S(t){return Object(o["a"])({url:c+"/employee/findEducationTeacher",method:"get",params:t})}function I(t){return Object(a["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function q(t){return Object(a["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function k(t){return Object(a["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:t})}function C(t){var e=t.id,n=Object(r["a"])(t,["id"]);return Object(a["a"])({url:c+"/chargeTypeSubjectMapper/del/"+e,method:"post",params:n})}function z(t){return Object(a["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function P(t){return Object(a["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function x(t){return Object(a["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function F(t){return Object(a["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function E(t){return Object(a["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:t,data:{},requestType:"form"})}function L(t){return Object(a["a"])({url:c+"/organizationCourseUnitPriceSettings/insert",method:"post",data:t})}function A(t){return Object(a["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}},e1b6:function(t,e,n){}}]);