1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634 |
- (window["webpackJsonp"] = window["webpackJsonp"] || []).push([
- ["chunk-7303fe92"],
- {
- "09f4": function(e, t, a) {
- "use strict";
- a.d(t, "a", function() {
- return o;
- }),
- (Math.easeInOutQuad = function(e, t, a, r) {
- return (
- (e /= r / 2),
- e < 1
- ? (a / 2) * e * e + t
- : (e--, (-a / 2) * (e * (e - 2) - 1) + t)
- );
- });
- var r = (function() {
- return (
- window.requestAnimationFrame ||
- window.webkitRequestAnimationFrame ||
- window.mozRequestAnimationFrame ||
- function(e) {
- window.setTimeout(e, 1e3 / 60);
- }
- );
- })();
- function l(e) {
- (document.documentElement.scrollTop = e),
- (document.body.parentNode.scrollTop = e),
- (document.body.scrollTop = e);
- }
- function n() {
- return (
- document.documentElement.scrollTop ||
- document.body.parentNode.scrollTop ||
- document.body.scrollTop
- );
- }
- function o(e, t, a) {
- var o = n(),
- i = e - o,
- s = 20,
- u = 0;
- t = "undefined" === typeof t ? 500 : t;
- var c = function e() {
- u += s;
- var n = Math.easeInOutQuad(u, o, i, t);
- l(n), u < t ? r(e) : a && "function" === typeof a && a();
- };
- c();
- }
- },
- 2543: function(e, t, a) {
- "use strict";
- a.d(t, "i", function() {
- return i;
- }),
- a.d(t, "j", function() {
- return s;
- }),
- a.d(t, "m", function() {
- return u;
- }),
- a.d(t, "g", function() {
- return c;
- }),
- a.d(t, "k", function() {
- return d;
- }),
- a.d(t, "h", function() {
- return p;
- }),
- a.d(t, "a", function() {
- return m;
- }),
- a.d(t, "b", function() {
- return f;
- }),
- a.d(t, "c", function() {
- return b;
- }),
- a.d(t, "f", function() {
- return h;
- }),
- a.d(t, "l", function() {
- return g;
- }),
- a.d(t, "e", function() {
- return v;
- }),
- a.d(t, "d", function() {
- return y;
- });
- var r = a("b775"),
- l = a("4328"),
- n = a.n(l),
- o = "/api-web";
- function i(e) {
- return Object(r["a"])({
- url: o + "/goods/queryPage",
- method: "get",
- params: e
- });
- }
- function s(e) {
- return Object(r["a"])({
- url: o + "/goods/get/".concat(e),
- method: "get"
- });
- }
- function u(e) {
- return Object(r["a"])({
- url: o + "/goods/updateGoodsStatus",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function c(e) {
- return Object(r["a"])({
- url: o + "/goods/add",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function d(e) {
- return Object(r["a"])({
- url: o + "/goods/update",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function p(e) {
- return Object(r["a"])({
- url: o + "/goods/del/".concat(e),
- method: "post"
- });
- }
- function m(e) {
- return Object(r["a"])({
- url: o + "/category/queryPage",
- method: "get",
- params: e
- });
- }
- function f(e) {
- return Object(r["a"])({
- url: o + "/category/upset",
- method: "post",
- data: e
- });
- }
- function b(e) {
- return Object(r["a"])({
- url: o + "/category/del",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function h(e) {
- return Object(r["a"])({
- url: o + "/subjectChange/queryPage",
- method: "get",
- params: e
- });
- }
- function g(e) {
- return Object(r["a"])({
- url: o + "/subjectChange/updateCostMargin",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function v(e) {
- return Object(r["a"])({
- url: o + "/goodsProcurement/queryGoodsProcurements",
- method: "get",
- params: e
- });
- }
- function y(e) {
- return Object(r["a"])({
- url: o + "/goods/addGoodsProcurement",
- method: "post",
- params: e
- });
- }
- },
- 3607: function(e, t, a) {
- "use strict";
- a.d(t, "h", function() {
- return i;
- }),
- a.d(t, "e", function() {
- return s;
- }),
- a.d(t, "g", function() {
- return u;
- }),
- a.d(t, "f", function() {
- return c;
- }),
- a.d(t, "j", function() {
- return d;
- }),
- a.d(t, "k", function() {
- return p;
- }),
- a.d(t, "i", function() {
- return m;
- }),
- a.d(t, "m", function() {
- return f;
- }),
- a.d(t, "n", function() {
- return b;
- }),
- a.d(t, "l", function() {
- return h;
- }),
- a.d(t, "p", function() {
- return g;
- }),
- a.d(t, "b", function() {
- return v;
- }),
- a.d(t, "a", function() {
- return y;
- }),
- a.d(t, "d", function() {
- return S;
- }),
- a.d(t, "o", function() {
- return w;
- }),
- a.d(t, "c", function() {
- return O;
- }),
- a.d(t, "q", function() {
- return I;
- });
- var r = a("b775"),
- l = a("4328"),
- n = a.n(l),
- o = "/api-web";
- function i(e) {
- return Object(r["a"])({
- url: o + "/tenantEntryActivities/queryPage",
- method: "get",
- params: e
- });
- }
- function s(e) {
- return Object(r["a"])({
- url: o + "/tenantEntryActivities/merge",
- method: "post",
- data: e
- });
- }
- function u(e) {
- return Object(r["a"])({
- url: o + "/tenantEntryActivities/updateDelFlag",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function c(e) {
- return Object(r["a"])({
- url: o + "/tenantEntryActivities/query",
- method: "get",
- params: e
- });
- }
- function d(e) {
- return Object(r["a"])({
- url: "/api-cms/helpCenterCatalog/list",
- method: "get",
- params: e
- });
- }
- function p(e) {
- return Object(r["a"])({
- url: "/api-cms/helpCenterCatalog/modify",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function m(e) {
- return Object(r["a"])({
- url: "/api-cms/helpCenterCatalog/delete",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function f(e) {
- return Object(r["a"])({
- url: "/api-cms/helpCenterContent/list",
- method: "get",
- params: e
- });
- }
- function b(e) {
- return Object(r["a"])({
- url: "/api-cms/helpCenterContent/modify",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function h(e) {
- return Object(r["a"])({
- url: "/api-cms/helpCenterContent/delete",
- method: "post",
- data: n.a.stringify(e)
- });
- }
- function g(e) {
- return Object(r["a"])({
- url: "/api-web/sysSuggestion/queryPage",
- method: "get",
- params: e
- });
- }
- function v(e) {
- return Object(r["a"])({
- method: "get",
- url: "/api-web/employeeInfo/queryPage",
- params: e
- });
- }
- function y(e) {
- return Object(r["a"])({
- method: "post",
- url: "/api-web/employeeInfo/insert",
- data: e
- });
- }
- function S(e) {
- return Object(r["a"])({
- method: "post",
- url: "/api-web/employeeInfo/update",
- data: e
- });
- }
- function w(e) {
- return Object(r["a"])({
- method: "post",
- url: "/api-web/employeeInfo/insertVisit",
- data: e
- });
- }
- function O(e) {
- return Object(r["a"])({
- method: "get",
- url: "/api-web/employeeInfo/queryDetail",
- params: e
- });
- }
- function I(e) {
- return Object(r["a"])({
- method: "post",
- url: "/api-web/uploadFile",
- data: e
- });
- }
- },
- 5192: function(e, t, a) {},
- "54b3": function(e, t, a) {
- "use strict";
- a.r(t);
- var r,
- l = 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(" "),
- 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",
- "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, r) {
- return a(
- "div",
- { key: r },
- [
- a(
- "el-form-item",
- {
- staticStyle: {
- display: "inline-block",
- width: "80% !important"
- },
- attrs: {
- label: "商品" + (r + 1),
- "label-width": e.formLabelWidth,
- prop: "goodsList." + r + ".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(" "),
- 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
- },
- 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
- );
- },
- n = [
- function() {
- var e = this,
- t = e.$createElement,
- a = e._self._c || t;
- return a("h2", [
- a("div", { staticClass: "squrt" }),
- e._v("\n 商品列表\n ")
- ]);
- }
- ],
- o = (a("c5f6"),
- a("28a5"),
- a("2fdb"),
- a("6762"),
- a("7f7f"),
- a("ac6a"),
- a("96cf"),
- a("1da1")),
- i = a("ade3"),
- s = a("333d"),
- u = a("c7f0"),
- c = a("2543"),
- d = a("4328"),
- p = a.n(d),
- m = a("e3eb"),
- f = a.n(m),
- b = (a("4360"), a("a5b0")),
- h = a("adb21"),
- g = a("5f87"),
- v = a("92e3"),
- y = a("3908"),
- S = a("ec8a"),
- w = a("896b"),
- O = 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();
- },
- I = {
- components: {
- pagination: s["a"],
- Tooltip: b["a"],
- Upload: u["a"],
- ImageCropper: w["a"]
- },
- name: "shopList",
- data: function() {
- var e;
- return {
- goodsType: v["A"],
- 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(i["a"])(e, "status", null),
- Object(i["a"])(e, "clientShow", null),
- Object(i["a"])(e, "educationalShow", null),
- Object(i["a"])(e, "musicGroupShow", null),
- Object(i["a"])(e, "courseViewType", null),
- Object(i["a"])(e, "replacementShow", null),
- Object(i["a"])(e, "courseFeeShowOrganId", null),
- Object(i["a"])(e, "educationShowOrganId", null),
- Object(i["a"])(e, "memberFeeShowOrganId", null),
- Object(i["a"])(e, "replacementShowOrganId", null),
- Object(i["a"])(e, "studentShowOrganId", null),
- e),
- headers: {
- Authorization: Object(g["b"])(),
- tenantId: Object(g["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,
- 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: O, trigger: "blur" }],
- discountPrice: [
- { required: !0, validator: O, trigger: "blur" }
- ],
- groupPurchasePrice: [
- { required: !0, validator: O, 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(o["a"])(
- regeneratorRuntime.mark(function e() {
- return regeneratorRuntime.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: ((r = {
- permission: function(e) {
- return Object(S["a"])(e);
- },
- init: function() {
- this.getList(), this.getCategory();
- },
- getCategory: function() {
- var e = this,
- t = { delFlag: 0, rows: 9999 };
- Object(c["a"])(t).then(function(t) {
- var a = t.data;
- if (200 == t.code) {
- var r = [];
- a.rows.forEach(function(e) {
- r.push({ label: e.name, value: e.id });
- }),
- (e.categoryList = r);
- }
- });
- },
- cropSuccess: function(e) {
- this.form.image = e.data.url;
- },
- onUpdate: (function() {
- var e = Object(o["a"])(
- regeneratorRuntime.mark(function e(t, a) {
- var r,
- l = this;
- return regeneratorRuntime.wrap(
- function(e) {
- while (1)
- switch ((e.prev = e.next)) {
- case 0:
- (r =
- 1 == a
- ? "你是否下架该商品?"
- : "你是否上架该商品?"),
- this.$confirm(r, "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(
- Object(o["a"])(
- regeneratorRuntime.mark(function e() {
- return regeneratorRuntime.wrap(function(
- e
- ) {
- while (1)
- switch ((e.prev = e.next)) {
- case 0:
- return (
- (e.next = 2),
- Object(c["m"])({
- goodsId: t.id,
- status: t.status ? 0 : 1
- }).then(function(e) {
- l.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(c["h"])(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(c["i"])(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(c["i"])({
- 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(o["a"])(
- regeneratorRuntime.mark(function e() {
- var t, a;
- return regeneratorRuntime.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 r = JSON.stringify(a);
- if (
- ((this.addType = e),
- (this.addDisabled = "look" == e),
- ("update" != e && "look" != e && "copy" != e) ||
- !t.complementGoodsIdList)
- ) {
- var l = "添加";
- "update" == e
- ? (l = "修改")
- : "look" == e
- ? (l = "查看")
- : "copy" == e && (l = "复制"),
- this.$router.push(
- {
- path: "/shopManager/shopOperation",
- query: { paramInfo: r }
- },
- function(e) {
- e.meta.title = l + "商品";
- }
- );
- } else {
- this.routeShopStatus = !0;
- var n = this.form;
- for (var o in n) n[o] = t[o];
- var i = t.complementGoodsIdList.split(","),
- s = [];
- i.forEach(function(e) {
- s.push({ id: Number(e) });
- }),
- (n.goodsList = s),
- (n.id = t.id),
- t.courseViewType &&
- (n.courseViewType = t.courseViewType.split(",")),
- t.studentShowOrganId &&
- (n.studentShowOrganId = t.studentShowOrganId.split(",")),
- t.educationShowOrganId &&
- (n.educationShowOrganId = t.educationShowOrganId.split(
- ","
- )),
- t.courseFeeShowOrganId &&
- (n.courseFeeShowOrganId = t.courseFeeShowOrganId.split(
- ","
- )),
- t.memberFeeShowOrganId &&
- (n.memberFeeShowOrganId = t.memberFeeShowOrganId.split(
- ","
- )),
- t.replacementShowOrganId &&
- (n.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(h["a"])(this, {
- url: "/api-web/import/downloadTemplate",
- params: { templateType: "GOODS" },
- fileName: "商品导入模板.xls"
- });
- },
- exportShopList: function() {
- Object(h["a"])(
- this,
- {
- url: "/api-web/export/goods",
- params: p.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 r = this.form.goodsList.indexOf(e);
- -1 !== r && this.form.goodsList.splice(r, 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),
- r = [];
- a.goodsList.forEach(function(e) {
- e.id && r.push(e.id);
- }),
- (a.complementGoodsIdList = r.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.replacementShowOrganId &&
- (a.replacementShowOrganId = a.replacementShowOrganId.join(
- ","
- )),
- a.studentShowOrganId ||
- a.educationShowOrganId ||
- a.courseFeeShowOrganId ||
- a.courseFeeShowOrganId ||
- a.replacementShowOrganId
- ? ((a.goodsList = null),
- "create" == t.addType || "copy" == t.addType
- ? (t.form.id && delete t.form.id,
- (a.status = "NO"),
- Object(c["g"])(f()(a)).then(function(e) {
- t.messageTips("保存", e);
- }))
- : "update" == t.addType &&
- Object(c["k"])(f()(a)).then(function(e) {
- t.messageTips("保存", e);
- }))
- : t.$message.error("请至少选择一个可见分部");
- });
- }
- }),
- Object(i["a"])(r, "messageTips", function(e, t) {
- 200 == t.code
- ? (this.$message.success(e + "成功"),
- this.getList(),
- (this.routeShopStatus = !1))
- : this.$message.error(t.msg);
- }),
- Object(i["a"])(r, "calcPrice", function() {
- var e = this.selectGoodsList,
- t = this.form,
- a = t.goodsList,
- r = [];
- a.forEach(function(e) {
- e.id && r.push(e.id);
- });
- var l = 0,
- n = 0,
- o = 0;
- e.forEach(function(e) {
- r.includes(e.id) &&
- ((l += e.groupPurchasePrice),
- (n += e.marketPrice),
- (o += e.discountPrice));
- }),
- (t.groupPurchasePrice = Number(l.toFixed(2))),
- (t.discountPrice = Number(o.toFixed(2))),
- (t.marketPrice = Number(n.toFixed(2)));
- }),
- r),
- filters: {
- courseViewTypeFormat: function(e) {
- var t = ["课程收费", "AMR收费", "会员收费"];
- if (!e) return "";
- var a = e.split(","),
- r = [];
- return (
- a.forEach(function(e) {
- r.push(t[e]);
- }),
- r.join(",")
- );
- }
- }
- },
- _ = I,
- L = (a("f611"), a("2877")),
- E = Object(L["a"])(_, l, n, !1, null, "deea135c", null);
- t["default"] = E.exports;
- },
- "92e3": function(e, t, a) {
- "use strict";
- a.d(t, "u", function() {
- return s;
- }),
- a.d(t, "F", function() {
- return u;
- }),
- a.d(t, "s", function() {
- return c;
- }),
- a.d(t, "c", function() {
- return d;
- }),
- a.d(t, "C", function() {
- return p;
- }),
- a.d(t, "R", function() {
- return m;
- }),
- a.d(t, "Q", function() {
- return f;
- }),
- a.d(t, "d", function() {
- return b;
- }),
- a.d(t, "J", function() {
- return h;
- }),
- a.d(t, "w", function() {
- return g;
- }),
- a.d(t, "T", function() {
- return v;
- }),
- a.d(t, "t", function() {
- return y;
- }),
- a.d(t, "o", function() {
- return S;
- }),
- a.d(t, "S", function() {
- return w;
- }),
- a.d(t, "M", function() {
- return O;
- }),
- a.d(t, "V", function() {
- return I;
- }),
- a.d(t, "W", function() {
- return _;
- }),
- a.d(t, "L", function() {
- return L;
- }),
- a.d(t, "O", function() {
- return E;
- }),
- a.d(t, "A", function() {
- return T;
- }),
- a.d(t, "l", function() {
- return k;
- }),
- a.d(t, "P", function() {
- return C;
- }),
- a.d(t, "U", function() {
- return x;
- }),
- a.d(t, "G", function() {
- return F;
- }),
- a.d(t, "m", function() {
- return P;
- }),
- a.d(t, "v", function() {
- return A;
- }),
- a.d(t, "K", function() {
- return N;
- }),
- a.d(t, "f", function() {
- return G;
- }),
- a.d(t, "e", function() {
- return R;
- }),
- a.d(t, "I", function() {
- return j;
- }),
- a.d(t, "H", function() {
- return D;
- }),
- a.d(t, "N", function() {
- return $;
- }),
- a.d(t, "E", function() {
- return M;
- }),
- a.d(t, "a", function() {
- return q;
- }),
- a.d(t, "x", function() {
- return U;
- }),
- 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, "D", function() {
- return z;
- }),
- a.d(t, "r", function() {
- return Y;
- }),
- a.d(t, "B", function() {
- return X;
- }),
- a.d(t, "z", function() {
- return J;
- }),
- a.d(t, "y", 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, "b", function() {
- return re;
- });
- var r = a("b85c"),
- l = a("3835"),
- n = a("267e"),
- o = sessionStorage.getItem("tenantConfig");
- o = o ? JSON.parse(o) : {};
- var i = o.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" }
- ]))
- : ((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" }
- ]));
- var c = [
- { label: "乐团课", value: "MUSIC" },
- { label: "VIP课", value: "VIP" },
- { label: "网管课", value: "PRACTICE" }
- ],
- 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" }
- ],
- f = [
- { value: "NORMAL", label: "正常" },
- { value: "TRUANT", label: "旷课" },
- { value: "LEAVE", label: "请假" }
- ],
- b = [].concat(f, [
- { 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: "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: "直播购物" }
- ],
- g = [
- { value: "ING", label: "交易中" },
- { value: "SUCCESS", label: "成功交易" },
- { value: "FAILED", label: "交易失败" },
- { value: "CLOSE", label: "交易关闭" }
- ],
- v = [
- { value: "0", text: "未开始" },
- { value: "1", text: "报名中" },
- { value: "5", text: "报名结束" },
- { value: "2", text: "进行中" },
- { value: "4", text: "已结束" },
- { value: "3", text: "取消" },
- { value: "6", text: "暂停" }
- ],
- y = [
- { value: "NOT_START", label: "未开始" },
- { value: "UNDERWAY", label: "进行中" },
- { value: "OVER", label: "已结束" }
- ],
- S = [
- { 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: "VIP课回访", label: "VIP课回访" },
- { 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: "汇付" }
- ],
- 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: "高三" }
- ],
- C = [
- { value: "INTERNAL", label: "内部" },
- { value: "EXTERNAL", label: "外部" },
- { value: "ALL", label: "全部" }
- ],
- x = [
- { label: "不限制", value: "1" },
- { label: "线上不可调为线下", value: "0" },
- { label: "线下不可调为线上", value: "2" },
- { label: "线上线下不可互调", value: "3" }
- ],
- F = ae(n["musicGroupType"]),
- P = ae(n["classTime"]),
- A = ae(n["courseViewType"]),
- N = ae(n["payOrderType"]),
- G = ae(n["auditType"]),
- R = ae(n["auditPaymentType"]),
- j = ae(n["orderServerType"]),
- D = ae(n["orderAuditType"]),
- $ = ae(n["rewardModeType"]),
- M = ae(n["musicClassType"]),
- q = ae(n["ProbationPeriodStatus"]),
- U = ae(n["downListType"]),
- V = ae(n["conclusion"]),
- W = ae(n["clientType"]),
- H = ae(n["couponType"]),
- B = ae(n["backType"]),
- z = ae(n["memberEnum"]),
- Y = ae(n["coupontypeDetail"]),
- X = ae(n["issue"]),
- J = ae(n["feedbackType"]),
- K = ae(n["feedbackTypeDesc"]),
- Q = ae(n["campState"]),
- Z = ae(n["catgGoupType"]),
- ee = ae(n["catRole"]),
- te = ae(n["catType"]);
- function ae(e) {
- var t = [];
- for (var a in e) t.push({ label: e[a], value: a });
- return t;
- }
- var re = function(e) {
- var t =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : ["value", "label"],
- a = Object(l["a"])(t, 2),
- n = a[0],
- o = a[1],
- i = {};
- if (e && e.length) {
- var s,
- u = Object(r["a"])(e);
- try {
- for (u.s(); !(s = u.n()).done; ) {
- var c = s.value;
- i[c[n]] = c[o];
- }
- } 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 r = a("bc3a"),
- l = a.n(r),
- n = (a("4328"), a("5f87")),
- o = a("3908"),
- i = a("e3eb"),
- s = a.n(i),
- u = function(e, t, a, r) {
- var i = t.url,
- u = {
- method: t.method ? t.method : "get",
- headers: {
- Authorization: Object(n["b"])(),
- tenantId: Object(n["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() {
- o["a"].startLoading(),
- l()(s()(u))
- .then(function(a) {
- var l = new Blob([a.data], {
- type: "application/vnd.ms-excel;charset=utf-8"
- }),
- n = new Response(l).text();
- n.then(function(a) {
- if (-1 != a.indexOf("code")) {
- var n = JSON.parse(a);
- if (403 == n.code)
- return (
- e.$message.error("登录过期,请重新登录!"),
- void setTimeout(function() {
- e.$store
- .dispatch("user/resetToken")
- .then(function() {
- location.reload();
- });
- }, 1e3)
- );
- 200 == n.code
- ? e.$message.success(n.msg)
- : e.$message.error(n.msg),
- r && r();
- } else {
- var o = URL.createObjectURL(l),
- i = document.createElement("a"),
- s = t.fileName || "导出文件.xls";
- (i.href = o),
- i.setAttribute("download", s),
- document.body.appendChild(i),
- i.click(),
- r && r();
- }
- }),
- o["a"].endLoading();
- })
- .catch(function(t) {
- console.log(t),
- e.$message.error("下载失败,请联系管理员"),
- o["a"].endLoading();
- });
- })
- .catch(function() {});
- };
- },
- f611: function(e, t, a) {
- "use strict";
- a("5192");
- }
- }
- ]);
|