chunk-7303fe92.2519c62e.js 141 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634
  1. (window["webpackJsonp"] = window["webpackJsonp"] || []).push([
  2. ["chunk-7303fe92"],
  3. {
  4. "09f4": function(e, t, a) {
  5. "use strict";
  6. a.d(t, "a", function() {
  7. return o;
  8. }),
  9. (Math.easeInOutQuad = function(e, t, a, r) {
  10. return (
  11. (e /= r / 2),
  12. e < 1
  13. ? (a / 2) * e * e + t
  14. : (e--, (-a / 2) * (e * (e - 2) - 1) + t)
  15. );
  16. });
  17. var r = (function() {
  18. return (
  19. window.requestAnimationFrame ||
  20. window.webkitRequestAnimationFrame ||
  21. window.mozRequestAnimationFrame ||
  22. function(e) {
  23. window.setTimeout(e, 1e3 / 60);
  24. }
  25. );
  26. })();
  27. function l(e) {
  28. (document.documentElement.scrollTop = e),
  29. (document.body.parentNode.scrollTop = e),
  30. (document.body.scrollTop = e);
  31. }
  32. function n() {
  33. return (
  34. document.documentElement.scrollTop ||
  35. document.body.parentNode.scrollTop ||
  36. document.body.scrollTop
  37. );
  38. }
  39. function o(e, t, a) {
  40. var o = n(),
  41. i = e - o,
  42. s = 20,
  43. u = 0;
  44. t = "undefined" === typeof t ? 500 : t;
  45. var c = function e() {
  46. u += s;
  47. var n = Math.easeInOutQuad(u, o, i, t);
  48. l(n), u < t ? r(e) : a && "function" === typeof a && a();
  49. };
  50. c();
  51. }
  52. },
  53. 2543: function(e, t, a) {
  54. "use strict";
  55. a.d(t, "i", function() {
  56. return i;
  57. }),
  58. a.d(t, "j", function() {
  59. return s;
  60. }),
  61. a.d(t, "m", function() {
  62. return u;
  63. }),
  64. a.d(t, "g", function() {
  65. return c;
  66. }),
  67. a.d(t, "k", function() {
  68. return d;
  69. }),
  70. a.d(t, "h", function() {
  71. return p;
  72. }),
  73. a.d(t, "a", function() {
  74. return m;
  75. }),
  76. a.d(t, "b", function() {
  77. return f;
  78. }),
  79. a.d(t, "c", function() {
  80. return b;
  81. }),
  82. a.d(t, "f", function() {
  83. return h;
  84. }),
  85. a.d(t, "l", function() {
  86. return g;
  87. }),
  88. a.d(t, "e", function() {
  89. return v;
  90. }),
  91. a.d(t, "d", function() {
  92. return y;
  93. });
  94. var r = a("b775"),
  95. l = a("4328"),
  96. n = a.n(l),
  97. o = "/api-web";
  98. function i(e) {
  99. return Object(r["a"])({
  100. url: o + "/goods/queryPage",
  101. method: "get",
  102. params: e
  103. });
  104. }
  105. function s(e) {
  106. return Object(r["a"])({
  107. url: o + "/goods/get/".concat(e),
  108. method: "get"
  109. });
  110. }
  111. function u(e) {
  112. return Object(r["a"])({
  113. url: o + "/goods/updateGoodsStatus",
  114. method: "post",
  115. data: n.a.stringify(e)
  116. });
  117. }
  118. function c(e) {
  119. return Object(r["a"])({
  120. url: o + "/goods/add",
  121. method: "post",
  122. data: n.a.stringify(e)
  123. });
  124. }
  125. function d(e) {
  126. return Object(r["a"])({
  127. url: o + "/goods/update",
  128. method: "post",
  129. data: n.a.stringify(e)
  130. });
  131. }
  132. function p(e) {
  133. return Object(r["a"])({
  134. url: o + "/goods/del/".concat(e),
  135. method: "post"
  136. });
  137. }
  138. function m(e) {
  139. return Object(r["a"])({
  140. url: o + "/category/queryPage",
  141. method: "get",
  142. params: e
  143. });
  144. }
  145. function f(e) {
  146. return Object(r["a"])({
  147. url: o + "/category/upset",
  148. method: "post",
  149. data: e
  150. });
  151. }
  152. function b(e) {
  153. return Object(r["a"])({
  154. url: o + "/category/del",
  155. method: "post",
  156. data: n.a.stringify(e)
  157. });
  158. }
  159. function h(e) {
  160. return Object(r["a"])({
  161. url: o + "/subjectChange/queryPage",
  162. method: "get",
  163. params: e
  164. });
  165. }
  166. function g(e) {
  167. return Object(r["a"])({
  168. url: o + "/subjectChange/updateCostMargin",
  169. method: "post",
  170. data: n.a.stringify(e)
  171. });
  172. }
  173. function v(e) {
  174. return Object(r["a"])({
  175. url: o + "/goodsProcurement/queryGoodsProcurements",
  176. method: "get",
  177. params: e
  178. });
  179. }
  180. function y(e) {
  181. return Object(r["a"])({
  182. url: o + "/goods/addGoodsProcurement",
  183. method: "post",
  184. params: e
  185. });
  186. }
  187. },
  188. 3607: function(e, t, a) {
  189. "use strict";
  190. a.d(t, "h", function() {
  191. return i;
  192. }),
  193. a.d(t, "e", function() {
  194. return s;
  195. }),
  196. a.d(t, "g", function() {
  197. return u;
  198. }),
  199. a.d(t, "f", function() {
  200. return c;
  201. }),
  202. a.d(t, "j", function() {
  203. return d;
  204. }),
  205. a.d(t, "k", function() {
  206. return p;
  207. }),
  208. a.d(t, "i", function() {
  209. return m;
  210. }),
  211. a.d(t, "m", function() {
  212. return f;
  213. }),
  214. a.d(t, "n", function() {
  215. return b;
  216. }),
  217. a.d(t, "l", function() {
  218. return h;
  219. }),
  220. a.d(t, "p", function() {
  221. return g;
  222. }),
  223. a.d(t, "b", function() {
  224. return v;
  225. }),
  226. a.d(t, "a", function() {
  227. return y;
  228. }),
  229. a.d(t, "d", function() {
  230. return S;
  231. }),
  232. a.d(t, "o", function() {
  233. return w;
  234. }),
  235. a.d(t, "c", function() {
  236. return O;
  237. }),
  238. a.d(t, "q", function() {
  239. return I;
  240. });
  241. var r = a("b775"),
  242. l = a("4328"),
  243. n = a.n(l),
  244. o = "/api-web";
  245. function i(e) {
  246. return Object(r["a"])({
  247. url: o + "/tenantEntryActivities/queryPage",
  248. method: "get",
  249. params: e
  250. });
  251. }
  252. function s(e) {
  253. return Object(r["a"])({
  254. url: o + "/tenantEntryActivities/merge",
  255. method: "post",
  256. data: e
  257. });
  258. }
  259. function u(e) {
  260. return Object(r["a"])({
  261. url: o + "/tenantEntryActivities/updateDelFlag",
  262. method: "post",
  263. data: n.a.stringify(e)
  264. });
  265. }
  266. function c(e) {
  267. return Object(r["a"])({
  268. url: o + "/tenantEntryActivities/query",
  269. method: "get",
  270. params: e
  271. });
  272. }
  273. function d(e) {
  274. return Object(r["a"])({
  275. url: "/api-cms/helpCenterCatalog/list",
  276. method: "get",
  277. params: e
  278. });
  279. }
  280. function p(e) {
  281. return Object(r["a"])({
  282. url: "/api-cms/helpCenterCatalog/modify",
  283. method: "post",
  284. data: n.a.stringify(e)
  285. });
  286. }
  287. function m(e) {
  288. return Object(r["a"])({
  289. url: "/api-cms/helpCenterCatalog/delete",
  290. method: "post",
  291. data: n.a.stringify(e)
  292. });
  293. }
  294. function f(e) {
  295. return Object(r["a"])({
  296. url: "/api-cms/helpCenterContent/list",
  297. method: "get",
  298. params: e
  299. });
  300. }
  301. function b(e) {
  302. return Object(r["a"])({
  303. url: "/api-cms/helpCenterContent/modify",
  304. method: "post",
  305. data: n.a.stringify(e)
  306. });
  307. }
  308. function h(e) {
  309. return Object(r["a"])({
  310. url: "/api-cms/helpCenterContent/delete",
  311. method: "post",
  312. data: n.a.stringify(e)
  313. });
  314. }
  315. function g(e) {
  316. return Object(r["a"])({
  317. url: "/api-web/sysSuggestion/queryPage",
  318. method: "get",
  319. params: e
  320. });
  321. }
  322. function v(e) {
  323. return Object(r["a"])({
  324. method: "get",
  325. url: "/api-web/employeeInfo/queryPage",
  326. params: e
  327. });
  328. }
  329. function y(e) {
  330. return Object(r["a"])({
  331. method: "post",
  332. url: "/api-web/employeeInfo/insert",
  333. data: e
  334. });
  335. }
  336. function S(e) {
  337. return Object(r["a"])({
  338. method: "post",
  339. url: "/api-web/employeeInfo/update",
  340. data: e
  341. });
  342. }
  343. function w(e) {
  344. return Object(r["a"])({
  345. method: "post",
  346. url: "/api-web/employeeInfo/insertVisit",
  347. data: e
  348. });
  349. }
  350. function O(e) {
  351. return Object(r["a"])({
  352. method: "get",
  353. url: "/api-web/employeeInfo/queryDetail",
  354. params: e
  355. });
  356. }
  357. function I(e) {
  358. return Object(r["a"])({
  359. method: "post",
  360. url: "/api-web/uploadFile",
  361. data: e
  362. });
  363. }
  364. },
  365. 5192: function(e, t, a) {},
  366. "54b3": function(e, t, a) {
  367. "use strict";
  368. a.r(t);
  369. var r,
  370. l = function() {
  371. var e = this,
  372. t = e.$createElement,
  373. a = e._self._c || t;
  374. return a(
  375. "div",
  376. { staticClass: "m-container" },
  377. [
  378. e._m(0),
  379. e._v(" "),
  380. a(
  381. "div",
  382. { staticClass: "m-core" },
  383. [
  384. a(
  385. "el-button",
  386. {
  387. directives: [
  388. {
  389. name: "permission",
  390. rawName: "v-permission",
  391. value: "/shopOperation",
  392. expression: "'/shopOperation'"
  393. }
  394. ],
  395. staticStyle: { "margin-bottom": "20px" },
  396. attrs: { type: "primary" },
  397. on: {
  398. click: function(t) {
  399. return e.onShopOperation("create");
  400. }
  401. }
  402. },
  403. [e._v("添加")]
  404. ),
  405. e._v(" "),
  406. a(
  407. "el-button",
  408. {
  409. directives: [
  410. {
  411. name: "permission",
  412. rawName: "v-permission",
  413. value: "export/goods",
  414. expression: "'export/goods'"
  415. }
  416. ],
  417. staticStyle: { "margin-bottom": "20px" },
  418. attrs: { type: "primary" },
  419. on: { click: e.exportShopList }
  420. },
  421. [e._v("商品导出")]
  422. ),
  423. e._v(" "),
  424. a(
  425. "el-button",
  426. {
  427. directives: [
  428. {
  429. name: "permission",
  430. rawName: "v-permission",
  431. value: "goods/add/commonAdd",
  432. expression: "'goods/add/commonAdd'"
  433. }
  434. ],
  435. staticStyle: { "margin-bottom": "20px" },
  436. attrs: { type: "primary" },
  437. on: { click: e.onShopComAdd }
  438. },
  439. [e._v("添加组合商品")]
  440. ),
  441. e._v(" "),
  442. a(
  443. "save-form",
  444. {
  445. ref: "searchForm",
  446. staticClass: "searchForm",
  447. attrs: { inline: !0, model: e.searchForm },
  448. on: { submit: e.onSearch, reset: e.onReset }
  449. },
  450. [
  451. a(
  452. "el-form-item",
  453. { attrs: { prop: "search" } },
  454. [
  455. a("el-input", {
  456. attrs: {
  457. clearable: "",
  458. placeholder: "商品编号/货号/商品名称"
  459. },
  460. model: {
  461. value: e.searchForm.search,
  462. callback: function(t) {
  463. e.$set(
  464. e.searchForm,
  465. "search",
  466. "string" === typeof t ? t.trim() : t
  467. );
  468. },
  469. expression: "searchForm.search"
  470. }
  471. })
  472. ],
  473. 1
  474. ),
  475. e._v(" "),
  476. a(
  477. "el-form-item",
  478. { attrs: { prop: "educationShowOrganId" } },
  479. [
  480. a(
  481. "el-select",
  482. {
  483. attrs: {
  484. clearable: "",
  485. placeholder: "移动端可售分部"
  486. },
  487. model: {
  488. value: e.searchForm.educationShowOrganId,
  489. callback: function(t) {
  490. e.$set(
  491. e.searchForm,
  492. "educationShowOrganId",
  493. "string" === typeof t ? t.trim() : t
  494. );
  495. },
  496. expression: "searchForm.educationShowOrganId"
  497. }
  498. },
  499. e._l(e.selects.branchs, function(e) {
  500. return a("el-option", {
  501. key: e.id,
  502. attrs: { label: e.name, value: e.id.toString() }
  503. });
  504. }),
  505. 1
  506. )
  507. ],
  508. 1
  509. ),
  510. e._v(" "),
  511. a(
  512. "el-form-item",
  513. { attrs: { prop: "courseFeeShowOrganId" } },
  514. [
  515. a(
  516. "el-select",
  517. {
  518. attrs: {
  519. clearable: "",
  520. placeholder: "课程收费团可售分部"
  521. },
  522. model: {
  523. value: e.searchForm.courseFeeShowOrganId,
  524. callback: function(t) {
  525. e.$set(
  526. e.searchForm,
  527. "courseFeeShowOrganId",
  528. "string" === typeof t ? t.trim() : t
  529. );
  530. },
  531. expression: "searchForm.courseFeeShowOrganId"
  532. }
  533. },
  534. e._l(e.selects.branchs, function(e) {
  535. return a("el-option", {
  536. key: e.id,
  537. attrs: { label: e.name, value: e.id.toString() }
  538. });
  539. }),
  540. 1
  541. )
  542. ],
  543. 1
  544. ),
  545. e._v(" "),
  546. a(
  547. "el-form-item",
  548. { attrs: { prop: "memberFeeShowOrganId" } },
  549. [
  550. a(
  551. "el-select",
  552. {
  553. attrs: {
  554. clearable: "",
  555. placeholder: "会员收费团可见分部"
  556. },
  557. model: {
  558. value: e.searchForm.memberFeeShowOrganId,
  559. callback: function(t) {
  560. e.$set(
  561. e.searchForm,
  562. "memberFeeShowOrganId",
  563. "string" === typeof t ? t.trim() : t
  564. );
  565. },
  566. expression: "searchForm.memberFeeShowOrganId"
  567. }
  568. },
  569. e._l(e.selects.branchs, function(e) {
  570. return a("el-option", {
  571. key: e.id,
  572. attrs: { label: e.name, value: e.id.toString() }
  573. });
  574. }),
  575. 1
  576. )
  577. ],
  578. 1
  579. ),
  580. e._v(" "),
  581. 1 == e.tenantId
  582. ? a(
  583. "el-form-item",
  584. { attrs: { prop: "replacementShowOrganId" } },
  585. [
  586. a(
  587. "el-select",
  588. {
  589. attrs: {
  590. clearable: "",
  591. placeholder: "乐器置换可见分部"
  592. },
  593. model: {
  594. value: e.searchForm.replacementShowOrganId,
  595. callback: function(t) {
  596. e.$set(
  597. e.searchForm,
  598. "replacementShowOrganId",
  599. "string" === typeof t ? t.trim() : t
  600. );
  601. },
  602. expression:
  603. "searchForm.replacementShowOrganId"
  604. }
  605. },
  606. e._l(e.selects.branchs, function(e) {
  607. return a("el-option", {
  608. key: e.id,
  609. attrs: {
  610. label: e.name,
  611. value: e.id.toString()
  612. }
  613. });
  614. }),
  615. 1
  616. )
  617. ],
  618. 1
  619. )
  620. : e._e(),
  621. e._v(" "),
  622. a(
  623. "el-form-item",
  624. { attrs: { prop: "type" } },
  625. [
  626. a(
  627. "el-select",
  628. {
  629. attrs: { clearable: "", placeholder: "商品类型" },
  630. model: {
  631. value: e.searchForm.type,
  632. callback: function(t) {
  633. e.$set(
  634. e.searchForm,
  635. "type",
  636. "string" === typeof t ? t.trim() : t
  637. );
  638. },
  639. expression: "searchForm.type"
  640. }
  641. },
  642. e._l(e.goodsType, function(e, t) {
  643. return a("el-option", {
  644. key: t,
  645. attrs: { label: e.label, value: e.value }
  646. });
  647. }),
  648. 1
  649. )
  650. ],
  651. 1
  652. ),
  653. e._v(" "),
  654. a(
  655. "el-form-item",
  656. { attrs: { prop: "goodsCategoryId" } },
  657. [
  658. a(
  659. "el-select",
  660. {
  661. attrs: { clearable: "", placeholder: "商品分类" },
  662. model: {
  663. value: e.searchForm.goodsCategoryId,
  664. callback: function(t) {
  665. e.$set(
  666. e.searchForm,
  667. "goodsCategoryId",
  668. "string" === typeof t ? t.trim() : t
  669. );
  670. },
  671. expression: "searchForm.goodsCategoryId"
  672. }
  673. },
  674. e._l(e.categoryList, function(e, t) {
  675. return a("el-option", {
  676. key: t,
  677. attrs: { label: e.label, value: e.value }
  678. });
  679. }),
  680. 1
  681. )
  682. ],
  683. 1
  684. ),
  685. e._v(" "),
  686. a(
  687. "el-form-item",
  688. { attrs: { prop: "status" } },
  689. [
  690. a(
  691. "el-select",
  692. {
  693. attrs: {
  694. clearable: "",
  695. placeholder: "是否是上架"
  696. },
  697. model: {
  698. value: e.searchForm.status,
  699. callback: function(t) {
  700. e.$set(
  701. e.searchForm,
  702. "status",
  703. "string" === typeof t ? t.trim() : t
  704. );
  705. },
  706. expression: "searchForm.status"
  707. }
  708. },
  709. [
  710. a("el-option", {
  711. attrs: { label: "是", value: "1" }
  712. }),
  713. e._v(" "),
  714. a("el-option", {
  715. attrs: { label: "否", value: "0" }
  716. })
  717. ],
  718. 1
  719. )
  720. ],
  721. 1
  722. ),
  723. e._v(" "),
  724. a(
  725. "el-form-item",
  726. { attrs: { prop: "groupGoods" } },
  727. [
  728. a(
  729. "el-select",
  730. {
  731. attrs: {
  732. clearable: "",
  733. placeholder: "是否是组合商品"
  734. },
  735. model: {
  736. value: e.searchForm.groupGoods,
  737. callback: function(t) {
  738. e.$set(
  739. e.searchForm,
  740. "groupGoods",
  741. "string" === typeof t ? t.trim() : t
  742. );
  743. },
  744. expression: "searchForm.groupGoods"
  745. }
  746. },
  747. [
  748. a("el-option", {
  749. attrs: { label: "是", value: "1" }
  750. }),
  751. e._v(" "),
  752. a("el-option", {
  753. attrs: { label: "否", value: "0" }
  754. })
  755. ],
  756. 1
  757. )
  758. ],
  759. 1
  760. ),
  761. e._v(" "),
  762. a(
  763. "el-form-item",
  764. [
  765. a(
  766. "el-button",
  767. {
  768. attrs: { type: "danger", "native-type": "submit" }
  769. },
  770. [e._v("搜索")]
  771. ),
  772. e._v(" "),
  773. a(
  774. "el-button",
  775. {
  776. attrs: { type: "primary", "native-type": "reset" }
  777. },
  778. [e._v("重置")]
  779. )
  780. ],
  781. 1
  782. )
  783. ],
  784. 1
  785. ),
  786. e._v(" "),
  787. a(
  788. "div",
  789. { staticClass: "tableWrap" },
  790. [
  791. a(
  792. "el-table",
  793. {
  794. attrs: {
  795. data: e.tableList,
  796. "header-cell-style": {
  797. background: "#EDEEF0",
  798. color: "#444"
  799. }
  800. }
  801. },
  802. [
  803. a("el-table-column", {
  804. attrs: {
  805. align: "center",
  806. prop: "id",
  807. label: "商品编号"
  808. }
  809. }),
  810. e._v(" "),
  811. a("el-table-column", {
  812. attrs: {
  813. align: "center",
  814. prop: "sn",
  815. label: "货号"
  816. }
  817. }),
  818. e._v(" "),
  819. a("el-table-column", {
  820. attrs: {
  821. align: "center",
  822. prop: "brand",
  823. label: "品牌"
  824. }
  825. }),
  826. e._v(" "),
  827. a("el-table-column", {
  828. attrs: {
  829. align: "center",
  830. prop: "name",
  831. label: "商品名称",
  832. width: "150px"
  833. },
  834. scopedSlots: e._u([
  835. {
  836. key: "default",
  837. fn: function(e) {
  838. return [
  839. a("overflow-text", {
  840. attrs: { text: e.row.name, width: "100%" }
  841. })
  842. ];
  843. }
  844. }
  845. ])
  846. }),
  847. e._v(" "),
  848. a("el-table-column", {
  849. attrs: { align: "center", label: "是否组合商品" },
  850. scopedSlots: e._u([
  851. {
  852. key: "default",
  853. fn: function(t) {
  854. return [
  855. e._v(
  856. "\n " +
  857. e._s(
  858. t.row.complementGoodsIdList
  859. ? "是"
  860. : "否"
  861. ) +
  862. "\n "
  863. )
  864. ];
  865. }
  866. }
  867. ])
  868. }),
  869. e._v(" "),
  870. 1 == e.tenantId
  871. ? a("el-table-column", {
  872. key: Math.random(),
  873. attrs: {
  874. align: "center",
  875. label: "是否库存预警"
  876. },
  877. scopedSlots: e._u(
  878. [
  879. {
  880. key: "default",
  881. fn: function(t) {
  882. return [
  883. t.row.complementGoodsIdList
  884. ? e._e()
  885. : a("span", [
  886. e._v(
  887. "\n " +
  888. e._s(
  889. t.row.stockWarning
  890. ? "是"
  891. : "否"
  892. ) +
  893. "\n "
  894. )
  895. ])
  896. ];
  897. }
  898. }
  899. ],
  900. null,
  901. !1,
  902. 214808523
  903. )
  904. })
  905. : e._e(),
  906. e._v(" "),
  907. a("el-table-column", {
  908. attrs: { align: "center", label: "商品类型" },
  909. scopedSlots: e._u([
  910. {
  911. key: "default",
  912. fn: function(t) {
  913. return [
  914. e._v(
  915. "\n " +
  916. e._s(e._f("shopType")(t.row.type)) +
  917. "\n "
  918. )
  919. ];
  920. }
  921. }
  922. ])
  923. }),
  924. e._v(" "),
  925. a("el-table-column", {
  926. attrs: {
  927. align: "center",
  928. prop: "goodsCategoryName",
  929. label: "商品分类"
  930. }
  931. }),
  932. e._v(" "),
  933. a("el-table-column", {
  934. attrs: {
  935. align: "center",
  936. prop: "specification",
  937. label: "具体型号"
  938. },
  939. scopedSlots: e._u([
  940. {
  941. key: "default",
  942. fn: function(t) {
  943. return [
  944. a(
  945. "span",
  946. {
  947. staticStyle: {
  948. "max-height": "64px",
  949. display: "block"
  950. }
  951. },
  952. [e._v(e._s(t.row.specification))]
  953. )
  954. ];
  955. }
  956. }
  957. ])
  958. }),
  959. e._v(" "),
  960. 1 == e.tenantId
  961. ? a("el-table-column", {
  962. key: Math.random(),
  963. attrs: {
  964. align: "center",
  965. prop: "stockCount",
  966. label: "内部库存"
  967. },
  968. scopedSlots: e._u(
  969. [
  970. {
  971. key: "default",
  972. fn: function(t) {
  973. return [
  974. t.row.complementGoodsIdList
  975. ? a("span", [
  976. e._v(
  977. "\n " +
  978. e._s(
  979. t.row.stockCount
  980. ? t.row.stockCount
  981. : ""
  982. ) +
  983. "\n "
  984. )
  985. ])
  986. : a("span", [
  987. e._v(e._s(t.row.stockCount))
  988. ])
  989. ];
  990. }
  991. }
  992. ],
  993. null,
  994. !1,
  995. 4259632143
  996. )
  997. })
  998. : e._e(),
  999. e._v(" "),
  1000. a("el-table-column", {
  1001. attrs: {
  1002. align: "center",
  1003. prop: "taxStockCount",
  1004. label: "税务库存"
  1005. },
  1006. scopedSlots: e._u([
  1007. {
  1008. key: "default",
  1009. fn: function(t) {
  1010. return [
  1011. t.row.complementGoodsIdList
  1012. ? a("span", [
  1013. e._v(
  1014. "\n " +
  1015. e._s(
  1016. t.row.taxStockCount
  1017. ? t.row.taxStockCount
  1018. : ""
  1019. ) +
  1020. "\n "
  1021. )
  1022. ])
  1023. : a("span", [
  1024. e._v(e._s(t.row.taxStockCount))
  1025. ])
  1026. ];
  1027. }
  1028. }
  1029. ])
  1030. }),
  1031. e._v(" "),
  1032. 1 == e.tenantId
  1033. ? a("el-table-column", {
  1034. key: Math.random(),
  1035. attrs: {
  1036. align: "center",
  1037. prop: "stockType",
  1038. label: "库存类型"
  1039. },
  1040. scopedSlots: e._u(
  1041. [
  1042. {
  1043. key: "default",
  1044. fn: function(t) {
  1045. return [
  1046. e._v(
  1047. "\n " +
  1048. e._s(
  1049. e._f("stockTypeStatus")(
  1050. t.row.stockType
  1051. )
  1052. ) +
  1053. "\n "
  1054. )
  1055. ];
  1056. }
  1057. }
  1058. ],
  1059. null,
  1060. !1,
  1061. 242371152
  1062. )
  1063. })
  1064. : e._e(),
  1065. e._v(" "),
  1066. a("el-table-column", {
  1067. attrs: {
  1068. align: "center",
  1069. prop: "marketPrice",
  1070. label: "市场价(元)"
  1071. },
  1072. scopedSlots: e._u([
  1073. {
  1074. key: "default",
  1075. fn: function(t) {
  1076. return [
  1077. e._v(
  1078. "\n " +
  1079. e._s(
  1080. e._f("moneyFormat")(t.row.marketPrice)
  1081. ) +
  1082. "\n "
  1083. )
  1084. ];
  1085. }
  1086. }
  1087. ])
  1088. }),
  1089. e._v(" "),
  1090. a("el-table-column", {
  1091. attrs: {
  1092. align: "center",
  1093. prop: "marketPrice",
  1094. label: "零售价(元)"
  1095. },
  1096. scopedSlots: e._u([
  1097. {
  1098. key: "default",
  1099. fn: function(t) {
  1100. return [
  1101. e._v(
  1102. "\n " +
  1103. e._s(
  1104. e._f("moneyFormat")(
  1105. t.row.discountPrice
  1106. )
  1107. ) +
  1108. "\n "
  1109. )
  1110. ];
  1111. }
  1112. }
  1113. ])
  1114. }),
  1115. e._v(" "),
  1116. a("el-table-column", {
  1117. attrs: {
  1118. align: "center",
  1119. prop: "groupPurchasePrice",
  1120. label: "商品团购价(元)"
  1121. },
  1122. scopedSlots: e._u([
  1123. {
  1124. key: "default",
  1125. fn: function(t) {
  1126. return [
  1127. e._v(
  1128. "\n " +
  1129. e._s(
  1130. e._f("moneyFormat")(
  1131. t.row.groupPurchasePrice
  1132. )
  1133. ) +
  1134. "\n "
  1135. )
  1136. ];
  1137. }
  1138. }
  1139. ])
  1140. }),
  1141. e._v(" "),
  1142. a("el-table-column", {
  1143. attrs: {
  1144. align: "center",
  1145. "cell-style": "padding: 0",
  1146. label: "商品缩略图"
  1147. },
  1148. scopedSlots: e._u([
  1149. {
  1150. key: "default",
  1151. fn: function(e) {
  1152. return [
  1153. a("img", {
  1154. staticClass: "shopImage",
  1155. attrs: {
  1156. src: e.row.image,
  1157. alt: "",
  1158. srcset: ""
  1159. }
  1160. })
  1161. ];
  1162. }
  1163. }
  1164. ])
  1165. }),
  1166. e._v(" "),
  1167. a("el-table-column", {
  1168. attrs: { align: "center", label: "商品描述" },
  1169. scopedSlots: e._u([
  1170. {
  1171. key: "default",
  1172. fn: function(e) {
  1173. return [
  1174. a("Tooltip", {
  1175. attrs: { content: e.row.brief }
  1176. })
  1177. ];
  1178. }
  1179. }
  1180. ])
  1181. }),
  1182. e._v(" "),
  1183. a("el-table-column", {
  1184. attrs: { align: "center", label: "商品详情" },
  1185. scopedSlots: e._u([
  1186. {
  1187. key: "default",
  1188. fn: function(e) {
  1189. return [
  1190. a("Tooltip", {
  1191. attrs: { content: e.row.desc }
  1192. })
  1193. ];
  1194. }
  1195. }
  1196. ])
  1197. }),
  1198. e._v(" "),
  1199. a("el-table-column", {
  1200. key: "caozuo",
  1201. attrs: {
  1202. align: "center",
  1203. width: "180px",
  1204. label: "操作",
  1205. fixed: "right"
  1206. },
  1207. scopedSlots: e._u([
  1208. {
  1209. key: "default",
  1210. fn: function(t) {
  1211. return [
  1212. !t.row.complementGoodsIdList &&
  1213. e.permission("/purchaseLlist")
  1214. ? a(
  1215. "el-button",
  1216. {
  1217. attrs: { type: "text" },
  1218. on: {
  1219. click: function(a) {
  1220. return e.onPurchaseList(t.row);
  1221. }
  1222. }
  1223. },
  1224. [e._v("进货清单")]
  1225. )
  1226. : e._e(),
  1227. e._v(" "),
  1228. 0 == t.row.status &&
  1229. e.permission("goods/updateGoodsStatus")
  1230. ? a(
  1231. "el-button",
  1232. {
  1233. attrs: { type: "text" },
  1234. on: {
  1235. click: function(a) {
  1236. return e.onUpdate(t.row, 0);
  1237. }
  1238. }
  1239. },
  1240. [e._v("上架")]
  1241. )
  1242. : e._e(),
  1243. e._v(" "),
  1244. 1 == t.row.status &&
  1245. e.permission(
  1246. "goods/updateGoodsStatus/downGoods"
  1247. )
  1248. ? a(
  1249. "el-button",
  1250. {
  1251. attrs: { type: "text" },
  1252. on: {
  1253. click: function(a) {
  1254. return e.onUpdate(t.row, 1);
  1255. }
  1256. }
  1257. },
  1258. [e._v("下架")]
  1259. )
  1260. : e._e(),
  1261. e._v(" "),
  1262. 0 == t.row.status &&
  1263. e.permission("/shopOperation/updateShop")
  1264. ? a(
  1265. "el-button",
  1266. {
  1267. attrs: { type: "text" },
  1268. on: {
  1269. click: function(a) {
  1270. return e.onShopOperation(
  1271. "update",
  1272. t.row
  1273. );
  1274. }
  1275. }
  1276. },
  1277. [e._v("修改")]
  1278. )
  1279. : e._e(),
  1280. e._v(" "),
  1281. 1 == t.row.status &&
  1282. e.permission("/shopOperation/shopLook")
  1283. ? a(
  1284. "el-button",
  1285. {
  1286. attrs: { type: "text" },
  1287. on: {
  1288. click: function(a) {
  1289. return e.onShopOperation(
  1290. "look",
  1291. t.row
  1292. );
  1293. }
  1294. }
  1295. },
  1296. [e._v("查看")]
  1297. )
  1298. : e._e(),
  1299. e._v(" "),
  1300. e.permission("/shopOperation/copyShop")
  1301. ? a(
  1302. "el-button",
  1303. {
  1304. attrs: { type: "text" },
  1305. on: {
  1306. click: function(a) {
  1307. return e.onShopOperation(
  1308. "copy",
  1309. t.row
  1310. );
  1311. }
  1312. }
  1313. },
  1314. [e._v("复制")]
  1315. )
  1316. : e._e()
  1317. ];
  1318. }
  1319. }
  1320. ])
  1321. })
  1322. ],
  1323. 1
  1324. ),
  1325. e._v(" "),
  1326. a("pagination", {
  1327. attrs: {
  1328. sync: "",
  1329. total: e.pageInfo.total,
  1330. page: e.pageInfo.page,
  1331. limit: e.pageInfo.limit,
  1332. "page-sizes": e.pageInfo.page_size
  1333. },
  1334. on: {
  1335. "update:total": function(t) {
  1336. return e.$set(e.pageInfo, "total", t);
  1337. },
  1338. "update:page": function(t) {
  1339. return e.$set(e.pageInfo, "page", t);
  1340. },
  1341. "update:limit": function(t) {
  1342. return e.$set(e.pageInfo, "limit", t);
  1343. },
  1344. pagination: e.getList
  1345. }
  1346. })
  1347. ],
  1348. 1
  1349. )
  1350. ],
  1351. 1
  1352. ),
  1353. e._v(" "),
  1354. e.routeShopStatus
  1355. ? a(
  1356. "el-dialog",
  1357. {
  1358. attrs: {
  1359. title: e.addString[e.addType] + "组合商品",
  1360. visible: e.routeShopStatus,
  1361. width: "1000px"
  1362. },
  1363. on: {
  1364. "update:visible": function(t) {
  1365. e.routeShopStatus = t;
  1366. },
  1367. close: function(t) {
  1368. return e.onFormClose("ruleForm");
  1369. }
  1370. }
  1371. },
  1372. [
  1373. a(
  1374. "el-form",
  1375. {
  1376. ref: "ruleForm",
  1377. attrs: { model: e.form, rules: e.rules, inline: !0 }
  1378. },
  1379. [
  1380. a("el-alert", {
  1381. staticClass: "alert",
  1382. attrs: {
  1383. title: "基础信息",
  1384. closable: !1,
  1385. type: "info"
  1386. }
  1387. }),
  1388. e._v(" "),
  1389. a(
  1390. "el-form-item",
  1391. {
  1392. attrs: {
  1393. label: "商品名称",
  1394. prop: "name",
  1395. "label-width": e.formLabelWidth
  1396. }
  1397. },
  1398. [
  1399. a("el-input", {
  1400. staticStyle: { width: "220px !important" },
  1401. attrs: {
  1402. placeholder: "请输入商品名称",
  1403. type: "text",
  1404. disabled: e.addDisabled
  1405. },
  1406. model: {
  1407. value: e.form.name,
  1408. callback: function(t) {
  1409. e.$set(
  1410. e.form,
  1411. "name",
  1412. "string" === typeof t ? t.trim() : t
  1413. );
  1414. },
  1415. expression: "form.name"
  1416. }
  1417. })
  1418. ],
  1419. 1
  1420. ),
  1421. e._v(" "),
  1422. a(
  1423. "el-form-item",
  1424. {
  1425. attrs: {
  1426. label: "货号",
  1427. prop: "sn",
  1428. "label-width": e.formLabelWidth
  1429. }
  1430. },
  1431. [
  1432. a("el-input", {
  1433. staticStyle: { width: "220px !important" },
  1434. attrs: {
  1435. placeholder: "请输入货号",
  1436. type: "text",
  1437. disabled: e.addDisabled
  1438. },
  1439. model: {
  1440. value: e.form.sn,
  1441. callback: function(t) {
  1442. e.$set(
  1443. e.form,
  1444. "sn",
  1445. "string" === typeof t ? t.trim() : t
  1446. );
  1447. },
  1448. expression: "form.sn"
  1449. }
  1450. })
  1451. ],
  1452. 1
  1453. ),
  1454. e._v(" "),
  1455. a(
  1456. "el-form-item",
  1457. {
  1458. attrs: {
  1459. label: "品牌",
  1460. prop: "brand",
  1461. "label-width": e.formLabelWidth
  1462. }
  1463. },
  1464. [
  1465. a("el-input", {
  1466. staticStyle: { width: "220px !important" },
  1467. attrs: {
  1468. disabled: e.addDisabled,
  1469. placeholder: "请输入品牌"
  1470. },
  1471. model: {
  1472. value: e.form.brand,
  1473. callback: function(t) {
  1474. e.$set(
  1475. e.form,
  1476. "brand",
  1477. "string" === typeof t ? t.trim() : t
  1478. );
  1479. },
  1480. expression: "form.brand"
  1481. }
  1482. })
  1483. ],
  1484. 1
  1485. ),
  1486. e._v(" "),
  1487. a(
  1488. "el-form-item",
  1489. {
  1490. attrs: {
  1491. label: "商品类型",
  1492. prop: "type",
  1493. "label-width": e.formLabelWidth
  1494. }
  1495. },
  1496. [
  1497. a(
  1498. "el-select",
  1499. {
  1500. staticStyle: { width: "220px !important" },
  1501. attrs: {
  1502. disabled: e.addDisabled,
  1503. placeholder: "请选择商品类型"
  1504. },
  1505. model: {
  1506. value: e.form.type,
  1507. callback: function(t) {
  1508. e.$set(
  1509. e.form,
  1510. "type",
  1511. "string" === typeof t ? t.trim() : t
  1512. );
  1513. },
  1514. expression: "form.type"
  1515. }
  1516. },
  1517. e._l(e.goodsType, function(e, t) {
  1518. return a("el-option", {
  1519. key: t,
  1520. attrs: { label: e.label, value: e.value }
  1521. });
  1522. }),
  1523. 1
  1524. )
  1525. ],
  1526. 1
  1527. ),
  1528. e._v(" "),
  1529. a(
  1530. "el-form-item",
  1531. {
  1532. attrs: {
  1533. label: "商品分类",
  1534. prop: "goodsCategoryId",
  1535. "label-width": e.formLabelWidth
  1536. }
  1537. },
  1538. [
  1539. a(
  1540. "el-select",
  1541. {
  1542. staticStyle: { width: "220px !important" },
  1543. attrs: {
  1544. placeholder: "请选择商品分类",
  1545. disabled: e.addDisabled,
  1546. filterable: ""
  1547. },
  1548. model: {
  1549. value: e.form.goodsCategoryId,
  1550. callback: function(t) {
  1551. e.$set(
  1552. e.form,
  1553. "goodsCategoryId",
  1554. "string" === typeof t ? t.trim() : t
  1555. );
  1556. },
  1557. expression: "form.goodsCategoryId"
  1558. }
  1559. },
  1560. e._l(e.categoryList, function(e) {
  1561. return a("el-option", {
  1562. key: e.value,
  1563. attrs: { label: e.label, value: e.value }
  1564. });
  1565. }),
  1566. 1
  1567. )
  1568. ],
  1569. 1
  1570. ),
  1571. e._v(" "),
  1572. a(
  1573. "el-form-item",
  1574. {
  1575. attrs: {
  1576. label: "商品型号",
  1577. prop: "specification",
  1578. "label-width": e.formLabelWidth
  1579. }
  1580. },
  1581. [
  1582. a("el-input", {
  1583. staticStyle: { width: "220px !important" },
  1584. attrs: {
  1585. disabled: e.addDisabled,
  1586. placeholder: "请输入商品型号"
  1587. },
  1588. model: {
  1589. value: e.form.specification,
  1590. callback: function(t) {
  1591. e.$set(
  1592. e.form,
  1593. "specification",
  1594. "string" === typeof t ? t.trim() : t
  1595. );
  1596. },
  1597. expression: "form.specification"
  1598. }
  1599. })
  1600. ],
  1601. 1
  1602. ),
  1603. e._v(" "),
  1604. e._l(e.form.goodsList, function(t, r) {
  1605. return a(
  1606. "div",
  1607. { key: r },
  1608. [
  1609. a(
  1610. "el-form-item",
  1611. {
  1612. staticStyle: {
  1613. display: "inline-block",
  1614. width: "80% !important"
  1615. },
  1616. attrs: {
  1617. label: "商品" + (r + 1),
  1618. "label-width": e.formLabelWidth,
  1619. prop: "goodsList." + r + ".id",
  1620. rules: [
  1621. {
  1622. required: !0,
  1623. message: "请选择商品",
  1624. trigger: "change"
  1625. }
  1626. ]
  1627. }
  1628. },
  1629. [
  1630. a(
  1631. "el-select",
  1632. {
  1633. staticStyle: {
  1634. width: "220px !important"
  1635. },
  1636. attrs: {
  1637. filterable: "",
  1638. disabled: e.addDisabled,
  1639. placeholder: "请选择商品"
  1640. },
  1641. on: { change: e.onGoodsChange },
  1642. model: {
  1643. value: t.id,
  1644. callback: function(a) {
  1645. e.$set(
  1646. t,
  1647. "id",
  1648. "string" === typeof a
  1649. ? a.trim()
  1650. : a
  1651. );
  1652. },
  1653. expression: "goodsList.id"
  1654. }
  1655. },
  1656. e._l(e.selectGoodsList, function(e, t) {
  1657. return a("el-option", {
  1658. key: t,
  1659. attrs: {
  1660. disabled: e.disabled,
  1661. label: e.name,
  1662. value: e.id
  1663. }
  1664. });
  1665. }),
  1666. 1
  1667. )
  1668. ],
  1669. 1
  1670. ),
  1671. e._v(" "),
  1672. e.addDisabled
  1673. ? e._e()
  1674. : a(
  1675. "div",
  1676. {
  1677. staticStyle: { display: "inline-block" }
  1678. },
  1679. [
  1680. e.form.goodsList.length > 1
  1681. ? a("el-button", {
  1682. attrs: {
  1683. icon: "el-icon-minus",
  1684. circle: ""
  1685. },
  1686. on: {
  1687. click: function(a) {
  1688. return (
  1689. a.preventDefault(),
  1690. e.removeGoodsList(t)
  1691. );
  1692. }
  1693. }
  1694. })
  1695. : e._e(),
  1696. e._v(" "),
  1697. a("el-button", {
  1698. staticStyle: { "margin-left": "5px" },
  1699. attrs: {
  1700. icon: "el-icon-plus",
  1701. circle: ""
  1702. },
  1703. on: {
  1704. click: function(t) {
  1705. return (
  1706. t.preventDefault(),
  1707. e.addGoodsList(t)
  1708. );
  1709. }
  1710. }
  1711. })
  1712. ],
  1713. 1
  1714. )
  1715. ],
  1716. 1
  1717. );
  1718. }),
  1719. e._v(" "),
  1720. a("el-alert", {
  1721. staticClass: "alert",
  1722. attrs: {
  1723. title: "价格信息",
  1724. closable: !1,
  1725. type: "info"
  1726. }
  1727. }),
  1728. e._v(" "),
  1729. a(
  1730. "el-form-item",
  1731. {
  1732. staticClass: "hiddenStart",
  1733. attrs: {
  1734. label: "市场价",
  1735. prop: "marketPrice",
  1736. "label-width": e.formLabelWidth
  1737. }
  1738. },
  1739. [
  1740. a("template", { slot: "label" }, [
  1741. a(
  1742. "p",
  1743. { staticStyle: { position: "relative" } },
  1744. [
  1745. a(
  1746. "span",
  1747. {
  1748. staticStyle: {
  1749. color: "#f56c6c",
  1750. "margin-right": "4px"
  1751. }
  1752. },
  1753. [e._v("*")]
  1754. ),
  1755. e._v("\n 市场价\n "),
  1756. a(
  1757. "el-tooltip",
  1758. {
  1759. attrs: {
  1760. placement: "top",
  1761. "popper-class": "mTooltip"
  1762. }
  1763. },
  1764. [
  1765. a(
  1766. "div",
  1767. {
  1768. attrs: { slot: "content" },
  1769. slot: "content"
  1770. },
  1771. [
  1772. e._v(
  1773. "\n 商品标价,仅在商品购买时做展示,不以该价格向学员销售商品\n "
  1774. )
  1775. ]
  1776. ),
  1777. e._v(" "),
  1778. a("i", {
  1779. staticClass: "el-icon-question",
  1780. staticStyle: {
  1781. "font-size": "18px",
  1782. color: "#f56c6c",
  1783. position: "relative",
  1784. top: "2px"
  1785. }
  1786. })
  1787. ]
  1788. )
  1789. ],
  1790. 1
  1791. )
  1792. ]),
  1793. e._v(" "),
  1794. a("el-input", {
  1795. staticStyle: { width: "220px !important" },
  1796. attrs: {
  1797. type: "number",
  1798. placeholder: "请输入市场价",
  1799. disabled: e.addDisabled
  1800. },
  1801. nativeOn: {
  1802. mousewheel: function(e) {
  1803. e.preventDefault();
  1804. }
  1805. },
  1806. model: {
  1807. value: e.form.marketPrice,
  1808. callback: function(t) {
  1809. e.$set(
  1810. e.form,
  1811. "marketPrice",
  1812. "string" === typeof t ? t.trim() : t
  1813. );
  1814. },
  1815. expression: "form.marketPrice"
  1816. }
  1817. })
  1818. ],
  1819. 2
  1820. ),
  1821. e._v(" "),
  1822. a(
  1823. "el-form-item",
  1824. {
  1825. staticClass: "hiddenStart",
  1826. attrs: {
  1827. label: "零售价",
  1828. prop: "discountPrice",
  1829. "label-width": e.formLabelWidth
  1830. }
  1831. },
  1832. [
  1833. a("template", { slot: "label" }, [
  1834. a(
  1835. "p",
  1836. { staticStyle: { position: "relative" } },
  1837. [
  1838. a(
  1839. "span",
  1840. {
  1841. staticStyle: {
  1842. color: "#f56c6c",
  1843. "margin-right": "4px"
  1844. }
  1845. },
  1846. [e._v("*")]
  1847. ),
  1848. e._v("\n 零售价\n "),
  1849. a(
  1850. "el-tooltip",
  1851. {
  1852. attrs: {
  1853. placement: "top",
  1854. "popper-class": "mTooltip"
  1855. }
  1856. },
  1857. [
  1858. a(
  1859. "div",
  1860. {
  1861. attrs: { slot: "content" },
  1862. slot: "content"
  1863. },
  1864. [
  1865. e._v(
  1866. "\n 管理端APP、乐器维修时学员购买该商品的价格\n "
  1867. )
  1868. ]
  1869. ),
  1870. e._v(" "),
  1871. a("i", {
  1872. staticClass: "el-icon-question",
  1873. staticStyle: {
  1874. "font-size": "18px",
  1875. color: "#f56c6c",
  1876. position: "relative",
  1877. top: "2px"
  1878. }
  1879. })
  1880. ]
  1881. )
  1882. ],
  1883. 1
  1884. )
  1885. ]),
  1886. e._v(" "),
  1887. a("el-input", {
  1888. staticStyle: { width: "220px !important" },
  1889. attrs: {
  1890. type: "number",
  1891. placeholder: "请输入零售价",
  1892. disabled: e.addDisabled
  1893. },
  1894. nativeOn: {
  1895. mousewheel: function(e) {
  1896. e.preventDefault();
  1897. }
  1898. },
  1899. model: {
  1900. value: e.form.discountPrice,
  1901. callback: function(t) {
  1902. e.$set(
  1903. e.form,
  1904. "discountPrice",
  1905. "string" === typeof t ? t.trim() : t
  1906. );
  1907. },
  1908. expression: "form.discountPrice"
  1909. }
  1910. })
  1911. ],
  1912. 2
  1913. ),
  1914. e._v(" "),
  1915. a(
  1916. "el-form-item",
  1917. {
  1918. staticClass: "hiddenStart",
  1919. attrs: {
  1920. label: "商品团购价",
  1921. prop: "groupPurchasePrice",
  1922. "label-width": e.formLabelWidth
  1923. }
  1924. },
  1925. [
  1926. a("template", { slot: "label" }, [
  1927. a(
  1928. "p",
  1929. { staticStyle: { position: "relative" } },
  1930. [
  1931. a(
  1932. "span",
  1933. {
  1934. staticStyle: {
  1935. color: "#f56c6c",
  1936. "margin-right": "4px"
  1937. }
  1938. },
  1939. [e._v("*")]
  1940. ),
  1941. e._v("\n 团购价\n "),
  1942. a(
  1943. "el-tooltip",
  1944. {
  1945. attrs: {
  1946. placement: "top",
  1947. "popper-class": "mTooltip"
  1948. }
  1949. },
  1950. [
  1951. a(
  1952. "div",
  1953. {
  1954. attrs: { slot: "content" },
  1955. slot: "content"
  1956. },
  1957. [
  1958. e._v(
  1959. "乐团报名缴费时学员购买该商品的价格"
  1960. )
  1961. ]
  1962. ),
  1963. e._v(" "),
  1964. a("i", {
  1965. staticClass: "el-icon-question",
  1966. staticStyle: {
  1967. "font-size": "18px",
  1968. color: "#f56c6c",
  1969. position: "relative",
  1970. top: "2px"
  1971. }
  1972. })
  1973. ]
  1974. )
  1975. ],
  1976. 1
  1977. )
  1978. ]),
  1979. e._v(" "),
  1980. a("el-input", {
  1981. staticStyle: { width: "220px !important" },
  1982. attrs: {
  1983. type: "number",
  1984. placeholder: "请输入商品团购价",
  1985. disabled: e.addDisabled
  1986. },
  1987. nativeOn: {
  1988. mousewheel: function(e) {
  1989. e.preventDefault();
  1990. }
  1991. },
  1992. model: {
  1993. value: e.form.groupPurchasePrice,
  1994. callback: function(t) {
  1995. e.$set(
  1996. e.form,
  1997. "groupPurchasePrice",
  1998. "string" === typeof t ? t.trim() : t
  1999. );
  2000. },
  2001. expression: "form.groupPurchasePrice"
  2002. }
  2003. })
  2004. ],
  2005. 2
  2006. ),
  2007. e._v(" "),
  2008. a("el-alert", {
  2009. staticClass: "alert",
  2010. attrs: {
  2011. title: "销售渠道",
  2012. closable: !1,
  2013. type: "info"
  2014. }
  2015. }),
  2016. e._v(" "),
  2017. a(
  2018. "el-form-item",
  2019. {
  2020. attrs: {
  2021. label: "移动端可售分部",
  2022. prop: "educationShowOrganId",
  2023. "label-width": e.formLabelWidth
  2024. }
  2025. },
  2026. [
  2027. a(
  2028. "select-all",
  2029. {
  2030. staticStyle: { width: "400px !important" },
  2031. attrs: {
  2032. filterable: "",
  2033. placeholder: "移动端可售分部",
  2034. multiple: "",
  2035. clearable: "",
  2036. disabled: e.addDisabled
  2037. },
  2038. model: {
  2039. value: e.form.educationShowOrganId,
  2040. callback: function(t) {
  2041. e.$set(
  2042. e.form,
  2043. "educationShowOrganId",
  2044. "string" === typeof t ? t.trim() : t
  2045. );
  2046. },
  2047. expression: "form.educationShowOrganId"
  2048. }
  2049. },
  2050. e._l(e.selects.branchs, function(e) {
  2051. return a("el-option", {
  2052. key: e.id,
  2053. attrs: {
  2054. label: e.name,
  2055. value: e.id.toString()
  2056. }
  2057. });
  2058. }),
  2059. 1
  2060. )
  2061. ],
  2062. 1
  2063. ),
  2064. e._v(" "),
  2065. a(
  2066. "el-form-item",
  2067. {
  2068. attrs: {
  2069. label: "课程收费乐团可售分部",
  2070. prop: "courseFeeShowOrganId",
  2071. "label-width": e.formLabelWidth
  2072. }
  2073. },
  2074. [
  2075. a(
  2076. "select-all",
  2077. {
  2078. staticStyle: { width: "400px !important" },
  2079. attrs: {
  2080. filterable: "",
  2081. placeholder: "课程收费乐团可售分部",
  2082. multiple: "",
  2083. clearable: "",
  2084. disabled: e.addDisabled
  2085. },
  2086. model: {
  2087. value: e.form.courseFeeShowOrganId,
  2088. callback: function(t) {
  2089. e.$set(
  2090. e.form,
  2091. "courseFeeShowOrganId",
  2092. "string" === typeof t ? t.trim() : t
  2093. );
  2094. },
  2095. expression: "form.courseFeeShowOrganId"
  2096. }
  2097. },
  2098. e._l(e.selects.branchs, function(e) {
  2099. return a("el-option", {
  2100. key: e.id,
  2101. attrs: {
  2102. label: e.name,
  2103. value: e.id.toString()
  2104. }
  2105. });
  2106. }),
  2107. 1
  2108. )
  2109. ],
  2110. 1
  2111. ),
  2112. e._v(" "),
  2113. a(
  2114. "el-form-item",
  2115. {
  2116. attrs: {
  2117. label: "会员收费乐团可售分部",
  2118. prop: "memberFeeShowOrganId",
  2119. "label-width": e.formLabelWidth
  2120. }
  2121. },
  2122. [
  2123. a(
  2124. "select-all",
  2125. {
  2126. staticStyle: { width: "400px !important" },
  2127. attrs: {
  2128. filterable: "",
  2129. placeholder: "请选择会员收费团可见分部",
  2130. multiple: "",
  2131. clearable: "",
  2132. disabled: e.addDisabled
  2133. },
  2134. model: {
  2135. value: e.form.memberFeeShowOrganId,
  2136. callback: function(t) {
  2137. e.$set(
  2138. e.form,
  2139. "memberFeeShowOrganId",
  2140. "string" === typeof t ? t.trim() : t
  2141. );
  2142. },
  2143. expression: "form.memberFeeShowOrganId"
  2144. }
  2145. },
  2146. e._l(e.selects.branchs, function(e) {
  2147. return a("el-option", {
  2148. key: e.id,
  2149. attrs: {
  2150. label: e.name,
  2151. value: e.id.toString()
  2152. }
  2153. });
  2154. }),
  2155. 1
  2156. )
  2157. ],
  2158. 1
  2159. ),
  2160. e._v(" "),
  2161. 1 == e.tenantId
  2162. ? a(
  2163. "el-form-item",
  2164. {
  2165. attrs: {
  2166. label: "乐器置换可售分部",
  2167. prop: "replacementShowOrganId",
  2168. "label-width": e.formLabelWidth
  2169. }
  2170. },
  2171. [
  2172. a(
  2173. "select-all",
  2174. {
  2175. staticStyle: {
  2176. width: "400px !important"
  2177. },
  2178. attrs: {
  2179. filterable: "",
  2180. placeholder: "请选择乐器置换可售分部",
  2181. multiple: "",
  2182. clearable: "",
  2183. disabled: e.addDisabled
  2184. },
  2185. model: {
  2186. value: e.form.replacementShowOrganId,
  2187. callback: function(t) {
  2188. e.$set(
  2189. e.form,
  2190. "replacementShowOrganId",
  2191. "string" === typeof t ? t.trim() : t
  2192. );
  2193. },
  2194. expression:
  2195. "form.replacementShowOrganId"
  2196. }
  2197. },
  2198. e._l(e.selects.branchs, function(e) {
  2199. return a("el-option", {
  2200. key: e.id,
  2201. attrs: {
  2202. label: e.name,
  2203. value: e.id.toString()
  2204. }
  2205. });
  2206. }),
  2207. 1
  2208. )
  2209. ],
  2210. 1
  2211. )
  2212. : e._e(),
  2213. e._v(" "),
  2214. a("el-alert", {
  2215. staticClass: "alert",
  2216. attrs: {
  2217. title: "商品信息",
  2218. closable: !1,
  2219. type: "info"
  2220. }
  2221. }),
  2222. e._v(" "),
  2223. a(
  2224. "el-form-item",
  2225. {
  2226. attrs: {
  2227. label: "商品图片",
  2228. prop: "image",
  2229. "label-width": e.formLabelWidth
  2230. }
  2231. },
  2232. [
  2233. a("image-cropper", {
  2234. attrs: {
  2235. options: e.cropperOptions,
  2236. disabled: e.addDisabled,
  2237. imgSize: 2,
  2238. imageUrl: e.form.image
  2239. },
  2240. on: { "crop-upload-success": e.cropSuccess }
  2241. }),
  2242. e._v(" "),
  2243. a("p", { staticStyle: { color: "red" } }, [
  2244. e._v(
  2245. "请上传大小2M以内,格式为jpg、png、gif图片"
  2246. )
  2247. ])
  2248. ],
  2249. 1
  2250. ),
  2251. e._v(" "),
  2252. a("br"),
  2253. e._v(" "),
  2254. a(
  2255. "el-form-item",
  2256. {
  2257. attrs: {
  2258. label: "商品描述",
  2259. prop: "brief",
  2260. "label-width": e.formLabelWidth
  2261. }
  2262. },
  2263. [
  2264. a("el-input", {
  2265. staticStyle: { width: "400px" },
  2266. attrs: {
  2267. type: "textarea",
  2268. disabled: e.addDisabled
  2269. },
  2270. model: {
  2271. value: e.form.brief,
  2272. callback: function(t) {
  2273. e.$set(
  2274. e.form,
  2275. "brief",
  2276. "string" === typeof t ? t.trim() : t
  2277. );
  2278. },
  2279. expression: "form.brief"
  2280. }
  2281. })
  2282. ],
  2283. 1
  2284. ),
  2285. e._v(" "),
  2286. a(
  2287. "el-form-item",
  2288. {
  2289. attrs: {
  2290. label: "商品详情",
  2291. prop: "desc",
  2292. "label-width": e.formLabelWidth
  2293. }
  2294. },
  2295. [
  2296. a("el-input", {
  2297. staticStyle: { width: "400px" },
  2298. attrs: {
  2299. type: "textarea",
  2300. disabled: e.addDisabled
  2301. },
  2302. model: {
  2303. value: e.form.desc,
  2304. callback: function(t) {
  2305. e.$set(
  2306. e.form,
  2307. "desc",
  2308. "string" === typeof t ? t.trim() : t
  2309. );
  2310. },
  2311. expression: "form.desc"
  2312. }
  2313. })
  2314. ],
  2315. 1
  2316. )
  2317. ],
  2318. 2
  2319. ),
  2320. e._v(" "),
  2321. e.addDisabled
  2322. ? e._e()
  2323. : a(
  2324. "span",
  2325. {
  2326. staticClass: "dialog-footer",
  2327. attrs: { slot: "footer" },
  2328. slot: "footer"
  2329. },
  2330. [
  2331. a(
  2332. "el-button",
  2333. {
  2334. on: {
  2335. click: function(t) {
  2336. e.routeShopStatus = !1;
  2337. }
  2338. }
  2339. },
  2340. [e._v("取 消")]
  2341. ),
  2342. e._v(" "),
  2343. a(
  2344. "el-button",
  2345. {
  2346. attrs: { type: "primary" },
  2347. on: {
  2348. click: function(t) {
  2349. return e.onShopSubmit("ruleForm");
  2350. }
  2351. }
  2352. },
  2353. [e._v("确 定")]
  2354. )
  2355. ],
  2356. 1
  2357. )
  2358. ],
  2359. 1
  2360. )
  2361. : e._e()
  2362. ],
  2363. 1
  2364. );
  2365. },
  2366. n = [
  2367. function() {
  2368. var e = this,
  2369. t = e.$createElement,
  2370. a = e._self._c || t;
  2371. return a("h2", [
  2372. a("div", { staticClass: "squrt" }),
  2373. e._v("\n 商品列表\n ")
  2374. ]);
  2375. }
  2376. ],
  2377. o = (a("c5f6"),
  2378. a("28a5"),
  2379. a("2fdb"),
  2380. a("6762"),
  2381. a("7f7f"),
  2382. a("ac6a"),
  2383. a("96cf"),
  2384. a("1da1")),
  2385. i = a("ade3"),
  2386. s = a("333d"),
  2387. u = a("c7f0"),
  2388. c = a("2543"),
  2389. d = a("4328"),
  2390. p = a.n(d),
  2391. m = a("e3eb"),
  2392. f = a.n(m),
  2393. b = (a("4360"), a("a5b0")),
  2394. h = a("adb21"),
  2395. g = a("5f87"),
  2396. v = a("92e3"),
  2397. y = a("3908"),
  2398. S = a("ec8a"),
  2399. w = a("896b"),
  2400. O = function(e, t, a) {
  2401. ("" == t && "string" == typeof t) || null == t
  2402. ? a(new Error("请输入金额"))
  2403. : t < 0
  2404. ? a(new Error("输入金额必须大于或等于0"))
  2405. : t >= 1e5
  2406. ? a(new Error("输入金额必须小于100000"))
  2407. : a();
  2408. },
  2409. I = {
  2410. components: {
  2411. pagination: s["a"],
  2412. Tooltip: b["a"],
  2413. Upload: u["a"],
  2414. ImageCropper: w["a"]
  2415. },
  2416. name: "shopList",
  2417. data: function() {
  2418. var e;
  2419. return {
  2420. goodsType: v["A"],
  2421. categoryList: [],
  2422. goodsLoading: !1,
  2423. organId: null,
  2424. orderDate: null,
  2425. searchForm: ((e = {
  2426. search: null,
  2427. groupGoods: null,
  2428. organId: null,
  2429. type: null,
  2430. status: null,
  2431. goodsCategoryId: null,
  2432. startTime: null,
  2433. endTime: null
  2434. }),
  2435. Object(i["a"])(e, "status", null),
  2436. Object(i["a"])(e, "clientShow", null),
  2437. Object(i["a"])(e, "educationalShow", null),
  2438. Object(i["a"])(e, "musicGroupShow", null),
  2439. Object(i["a"])(e, "courseViewType", null),
  2440. Object(i["a"])(e, "replacementShow", null),
  2441. Object(i["a"])(e, "courseFeeShowOrganId", null),
  2442. Object(i["a"])(e, "educationShowOrganId", null),
  2443. Object(i["a"])(e, "memberFeeShowOrganId", null),
  2444. Object(i["a"])(e, "replacementShowOrganId", null),
  2445. Object(i["a"])(e, "studentShowOrganId", null),
  2446. e),
  2447. headers: {
  2448. Authorization: Object(g["b"])(),
  2449. tenantId: Object(g["a"])()
  2450. },
  2451. searchLsit: [],
  2452. tableList: [],
  2453. pageInfo: {
  2454. limit: 10,
  2455. page: 1,
  2456. total: 0,
  2457. page_size: [10, 20, 40, 50]
  2458. },
  2459. formLabelWidth: "160px",
  2460. routeShopStatus: !1,
  2461. addType: "create",
  2462. addString: {
  2463. create: "添加",
  2464. update: "修改",
  2465. look: "查看",
  2466. copy: "复制"
  2467. },
  2468. addDisabled: !1,
  2469. form: {
  2470. sn: null,
  2471. brand: null,
  2472. supplyChannel: null,
  2473. name: null,
  2474. type: null,
  2475. organIdList: [],
  2476. goodsCategoryId: null,
  2477. specification: null,
  2478. marketPrice: null,
  2479. discountPrice: null,
  2480. groupPurchasePrice: null,
  2481. clientShow: null,
  2482. educationalShow: null,
  2483. musicGroupShow: null,
  2484. courseViewType: [],
  2485. stockWarning: null,
  2486. image: null,
  2487. complementGoodsIdList: null,
  2488. goodsList: [{ id: null }],
  2489. brief: null,
  2490. desc: null,
  2491. replacementShow: null,
  2492. studentShowOrganId: null,
  2493. educationShowOrganId: null,
  2494. courseFeeShowOrganId: null,
  2495. memberFeeShowOrganId: null,
  2496. replacementShowOrganId: null
  2497. },
  2498. goodsTree: [],
  2499. rules: {
  2500. sn: [
  2501. { required: !0, message: "请输入商品货号", trigger: "blur" }
  2502. ],
  2503. brand: [
  2504. { required: !0, message: "请输入品牌", trigger: "blur" },
  2505. {
  2506. min: 2,
  2507. max: 30,
  2508. message: "长度在 2 到 30 个字符",
  2509. trigger: "blur"
  2510. }
  2511. ],
  2512. supplyChannel: [
  2513. { required: !0, message: "请输入备查货号", trigger: "blur" }
  2514. ],
  2515. name: [
  2516. { required: !0, message: "请输入商品名称", trigger: "blur" },
  2517. {
  2518. min: 2,
  2519. max: 30,
  2520. message: "长度在 2 到 30 个字符",
  2521. trigger: "blur"
  2522. }
  2523. ],
  2524. type: [
  2525. { required: !0, message: "请选择商品分类", trigger: "change" }
  2526. ],
  2527. organIdList: [
  2528. { required: !0, message: "请选择所属分部", trigger: "change" }
  2529. ],
  2530. goodsCategoryId: [
  2531. { required: !0, message: "请选择商品类型", trigger: "change" }
  2532. ],
  2533. specification: [
  2534. { required: !0, message: "请输入商品型号", trigger: "blur" },
  2535. {
  2536. min: 2,
  2537. max: 30,
  2538. message: "长度在 2 到 30 个字符",
  2539. trigger: "blur"
  2540. }
  2541. ],
  2542. marketPrice: [{ required: !0, validator: O, trigger: "blur" }],
  2543. discountPrice: [
  2544. { required: !0, validator: O, trigger: "blur" }
  2545. ],
  2546. groupPurchasePrice: [
  2547. { required: !0, validator: O, trigger: "blur" }
  2548. ],
  2549. clientShow: [
  2550. {
  2551. required: !0,
  2552. message: "请选择学员是否展示",
  2553. trigger: "change"
  2554. }
  2555. ],
  2556. educationalShow: [
  2557. {
  2558. required: !0,
  2559. message: "请选择教务端是否展示",
  2560. trigger: "change"
  2561. }
  2562. ],
  2563. musicGroupShow: [
  2564. {
  2565. required: !0,
  2566. message: "请选择乐团是否展示",
  2567. trigger: "change"
  2568. }
  2569. ],
  2570. courseViewType: [
  2571. {
  2572. required: !0,
  2573. message: "请选乐团收费模式",
  2574. trigger: "change"
  2575. }
  2576. ],
  2577. replacementShow: [
  2578. {
  2579. required: !0,
  2580. message: "请选择是否参与置换",
  2581. trigger: "change"
  2582. }
  2583. ],
  2584. stockWarning: [
  2585. {
  2586. required: !0,
  2587. message: "请选择是否库存预警",
  2588. trigger: "change"
  2589. }
  2590. ],
  2591. image: [
  2592. { required: !0, message: "请选择图片", trigger: "blur" }
  2593. ],
  2594. brief: [
  2595. { required: !0, message: "请输入商品描述", trigger: "blur" }
  2596. ],
  2597. desc: [
  2598. { required: !0, message: "请输入商品详情", trigger: "blur" }
  2599. ]
  2600. },
  2601. selectGoodsList: [],
  2602. tenantId: "",
  2603. cropperOptions: {
  2604. autoCrop: !0,
  2605. autoCropWidth: 300,
  2606. autoCropHeight: 300,
  2607. fixedBox: !0,
  2608. previewsCircle: !1,
  2609. title: "商品图片"
  2610. }
  2611. };
  2612. },
  2613. mounted: (function() {
  2614. var e = Object(o["a"])(
  2615. regeneratorRuntime.mark(function e() {
  2616. return regeneratorRuntime.wrap(
  2617. function(e) {
  2618. while (1)
  2619. switch ((e.prev = e.next)) {
  2620. case 0:
  2621. return (
  2622. (this.tenantId = this.$helpers.tenantId),
  2623. (e.next = 3),
  2624. this.$store.dispatch("setBranchs")
  2625. );
  2626. case 3:
  2627. this.init();
  2628. case 4:
  2629. case "end":
  2630. return e.stop();
  2631. }
  2632. },
  2633. e,
  2634. this
  2635. );
  2636. })
  2637. );
  2638. function t() {
  2639. return e.apply(this, arguments);
  2640. }
  2641. return t;
  2642. })(),
  2643. methods: ((r = {
  2644. permission: function(e) {
  2645. return Object(S["a"])(e);
  2646. },
  2647. init: function() {
  2648. this.getList(), this.getCategory();
  2649. },
  2650. getCategory: function() {
  2651. var e = this,
  2652. t = { delFlag: 0, rows: 9999 };
  2653. Object(c["a"])(t).then(function(t) {
  2654. var a = t.data;
  2655. if (200 == t.code) {
  2656. var r = [];
  2657. a.rows.forEach(function(e) {
  2658. r.push({ label: e.name, value: e.id });
  2659. }),
  2660. (e.categoryList = r);
  2661. }
  2662. });
  2663. },
  2664. cropSuccess: function(e) {
  2665. this.form.image = e.data.url;
  2666. },
  2667. onUpdate: (function() {
  2668. var e = Object(o["a"])(
  2669. regeneratorRuntime.mark(function e(t, a) {
  2670. var r,
  2671. l = this;
  2672. return regeneratorRuntime.wrap(
  2673. function(e) {
  2674. while (1)
  2675. switch ((e.prev = e.next)) {
  2676. case 0:
  2677. (r =
  2678. 1 == a
  2679. ? "你是否下架该商品?"
  2680. : "你是否上架该商品?"),
  2681. this.$confirm(r, "提示", {
  2682. confirmButtonText: "确定",
  2683. cancelButtonText: "取消",
  2684. type: "warning"
  2685. })
  2686. .then(
  2687. Object(o["a"])(
  2688. regeneratorRuntime.mark(function e() {
  2689. return regeneratorRuntime.wrap(function(
  2690. e
  2691. ) {
  2692. while (1)
  2693. switch ((e.prev = e.next)) {
  2694. case 0:
  2695. return (
  2696. (e.next = 2),
  2697. Object(c["m"])({
  2698. goodsId: t.id,
  2699. status: t.status ? 0 : 1
  2700. }).then(function(e) {
  2701. l.messageTips(
  2702. t.status ? "下架" : "上架",
  2703. e
  2704. );
  2705. })
  2706. );
  2707. case 2:
  2708. case "end":
  2709. return e.stop();
  2710. }
  2711. },
  2712. e);
  2713. })
  2714. )
  2715. )
  2716. .catch(function() {});
  2717. case 2:
  2718. case "end":
  2719. return e.stop();
  2720. }
  2721. },
  2722. e,
  2723. this
  2724. );
  2725. })
  2726. );
  2727. function t(t, a) {
  2728. return e.apply(this, arguments);
  2729. }
  2730. return t;
  2731. })(),
  2732. onPurchaseList: function(e) {
  2733. this.$router.push({
  2734. path: "/shopManager/purchaseLlist",
  2735. query: { name: e.name, goodsId: e.id }
  2736. });
  2737. },
  2738. onDelete: function(e) {
  2739. var t = this;
  2740. this.$confirm("您确定删除该商品吗?", "提示", {
  2741. confirmButtonText: "确定",
  2742. cancelButtonText: "取消",
  2743. type: "warning"
  2744. })
  2745. .then(function() {
  2746. Object(c["h"])(e.id).then(function(e) {
  2747. t.messageTips("删除", e);
  2748. });
  2749. })
  2750. .catch(function() {});
  2751. },
  2752. searchOrderDate: function(e) {
  2753. e
  2754. ? ((this.searchForm.startTime = e[0]),
  2755. (this.searchForm.endTime = e[1]))
  2756. : ((this.searchForm.startTime = null),
  2757. (this.searchForm.endTime = null));
  2758. },
  2759. messageTips: function(e, t) {
  2760. 200 == t.code
  2761. ? (this.$message.success(e + "成功"),
  2762. (this.typeStatus = !1),
  2763. this.getList())
  2764. : this.$message.error(t.msg);
  2765. },
  2766. getList: function() {
  2767. var e = this,
  2768. t = Object.assign({}, this.searchForm);
  2769. (t.organId = this.organId),
  2770. (t.rows = this.pageInfo.limit),
  2771. (t.page = this.pageInfo.page),
  2772. Object(c["i"])(t).then(function(t) {
  2773. 200 == t.code &&
  2774. t.data &&
  2775. ((e.tableList = t.data.rows),
  2776. (e.pageInfo.total = t.data.total));
  2777. });
  2778. },
  2779. getAllGoodsList: function(e) {
  2780. var t = this;
  2781. Object(c["i"])({
  2782. rows: 9999,
  2783. page: 1,
  2784. groupGoods: 0,
  2785. organId: e,
  2786. status: 1
  2787. }).then(function(e) {
  2788. 200 == e.code && e.data && (t.selectGoodsList = e.data.rows);
  2789. });
  2790. },
  2791. onSearch: function() {
  2792. (this.pageInfo.page = 1), this.getList();
  2793. },
  2794. onReset: function() {
  2795. this.$refs.searchForm.resetFields(), this.getList();
  2796. },
  2797. onShopComAdd: function() {
  2798. var e = this;
  2799. (this.form = {
  2800. sn: null,
  2801. brand: null,
  2802. supplyChannel: null,
  2803. name: null,
  2804. type: null,
  2805. goodsCategoryId: null,
  2806. specification: null,
  2807. marketPrice: null,
  2808. discountPrice: null,
  2809. groupPurchasePrice: null,
  2810. clientShow: null,
  2811. educationalShow: null,
  2812. musicGroupShow: null,
  2813. organIdList: [],
  2814. courseViewType: [],
  2815. stockWarning: null,
  2816. image: null,
  2817. complementGoodsIdList: null,
  2818. goodsList: [{ id: null }],
  2819. brief: null,
  2820. desc: null,
  2821. replacementShow: null
  2822. }),
  2823. this.onValidGoodsStatus(),
  2824. (this.routeShopStatus = !0),
  2825. (this.addType = "create"),
  2826. (this.addDisabled = !1),
  2827. this.$nextTick(function(t) {
  2828. e.$refs["ruleForm"] && e.$refs["ruleForm"].resetFields();
  2829. });
  2830. },
  2831. onOrganChange: function(e) {
  2832. e && e.length > 0 && this.getAllGoodsList(e.join(","));
  2833. },
  2834. onValidGoodsStatus: (function() {
  2835. var e = Object(o["a"])(
  2836. regeneratorRuntime.mark(function e() {
  2837. var t, a;
  2838. return regeneratorRuntime.wrap(
  2839. function(e) {
  2840. while (1)
  2841. switch ((e.prev = e.next)) {
  2842. case 0:
  2843. return (e.next = 2), this.getAllGoodsList();
  2844. case 2:
  2845. console.log(this.form.goodsList),
  2846. (t = this.form.goodsList),
  2847. (a = []),
  2848. t.forEach(function(e) {
  2849. a.push(e.id);
  2850. }),
  2851. this.selectGoodsList.forEach(function(e) {
  2852. (e.disabled = !1),
  2853. a.includes(e.id) && (e.disabled = !0);
  2854. });
  2855. case 7:
  2856. case "end":
  2857. return e.stop();
  2858. }
  2859. },
  2860. e,
  2861. this
  2862. );
  2863. })
  2864. );
  2865. function t() {
  2866. return e.apply(this, arguments);
  2867. }
  2868. return t;
  2869. })(),
  2870. onShopOperation: function(e, t) {
  2871. var a = { type: e };
  2872. t && (a.id = t.id);
  2873. var r = JSON.stringify(a);
  2874. if (
  2875. ((this.addType = e),
  2876. (this.addDisabled = "look" == e),
  2877. ("update" != e && "look" != e && "copy" != e) ||
  2878. !t.complementGoodsIdList)
  2879. ) {
  2880. var l = "添加";
  2881. "update" == e
  2882. ? (l = "修改")
  2883. : "look" == e
  2884. ? (l = "查看")
  2885. : "copy" == e && (l = "复制"),
  2886. this.$router.push(
  2887. {
  2888. path: "/shopManager/shopOperation",
  2889. query: { paramInfo: r }
  2890. },
  2891. function(e) {
  2892. e.meta.title = l + "商品";
  2893. }
  2894. );
  2895. } else {
  2896. this.routeShopStatus = !0;
  2897. var n = this.form;
  2898. for (var o in n) n[o] = t[o];
  2899. var i = t.complementGoodsIdList.split(","),
  2900. s = [];
  2901. i.forEach(function(e) {
  2902. s.push({ id: Number(e) });
  2903. }),
  2904. (n.goodsList = s),
  2905. (n.id = t.id),
  2906. t.courseViewType &&
  2907. (n.courseViewType = t.courseViewType.split(",")),
  2908. t.studentShowOrganId &&
  2909. (n.studentShowOrganId = t.studentShowOrganId.split(",")),
  2910. t.educationShowOrganId &&
  2911. (n.educationShowOrganId = t.educationShowOrganId.split(
  2912. ","
  2913. )),
  2914. t.courseFeeShowOrganId &&
  2915. (n.courseFeeShowOrganId = t.courseFeeShowOrganId.split(
  2916. ","
  2917. )),
  2918. t.memberFeeShowOrganId &&
  2919. (n.memberFeeShowOrganId = t.memberFeeShowOrganId.split(
  2920. ","
  2921. )),
  2922. t.replacementShowOrganId &&
  2923. (n.replacementShowOrganId = t.replacementShowOrganId.split(
  2924. ","
  2925. )),
  2926. this.getAllGoodsList(),
  2927. this.onValidGoodsStatus();
  2928. }
  2929. },
  2930. beforeUpload: function(e) {
  2931. y["a"].startLoading();
  2932. },
  2933. handleSuccess: function(e, t, a) {
  2934. y["a"].endLoading(),
  2935. 200 == e.code
  2936. ? (this.$message.success("导入成功"), this.getList())
  2937. : this.$message.error(e.msg);
  2938. },
  2939. handleError: function(e, t, a) {
  2940. y["a"].endLoading();
  2941. },
  2942. onDownload: function() {
  2943. Object(h["a"])(this, {
  2944. url: "/api-web/import/downloadTemplate",
  2945. params: { templateType: "GOODS" },
  2946. fileName: "商品导入模板.xls"
  2947. });
  2948. },
  2949. exportShopList: function() {
  2950. Object(h["a"])(
  2951. this,
  2952. {
  2953. url: "/api-web/export/goods",
  2954. params: p.a.stringify(f()(this.searchForm)),
  2955. fileName: "商品导出.xls",
  2956. method: "post"
  2957. },
  2958. "确定导出商品"
  2959. );
  2960. },
  2961. onFormClose: function(e) {
  2962. this.$refs[e].resetFields();
  2963. },
  2964. onGoodsChange: function() {
  2965. var e = this.selectGoodsList,
  2966. t = this.form.goodsList,
  2967. a = [];
  2968. t.forEach(function(e) {
  2969. e.id && a.push(e.id);
  2970. }),
  2971. e.forEach(function(e) {
  2972. a.includes(e.id) ? (e.disabled = !0) : (e.disabled = !1);
  2973. }),
  2974. this.calcPrice();
  2975. },
  2976. removeGoodsList: function(e) {
  2977. var t = e.id,
  2978. a = this.selectGoodsList;
  2979. a.forEach(function(e) {
  2980. e.id == t && (e.disabled = !1);
  2981. });
  2982. var r = this.form.goodsList.indexOf(e);
  2983. -1 !== r && this.form.goodsList.splice(r, 1), this.calcPrice();
  2984. },
  2985. addGoodsList: function() {
  2986. this.form.goodsList.push({ id: null });
  2987. },
  2988. onShopSubmit: function(e) {
  2989. var t = this;
  2990. this.$refs[e].validate(function(e) {
  2991. if (!e)
  2992. return (
  2993. t.$nextTick(function() {
  2994. var e = document.getElementsByClassName("is-error");
  2995. e[0].scrollIntoView({
  2996. block: "center",
  2997. behavior: "smooth"
  2998. });
  2999. }),
  3000. !1
  3001. );
  3002. var a = Object.assign({}, t.form),
  3003. r = [];
  3004. a.goodsList.forEach(function(e) {
  3005. e.id && r.push(e.id);
  3006. }),
  3007. (a.complementGoodsIdList = r.join(",")),
  3008. a.studentShowOrganId &&
  3009. (a.studentShowOrganId = a.studentShowOrganId.join(",")),
  3010. a.educationShowOrganId &&
  3011. (a.educationShowOrganId = a.educationShowOrganId.join(",")),
  3012. a.courseFeeShowOrganId &&
  3013. (a.courseFeeShowOrganId = a.courseFeeShowOrganId.join(",")),
  3014. a.memberFeeShowOrganId &&
  3015. (a.memberFeeShowOrganId = a.memberFeeShowOrganId.join(",")),
  3016. a.replacementShowOrganId &&
  3017. (a.replacementShowOrganId = a.replacementShowOrganId.join(
  3018. ","
  3019. )),
  3020. a.studentShowOrganId ||
  3021. a.educationShowOrganId ||
  3022. a.courseFeeShowOrganId ||
  3023. a.courseFeeShowOrganId ||
  3024. a.replacementShowOrganId
  3025. ? ((a.goodsList = null),
  3026. "create" == t.addType || "copy" == t.addType
  3027. ? (t.form.id && delete t.form.id,
  3028. (a.status = "NO"),
  3029. Object(c["g"])(f()(a)).then(function(e) {
  3030. t.messageTips("保存", e);
  3031. }))
  3032. : "update" == t.addType &&
  3033. Object(c["k"])(f()(a)).then(function(e) {
  3034. t.messageTips("保存", e);
  3035. }))
  3036. : t.$message.error("请至少选择一个可见分部");
  3037. });
  3038. }
  3039. }),
  3040. Object(i["a"])(r, "messageTips", function(e, t) {
  3041. 200 == t.code
  3042. ? (this.$message.success(e + "成功"),
  3043. this.getList(),
  3044. (this.routeShopStatus = !1))
  3045. : this.$message.error(t.msg);
  3046. }),
  3047. Object(i["a"])(r, "calcPrice", function() {
  3048. var e = this.selectGoodsList,
  3049. t = this.form,
  3050. a = t.goodsList,
  3051. r = [];
  3052. a.forEach(function(e) {
  3053. e.id && r.push(e.id);
  3054. });
  3055. var l = 0,
  3056. n = 0,
  3057. o = 0;
  3058. e.forEach(function(e) {
  3059. r.includes(e.id) &&
  3060. ((l += e.groupPurchasePrice),
  3061. (n += e.marketPrice),
  3062. (o += e.discountPrice));
  3063. }),
  3064. (t.groupPurchasePrice = Number(l.toFixed(2))),
  3065. (t.discountPrice = Number(o.toFixed(2))),
  3066. (t.marketPrice = Number(n.toFixed(2)));
  3067. }),
  3068. r),
  3069. filters: {
  3070. courseViewTypeFormat: function(e) {
  3071. var t = ["课程收费", "AMR收费", "会员收费"];
  3072. if (!e) return "";
  3073. var a = e.split(","),
  3074. r = [];
  3075. return (
  3076. a.forEach(function(e) {
  3077. r.push(t[e]);
  3078. }),
  3079. r.join(",")
  3080. );
  3081. }
  3082. }
  3083. },
  3084. _ = I,
  3085. L = (a("f611"), a("2877")),
  3086. E = Object(L["a"])(_, l, n, !1, null, "deea135c", null);
  3087. t["default"] = E.exports;
  3088. },
  3089. "92e3": function(e, t, a) {
  3090. "use strict";
  3091. a.d(t, "u", function() {
  3092. return s;
  3093. }),
  3094. a.d(t, "F", function() {
  3095. return u;
  3096. }),
  3097. a.d(t, "s", function() {
  3098. return c;
  3099. }),
  3100. a.d(t, "c", function() {
  3101. return d;
  3102. }),
  3103. a.d(t, "C", function() {
  3104. return p;
  3105. }),
  3106. a.d(t, "R", function() {
  3107. return m;
  3108. }),
  3109. a.d(t, "Q", function() {
  3110. return f;
  3111. }),
  3112. a.d(t, "d", function() {
  3113. return b;
  3114. }),
  3115. a.d(t, "J", function() {
  3116. return h;
  3117. }),
  3118. a.d(t, "w", function() {
  3119. return g;
  3120. }),
  3121. a.d(t, "T", function() {
  3122. return v;
  3123. }),
  3124. a.d(t, "t", function() {
  3125. return y;
  3126. }),
  3127. a.d(t, "o", function() {
  3128. return S;
  3129. }),
  3130. a.d(t, "S", function() {
  3131. return w;
  3132. }),
  3133. a.d(t, "M", function() {
  3134. return O;
  3135. }),
  3136. a.d(t, "V", function() {
  3137. return I;
  3138. }),
  3139. a.d(t, "W", function() {
  3140. return _;
  3141. }),
  3142. a.d(t, "L", function() {
  3143. return L;
  3144. }),
  3145. a.d(t, "O", function() {
  3146. return E;
  3147. }),
  3148. a.d(t, "A", function() {
  3149. return T;
  3150. }),
  3151. a.d(t, "l", function() {
  3152. return k;
  3153. }),
  3154. a.d(t, "P", function() {
  3155. return C;
  3156. }),
  3157. a.d(t, "U", function() {
  3158. return x;
  3159. }),
  3160. a.d(t, "G", function() {
  3161. return F;
  3162. }),
  3163. a.d(t, "m", function() {
  3164. return P;
  3165. }),
  3166. a.d(t, "v", function() {
  3167. return A;
  3168. }),
  3169. a.d(t, "K", function() {
  3170. return N;
  3171. }),
  3172. a.d(t, "f", function() {
  3173. return G;
  3174. }),
  3175. a.d(t, "e", function() {
  3176. return R;
  3177. }),
  3178. a.d(t, "I", function() {
  3179. return j;
  3180. }),
  3181. a.d(t, "H", function() {
  3182. return D;
  3183. }),
  3184. a.d(t, "N", function() {
  3185. return $;
  3186. }),
  3187. a.d(t, "E", function() {
  3188. return M;
  3189. }),
  3190. a.d(t, "a", function() {
  3191. return q;
  3192. }),
  3193. a.d(t, "x", function() {
  3194. return U;
  3195. }),
  3196. a.d(t, "p", function() {
  3197. return V;
  3198. }),
  3199. a.d(t, "n", function() {
  3200. return W;
  3201. }),
  3202. a.d(t, "q", function() {
  3203. return H;
  3204. }),
  3205. a.d(t, "g", function() {
  3206. return B;
  3207. }),
  3208. a.d(t, "D", function() {
  3209. return z;
  3210. }),
  3211. a.d(t, "r", function() {
  3212. return Y;
  3213. }),
  3214. a.d(t, "B", function() {
  3215. return X;
  3216. }),
  3217. a.d(t, "z", function() {
  3218. return J;
  3219. }),
  3220. a.d(t, "y", function() {
  3221. return K;
  3222. }),
  3223. a.d(t, "h", function() {
  3224. return Q;
  3225. }),
  3226. a.d(t, "k", function() {
  3227. return Z;
  3228. }),
  3229. a.d(t, "i", function() {
  3230. return ee;
  3231. }),
  3232. a.d(t, "j", function() {
  3233. return te;
  3234. }),
  3235. a.d(t, "b", function() {
  3236. return re;
  3237. });
  3238. var r = a("b85c"),
  3239. l = a("3835"),
  3240. n = a("267e"),
  3241. o = sessionStorage.getItem("tenantConfig");
  3242. o = o ? JSON.parse(o) : {};
  3243. var i = o.tenantId,
  3244. s = null,
  3245. u = null;
  3246. 1 == i
  3247. ? ((u = [
  3248. { label: "声部课", value: "SINGLE" },
  3249. { label: "合奏课", value: "MIX" },
  3250. { label: "基础技能课", value: "HIGH" },
  3251. { label: "线上基础技能课", value: "HIGH_ONLINE" },
  3252. { label: "乐团网管课", value: "MUSIC_NETWORK" },
  3253. { label: "集训声部课", value: "TRAINING_SINGLE" },
  3254. { label: "集训合奏课", value: "TRAINING_MIX" },
  3255. { label: "课堂课", value: "CLASSROOM" },
  3256. { label: "综合课", value: "COMPREHENSIVE" }
  3257. ]),
  3258. (s = [
  3259. { label: "声部课", value: "SINGLE" },
  3260. { label: "合奏课", value: "MIX" },
  3261. { label: "基础技能课", value: "HIGH" },
  3262. { label: "线上基础技能课", value: "HIGH_ONLINE" },
  3263. { label: "vip课", value: "VIP" },
  3264. { label: "试听课", value: "DEMO" },
  3265. { label: "综合课", value: "COMPREHENSIVE" },
  3266. { label: "网管课", value: "PRACTICE" },
  3267. { label: "乐团网管课", value: "MUSIC_NETWORK" },
  3268. { label: "启蒙课", value: "ENLIGHTENMENT" },
  3269. { label: "集训声部课", value: "TRAINING_SINGLE" },
  3270. { label: "集训合奏课", value: "TRAINING_MIX" },
  3271. { label: "课堂课", value: "CLASSROOM" },
  3272. { label: "对外课", value: "COMM" }
  3273. ]))
  3274. : ((u = [
  3275. { label: "声部课", value: "SINGLE" },
  3276. { label: "合奏课", value: "MIX" },
  3277. { label: "基础技能课", value: "HIGH" },
  3278. { label: "集训声部课", value: "TRAINING_SINGLE" },
  3279. { label: "集训合奏课", value: "TRAINING_MIX" },
  3280. { label: "课堂课", value: "CLASSROOM" },
  3281. { label: "综合课", value: "COMPREHENSIVE" }
  3282. ]),
  3283. (s = [
  3284. { label: "声部课", value: "SINGLE" },
  3285. { label: "合奏课", value: "MIX" },
  3286. { label: "vip课", value: "VIP" },
  3287. { label: "试听课", value: "DEMO" },
  3288. { label: "综合课", value: "COMPREHENSIVE" },
  3289. { label: "网管课", value: "PRACTICE" },
  3290. { label: "启蒙课", value: "ENLIGHTENMENT" },
  3291. { label: "集训声部课", value: "TRAINING_SINGLE" },
  3292. { label: "集训合奏课", value: "TRAINING_MIX" },
  3293. { label: "课堂课", value: "CLASSROOM" },
  3294. { label: "对外课", value: "COMM" }
  3295. ]));
  3296. var c = [
  3297. { label: "乐团课", value: "MUSIC" },
  3298. { label: "VIP课", value: "VIP" },
  3299. { label: "网管课", value: "PRACTICE" }
  3300. ],
  3301. d = [{ label: "正常签到", value: 1 }, { label: "异常签到", value: 0 }],
  3302. p = [
  3303. { label: "兼职", value: "PART_TIME" },
  3304. { label: "全职", value: "FULL_TIME" },
  3305. { label: "劳务", value: "LABOUR" }
  3306. ],
  3307. m = [
  3308. { label: "正常", value: "0" },
  3309. { label: "冻结", value: "1" },
  3310. { label: "锁定", value: "9" }
  3311. ],
  3312. f = [
  3313. { value: "NORMAL", label: "正常" },
  3314. { value: "TRUANT", label: "旷课" },
  3315. { value: "LEAVE", label: "请假" }
  3316. ],
  3317. b = [].concat(f, [
  3318. { value: "QUIT_SCHOOL", label: "休学" },
  3319. { value: "DROP_OUT", label: "退学" },
  3320. { value: "LATE", label: "迟到" }
  3321. ]),
  3322. h = [
  3323. { value: "APPLY", label: "报名" },
  3324. { value: "RENEW", label: "续费" },
  3325. { value: "MEMBER", label: "会员购买" },
  3326. { value: "SMALL_CLASS_TO_BUY", label: "VIP购买" },
  3327. { value: "SPORADIC", label: "零星收费" },
  3328. { value: "LUCK", label: "福袋活动" },
  3329. { value: "DEGREE_REGISTRATION", label: "考级报名" },
  3330. { value: "DOUBLE_ELEVEN2020", label: "2020双十一活动" },
  3331. { value: "DOUBLE_ELEVEN2021", label: "2021双十一活动" },
  3332. { value: "DEGREE", label: "儿童节活动" },
  3333. { value: "PRACTICE_GROUP_BUY", label: "网管课" },
  3334. { value: "PRACTICE_GROUP_RENEW", label: "网管课续费" },
  3335. { value: "REPAIR", label: "乐器维修" },
  3336. { value: "OUTORDER", label: "外部收入" },
  3337. { value: "GOODS_SELL", label: "商品销售" },
  3338. { value: "SUBJECT_CHANGE", label: "声部更换" },
  3339. { value: "MAINTENANCE", label: "乐器保养" },
  3340. { value: "ADD_STUDENT", label: "乐团报名" },
  3341. { value: "REPLACEMENT", label: "乐器置换" },
  3342. { value: "SCHOOL", label: "学校订单" },
  3343. { value: "PERSONAL", label: "个人订单" },
  3344. { value: "OTHER", label: "其他" },
  3345. { value: "ACTIVITY", label: "活动购买" },
  3346. { value: "LIVE_BUY", label: "直播购物" }
  3347. ],
  3348. g = [
  3349. { value: "ING", label: "交易中" },
  3350. { value: "SUCCESS", label: "成功交易" },
  3351. { value: "FAILED", label: "交易失败" },
  3352. { value: "CLOSE", label: "交易关闭" }
  3353. ],
  3354. v = [
  3355. { value: "0", text: "未开始" },
  3356. { value: "1", text: "报名中" },
  3357. { value: "5", text: "报名结束" },
  3358. { value: "2", text: "进行中" },
  3359. { value: "4", text: "已结束" },
  3360. { value: "3", text: "取消" },
  3361. { value: "6", text: "暂停" }
  3362. ],
  3363. y = [
  3364. { value: "NOT_START", label: "未开始" },
  3365. { value: "UNDERWAY", label: "进行中" },
  3366. { value: "OVER", label: "已结束" }
  3367. ],
  3368. S = [
  3369. { value: "NORMAL", label: "进行中" },
  3370. { value: "FINISH", label: "结束" },
  3371. { value: "CANCEL", label: "关闭" },
  3372. { value: "LOCK", label: "锁定" }
  3373. ],
  3374. w = [
  3375. { value: "RECHARGE", label: "充值" },
  3376. { value: "CONSUME", label: "建课" },
  3377. { value: "RETURN", label: "退课" },
  3378. { value: "MANUAL_ADD", label: "系统充值" },
  3379. { value: "MANUAL_SUB", label: "系统扣除" }
  3380. ],
  3381. O = [
  3382. { value: "FREE", label: "免费" },
  3383. { value: "CHARGE", label: "收费" },
  3384. { value: "TRIAL", label: "试听课" },
  3385. { value: "CARE_PACKAGE", label: "关心包" },
  3386. { value: "COME_ON_PACKAGE", label: "加油包" }
  3387. ],
  3388. I = [
  3389. {
  3390. value: "课程推荐",
  3391. label: "课程推荐",
  3392. children: [
  3393. { value: "新课推荐", label: "新课推荐" },
  3394. { value: "续费提醒", label: "续费提醒" }
  3395. ]
  3396. },
  3397. {
  3398. value: "常规回访",
  3399. label: "常规回访",
  3400. children: [
  3401. { value: "课后及训练回访", label: "课后及训练回访" },
  3402. { value: "练习及乐团表现", label: "练习及乐团表现" }
  3403. ]
  3404. },
  3405. {
  3406. value: "其它",
  3407. label: "其它",
  3408. children: [{ value: "其它", label: "其它" }]
  3409. }
  3410. ],
  3411. _ = [
  3412. {
  3413. value: "课程推荐",
  3414. label: "课程推荐",
  3415. children: [
  3416. { value: "新课推荐", label: "新课推荐" },
  3417. { value: "续费提醒", label: "续费提醒" }
  3418. ]
  3419. },
  3420. {
  3421. value: "常规回访",
  3422. label: "常规回访",
  3423. children: [
  3424. { value: "课后及训练回访", label: "课后及训练回访" },
  3425. { value: "练习及乐团表现", label: "练习及乐团表现" },
  3426. { label: "考勤申诉", value: "考勤申诉" },
  3427. { value: "异常请假回访", label: "异常请假回访" }
  3428. ]
  3429. },
  3430. {
  3431. value: "小课回访",
  3432. label: "小课回访",
  3433. children: [
  3434. { value: "VIP课回访", label: "VIP课回访" },
  3435. { value: "乐理课回访", label: "乐理课回访" },
  3436. { value: "网管课回访", label: "网管课回访" }
  3437. ]
  3438. },
  3439. {
  3440. value: "云教练",
  3441. label: "云教练",
  3442. children: [{ value: "体验回访", label: "体验回访" }]
  3443. },
  3444. {
  3445. value: "其它",
  3446. label: "其它",
  3447. children: [
  3448. { value: "其它", label: "其它" },
  3449. { value: "会员续费", label: "会员续费" }
  3450. ]
  3451. }
  3452. ],
  3453. L = [
  3454. { value: "YQPAY", label: "双乾" },
  3455. { value: "BALANCE", label: "余额" },
  3456. { value: "ADAPAY", label: "汇付" }
  3457. ],
  3458. E = [
  3459. { value: "INSTRUMENT", label: "乐器销售" },
  3460. { value: "ACCESSORIES", label: "配件销售" },
  3461. { value: "SCHOOL_BUY", label: "学校采购" },
  3462. { value: "OTHER", label: "其它" }
  3463. ],
  3464. T = [
  3465. { value: "INSTRUMENT", label: "乐器" },
  3466. { value: "ACCESSORIES", label: "辅件" },
  3467. { value: "TEACHING", label: "教材" },
  3468. { value: "STAFF", label: "教谱" },
  3469. { value: "OTHER", label: "其它" }
  3470. ],
  3471. k = [
  3472. { value: "1", label: "一年级" },
  3473. { value: "2", label: "二年级" },
  3474. { value: "3", label: "三年级" },
  3475. { value: "4", label: "四年级" },
  3476. { value: "5", label: "五年级" },
  3477. { value: "6", label: "六年级" },
  3478. { value: "7", label: "初一" },
  3479. { value: "8", label: "初二" },
  3480. { value: "9", label: "初三" },
  3481. { value: "10", label: "高一" },
  3482. { value: "11", label: "高二" },
  3483. { value: "12", label: "高三" }
  3484. ],
  3485. C = [
  3486. { value: "INTERNAL", label: "内部" },
  3487. { value: "EXTERNAL", label: "外部" },
  3488. { value: "ALL", label: "全部" }
  3489. ],
  3490. x = [
  3491. { label: "不限制", value: "1" },
  3492. { label: "线上不可调为线下", value: "0" },
  3493. { label: "线下不可调为线上", value: "2" },
  3494. { label: "线上线下不可互调", value: "3" }
  3495. ],
  3496. F = ae(n["musicGroupType"]),
  3497. P = ae(n["classTime"]),
  3498. A = ae(n["courseViewType"]),
  3499. N = ae(n["payOrderType"]),
  3500. G = ae(n["auditType"]),
  3501. R = ae(n["auditPaymentType"]),
  3502. j = ae(n["orderServerType"]),
  3503. D = ae(n["orderAuditType"]),
  3504. $ = ae(n["rewardModeType"]),
  3505. M = ae(n["musicClassType"]),
  3506. q = ae(n["ProbationPeriodStatus"]),
  3507. U = ae(n["downListType"]),
  3508. V = ae(n["conclusion"]),
  3509. W = ae(n["clientType"]),
  3510. H = ae(n["couponType"]),
  3511. B = ae(n["backType"]),
  3512. z = ae(n["memberEnum"]),
  3513. Y = ae(n["coupontypeDetail"]),
  3514. X = ae(n["issue"]),
  3515. J = ae(n["feedbackType"]),
  3516. K = ae(n["feedbackTypeDesc"]),
  3517. Q = ae(n["campState"]),
  3518. Z = ae(n["catgGoupType"]),
  3519. ee = ae(n["catRole"]),
  3520. te = ae(n["catType"]);
  3521. function ae(e) {
  3522. var t = [];
  3523. for (var a in e) t.push({ label: e[a], value: a });
  3524. return t;
  3525. }
  3526. var re = function(e) {
  3527. var t =
  3528. arguments.length > 1 && void 0 !== arguments[1]
  3529. ? arguments[1]
  3530. : ["value", "label"],
  3531. a = Object(l["a"])(t, 2),
  3532. n = a[0],
  3533. o = a[1],
  3534. i = {};
  3535. if (e && e.length) {
  3536. var s,
  3537. u = Object(r["a"])(e);
  3538. try {
  3539. for (u.s(); !(s = u.n()).done; ) {
  3540. var c = s.value;
  3541. i[c[n]] = c[o];
  3542. }
  3543. } catch (d) {
  3544. u.e(d);
  3545. } finally {
  3546. u.f();
  3547. }
  3548. }
  3549. return i;
  3550. };
  3551. },
  3552. adb21: function(e, t, a) {
  3553. "use strict";
  3554. a.d(t, "a", function() {
  3555. return u;
  3556. });
  3557. var r = a("bc3a"),
  3558. l = a.n(r),
  3559. n = (a("4328"), a("5f87")),
  3560. o = a("3908"),
  3561. i = a("e3eb"),
  3562. s = a.n(i),
  3563. u = function(e, t, a, r) {
  3564. var i = t.url,
  3565. u = {
  3566. method: t.method ? t.method : "get",
  3567. headers: {
  3568. Authorization: Object(n["b"])(),
  3569. tenantId: Object(n["a"])()
  3570. },
  3571. url: i,
  3572. responseType: "blob"
  3573. };
  3574. "post" == u.method ? (u.data = t.params) : (u.params = t.params),
  3575. e
  3576. .$confirm(a || "您确定下载模板", "提示", {
  3577. confirmButtonText: "确定",
  3578. cancelButtonText: "取消",
  3579. type: "warning"
  3580. })
  3581. .then(function() {
  3582. o["a"].startLoading(),
  3583. l()(s()(u))
  3584. .then(function(a) {
  3585. var l = new Blob([a.data], {
  3586. type: "application/vnd.ms-excel;charset=utf-8"
  3587. }),
  3588. n = new Response(l).text();
  3589. n.then(function(a) {
  3590. if (-1 != a.indexOf("code")) {
  3591. var n = JSON.parse(a);
  3592. if (403 == n.code)
  3593. return (
  3594. e.$message.error("登录过期,请重新登录!"),
  3595. void setTimeout(function() {
  3596. e.$store
  3597. .dispatch("user/resetToken")
  3598. .then(function() {
  3599. location.reload();
  3600. });
  3601. }, 1e3)
  3602. );
  3603. 200 == n.code
  3604. ? e.$message.success(n.msg)
  3605. : e.$message.error(n.msg),
  3606. r && r();
  3607. } else {
  3608. var o = URL.createObjectURL(l),
  3609. i = document.createElement("a"),
  3610. s = t.fileName || "导出文件.xls";
  3611. (i.href = o),
  3612. i.setAttribute("download", s),
  3613. document.body.appendChild(i),
  3614. i.click(),
  3615. r && r();
  3616. }
  3617. }),
  3618. o["a"].endLoading();
  3619. })
  3620. .catch(function(t) {
  3621. console.log(t),
  3622. e.$message.error("下载失败,请联系管理员"),
  3623. o["a"].endLoading();
  3624. });
  3625. })
  3626. .catch(function() {});
  3627. };
  3628. },
  3629. f611: function(e, t, a) {
  3630. "use strict";
  3631. a("5192");
  3632. }
  3633. }
  3634. ]);