chunk-2faa4c9d.7f9a1297.js 49 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2faa4c9d"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,a){var n=o(),i=e-n,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var o=Math.easeInOutQuad(u,n,i,t);r(o),u<t?l(e):a&&"function"===typeof a&&a()};c()}},2543:function(e,t,a){"use strict";a.d(t,"k",(function(){return i})),a.d(t,"l",(function(){return s})),a.d(t,"o",(function(){return u})),a.d(t,"i",(function(){return c})),a.d(t,"m",(function(){return d})),a.d(t,"j",(function(){return p})),a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return b})),a.d(t,"c",(function(){return f})),a.d(t,"h",(function(){return h})),a.d(t,"n",(function(){return g})),a.d(t,"f",(function(){return v})),a.d(t,"d",(function(){return S})),a.d(t,"e",(function(){return y})),a.d(t,"g",(function(){return w}));var l=a("b775"),r=a("4328"),o=a.n(r),n="/api-web";function i(e){return Object(l["a"])({url:n+"/goods/queryPage",method:"get",params:e})}function s(e){return Object(l["a"])({url:n+"/goods/get/".concat(e),method:"get"})}function u(e){return Object(l["a"])({url:n+"/goods/updateGoodsStatus",method:"post",data:o.a.stringify(e)})}function c(e){return Object(l["a"])({url:n+"/goods/add",method:"post",data:o.a.stringify(e)})}function d(e){return Object(l["a"])({url:n+"/goods/update",method:"post",data:o.a.stringify(e)})}function p(e){return Object(l["a"])({url:n+"/goods/del/".concat(e),method:"post"})}function m(e){return Object(l["a"])({url:n+"/category/queryPage",method:"get",params:e})}function b(e){return Object(l["a"])({url:n+"/category/upset",method:"post",data:e})}function f(e){return Object(l["a"])({url:n+"/category/del",method:"post",data:o.a.stringify(e)})}function h(e){return Object(l["a"])({url:n+"/subjectChange/queryPage",method:"get",params:e})}function g(e){return Object(l["a"])({url:n+"/subjectChange/updateCostMargin",method:"post",data:o.a.stringify(e)})}function v(e){return Object(l["a"])({url:n+"/goodsProcurement/queryGoodsProcurements",method:"get",params:e})}function S(e){return Object(l["a"])({url:n+"/goods/addGoodsProcurement",method:"post",params:e})}function y(e){return Object(l["a"])({url:n+"/swTempJc/queryPageForCourseSchedule",method:"get",params:e})}function w(e){return Object(l["a"])({url:n+"/swTempJc/queryPageForExtensionOrder",method:"get",params:e})}},"54b3":function(e,t,a){"use strict";a.r(t);var l,r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/shopOperation",expression:"'/shopOperation'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.onShopOperation("create")}}},[e._v("添加")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/goods",expression:"'export/goods'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.exportShopList}},[e._v("商品导出")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"goods/add/commonAdd",expression:"'goods/add/commonAdd'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.onShopComAdd}},[e._v("添加组合商品")]),e._v(" "),a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.onSearch,reset:e.onReset}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{clearable:"",placeholder:"商品编号/货号/商品名称"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"educationShowOrganId"}},[a("el-select",{attrs:{clearable:"",placeholder:"移动端可售分部"},model:{value:e.searchForm.educationShowOrganId,callback:function(t){e.$set(e.searchForm,"educationShowOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.educationShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"courseFeeShowOrganId"}},[a("el-select",{attrs:{clearable:"",placeholder:"课程收费团可售分部"},model:{value:e.searchForm.courseFeeShowOrganId,callback:function(t){e.$set(e.searchForm,"courseFeeShowOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.courseFeeShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"memberFeeShowOrganId"}},[a("el-select",{attrs:{clearable:"",placeholder:"会员收费团可见分部"},model:{value:e.searchForm.memberFeeShowOrganId,callback:function(t){e.$set(e.searchForm,"memberFeeShowOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.memberFeeShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"freeFeeShowOrganId"}},[a("el-select",{attrs:{clearable:"",placeholder:"免费团可见分部"},model:{value:e.searchForm.freeFeeShowOrganId,callback:function(t){e.$set(e.searchForm,"freeFeeShowOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.freeFeeShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1),e._v(" "),1==e.tenantId?a("el-form-item",{attrs:{prop:"replacementShowOrganId"}},[a("el-select",{attrs:{clearable:"",placeholder:"乐器置换可见分部"},model:{value:e.searchForm.replacementShowOrganId,callback:function(t){e.$set(e.searchForm,"replacementShowOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.replacementShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{prop:"type"}},[a("el-select",{attrs:{clearable:"",placeholder:"商品类型"},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type","string"===typeof t?t.trim():t)},expression:"searchForm.type"}},e._l(e.goodsType,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"goodsCategoryId"}},[a("el-select",{attrs:{clearable:"",placeholder:"商品分类"},model:{value:e.searchForm.goodsCategoryId,callback:function(t){e.$set(e.searchForm,"goodsCategoryId","string"===typeof t?t.trim():t)},expression:"searchForm.goodsCategoryId"}},e._l(e.categoryList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{clearable:"",placeholder:"是否是上架"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"groupGoods"}},[a("el-select",{attrs:{clearable:"",placeholder:"是否是组合商品"},model:{value:e.searchForm.groupGoods,callback:function(t){e.$set(e.searchForm,"groupGoods","string"===typeof t?t.trim():t)},expression:"searchForm.groupGoods"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"id",label:"商品编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"sn",label:"货号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"brand",label:"品牌"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"商品名称",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{text:e.row.name,width:"100%"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"是否组合商品"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.complementGoodsIdList?"是":"否")+"\n ")]}}])}),e._v(" "),1==e.tenantId?a("el-table-column",{key:Math.random(),attrs:{align:"center",label:"是否库存预警"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.complementGoodsIdList?e._e():a("span",[e._v("\n "+e._s(t.row.stockWarning?"是":"否")+"\n ")])]}}],null,!1,214808523)}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("shopType")(t.row.type))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"goodsCategoryName",label:"商品分类"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"specification",label:"具体型号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"max-height":"64px",display:"block"}},[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),1==e.tenantId?a("el-table-column",{key:Math.random(),attrs:{align:"center",prop:"stockCount",label:"内部库存"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.complementGoodsIdList?a("span",[e._v("\n "+e._s(t.row.stockCount?t.row.stockCount:"")+"\n ")]):a("span",[e._v(e._s(t.row.stockCount))])]}}],null,!1,4259632143)}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"taxStockCount",label:"税务库存"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.complementGoodsIdList?a("span",[e._v("\n "+e._s(t.row.taxStockCount?t.row.taxStockCount:"")+"\n ")]):a("span",[e._v(e._s(t.row.taxStockCount))])]}}])}),e._v(" "),1==e.tenantId?a("el-table-column",{key:Math.random(),attrs:{align:"center",prop:"stockType",label:"库存类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("stockTypeStatus")(t.row.stockType))+"\n ")]}}],null,!1,242371152)}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"marketPrice",label:"市场价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.marketPrice))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"marketPrice",label:"零售价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.discountPrice))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupPurchasePrice",label:"商品团购价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.groupPurchasePrice))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organCostPrice",label:"分部成本(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.organCostPrice))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","cell-style":"padding: 0",label:"商品缩略图"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{staticClass:"shopImage",attrs:{src:e.row.image,alt:"",srcset:""}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品描述"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("Tooltip",{attrs:{content:e.row.brief}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品详情"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("Tooltip",{attrs:{content:e.row.desc}})]}}])}),e._v(" "),a("el-table-column",{key:"caozuo",attrs:{align:"center",width:"180px",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[!t.row.complementGoodsIdList&&e.permission("/purchaseLlist")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onPurchaseList(t.row)}}},[e._v("进货清单")]):e._e(),e._v(" "),0==t.row.status&&e.permission("goods/updateGoodsStatus")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onUpdate(t.row,0)}}},[e._v("上架")]):e._e(),e._v(" "),1==t.row.status&&e.permission("goods/updateGoodsStatus/downGoods")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onUpdate(t.row,1)}}},[e._v("下架")]):e._e(),e._v(" "),0==t.row.status&&e.permission("/shopOperation/updateShop")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onShopOperation("update",t.row)}}},[e._v("修改")]):e._e(),e._v(" "),1==t.row.status&&e.permission("/shopOperation/shopLook")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onShopOperation("look",t.row)}}},[e._v("查看")]):e._e(),e._v(" "),e.permission("/shopOperation/copyShop")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onShopOperation("copy",t.row)}}},[e._v("复制")]):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),e.routeShopStatus?a("el-dialog",{attrs:{title:e.addString[e.addType]+"组合商品",visible:e.routeShopStatus,width:"1000px"},on:{"update:visible":function(t){e.routeShopStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,inline:!0}},[a("el-alert",{staticClass:"alert",attrs:{title:"基础信息",closable:!1,type:"info"}}),e._v(" "),a("el-form-item",{attrs:{label:"商品名称",prop:"name","label-width":e.formLabelWidth}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{placeholder:"请输入商品名称",type:"text",disabled:e.addDisabled},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name","string"===typeof t?t.trim():t)},expression:"form.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"货号",prop:"sn","label-width":e.formLabelWidth}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{placeholder:"请输入货号",type:"text",disabled:e.addDisabled},model:{value:e.form.sn,callback:function(t){e.$set(e.form,"sn","string"===typeof t?t.trim():t)},expression:"form.sn"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌",prop:"brand","label-width":e.formLabelWidth}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{disabled:e.addDisabled,placeholder:"请输入品牌"},model:{value:e.form.brand,callback:function(t){e.$set(e.form,"brand","string"===typeof t?t.trim():t)},expression:"form.brand"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商品类型",prop:"type","label-width":e.formLabelWidth}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{disabled:e.addDisabled,placeholder:"请选择商品类型"},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type","string"===typeof t?t.trim():t)},expression:"form.type"}},e._l(e.goodsType,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商品分类",prop:"goodsCategoryId","label-width":e.formLabelWidth}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"请选择商品分类",disabled:e.addDisabled,filterable:""},model:{value:e.form.goodsCategoryId,callback:function(t){e.$set(e.form,"goodsCategoryId","string"===typeof t?t.trim():t)},expression:"form.goodsCategoryId"}},e._l(e.categoryList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商品型号",prop:"specification","label-width":e.formLabelWidth}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{disabled:e.addDisabled,placeholder:"请输入商品型号"},model:{value:e.form.specification,callback:function(t){e.$set(e.form,"specification","string"===typeof t?t.trim():t)},expression:"form.specification"}})],1),e._v(" "),e._l(e.form.goodsList,(function(t,l){return a("div",{key:l},[a("el-form-item",{staticStyle:{display:"inline-block",width:"80% !important"},attrs:{label:"商品"+(l+1),"label-width":e.formLabelWidth,prop:"goodsList."+l+".id",rules:[{required:!0,message:"请选择商品",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{filterable:"",disabled:e.addDisabled,placeholder:"请选择商品"},on:{change:e.onGoodsChange},model:{value:t.id,callback:function(a){e.$set(t,"id","string"===typeof a?a.trim():a)},expression:"goodsList.id"}},e._l(e.selectGoodsList,(function(e,t){return a("el-option",{key:t,attrs:{disabled:e.disabled,label:e.name,value:e.id}})})),1)],1),e._v(" "),e.addDisabled?e._e():a("div",{staticStyle:{display:"inline-block"}},[e.form.goodsList.length>1?a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(a){return a.preventDefault(),e.removeGoodsList(t)}}}):e._e(),e._v(" "),a("el-button",{staticStyle:{"margin-left":"5px"},attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return t.preventDefault(),e.addGoodsList(t)}}})],1)],1)})),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"价格信息",closable:!1,type:"info"}}),e._v(" "),a("el-form-item",{staticClass:"hiddenStart",attrs:{label:"市场价",prop:"marketPrice","label-width":e.formLabelWidth}},[a("template",{slot:"label"},[a("p",{staticStyle:{position:"relative"}},[a("span",{staticStyle:{color:"#f56c6c","margin-right":"4px"}},[e._v("*")]),e._v("\n 市场价\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 商品标价,仅在商品购买时做展示,不以该价格向学员销售商品\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c",position:"relative",top:"2px"}})])],1)]),e._v(" "),a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"number",placeholder:"请输入市场价",disabled:e.addDisabled},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.marketPrice,callback:function(t){e.$set(e.form,"marketPrice","string"===typeof t?t.trim():t)},expression:"form.marketPrice"}})],2),e._v(" "),a("el-form-item",{staticClass:"hiddenStart",attrs:{label:"零售价",prop:"discountPrice","label-width":e.formLabelWidth}},[a("template",{slot:"label"},[a("p",{staticStyle:{position:"relative"}},[a("span",{staticStyle:{color:"#f56c6c","margin-right":"4px"}},[e._v("*")]),e._v("\n 零售价\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 管理端APP、乐器维修时学员购买该商品的价格\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c",position:"relative",top:"2px"}})])],1)]),e._v(" "),a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"number",placeholder:"请输入零售价",disabled:e.addDisabled},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.discountPrice,callback:function(t){e.$set(e.form,"discountPrice","string"===typeof t?t.trim():t)},expression:"form.discountPrice"}})],2),e._v(" "),a("el-form-item",{staticClass:"hiddenStart",attrs:{label:"商品团购价",prop:"groupPurchasePrice","label-width":e.formLabelWidth}},[a("template",{slot:"label"},[a("p",{staticStyle:{position:"relative"}},[a("span",{staticStyle:{color:"#f56c6c","margin-right":"4px"}},[e._v("*")]),e._v("\n 团购价\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("乐团报名缴费时学员购买该商品的价格")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c",position:"relative",top:"2px"}})])],1)]),e._v(" "),a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"number",placeholder:"请输入商品团购价",disabled:e.addDisabled},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.groupPurchasePrice,callback:function(t){e.$set(e.form,"groupPurchasePrice","string"===typeof t?t.trim():t)},expression:"form.groupPurchasePrice"}})],2),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"销售渠道",closable:!1,type:"info"}}),e._v(" "),a("el-form-item",{attrs:{label:"移动端可售分部",prop:"educationShowOrganId","label-width":e.formLabelWidth}},[a("select-all",{staticStyle:{width:"400px !important"},attrs:{filterable:"",placeholder:"移动端可售分部",multiple:"",clearable:"",disabled:e.addDisabled},model:{value:e.form.educationShowOrganId,callback:function(t){e.$set(e.form,"educationShowOrganId","string"===typeof t?t.trim():t)},expression:"form.educationShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"课程收费乐团可售分部",prop:"courseFeeShowOrganId","label-width":e.formLabelWidth}},[a("select-all",{staticStyle:{width:"400px !important"},attrs:{filterable:"",placeholder:"课程收费乐团可售分部",multiple:"",clearable:"",disabled:e.addDisabled},model:{value:e.form.courseFeeShowOrganId,callback:function(t){e.$set(e.form,"courseFeeShowOrganId","string"===typeof t?t.trim():t)},expression:"form.courseFeeShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"会员收费乐团可售分部",prop:"memberFeeShowOrganId","label-width":e.formLabelWidth}},[a("select-all",{staticStyle:{width:"400px !important"},attrs:{filterable:"",placeholder:"请选择会员收费团可见分部",multiple:"",clearable:"",disabled:e.addDisabled},model:{value:e.form.memberFeeShowOrganId,callback:function(t){e.$set(e.form,"memberFeeShowOrganId","string"===typeof t?t.trim():t)},expression:"form.memberFeeShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"免费乐团可售分部",prop:"freeFeeShowOrganId","label-width":e.formLabelWidth}},[a("select-all",{staticStyle:{width:"400px !important"},attrs:{filterable:"",placeholder:"请选择会员收费团可见分部",multiple:"",clearable:"",disabled:e.addDisabled},model:{value:e.form.freeFeeShowOrganId,callback:function(t){e.$set(e.form,"freeFeeShowOrganId","string"===typeof t?t.trim():t)},expression:"form.freeFeeShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1),e._v(" "),1==e.tenantId?a("el-form-item",{attrs:{label:"乐器置换可售分部",prop:"replacementShowOrganId","label-width":e.formLabelWidth}},[a("select-all",{staticStyle:{width:"400px !important"},attrs:{filterable:"",placeholder:"请选择乐器置换可售分部",multiple:"",clearable:"",disabled:e.addDisabled},model:{value:e.form.replacementShowOrganId,callback:function(t){e.$set(e.form,"replacementShowOrganId","string"===typeof t?t.trim():t)},expression:"form.replacementShowOrganId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})})),1)],1):e._e(),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"商品信息",closable:!1,type:"info"}}),e._v(" "),a("el-form-item",{attrs:{label:"商品图片",prop:"image","label-width":e.formLabelWidth}},[a("image-cropper",{attrs:{options:e.cropperOptions,disabled:e.addDisabled,imgSize:2,imageUrl:e.form.image,bucket_name:"mall"},on:{"crop-upload-success":e.cropSuccess}}),e._v(" "),a("p",{staticStyle:{color:"red"}},[e._v("请上传大小2M以内,格式为jpg、png、gif图片")])],1),e._v(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"商品描述",prop:"brief","label-width":e.formLabelWidth}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",disabled:e.addDisabled},model:{value:e.form.brief,callback:function(t){e.$set(e.form,"brief","string"===typeof t?t.trim():t)},expression:"form.brief"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商品详情",prop:"desc","label-width":e.formLabelWidth}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",disabled:e.addDisabled},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc","string"===typeof t?t.trim():t)},expression:"form.desc"}})],1)],2),e._v(" "),e.addDisabled?e._e():a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.routeShopStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onShopSubmit("ruleForm")}}},[e._v("确 定")])],1)],1):e._e()],1)},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 商品列表\n ")])}],n=(a("c5f6"),a("28a5"),a("2fdb"),a("6762"),a("7f7f"),a("ac6a"),a("c80c")),i=(a("96cf"),a("3b8d")),s=a("bd86"),u=a("333d"),c=a("c7f0"),d=a("2543"),p=a("4328"),m=a.n(p),b=a("e3eb"),f=a.n(b),h=(a("4360"),a("a5b0")),g=a("adb21"),v=a("5f87"),S=a("92e3"),y=a("3908"),w=a("ec8a"),O=a("896b"),I=function(e,t,a){""==t&&"string"==typeof t||null==t?a(new Error("请输入金额")):t<0?a(new Error("输入金额必须大于或等于0")):t>=1e5?a(new Error("输入金额必须小于100000")):a()},_={components:{pagination:u["a"],Tooltip:h["a"],Upload:c["a"],ImageCropper:O["a"]},name:"shopList",data:function(){var e;return{goodsType:S["B"],categoryList:[],goodsLoading:!1,organId:null,orderDate:null,searchForm:(e={search:null,groupGoods:null,organId:null,type:null,status:null,goodsCategoryId:null,startTime:null,endTime:null},Object(s["a"])(e,"status",null),Object(s["a"])(e,"clientShow",null),Object(s["a"])(e,"educationalShow",null),Object(s["a"])(e,"musicGroupShow",null),Object(s["a"])(e,"courseViewType",null),Object(s["a"])(e,"replacementShow",null),Object(s["a"])(e,"courseFeeShowOrganId",null),Object(s["a"])(e,"educationShowOrganId",null),Object(s["a"])(e,"memberFeeShowOrganId",null),Object(s["a"])(e,"freeFeeShowOrganId",null),Object(s["a"])(e,"replacementShowOrganId",null),Object(s["a"])(e,"studentShowOrganId",null),e),headers:{Authorization:Object(v["b"])(),tenantId:Object(v["a"])()},searchLsit:[],tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},formLabelWidth:"160px",routeShopStatus:!1,addType:"create",addString:{create:"添加",update:"修改",look:"查看",copy:"复制"},addDisabled:!1,form:{sn:null,brand:null,supplyChannel:null,name:null,type:null,organIdList:[],goodsCategoryId:null,specification:null,marketPrice:null,discountPrice:null,groupPurchasePrice:null,clientShow:null,educationalShow:null,musicGroupShow:null,courseViewType:[],stockWarning:null,image:null,complementGoodsIdList:null,goodsList:[{id:null}],brief:null,desc:null,replacementShow:null,studentShowOrganId:null,educationShowOrganId:null,courseFeeShowOrganId:null,memberFeeShowOrganId:null,freeFeeShowOrganId:null,replacementShowOrganId:null},goodsTree:[],rules:{sn:[{required:!0,message:"请输入商品货号",trigger:"blur"}],brand:[{required:!0,message:"请输入品牌",trigger:"blur"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],supplyChannel:[{required:!0,message:"请输入备查货号",trigger:"blur"}],name:[{required:!0,message:"请输入商品名称",trigger:"blur"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],type:[{required:!0,message:"请选择商品分类",trigger:"change"}],organIdList:[{required:!0,message:"请选择所属分部",trigger:"change"}],goodsCategoryId:[{required:!0,message:"请选择商品类型",trigger:"change"}],specification:[{required:!0,message:"请输入商品型号",trigger:"blur"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],marketPrice:[{required:!0,validator:I,trigger:"blur"}],discountPrice:[{required:!0,validator:I,trigger:"blur"}],groupPurchasePrice:[{required:!0,validator:I,trigger:"blur"}],clientShow:[{required:!0,message:"请选择学员是否展示",trigger:"change"}],educationalShow:[{required:!0,message:"请选择教务端是否展示",trigger:"change"}],musicGroupShow:[{required:!0,message:"请选择乐团是否展示",trigger:"change"}],courseViewType:[{required:!0,message:"请选乐团收费模式",trigger:"change"}],replacementShow:[{required:!0,message:"请选择是否参与置换",trigger:"change"}],stockWarning:[{required:!0,message:"请选择是否库存预警",trigger:"change"}],image:[{required:!0,message:"请选择图片",trigger:"blur"}],brief:[{required:!0,message:"请输入商品描述",trigger:"blur"}],desc:[{required:!0,message:"请输入商品详情",trigger:"blur"}]},selectGoodsList:[],tenantId:"",cropperOptions:{autoCrop:!0,autoCropWidth:300,autoCropHeight:300,fixedBox:!0,previewsCircle:!1,title:"商品图片"}}},mounted:function(){var e=Object(i["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.tenantId=this.$helpers.tenantId,e.next=3,this.$store.dispatch("setBranchs");case 3:this.init();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:(l={permission:function(e){return Object(w["a"])(e)},init:function(){this.getList(),this.getCategory()},getCategory:function(){var e=this,t={delFlag:0,rows:9999};Object(d["a"])(t).then((function(t){var a=t.data;if(200==t.code){var l=[];a.rows.forEach((function(e){l.push({label:e.name,value:e.id})})),e.categoryList=l}}))},cropSuccess:function(e){this.form.image=e.data.url},onUpdate:function(){var e=Object(i["a"])(Object(n["a"])().mark((function e(t,a){var l,r=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:l=1==a?"你是否下架该商品?":"你是否上架该商品?",this.$confirm(l,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(i["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(d["o"])({goodsId:t.id,status:t.status?0:1}).then((function(e){r.messageTips(t.status?"下架":"上架",e)}));case 2:case"end":return e.stop()}}),e)})))).catch((function(){}));case 2:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),onPurchaseList:function(e){this.$router.push({path:"/shopManager/purchaseLlist",query:{name:e.name,goodsId:e.id}})},onDelete:function(e){var t=this;this.$confirm("您确定删除该商品吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["j"])(e.id).then((function(e){t.messageTips("删除",e)}))})).catch((function(){}))},searchOrderDate:function(e){e?(this.searchForm.startTime=e[0],this.searchForm.endTime=e[1]):(this.searchForm.startTime=null,this.searchForm.endTime=null)},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.typeStatus=!1,this.getList()):this.$message.error(t.msg)},getList:function(){var e=this,t=Object.assign({},this.searchForm);t.organId=this.organId,t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(d["k"])(t).then((function(t){200==t.code&&t.data&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},getAllGoodsList:function(e){var t=this;Object(d["k"])({rows:9999,page:1,groupGoods:0,organId:e,status:1}).then((function(e){200==e.code&&e.data&&(t.selectGoodsList=e.data.rows)}))},onSearch:function(){this.pageInfo.page=1,this.getList()},onReset:function(){this.$refs.searchForm.resetFields(),this.getList()},onShopComAdd:function(){var e=this;this.form={sn:null,brand:null,supplyChannel:null,name:null,type:null,goodsCategoryId:null,specification:null,marketPrice:null,discountPrice:null,groupPurchasePrice:null,clientShow:null,educationalShow:null,musicGroupShow:null,organIdList:[],courseViewType:[],stockWarning:null,image:null,complementGoodsIdList:null,goodsList:[{id:null}],brief:null,desc:null,replacementShow:null},this.onValidGoodsStatus(),this.routeShopStatus=!0,this.addType="create",this.addDisabled=!1,this.$nextTick((function(t){e.$refs["ruleForm"]&&e.$refs["ruleForm"].resetFields()}))},onOrganChange:function(e){e&&e.length>0&&this.getAllGoodsList(e.join(","))},onValidGoodsStatus:function(){var e=Object(i["a"])(Object(n["a"])().mark((function e(){var t,a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAllGoodsList();case 2:console.log(this.form.goodsList),t=this.form.goodsList,a=[],t.forEach((function(e){a.push(e.id)})),this.selectGoodsList.forEach((function(e){e.disabled=!1,a.includes(e.id)&&(e.disabled=!0)}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onShopOperation:function(e,t){var a={type:e};t&&(a.id=t.id);var l=JSON.stringify(a);if(this.addType=e,this.addDisabled="look"==e,"update"!=e&&"look"!=e&&"copy"!=e||!t.complementGoodsIdList){var r="添加";"update"==e?r="修改":"look"==e?r="查看":"copy"==e&&(r="复制"),this.$router.push({path:"/shopManager/shopOperation",query:{paramInfo:l}},(function(e){e.meta.title=r+"商品"}))}else{this.routeShopStatus=!0;var o=this.form;for(var n in o)o[n]=t[n];var i=t.complementGoodsIdList.split(","),s=[];i.forEach((function(e){s.push({id:Number(e)})})),o.goodsList=s,o.id=t.id,t.courseViewType&&(o.courseViewType=t.courseViewType.split(",")),t.studentShowOrganId&&(o.studentShowOrganId=t.studentShowOrganId.split(",")),t.educationShowOrganId&&(o.educationShowOrganId=t.educationShowOrganId.split(",")),t.courseFeeShowOrganId&&(o.courseFeeShowOrganId=t.courseFeeShowOrganId.split(",")),t.memberFeeShowOrganId&&(o.memberFeeShowOrganId=t.memberFeeShowOrganId.split(",")),t.freeFeeShowOrganId&&(o.freeFeeShowOrganId=t.freeFeeShowOrganId.split(",")),t.replacementShowOrganId&&(o.replacementShowOrganId=t.replacementShowOrganId.split(",")),this.getAllGoodsList(),this.onValidGoodsStatus()}},beforeUpload:function(e){y["a"].startLoading()},handleSuccess:function(e,t,a){y["a"].endLoading(),200==e.code?(this.$message.success("导入成功"),this.getList()):this.$message.error(e.msg)},handleError:function(e,t,a){y["a"].endLoading()},onDownload:function(){Object(g["a"])(this,{url:"/api-web/import/downloadTemplate",params:{templateType:"GOODS"},fileName:"商品导入模板.xls"})},exportShopList:function(){Object(g["a"])(this,{url:"/api-web/export/goods",params:m.a.stringify(f()(this.searchForm)),fileName:"商品导出.xls",method:"post"},"确定导出商品")},onFormClose:function(e){this.$refs[e].resetFields()},onGoodsChange:function(){var e=this.selectGoodsList,t=this.form.goodsList,a=[];t.forEach((function(e){e.id&&a.push(e.id)})),e.forEach((function(e){a.includes(e.id)?e.disabled=!0:e.disabled=!1})),this.calcPrice()},removeGoodsList:function(e){var t=e.id,a=this.selectGoodsList;a.forEach((function(e){e.id==t&&(e.disabled=!1)}));var l=this.form.goodsList.indexOf(e);-1!==l&&this.form.goodsList.splice(l,1),this.calcPrice()},addGoodsList:function(){this.form.goodsList.push({id:null})},onShopSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return t.$nextTick((function(){var e=document.getElementsByClassName("is-error");e[0].scrollIntoView({block:"center",behavior:"smooth"})})),!1;var a=Object.assign({},t.form),l=[];a.goodsList.forEach((function(e){e.id&&l.push(e.id)})),a.complementGoodsIdList=l.join(","),a.studentShowOrganId&&(a.studentShowOrganId=a.studentShowOrganId.join(",")),a.educationShowOrganId&&(a.educationShowOrganId=a.educationShowOrganId.join(",")),a.courseFeeShowOrganId&&(a.courseFeeShowOrganId=a.courseFeeShowOrganId.join(",")),a.memberFeeShowOrganId&&(a.memberFeeShowOrganId=a.memberFeeShowOrganId.join(",")),a.freeFeeShowOrganId&&(a.freeFeeShowOrganId=a.freeFeeShowOrganId.join(",")),a.replacementShowOrganId&&(a.replacementShowOrganId=a.replacementShowOrganId.join(",")),a.studentShowOrganId||a.educationShowOrganId||a.courseFeeShowOrganId||a.freeFeeShowOrganId||a.replacementShowOrganId?(a.goodsList=null,"create"==t.addType||"copy"==t.addType?(t.form.id&&delete t.form.id,a.status="NO",Object(d["i"])(f()(a)).then((function(e){t.messageTips("保存",e)}))):"update"==t.addType&&Object(d["m"])(f()(a)).then((function(e){t.messageTips("保存",e)}))):t.$message.error("请至少选择一个可见分部")}))}},Object(s["a"])(l,"messageTips",(function(e,t){200==t.code?(this.$message.success(e+"成功"),this.getList(),this.routeShopStatus=!1):this.$message.error(t.msg)})),Object(s["a"])(l,"calcPrice",(function(){var e=this.selectGoodsList,t=this.form,a=t.goodsList,l=[];a.forEach((function(e){e.id&&l.push(e.id)}));var r=0,o=0,n=0;e.forEach((function(e){l.includes(e.id)&&(r+=e.groupPurchasePrice,o+=e.marketPrice,n+=e.discountPrice)})),t.groupPurchasePrice=Number(r.toFixed(2)),t.discountPrice=Number(n.toFixed(2)),t.marketPrice=Number(o.toFixed(2))})),l),filters:{courseViewTypeFormat:function(e){var t=["课程收费","AMR收费","会员收费"];if(!e)return"";var a=e.split(","),l=[];return a.forEach((function(e){l.push(t[e])})),l.join(",")}}},L=_,E=(a("585d"),a("2877")),T=Object(E["a"])(L,r,o,!1,null,"74318524",null);t["default"]=T.exports},"585d":function(e,t,a){"use strict";a("fc96")},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return s})),a.d(t,"H",(function(){return u})),a.d(t,"s",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"D",(function(){return p})),a.d(t,"Y",(function(){return m})),a.d(t,"X",(function(){return b})),a.d(t,"d",(function(){return f})),a.d(t,"L",(function(){return h})),a.d(t,"w",(function(){return g})),a.d(t,"ab",(function(){return v})),a.d(t,"t",(function(){return S})),a.d(t,"o",(function(){return y})),a.d(t,"Z",(function(){return w})),a.d(t,"P",(function(){return O})),a.d(t,"cb",(function(){return I})),a.d(t,"db",(function(){return _})),a.d(t,"O",(function(){return L})),a.d(t,"T",(function(){return E})),a.d(t,"B",(function(){return T})),a.d(t,"l",(function(){return k})),a.d(t,"W",(function(){return x})),a.d(t,"bb",(function(){return F})),a.d(t,"I",(function(){return C})),a.d(t,"m",(function(){return P})),a.d(t,"v",(function(){return N})),a.d(t,"M",(function(){return A})),a.d(t,"f",(function(){return G})),a.d(t,"e",(function(){return R})),a.d(t,"K",(function(){return j})),a.d(t,"J",(function(){return $})),a.d(t,"S",(function(){return D})),a.d(t,"G",(function(){return M})),a.d(t,"a",(function(){return U})),a.d(t,"x",(function(){return q})),a.d(t,"p",(function(){return V})),a.d(t,"n",(function(){return W})),a.d(t,"q",(function(){return H})),a.d(t,"g",(function(){return B})),a.d(t,"F",(function(){return Y})),a.d(t,"r",(function(){return z})),a.d(t,"C",(function(){return X})),a.d(t,"A",(function(){return J})),a.d(t,"z",(function(){return K})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"R",(function(){return ae})),a.d(t,"N",(function(){return le})),a.d(t,"E",(function(){return re})),a.d(t,"y",(function(){return oe})),a.d(t,"Q",(function(){return ne})),a.d(t,"U",(function(){return ie})),a.d(t,"V",(function(){return se})),a.d(t,"b",(function(){return ce}));var l=a("2d63"),r=a("768b"),o=a("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var i=n.tenantId,s=null,u=null;1==i?(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],p=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],m=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],b=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],f=[].concat(b,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),h=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"}],g=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],v=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],S=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],y=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],w=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],O=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],I=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],_=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],L=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],E=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],T=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],k=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],x=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],F=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],C=ue(o["musicGroupType"]),P=ue(o["classTime"]),N=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],A=ue(o["payOrderType"]),G=ue(o["auditType"]),R=ue(o["auditPaymentType"]),j=ue(o["orderServerType"]),$=ue(o["orderAuditType"]),D=ue(o["rewardModeType"]),M=ue(o["musicClassType"]),U=ue(o["ProbationPeriodStatus"]),q=ue(o["downListType"]),V=ue(o["conclusion"]),W=ue(o["clientType"]),H=ue(o["couponType"]),B=ue(o["backType"]),Y=ue(o["memberEnum"]),z=ue(o["coupontypeDetail"]),X=ue(o["issue"]),J=ue(o["feedbackType"]),K=ue(o["feedbackTypeDesc"]),Q=ue(o["campState"]),Z=ue(o["catgGoupType"]),ee=ue(o["catRole"]),te=ue(o["catType"]),ae=ue(o["quiteReason"]),le=ue(o["payUserType"]),re=ue(o["levelStatus"]),oe=ue(o["evaluateStatus"]),ne=ue(o["problemType"]),ie=ue(o["schoolUserType"]),se=ue(o["shareLiveType"]);function ue(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(r["a"])(t,2),o=a[0],n=a[1],i={};if(e&&e.length){var s,u=Object(l["a"])(e);try{for(u.s();!(s=u.n()).done;){var c=s.value;i[c[o]]=c[n]}}catch(d){u.e(d)}finally{u.f()}}return i}},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var l=a("bc3a"),r=a.n(l),o=(a("4328"),a("5f87")),n=a("3908"),i=a("e3eb"),s=a.n(i),u=function(e,t,a,l){var i=t.url,u={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:i,responseType:"blob"};"post"==u.method?u.data=t.params:u.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].startLoading(),r()(s()(u)).then((function(a){var r=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(r).text();o.then((function(a){if(-1!=a.indexOf("code")){var o=JSON.parse(a);if(403==o.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?e.$message.success(o.msg):e.$message.error(o.msg),l&&l()}else{var n=URL.createObjectURL(r),i=document.createElement("a"),s=t.fileName||"导出文件.xls";i.href=n,i.setAttribute("download",s),document.body.appendChild(i),i.click(),l&&l()}})),n["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),n["a"].endLoading()}))})).catch((function(){}))}},fc96:function(e,t,a){}}]);