chunk-3c85fe6c.76390d12.js 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080
  1. (window["webpackJsonp"] = window["webpackJsonp"] || []).push([
  2. ["chunk-3c85fe6c"],
  3. {
  4. 2543: function(e, t, a) {
  5. "use strict";
  6. a.d(t, "i", function() {
  7. return i;
  8. }),
  9. a.d(t, "j", function() {
  10. return u;
  11. }),
  12. a.d(t, "m", function() {
  13. return s;
  14. }),
  15. a.d(t, "g", function() {
  16. return c;
  17. }),
  18. a.d(t, "k", function() {
  19. return d;
  20. }),
  21. a.d(t, "h", function() {
  22. return p;
  23. }),
  24. a.d(t, "a", function() {
  25. return b;
  26. }),
  27. a.d(t, "b", function() {
  28. return m;
  29. }),
  30. a.d(t, "c", function() {
  31. return f;
  32. }),
  33. a.d(t, "f", function() {
  34. return g;
  35. }),
  36. a.d(t, "l", function() {
  37. return v;
  38. }),
  39. a.d(t, "e", function() {
  40. return h;
  41. }),
  42. a.d(t, "d", function() {
  43. return S;
  44. });
  45. var l = a("b775"),
  46. r = a("4328"),
  47. n = a.n(r),
  48. o = "/api-web";
  49. function i(e) {
  50. return Object(l["a"])({
  51. url: o + "/goods/queryPage",
  52. method: "get",
  53. params: e
  54. });
  55. }
  56. function u(e) {
  57. return Object(l["a"])({
  58. url: o + "/goods/get/".concat(e),
  59. method: "get"
  60. });
  61. }
  62. function s(e) {
  63. return Object(l["a"])({
  64. url: o + "/goods/updateGoodsStatus",
  65. method: "post",
  66. data: n.a.stringify(e)
  67. });
  68. }
  69. function c(e) {
  70. return Object(l["a"])({
  71. url: o + "/goods/add",
  72. method: "post",
  73. data: n.a.stringify(e)
  74. });
  75. }
  76. function d(e) {
  77. return Object(l["a"])({
  78. url: o + "/goods/update",
  79. method: "post",
  80. data: n.a.stringify(e)
  81. });
  82. }
  83. function p(e) {
  84. return Object(l["a"])({
  85. url: o + "/goods/del/".concat(e),
  86. method: "post"
  87. });
  88. }
  89. function b(e) {
  90. return Object(l["a"])({
  91. url: o + "/category/queryPage",
  92. method: "get",
  93. params: e
  94. });
  95. }
  96. function m(e) {
  97. return Object(l["a"])({
  98. url: o + "/category/upset",
  99. method: "post",
  100. data: e
  101. });
  102. }
  103. function f(e) {
  104. return Object(l["a"])({
  105. url: o + "/category/del",
  106. method: "post",
  107. data: n.a.stringify(e)
  108. });
  109. }
  110. function g(e) {
  111. return Object(l["a"])({
  112. url: o + "/subjectChange/queryPage",
  113. method: "get",
  114. params: e
  115. });
  116. }
  117. function v(e) {
  118. return Object(l["a"])({
  119. url: o + "/subjectChange/updateCostMargin",
  120. method: "post",
  121. data: n.a.stringify(e)
  122. });
  123. }
  124. function h(e) {
  125. return Object(l["a"])({
  126. url: o + "/goodsProcurement/queryGoodsProcurements",
  127. method: "get",
  128. params: e
  129. });
  130. }
  131. function S(e) {
  132. return Object(l["a"])({
  133. url: o + "/goods/addGoodsProcurement",
  134. method: "post",
  135. params: e
  136. });
  137. }
  138. },
  139. 3607: function(e, t, a) {
  140. "use strict";
  141. a.d(t, "h", function() {
  142. return i;
  143. }),
  144. a.d(t, "e", function() {
  145. return u;
  146. }),
  147. a.d(t, "g", function() {
  148. return s;
  149. }),
  150. a.d(t, "f", function() {
  151. return c;
  152. }),
  153. a.d(t, "j", function() {
  154. return d;
  155. }),
  156. a.d(t, "k", function() {
  157. return p;
  158. }),
  159. a.d(t, "i", function() {
  160. return b;
  161. }),
  162. a.d(t, "m", function() {
  163. return m;
  164. }),
  165. a.d(t, "n", function() {
  166. return f;
  167. }),
  168. a.d(t, "l", function() {
  169. return g;
  170. }),
  171. a.d(t, "p", function() {
  172. return v;
  173. }),
  174. a.d(t, "b", function() {
  175. return h;
  176. }),
  177. a.d(t, "a", function() {
  178. return S;
  179. }),
  180. a.d(t, "d", function() {
  181. return y;
  182. }),
  183. a.d(t, "o", function() {
  184. return I;
  185. }),
  186. a.d(t, "c", function() {
  187. return O;
  188. }),
  189. a.d(t, "q", function() {
  190. return w;
  191. });
  192. var l = a("b775"),
  193. r = a("4328"),
  194. n = a.n(r),
  195. o = "/api-web";
  196. function i(e) {
  197. return Object(l["a"])({
  198. url: o + "/tenantEntryActivities/queryPage",
  199. method: "get",
  200. params: e
  201. });
  202. }
  203. function u(e) {
  204. return Object(l["a"])({
  205. url: o + "/tenantEntryActivities/merge",
  206. method: "post",
  207. data: e
  208. });
  209. }
  210. function s(e) {
  211. return Object(l["a"])({
  212. url: o + "/tenantEntryActivities/updateDelFlag",
  213. method: "post",
  214. data: n.a.stringify(e)
  215. });
  216. }
  217. function c(e) {
  218. return Object(l["a"])({
  219. url: o + "/tenantEntryActivities/query",
  220. method: "get",
  221. params: e
  222. });
  223. }
  224. function d(e) {
  225. return Object(l["a"])({
  226. url: "/api-cms/helpCenterCatalog/list",
  227. method: "get",
  228. params: e
  229. });
  230. }
  231. function p(e) {
  232. return Object(l["a"])({
  233. url: "/api-cms/helpCenterCatalog/modify",
  234. method: "post",
  235. data: n.a.stringify(e)
  236. });
  237. }
  238. function b(e) {
  239. return Object(l["a"])({
  240. url: "/api-cms/helpCenterCatalog/delete",
  241. method: "post",
  242. data: n.a.stringify(e)
  243. });
  244. }
  245. function m(e) {
  246. return Object(l["a"])({
  247. url: "/api-cms/helpCenterContent/list",
  248. method: "get",
  249. params: e
  250. });
  251. }
  252. function f(e) {
  253. return Object(l["a"])({
  254. url: "/api-cms/helpCenterContent/modify",
  255. method: "post",
  256. data: n.a.stringify(e)
  257. });
  258. }
  259. function g(e) {
  260. return Object(l["a"])({
  261. url: "/api-cms/helpCenterContent/delete",
  262. method: "post",
  263. data: n.a.stringify(e)
  264. });
  265. }
  266. function v(e) {
  267. return Object(l["a"])({
  268. url: "/api-web/sysSuggestion/queryPage",
  269. method: "get",
  270. params: e
  271. });
  272. }
  273. function h(e) {
  274. return Object(l["a"])({
  275. method: "get",
  276. url: "/api-web/employeeInfo/queryPage",
  277. params: e
  278. });
  279. }
  280. function S(e) {
  281. return Object(l["a"])({
  282. method: "post",
  283. url: "/api-web/employeeInfo/insert",
  284. data: e
  285. });
  286. }
  287. function y(e) {
  288. return Object(l["a"])({
  289. method: "post",
  290. url: "/api-web/employeeInfo/update",
  291. data: e
  292. });
  293. }
  294. function I(e) {
  295. return Object(l["a"])({
  296. method: "post",
  297. url: "/api-web/employeeInfo/insertVisit",
  298. data: e
  299. });
  300. }
  301. function O(e) {
  302. return Object(l["a"])({
  303. method: "get",
  304. url: "/api-web/employeeInfo/queryDetail",
  305. params: e
  306. });
  307. }
  308. function w(e) {
  309. return Object(l["a"])({
  310. method: "post",
  311. url: "/api-web/uploadFile",
  312. data: e
  313. });
  314. }
  315. },
  316. "5e18": function(e, t, a) {},
  317. "92e3": function(e, t, a) {
  318. "use strict";
  319. a.d(t, "u", function() {
  320. return u;
  321. }),
  322. a.d(t, "F", function() {
  323. return s;
  324. }),
  325. a.d(t, "s", function() {
  326. return c;
  327. }),
  328. a.d(t, "c", function() {
  329. return d;
  330. }),
  331. a.d(t, "C", function() {
  332. return p;
  333. }),
  334. a.d(t, "R", function() {
  335. return b;
  336. }),
  337. a.d(t, "Q", function() {
  338. return m;
  339. }),
  340. a.d(t, "d", function() {
  341. return f;
  342. }),
  343. a.d(t, "J", function() {
  344. return g;
  345. }),
  346. a.d(t, "w", function() {
  347. return v;
  348. }),
  349. a.d(t, "T", function() {
  350. return h;
  351. }),
  352. a.d(t, "t", function() {
  353. return S;
  354. }),
  355. a.d(t, "o", function() {
  356. return y;
  357. }),
  358. a.d(t, "S", function() {
  359. return I;
  360. }),
  361. a.d(t, "M", function() {
  362. return O;
  363. }),
  364. a.d(t, "V", function() {
  365. return w;
  366. }),
  367. a.d(t, "W", function() {
  368. return C;
  369. }),
  370. a.d(t, "L", function() {
  371. return E;
  372. }),
  373. a.d(t, "O", function() {
  374. return T;
  375. }),
  376. a.d(t, "A", function() {
  377. return _;
  378. }),
  379. a.d(t, "l", function() {
  380. return P;
  381. }),
  382. a.d(t, "P", function() {
  383. return k;
  384. }),
  385. a.d(t, "U", function() {
  386. return N;
  387. }),
  388. a.d(t, "G", function() {
  389. return A;
  390. }),
  391. a.d(t, "m", function() {
  392. return R;
  393. }),
  394. a.d(t, "v", function() {
  395. return x;
  396. }),
  397. a.d(t, "K", function() {
  398. return L;
  399. }),
  400. a.d(t, "f", function() {
  401. return j;
  402. }),
  403. a.d(t, "e", function() {
  404. return M;
  405. }),
  406. a.d(t, "I", function() {
  407. return D;
  408. }),
  409. a.d(t, "H", function() {
  410. return G;
  411. }),
  412. a.d(t, "N", function() {
  413. return F;
  414. }),
  415. a.d(t, "E", function() {
  416. return q;
  417. }),
  418. a.d(t, "a", function() {
  419. return $;
  420. }),
  421. a.d(t, "x", function() {
  422. return U;
  423. }),
  424. a.d(t, "p", function() {
  425. return V;
  426. }),
  427. a.d(t, "n", function() {
  428. return H;
  429. }),
  430. a.d(t, "q", function() {
  431. return W;
  432. }),
  433. a.d(t, "g", function() {
  434. return B;
  435. }),
  436. a.d(t, "D", function() {
  437. return Y;
  438. }),
  439. a.d(t, "r", function() {
  440. return X;
  441. }),
  442. a.d(t, "B", function() {
  443. return z;
  444. }),
  445. a.d(t, "z", function() {
  446. return J;
  447. }),
  448. a.d(t, "y", function() {
  449. return K;
  450. }),
  451. a.d(t, "h", function() {
  452. return Q;
  453. }),
  454. a.d(t, "k", function() {
  455. return Z;
  456. }),
  457. a.d(t, "i", function() {
  458. return ee;
  459. }),
  460. a.d(t, "j", function() {
  461. return te;
  462. }),
  463. a.d(t, "b", function() {
  464. return le;
  465. });
  466. var l = a("b85c"),
  467. r = a("3835"),
  468. n = a("267e"),
  469. o = sessionStorage.getItem("tenantConfig");
  470. o = o ? JSON.parse(o) : {};
  471. var i = o.tenantId,
  472. u = null,
  473. s = null;
  474. 1 == i
  475. ? ((s = [
  476. { label: "声部课", value: "SINGLE" },
  477. { label: "合奏课", value: "MIX" },
  478. { label: "基础技能课", value: "HIGH" },
  479. { label: "线上基础技能课", value: "HIGH_ONLINE" },
  480. { label: "乐团网管课", value: "MUSIC_NETWORK" },
  481. { label: "集训声部课", value: "TRAINING_SINGLE" },
  482. { label: "集训合奏课", value: "TRAINING_MIX" },
  483. { label: "课堂课", value: "CLASSROOM" },
  484. { label: "综合课", value: "COMPREHENSIVE" }
  485. ]),
  486. (u = [
  487. { label: "声部课", value: "SINGLE" },
  488. { label: "合奏课", value: "MIX" },
  489. { label: "基础技能课", value: "HIGH" },
  490. { label: "线上基础技能课", value: "HIGH_ONLINE" },
  491. { label: "vip课", value: "VIP" },
  492. { label: "试听课", value: "DEMO" },
  493. { label: "综合课", value: "COMPREHENSIVE" },
  494. { label: "网管课", value: "PRACTICE" },
  495. { label: "乐团网管课", value: "MUSIC_NETWORK" },
  496. { label: "启蒙课", value: "ENLIGHTENMENT" },
  497. { label: "集训声部课", value: "TRAINING_SINGLE" },
  498. { label: "集训合奏课", value: "TRAINING_MIX" },
  499. { label: "课堂课", value: "CLASSROOM" },
  500. { label: "对外课", value: "COMM" }
  501. ]))
  502. : ((s = [
  503. { label: "声部课", value: "SINGLE" },
  504. { label: "合奏课", value: "MIX" },
  505. { label: "基础技能课", value: "HIGH" },
  506. { label: "集训声部课", value: "TRAINING_SINGLE" },
  507. { label: "集训合奏课", value: "TRAINING_MIX" },
  508. { label: "课堂课", value: "CLASSROOM" },
  509. { label: "综合课", value: "COMPREHENSIVE" }
  510. ]),
  511. (u = [
  512. { label: "声部课", value: "SINGLE" },
  513. { label: "合奏课", value: "MIX" },
  514. { label: "vip课", value: "VIP" },
  515. { label: "试听课", value: "DEMO" },
  516. { label: "综合课", value: "COMPREHENSIVE" },
  517. { label: "网管课", value: "PRACTICE" },
  518. { label: "启蒙课", value: "ENLIGHTENMENT" },
  519. { label: "集训声部课", value: "TRAINING_SINGLE" },
  520. { label: "集训合奏课", value: "TRAINING_MIX" },
  521. { label: "课堂课", value: "CLASSROOM" },
  522. { label: "对外课", value: "COMM" }
  523. ]));
  524. var c = [
  525. { label: "乐团课", value: "MUSIC" },
  526. { label: "VIP课", value: "VIP" },
  527. { label: "网管课", value: "PRACTICE" }
  528. ],
  529. d = [{ label: "正常签到", value: 1 }, { label: "异常签到", value: 0 }],
  530. p = [
  531. { label: "兼职", value: "PART_TIME" },
  532. { label: "全职", value: "FULL_TIME" },
  533. { label: "劳务", value: "LABOUR" }
  534. ],
  535. b = [
  536. { label: "正常", value: "0" },
  537. { label: "冻结", value: "1" },
  538. { label: "锁定", value: "9" }
  539. ],
  540. m = [
  541. { value: "NORMAL", label: "正常" },
  542. { value: "TRUANT", label: "旷课" },
  543. { value: "LEAVE", label: "请假" }
  544. ],
  545. f = [].concat(m, [
  546. { value: "QUIT_SCHOOL", label: "休学" },
  547. { value: "DROP_OUT", label: "退学" },
  548. { value: "LATE", label: "迟到" }
  549. ]),
  550. g = [
  551. { value: "APPLY", label: "报名" },
  552. { value: "RENEW", label: "续费" },
  553. { value: "MEMBER", label: "会员购买" },
  554. { value: "SMALL_CLASS_TO_BUY", label: "VIP购买" },
  555. { value: "SPORADIC", label: "零星收费" },
  556. { value: "LUCK", label: "福袋活动" },
  557. { value: "DEGREE_REGISTRATION", label: "考级报名" },
  558. { value: "DOUBLE_ELEVEN2020", label: "2020双十一活动" },
  559. { value: "DOUBLE_ELEVEN2021", label: "2021双十一活动" },
  560. { value: "DEGREE", label: "儿童节活动" },
  561. { value: "PRACTICE_GROUP_BUY", label: "网管课" },
  562. { value: "PRACTICE_GROUP_RENEW", label: "网管课续费" },
  563. { value: "REPAIR", label: "乐器维修" },
  564. { value: "OUTORDER", label: "外部收入" },
  565. { value: "GOODS_SELL", label: "商品销售" },
  566. { value: "SUBJECT_CHANGE", label: "声部更换" },
  567. { value: "MAINTENANCE", label: "乐器保养" },
  568. { value: "ADD_STUDENT", label: "乐团报名" },
  569. { value: "REPLACEMENT", label: "乐器置换" },
  570. { value: "SCHOOL", label: "学校订单" },
  571. { value: "PERSONAL", label: "个人订单" },
  572. { value: "OTHER", label: "其他" },
  573. { value: "ACTIVITY", label: "活动购买" },
  574. { value: "LIVE_BUY", label: "直播购物" }
  575. ],
  576. v = [
  577. { value: "ING", label: "交易中" },
  578. { value: "SUCCESS", label: "成功交易" },
  579. { value: "FAILED", label: "交易失败" },
  580. { value: "CLOSE", label: "交易关闭" }
  581. ],
  582. h = [
  583. { value: "0", text: "未开始" },
  584. { value: "1", text: "报名中" },
  585. { value: "5", text: "报名结束" },
  586. { value: "2", text: "进行中" },
  587. { value: "4", text: "已结束" },
  588. { value: "3", text: "取消" },
  589. { value: "6", text: "暂停" }
  590. ],
  591. S = [
  592. { value: "NOT_START", label: "未开始" },
  593. { value: "UNDERWAY", label: "进行中" },
  594. { value: "OVER", label: "已结束" }
  595. ],
  596. y = [
  597. { value: "NORMAL", label: "进行中" },
  598. { value: "FINISH", label: "结束" },
  599. { value: "CANCEL", label: "关闭" },
  600. { value: "LOCK", label: "锁定" }
  601. ],
  602. I = [
  603. { value: "RECHARGE", label: "充值" },
  604. { value: "CONSUME", label: "建课" },
  605. { value: "RETURN", label: "退课" },
  606. { value: "MANUAL_ADD", label: "系统充值" },
  607. { value: "MANUAL_SUB", label: "系统扣除" }
  608. ],
  609. O = [
  610. { value: "FREE", label: "免费" },
  611. { value: "CHARGE", label: "收费" },
  612. { value: "TRIAL", label: "试听课" },
  613. { value: "CARE_PACKAGE", label: "关心包" },
  614. { value: "COME_ON_PACKAGE", label: "加油包" }
  615. ],
  616. w = [
  617. {
  618. value: "课程推荐",
  619. label: "课程推荐",
  620. children: [
  621. { value: "新课推荐", label: "新课推荐" },
  622. { value: "续费提醒", label: "续费提醒" }
  623. ]
  624. },
  625. {
  626. value: "常规回访",
  627. label: "常规回访",
  628. children: [
  629. { value: "课后及训练回访", label: "课后及训练回访" },
  630. { value: "练习及乐团表现", label: "练习及乐团表现" }
  631. ]
  632. },
  633. {
  634. value: "其它",
  635. label: "其它",
  636. children: [{ value: "其它", label: "其它" }]
  637. }
  638. ],
  639. C = [
  640. {
  641. value: "课程推荐",
  642. label: "课程推荐",
  643. children: [
  644. { value: "新课推荐", label: "新课推荐" },
  645. { value: "续费提醒", label: "续费提醒" }
  646. ]
  647. },
  648. {
  649. value: "常规回访",
  650. label: "常规回访",
  651. children: [
  652. { value: "课后及训练回访", label: "课后及训练回访" },
  653. { value: "练习及乐团表现", label: "练习及乐团表现" },
  654. { label: "考勤申诉", value: "考勤申诉" },
  655. { value: "异常请假回访", label: "异常请假回访" }
  656. ]
  657. },
  658. {
  659. value: "小课回访",
  660. label: "小课回访",
  661. children: [
  662. { value: "VIP课回访", label: "VIP课回访" },
  663. { value: "乐理课回访", label: "乐理课回访" },
  664. { value: "网管课回访", label: "网管课回访" }
  665. ]
  666. },
  667. {
  668. value: "云教练",
  669. label: "云教练",
  670. children: [{ value: "体验回访", label: "体验回访" }]
  671. },
  672. {
  673. value: "其它",
  674. label: "其它",
  675. children: [
  676. { value: "其它", label: "其它" },
  677. { value: "会员续费", label: "会员续费" }
  678. ]
  679. }
  680. ],
  681. E = [
  682. { value: "YQPAY", label: "双乾" },
  683. { value: "BALANCE", label: "余额" },
  684. { value: "ADAPAY", label: "汇付" }
  685. ],
  686. T = [
  687. { value: "INSTRUMENT", label: "乐器销售" },
  688. { value: "ACCESSORIES", label: "配件销售" },
  689. { value: "SCHOOL_BUY", label: "学校采购" },
  690. { value: "OTHER", label: "其它" }
  691. ],
  692. _ = [
  693. { value: "INSTRUMENT", label: "乐器" },
  694. { value: "ACCESSORIES", label: "辅件" },
  695. { value: "TEACHING", label: "教材" },
  696. { value: "STAFF", label: "教谱" },
  697. { value: "OTHER", label: "其它" }
  698. ],
  699. P = [
  700. { value: "1", label: "一年级" },
  701. { value: "2", label: "二年级" },
  702. { value: "3", label: "三年级" },
  703. { value: "4", label: "四年级" },
  704. { value: "5", label: "五年级" },
  705. { value: "6", label: "六年级" },
  706. { value: "7", label: "初一" },
  707. { value: "8", label: "初二" },
  708. { value: "9", label: "初三" },
  709. { value: "10", label: "高一" },
  710. { value: "11", label: "高二" },
  711. { value: "12", label: "高三" }
  712. ],
  713. k = [
  714. { value: "INTERNAL", label: "内部" },
  715. { value: "EXTERNAL", label: "外部" },
  716. { value: "ALL", label: "全部" }
  717. ],
  718. N = [
  719. { label: "不限制", value: "1" },
  720. { label: "线上不可调为线下", value: "0" },
  721. { label: "线下不可调为线上", value: "2" },
  722. { label: "线上线下不可互调", value: "3" }
  723. ],
  724. A = ae(n["musicGroupType"]),
  725. R = ae(n["classTime"]),
  726. x = ae(n["courseViewType"]),
  727. L = ae(n["payOrderType"]),
  728. j = ae(n["auditType"]),
  729. M = ae(n["auditPaymentType"]),
  730. D = ae(n["orderServerType"]),
  731. G = ae(n["orderAuditType"]),
  732. F = ae(n["rewardModeType"]),
  733. q = ae(n["musicClassType"]),
  734. $ = ae(n["ProbationPeriodStatus"]),
  735. U = ae(n["downListType"]),
  736. V = ae(n["conclusion"]),
  737. H = ae(n["clientType"]),
  738. W = ae(n["couponType"]),
  739. B = ae(n["backType"]),
  740. Y = ae(n["memberEnum"]),
  741. X = ae(n["coupontypeDetail"]),
  742. z = ae(n["issue"]),
  743. J = ae(n["feedbackType"]),
  744. K = ae(n["feedbackTypeDesc"]),
  745. Q = ae(n["campState"]),
  746. Z = ae(n["catgGoupType"]),
  747. ee = ae(n["catRole"]),
  748. te = ae(n["catType"]);
  749. function ae(e) {
  750. var t = [];
  751. for (var a in e) t.push({ label: e[a], value: a });
  752. return t;
  753. }
  754. var le = function(e) {
  755. var t =
  756. arguments.length > 1 && void 0 !== arguments[1]
  757. ? arguments[1]
  758. : ["value", "label"],
  759. a = Object(r["a"])(t, 2),
  760. n = a[0],
  761. o = a[1],
  762. i = {};
  763. if (e && e.length) {
  764. var u,
  765. s = Object(l["a"])(e);
  766. try {
  767. for (s.s(); !(u = s.n()).done; ) {
  768. var c = u.value;
  769. i[c[n]] = c[o];
  770. }
  771. } catch (d) {
  772. s.e(d);
  773. } finally {
  774. s.f();
  775. }
  776. }
  777. return i;
  778. };
  779. },
  780. ed1e: function(e, t, a) {
  781. "use strict";
  782. a("5e18");
  783. },
  784. fd78: function(e, t, a) {
  785. "use strict";
  786. a.r(t);
  787. var l = function() {
  788. var e = this,
  789. t = e.$createElement,
  790. a = e._self._c || t;
  791. return a("div", { staticClass: "m-container" }, [
  792. a(
  793. "h2",
  794. [
  795. a("el-page-header", {
  796. attrs: { content: e.pageTitle[e.pageType] + "商品" },
  797. on: { back: e.onCancel }
  798. })
  799. ],
  800. 1
  801. ),
  802. e._v(" "),
  803. a(
  804. "div",
  805. { staticClass: "m-core" },
  806. [
  807. a(
  808. "el-form",
  809. {
  810. ref: "form",
  811. attrs: {
  812. model: e.form,
  813. rules: e.rules,
  814. "label-width": "160px",
  815. inline: !0
  816. }
  817. },
  818. [
  819. a("el-alert", {
  820. staticClass: "alert",
  821. attrs: { title: "基础信息", closable: !1, type: "info" }
  822. }),
  823. e._v(" "),
  824. a(
  825. "el-form-item",
  826. { attrs: { label: "货号", prop: "sn" } },
  827. [
  828. a("el-input", {
  829. staticStyle: { width: "220px !important" },
  830. attrs: {
  831. disabled: e.pageDisabled,
  832. placeholder: "请输入货号"
  833. },
  834. model: {
  835. value: e.form.sn,
  836. callback: function(t) {
  837. e.$set(
  838. e.form,
  839. "sn",
  840. "string" === typeof t ? t.trim() : t
  841. );
  842. },
  843. expression: "form.sn"
  844. }
  845. })
  846. ],
  847. 1
  848. ),
  849. e._v(" "),
  850. a(
  851. "el-form-item",
  852. { attrs: { label: "品牌", prop: "brand" } },
  853. [
  854. a("el-input", {
  855. staticStyle: { width: "220px !important" },
  856. attrs: {
  857. disabled: e.pageDisabled,
  858. placeholder: "请输入品牌"
  859. },
  860. model: {
  861. value: e.form.brand,
  862. callback: function(t) {
  863. e.$set(
  864. e.form,
  865. "brand",
  866. "string" === typeof t ? t.trim() : t
  867. );
  868. },
  869. expression: "form.brand"
  870. }
  871. })
  872. ],
  873. 1
  874. ),
  875. e._v(" "),
  876. a(
  877. "el-form-item",
  878. { attrs: { label: "商品名称", prop: "name" } },
  879. [
  880. a("el-input", {
  881. staticStyle: { width: "220px !important" },
  882. attrs: {
  883. placeholder: "请输入商品名称",
  884. disabled: e.pageDisabled
  885. },
  886. model: {
  887. value: e.form.name,
  888. callback: function(t) {
  889. e.$set(
  890. e.form,
  891. "name",
  892. "string" === typeof t ? t.trim() : t
  893. );
  894. },
  895. expression: "form.name"
  896. }
  897. })
  898. ],
  899. 1
  900. ),
  901. e._v(" "),
  902. a(
  903. "el-form-item",
  904. { attrs: { label: "商品类型", prop: "type" } },
  905. [
  906. a(
  907. "el-select",
  908. {
  909. staticStyle: { width: "220px !important" },
  910. attrs: {
  911. placeholder: "请选择商品类型",
  912. disabled: e.pageDisabled
  913. },
  914. model: {
  915. value: e.form.type,
  916. callback: function(t) {
  917. e.$set(
  918. e.form,
  919. "type",
  920. "string" === typeof t ? t.trim() : t
  921. );
  922. },
  923. expression: "form.type"
  924. }
  925. },
  926. e._l(e.goodsType, function(e, t) {
  927. return a("el-option", {
  928. key: t,
  929. attrs: { label: e.label, value: e.value }
  930. });
  931. }),
  932. 1
  933. )
  934. ],
  935. 1
  936. ),
  937. e._v(" "),
  938. a(
  939. "el-form-item",
  940. { attrs: { label: "商品分类", prop: "goodsCategoryId" } },
  941. [
  942. a(
  943. "el-select",
  944. {
  945. staticStyle: { width: "220px !important" },
  946. attrs: {
  947. placeholder: "请选择商品分类",
  948. disabled: e.pageDisabled,
  949. filterable: ""
  950. },
  951. model: {
  952. value: e.form.goodsCategoryId,
  953. callback: function(t) {
  954. e.$set(
  955. e.form,
  956. "goodsCategoryId",
  957. "string" === typeof t ? t.trim() : t
  958. );
  959. },
  960. expression: "form.goodsCategoryId"
  961. }
  962. },
  963. e._l(e.categoryList, function(e) {
  964. return a("el-option", {
  965. key: e.value,
  966. attrs: { label: e.label, value: e.value }
  967. });
  968. }),
  969. 1
  970. )
  971. ],
  972. 1
  973. ),
  974. e._v(" "),
  975. a(
  976. "el-form-item",
  977. { attrs: { label: "商品型号", prop: "specification" } },
  978. [
  979. a("el-input", {
  980. staticStyle: { width: "220px" },
  981. attrs: {
  982. placeholder: "请输入商品型号",
  983. disabled: e.pageDisabled
  984. },
  985. model: {
  986. value: e.form.specification,
  987. callback: function(t) {
  988. e.$set(
  989. e.form,
  990. "specification",
  991. "string" === typeof t ? t.trim() : t
  992. );
  993. },
  994. expression: "form.specification"
  995. }
  996. })
  997. ],
  998. 1
  999. ),
  1000. e._v(" "),
  1001. 1 == e.tenantId
  1002. ? a(
  1003. "el-form-item",
  1004. { attrs: { label: "库存类型", prop: "stockType" } },
  1005. [
  1006. a(
  1007. "el-select",
  1008. {
  1009. staticStyle: { width: "220px !important" },
  1010. attrs: {
  1011. placeholder: "请选择库存类型",
  1012. disabled: e.pageDisabled
  1013. },
  1014. model: {
  1015. value: e.form.stockType,
  1016. callback: function(t) {
  1017. e.$set(e.form, "stockType", t);
  1018. },
  1019. expression: "form.stockType"
  1020. }
  1021. },
  1022. e._l(e.stockType, function(e, t) {
  1023. return a("el-option", {
  1024. key: t,
  1025. attrs: { label: e.label, value: e.value }
  1026. });
  1027. }),
  1028. 1
  1029. )
  1030. ],
  1031. 1
  1032. )
  1033. : e._e(),
  1034. e._v(" "),
  1035. 1 == e.tenantId
  1036. ? a(
  1037. "el-form-item",
  1038. {
  1039. attrs: {
  1040. label: "是否库存预警",
  1041. prop: "stockWarning"
  1042. }
  1043. },
  1044. [
  1045. a(
  1046. "el-select",
  1047. {
  1048. staticStyle: { width: "220px !important" },
  1049. attrs: {
  1050. placeholder: "请选择库存预警",
  1051. disabled: e.pageDisabled
  1052. },
  1053. model: {
  1054. value: e.form.stockWarning,
  1055. callback: function(t) {
  1056. e.$set(e.form, "stockWarning", t);
  1057. },
  1058. expression: "form.stockWarning"
  1059. }
  1060. },
  1061. [
  1062. a("el-option", {
  1063. attrs: { label: "是", value: 1 }
  1064. }),
  1065. e._v(" "),
  1066. a("el-option", {
  1067. attrs: { label: "否", value: 0 }
  1068. })
  1069. ],
  1070. 1
  1071. )
  1072. ],
  1073. 1
  1074. )
  1075. : e._e(),
  1076. e._v(" "),
  1077. a("el-alert", {
  1078. staticClass: "alert",
  1079. attrs: { title: "价格信息", closable: !1, type: "info" }
  1080. }),
  1081. e._v(" "),
  1082. a(
  1083. "el-form-item",
  1084. {
  1085. staticClass: "hiddenStart",
  1086. attrs: { label: "市场价", prop: "marketPrice" }
  1087. },
  1088. [
  1089. a("template", { slot: "label" }, [
  1090. a(
  1091. "p",
  1092. { staticStyle: { position: "relative" } },
  1093. [
  1094. a(
  1095. "span",
  1096. {
  1097. staticStyle: {
  1098. color: "#f56c6c",
  1099. "margin-right": "4px"
  1100. }
  1101. },
  1102. [e._v("*")]
  1103. ),
  1104. e._v("\n 市场价\n "),
  1105. a(
  1106. "el-tooltip",
  1107. {
  1108. attrs: {
  1109. placement: "top",
  1110. "popper-class": "mTooltip"
  1111. }
  1112. },
  1113. [
  1114. a(
  1115. "div",
  1116. {
  1117. attrs: { slot: "content" },
  1118. slot: "content"
  1119. },
  1120. [
  1121. e._v(
  1122. "\n 商品标价,仅在商品购买时做展示,不以该价格向学员销售商品\n "
  1123. )
  1124. ]
  1125. ),
  1126. e._v(" "),
  1127. a("i", {
  1128. staticClass: "el-icon-question",
  1129. staticStyle: {
  1130. "font-size": "18px",
  1131. color: "#f56c6c",
  1132. position: "relative",
  1133. top: "2px"
  1134. }
  1135. })
  1136. ]
  1137. )
  1138. ],
  1139. 1
  1140. )
  1141. ]),
  1142. e._v(" "),
  1143. a("el-input", {
  1144. staticStyle: { width: "220px" },
  1145. attrs: {
  1146. type: "number",
  1147. placeholder: "请输入市场价",
  1148. disabled: e.pageDisabled
  1149. },
  1150. nativeOn: {
  1151. mousewheel: function(e) {
  1152. e.preventDefault();
  1153. }
  1154. },
  1155. model: {
  1156. value: e.form.marketPrice,
  1157. callback: function(t) {
  1158. e.$set(
  1159. e.form,
  1160. "marketPrice",
  1161. "string" === typeof t ? t.trim() : t
  1162. );
  1163. },
  1164. expression: "form.marketPrice"
  1165. }
  1166. })
  1167. ],
  1168. 2
  1169. ),
  1170. e._v(" "),
  1171. a(
  1172. "el-form-item",
  1173. {
  1174. staticClass: "hiddenStart",
  1175. attrs: { label: "零售价", prop: "discountPrice" }
  1176. },
  1177. [
  1178. a("template", { slot: "label" }, [
  1179. a(
  1180. "p",
  1181. { staticStyle: { position: "relative" } },
  1182. [
  1183. a(
  1184. "span",
  1185. {
  1186. staticStyle: {
  1187. color: "#f56c6c",
  1188. "margin-right": "4px"
  1189. }
  1190. },
  1191. [e._v("*")]
  1192. ),
  1193. e._v("\n 零售价\n "),
  1194. a(
  1195. "el-tooltip",
  1196. {
  1197. attrs: {
  1198. placement: "top",
  1199. "popper-class": "mTooltip"
  1200. }
  1201. },
  1202. [
  1203. a(
  1204. "div",
  1205. {
  1206. attrs: { slot: "content" },
  1207. slot: "content"
  1208. },
  1209. [
  1210. e._v(
  1211. "\n 管理端APP、乐器维修时学员购买该商品的价格\n "
  1212. )
  1213. ]
  1214. ),
  1215. e._v(" "),
  1216. a("i", {
  1217. staticClass: "el-icon-question",
  1218. staticStyle: {
  1219. "font-size": "18px",
  1220. color: "#f56c6c",
  1221. position: "relative",
  1222. top: "2px"
  1223. }
  1224. })
  1225. ]
  1226. )
  1227. ],
  1228. 1
  1229. )
  1230. ]),
  1231. e._v(" "),
  1232. a("el-input", {
  1233. staticStyle: { width: "220px" },
  1234. attrs: {
  1235. type: "number",
  1236. placeholder: "请输入零售价",
  1237. disabled: e.pageDisabled
  1238. },
  1239. nativeOn: {
  1240. mousewheel: function(e) {
  1241. e.preventDefault();
  1242. }
  1243. },
  1244. model: {
  1245. value: e.form.discountPrice,
  1246. callback: function(t) {
  1247. e.$set(
  1248. e.form,
  1249. "discountPrice",
  1250. "string" === typeof t ? t.trim() : t
  1251. );
  1252. },
  1253. expression: "form.discountPrice"
  1254. }
  1255. })
  1256. ],
  1257. 2
  1258. ),
  1259. e._v(" "),
  1260. a(
  1261. "el-form-item",
  1262. {
  1263. staticClass: "hiddenStart",
  1264. attrs: {
  1265. label: "商品团购价",
  1266. prop: "groupPurchasePrice"
  1267. }
  1268. },
  1269. [
  1270. a("template", { slot: "label" }, [
  1271. a(
  1272. "p",
  1273. { staticStyle: { position: "relative" } },
  1274. [
  1275. a(
  1276. "span",
  1277. {
  1278. staticStyle: {
  1279. color: "#f56c6c",
  1280. "margin-right": "4px"
  1281. }
  1282. },
  1283. [e._v("*")]
  1284. ),
  1285. e._v("\n 团购价\n "),
  1286. a(
  1287. "el-tooltip",
  1288. {
  1289. attrs: {
  1290. placement: "top",
  1291. "popper-class": "mTooltip"
  1292. }
  1293. },
  1294. [
  1295. a(
  1296. "div",
  1297. {
  1298. attrs: { slot: "content" },
  1299. slot: "content"
  1300. },
  1301. [e._v("乐团报名缴费时学员购买该商品的价格")]
  1302. ),
  1303. e._v(" "),
  1304. a("i", {
  1305. staticClass: "el-icon-question",
  1306. staticStyle: {
  1307. "font-size": "18px",
  1308. color: "#f56c6c",
  1309. position: "relative",
  1310. top: "2px"
  1311. }
  1312. })
  1313. ]
  1314. )
  1315. ],
  1316. 1
  1317. )
  1318. ]),
  1319. e._v(" "),
  1320. a("el-input", {
  1321. staticStyle: { width: "220px" },
  1322. attrs: {
  1323. type: "number",
  1324. placeholder: "请输入商品团购价",
  1325. disabled: e.pageDisabled
  1326. },
  1327. nativeOn: {
  1328. mousewheel: function(e) {
  1329. e.preventDefault();
  1330. }
  1331. },
  1332. model: {
  1333. value: e.form.groupPurchasePrice,
  1334. callback: function(t) {
  1335. e.$set(
  1336. e.form,
  1337. "groupPurchasePrice",
  1338. "string" === typeof t ? t.trim() : t
  1339. );
  1340. },
  1341. expression: "form.groupPurchasePrice"
  1342. }
  1343. })
  1344. ],
  1345. 2
  1346. ),
  1347. e._v(" "),
  1348. a("el-alert", {
  1349. staticClass: "alert",
  1350. attrs: { title: "销售渠道", closable: !1, type: "info" }
  1351. }),
  1352. e._v(" "),
  1353. a(
  1354. "el-form-item",
  1355. {
  1356. attrs: {
  1357. label: "移动端可售分部",
  1358. prop: "educationShowOrganId"
  1359. }
  1360. },
  1361. [
  1362. a(
  1363. "select-all",
  1364. {
  1365. staticStyle: { width: "400px !important" },
  1366. attrs: {
  1367. filterable: "",
  1368. placeholder: "请选择分部",
  1369. multiple: "",
  1370. disabled: e.pageDisabled,
  1371. clearable: ""
  1372. },
  1373. model: {
  1374. value: e.form.educationShowOrganId,
  1375. callback: function(t) {
  1376. e.$set(
  1377. e.form,
  1378. "educationShowOrganId",
  1379. "string" === typeof t ? t.trim() : t
  1380. );
  1381. },
  1382. expression: "form.educationShowOrganId"
  1383. }
  1384. },
  1385. e._l(e.selects.branchs, function(e) {
  1386. return a("el-option", {
  1387. key: e.id,
  1388. attrs: { label: e.name, value: e.id.toString() }
  1389. });
  1390. }),
  1391. 1
  1392. )
  1393. ],
  1394. 1
  1395. ),
  1396. e._v(" "),
  1397. a(
  1398. "el-form-item",
  1399. {
  1400. attrs: {
  1401. label: "课程收费乐团可售分部",
  1402. prop: "courseFeeShowOrganId"
  1403. }
  1404. },
  1405. [
  1406. a(
  1407. "select-all",
  1408. {
  1409. staticStyle: { width: "400px !important" },
  1410. attrs: {
  1411. filterable: "",
  1412. placeholder: "请选择分部",
  1413. multiple: "",
  1414. disabled: e.pageDisabled,
  1415. clearable: ""
  1416. },
  1417. model: {
  1418. value: e.form.courseFeeShowOrganId,
  1419. callback: function(t) {
  1420. e.$set(
  1421. e.form,
  1422. "courseFeeShowOrganId",
  1423. "string" === typeof t ? t.trim() : t
  1424. );
  1425. },
  1426. expression: "form.courseFeeShowOrganId"
  1427. }
  1428. },
  1429. e._l(e.selects.branchs, function(e) {
  1430. return a("el-option", {
  1431. key: e.id,
  1432. attrs: { label: e.name, value: e.id.toString() }
  1433. });
  1434. }),
  1435. 1
  1436. )
  1437. ],
  1438. 1
  1439. ),
  1440. e._v(" "),
  1441. a(
  1442. "el-form-item",
  1443. {
  1444. attrs: {
  1445. label: "会员收费乐团可售分部",
  1446. prop: "memberFeeShowOrganId"
  1447. }
  1448. },
  1449. [
  1450. a(
  1451. "select-all",
  1452. {
  1453. staticStyle: { width: "400px !important" },
  1454. attrs: {
  1455. filterable: "",
  1456. placeholder: "请选择分部",
  1457. multiple: "",
  1458. disabled: e.pageDisabled,
  1459. clearable: ""
  1460. },
  1461. model: {
  1462. value: e.form.memberFeeShowOrganId,
  1463. callback: function(t) {
  1464. e.$set(
  1465. e.form,
  1466. "memberFeeShowOrganId",
  1467. "string" === typeof t ? t.trim() : t
  1468. );
  1469. },
  1470. expression: "form.memberFeeShowOrganId"
  1471. }
  1472. },
  1473. e._l(e.selects.branchs, function(e) {
  1474. return a("el-option", {
  1475. key: e.id,
  1476. attrs: { label: e.name, value: e.id.toString() }
  1477. });
  1478. }),
  1479. 1
  1480. )
  1481. ],
  1482. 1
  1483. ),
  1484. e._v(" "),
  1485. 1 == e.tenantId
  1486. ? a(
  1487. "el-form-item",
  1488. {
  1489. attrs: {
  1490. label: "乐器置换可售分部",
  1491. prop: "replacementShowOrganId"
  1492. }
  1493. },
  1494. [
  1495. a(
  1496. "select-all",
  1497. {
  1498. staticStyle: { width: "400px !important" },
  1499. attrs: {
  1500. filterable: "",
  1501. placeholder: "请选择所属分部",
  1502. multiple: "",
  1503. disabled: e.pageDisabled,
  1504. clearable: ""
  1505. },
  1506. model: {
  1507. value: e.form.replacementShowOrganId,
  1508. callback: function(t) {
  1509. e.$set(
  1510. e.form,
  1511. "replacementShowOrganId",
  1512. "string" === typeof t ? t.trim() : t
  1513. );
  1514. },
  1515. expression: "form.replacementShowOrganId"
  1516. }
  1517. },
  1518. e._l(e.selects.branchs, function(e) {
  1519. return a("el-option", {
  1520. key: e.id,
  1521. attrs: {
  1522. label: e.name,
  1523. value: e.id.toString()
  1524. }
  1525. });
  1526. }),
  1527. 1
  1528. )
  1529. ],
  1530. 1
  1531. )
  1532. : e._e(),
  1533. e._v(" "),
  1534. a("el-alert", {
  1535. staticClass: "alert",
  1536. attrs: { title: "商品信息", closable: !1, type: "info" }
  1537. }),
  1538. e._v(" "),
  1539. a(
  1540. "el-form-item",
  1541. { attrs: { label: "商品图片", prop: "image" } },
  1542. [
  1543. a("image-cropper", {
  1544. attrs: {
  1545. options: e.cropperOptions,
  1546. disabled: e.pageDisabled,
  1547. imgSize: 2,
  1548. imageUrl: e.form.image
  1549. },
  1550. on: { "crop-upload-success": e.cropSuccess }
  1551. }),
  1552. e._v(" "),
  1553. a("p", { staticClass: "imageSize" }, [
  1554. e._v(
  1555. "\n 请上传大小2M以内,格式为jpg、png、gif图片\n "
  1556. )
  1557. ])
  1558. ],
  1559. 1
  1560. ),
  1561. e._v(" "),
  1562. a("br"),
  1563. e._v(" "),
  1564. a(
  1565. "el-form-item",
  1566. { attrs: { label: "商品描述", prop: "brief" } },
  1567. [
  1568. a("el-input", {
  1569. staticStyle: { width: "400px" },
  1570. attrs: { type: "textarea", disabled: e.pageDisabled },
  1571. model: {
  1572. value: e.form.brief,
  1573. callback: function(t) {
  1574. e.$set(
  1575. e.form,
  1576. "brief",
  1577. "string" === typeof t ? t.trim() : t
  1578. );
  1579. },
  1580. expression: "form.brief"
  1581. }
  1582. })
  1583. ],
  1584. 1
  1585. ),
  1586. e._v(" "),
  1587. a("br"),
  1588. e._v(" "),
  1589. a(
  1590. "el-form-item",
  1591. { attrs: { label: "商品详情", prop: "desc" } },
  1592. [
  1593. a("el-input", {
  1594. staticStyle: { width: "400px" },
  1595. attrs: { type: "textarea", disabled: e.pageDisabled },
  1596. model: {
  1597. value: e.form.desc,
  1598. callback: function(t) {
  1599. e.$set(
  1600. e.form,
  1601. "desc",
  1602. "string" === typeof t ? t.trim() : t
  1603. );
  1604. },
  1605. expression: "form.desc"
  1606. }
  1607. })
  1608. ],
  1609. 1
  1610. ),
  1611. e._v(" "),
  1612. a("br"),
  1613. e._v(" "),
  1614. e.pageDisabled
  1615. ? e._e()
  1616. : a(
  1617. "el-form-item",
  1618. [
  1619. a(
  1620. "el-button",
  1621. {
  1622. attrs: { type: "primary" },
  1623. on: {
  1624. click: function(t) {
  1625. return e.onSubmit("form");
  1626. }
  1627. }
  1628. },
  1629. [e._v("保存")]
  1630. ),
  1631. e._v(" "),
  1632. a(
  1633. "el-button",
  1634. {
  1635. on: {
  1636. click: function(t) {
  1637. return e.onReSet("form");
  1638. }
  1639. }
  1640. },
  1641. [e._v("重置")]
  1642. )
  1643. ],
  1644. 1
  1645. )
  1646. ],
  1647. 1
  1648. )
  1649. ],
  1650. 1
  1651. )
  1652. ]);
  1653. },
  1654. r = [],
  1655. n = (a("ac6a"), a("7f7f"), a("28a5"), a("2543")),
  1656. o = a("5f87"),
  1657. i = a("92e3"),
  1658. u = a("896b"),
  1659. s = function(e, t, a) {
  1660. ("" == t && "string" == typeof t) || null == t
  1661. ? a(new Error("请输入金额"))
  1662. : t < 0
  1663. ? a(new Error("输入金额必须大于或等于0"))
  1664. : t >= 1e5
  1665. ? a(new Error("输入金额必须小于100000"))
  1666. : a();
  1667. },
  1668. c = function(e, t, a) {
  1669. ("" == t && "string" == typeof t) || null == t
  1670. ? a(new Error("请输入库存"))
  1671. : t < 0
  1672. ? a(new Error("库存数量必须大于或等于0"))
  1673. : a();
  1674. },
  1675. d = {
  1676. name: "shopOperation",
  1677. components: { ImageCropper: u["a"] },
  1678. data: function() {
  1679. return {
  1680. goodsType: i["A"],
  1681. stockType: i["P"],
  1682. categoryList: [],
  1683. pageType: null,
  1684. pageTitle: {
  1685. create: "添加",
  1686. update: "修改",
  1687. look: "查看",
  1688. copy: "复制"
  1689. },
  1690. pageDisabled: !1,
  1691. headers: { Authorization: Object(o["b"])() },
  1692. form: {
  1693. sn: null,
  1694. brand: null,
  1695. supplyChannel: null,
  1696. name: null,
  1697. type: null,
  1698. goodsCategoryId: null,
  1699. specification: null,
  1700. stockCount: null,
  1701. taxStockCount: null,
  1702. stockType: null,
  1703. marketPrice: null,
  1704. discountPrice: null,
  1705. groupPurchasePrice: null,
  1706. clientShow: null,
  1707. educationalShow: null,
  1708. musicGroupShow: null,
  1709. courseViewType: [],
  1710. stockWarning: null,
  1711. image: null,
  1712. brief: null,
  1713. desc: null,
  1714. replacementShow: null,
  1715. studentShowOrganId: null,
  1716. educationShowOrganId: null,
  1717. courseFeeShowOrganId: null,
  1718. memberFeeShowOrganId: null,
  1719. replacementShowOrganId: null
  1720. },
  1721. rules: {
  1722. sn: [
  1723. { required: !0, message: "请输入商品货号", trigger: "blur" }
  1724. ],
  1725. brand: [
  1726. { required: !0, message: "请输入品牌", trigger: "blur" },
  1727. {
  1728. min: 2,
  1729. max: 30,
  1730. message: "长度在 2 到 30 个字符",
  1731. trigger: "blur"
  1732. }
  1733. ],
  1734. supplyChannel: [
  1735. { required: !0, message: "请输入备查货号", trigger: "blur" }
  1736. ],
  1737. name: [
  1738. { required: !0, message: "请输入商品名称", trigger: "blur" },
  1739. {
  1740. min: 2,
  1741. max: 30,
  1742. message: "长度在 2 到 30 个字符",
  1743. trigger: "blur"
  1744. }
  1745. ],
  1746. type: [
  1747. { required: !0, message: "请选择商品分类", trigger: "change" }
  1748. ],
  1749. goodsCategoryId: [
  1750. { required: !0, message: "请选择商品类型", trigger: "change" }
  1751. ],
  1752. organIdList: [
  1753. { required: !0, message: "请选择所属分部", trigger: "change" }
  1754. ],
  1755. specification: [
  1756. { required: !0, message: "请输入商品型号", trigger: "blur" },
  1757. {
  1758. min: 2,
  1759. max: 30,
  1760. message: "长度在 2 到 30 个字符",
  1761. trigger: "blur"
  1762. }
  1763. ],
  1764. stockCount: [{ required: !0, validator: c, trigger: "blur" }],
  1765. taxStockCount: [
  1766. { required: !0, validator: c, trigger: "blur" }
  1767. ],
  1768. stockType: [
  1769. { required: !0, message: "请选择库存类型", trigger: "change" }
  1770. ],
  1771. marketPrice: [{ required: !0, validator: s, trigger: "blur" }],
  1772. discountPrice: [
  1773. { required: !0, validator: s, trigger: "blur" }
  1774. ],
  1775. groupPurchasePrice: [
  1776. { required: !0, validator: s, trigger: "blur" }
  1777. ],
  1778. clientShow: [
  1779. {
  1780. required: !0,
  1781. message: "请选择学员是否展示",
  1782. trigger: "change"
  1783. }
  1784. ],
  1785. replacementShow: [
  1786. {
  1787. required: !0,
  1788. message: "是否参与乐器置换",
  1789. trigger: "change"
  1790. }
  1791. ],
  1792. educationalShow: [
  1793. {
  1794. required: !0,
  1795. message: "请选择教务端是否展示",
  1796. trigger: "change"
  1797. }
  1798. ],
  1799. musicGroupShow: [
  1800. {
  1801. required: !0,
  1802. message: "请选择乐团是否展示",
  1803. trigger: "change"
  1804. }
  1805. ],
  1806. courseViewType: [
  1807. {
  1808. required: !0,
  1809. message: "请选乐团收费模式",
  1810. trigger: "change"
  1811. }
  1812. ],
  1813. stockWarning: [
  1814. {
  1815. required: !0,
  1816. message: "请选择是否库存预警",
  1817. trigger: "change"
  1818. }
  1819. ],
  1820. image: [
  1821. { required: !0, message: "请选择图片", trigger: "blur" }
  1822. ],
  1823. brief: [
  1824. { required: !0, message: "请输入商品描述", trigger: "blur" }
  1825. ],
  1826. desc: [
  1827. { required: !0, message: "请输入商品详情", trigger: "blur" }
  1828. ]
  1829. },
  1830. Fsearch: null,
  1831. Frules: null,
  1832. imageWidthM: 400,
  1833. imageHeightM: 400,
  1834. tenantId: "",
  1835. cropperOptions: {
  1836. autoCrop: !0,
  1837. autoCropWidth: 300,
  1838. autoCropHeight: 300,
  1839. fixedBox: !0,
  1840. previewsCircle: !1,
  1841. title: "商品图片"
  1842. }
  1843. };
  1844. },
  1845. mounted: function() {
  1846. (this.tenantId = this.$helpers.tenantId),
  1847. this.$store.dispatch("setBranchs"),
  1848. this.init();
  1849. },
  1850. methods: {
  1851. init: function() {
  1852. var e = this.$route.query;
  1853. if (e.paramInfo) {
  1854. var t = JSON.parse(e.paramInfo);
  1855. (this.pageType = t.type), (this.id = t.id);
  1856. }
  1857. (this.pageDisabled = "look" == this.pageType),
  1858. this.getList(),
  1859. this.getCatagory();
  1860. },
  1861. cropSuccess: function(e) {
  1862. this.form.image = e.data.url;
  1863. },
  1864. onSubmit: function(e) {
  1865. var t = this;
  1866. this.$refs[e].validate(function(e) {
  1867. if (!e)
  1868. return (
  1869. t.$nextTick(function() {
  1870. var e = document.getElementsByClassName("is-error");
  1871. e[0].scrollIntoView({
  1872. block: "center",
  1873. behavior: "smooth"
  1874. });
  1875. }),
  1876. !1
  1877. );
  1878. var a = JSON.parse(JSON.stringify(t.form));
  1879. a.courseViewType &&
  1880. (a.courseViewType = a.courseViewType.join(",")),
  1881. a.studentShowOrganId &&
  1882. (a.studentShowOrganId = a.studentShowOrganId.join(",")),
  1883. a.educationShowOrganId &&
  1884. (a.educationShowOrganId = a.educationShowOrganId.join(",")),
  1885. a.courseFeeShowOrganId &&
  1886. (a.courseFeeShowOrganId = a.courseFeeShowOrganId.join(",")),
  1887. a.memberFeeShowOrganId &&
  1888. (a.memberFeeShowOrganId = a.memberFeeShowOrganId.join(",")),
  1889. a.replacementShowOrganId &&
  1890. (a.replacementShowOrganId = a.replacementShowOrganId.join(
  1891. ","
  1892. )),
  1893. a.studentShowOrganId ||
  1894. a.educationShowOrganId ||
  1895. a.courseFeeShowOrganId ||
  1896. a.memberFeeShowOrganId ||
  1897. a.replacementShowOrganId
  1898. ? "create" == t.pageType || "copy" == t.pageType
  1899. ? (a.id && delete a.id,
  1900. (a.sellCount = 0),
  1901. (a.stockCount = 0),
  1902. (a.taxStockCount = 0),
  1903. (a.status = "NO"),
  1904. Object(n["g"])(a).then(function(e) {
  1905. t.messageTips("保存", e);
  1906. }))
  1907. : "update" == t.pageType &&
  1908. Object(n["k"])(a).then(function(e) {
  1909. t.messageTips("保存", e);
  1910. })
  1911. : t.$message.error("请至少选择一个可见分部");
  1912. });
  1913. },
  1914. messageTips: function(e, t) {
  1915. 200 == t.code
  1916. ? (this.$message.success(e + "成功"),
  1917. this.$store.dispatch("delVisitedViews", this.$route),
  1918. this.$router.push({
  1919. path: "/shopList",
  1920. query: { pageInfo: this.Frules, searchForm: this.Fsearch }
  1921. }))
  1922. : this.$message.error(t.msg);
  1923. },
  1924. onCancel: function() {
  1925. this.$store.dispatch("delVisitedViews", this.$route),
  1926. this.$router.push({ path: "/shopList" });
  1927. },
  1928. onReSet: function(e) {
  1929. this.$refs[e].resetFields();
  1930. },
  1931. getList: function() {
  1932. var e = this;
  1933. "create" == this.pageType
  1934. ? ((this.form = {
  1935. sn: null,
  1936. brand: null,
  1937. supplyChannel: null,
  1938. name: null,
  1939. type: null,
  1940. goodsCategoryId: null,
  1941. organIdList: [],
  1942. specification: null,
  1943. stockCount: null,
  1944. taxStockCount: null,
  1945. stockType: null,
  1946. marketPrice: null,
  1947. discountPrice: null,
  1948. groupPurchasePrice: null,
  1949. clientShow: null,
  1950. educationalShow: null,
  1951. musicGroupShow: null,
  1952. courseViewType: [],
  1953. stockWarning: null,
  1954. image: null,
  1955. brief: null,
  1956. desc: null
  1957. }),
  1958. this.$refs["form"] && this.$refs["form"].resetFields())
  1959. : Object(n["j"])(this.id).then(function(t) {
  1960. if (200 == t.code) {
  1961. var a = t.data,
  1962. l = null;
  1963. a.courseViewType && (l = a.courseViewType.split(","));
  1964. var r = [];
  1965. a.studentShowOrganId &&
  1966. (r = a.studentShowOrganId.split(","));
  1967. var n = [];
  1968. a.educationShowOrganId &&
  1969. (n = a.educationShowOrganId.split(","));
  1970. var o = [];
  1971. a.courseFeeShowOrganId &&
  1972. (o = a.courseFeeShowOrganId.split(","));
  1973. var i = [];
  1974. a.memberFeeShowOrganId &&
  1975. (i = a.memberFeeShowOrganId.split(","));
  1976. var u = [];
  1977. a.replacementShowOrganId &&
  1978. (u = a.replacementShowOrganId.split(",")),
  1979. (e.form = {
  1980. id: a.id,
  1981. sn: a.sn,
  1982. brand: a.brand,
  1983. supplyChannel: a.supplyChannel,
  1984. name: a.name,
  1985. type: a.type,
  1986. goodsCategoryId: a.goodsCategoryId,
  1987. studentShowOrganId: r,
  1988. educationShowOrganId: n,
  1989. courseFeeShowOrganId: o,
  1990. memberFeeShowOrganId: i,
  1991. replacementShowOrganId: u,
  1992. specification: a.specification,
  1993. stockCount: a.stockCount,
  1994. taxStockCount: a.taxStockCount,
  1995. stockType: a.stockType,
  1996. marketPrice: a.marketPrice,
  1997. discountPrice: a.discountPrice,
  1998. groupPurchasePrice: a.groupPurchasePrice,
  1999. clientShow: a.clientShow,
  2000. educationalShow: a.educationalShow,
  2001. musicGroupShow: a.musicGroupShow,
  2002. courseViewType: l,
  2003. stockWarning: a.stockWarning,
  2004. image: a.image,
  2005. brief: a.brief,
  2006. desc: a.desc,
  2007. replacementShow: a.replacementShow
  2008. });
  2009. }
  2010. });
  2011. },
  2012. getCatagory: function() {
  2013. var e = this;
  2014. Object(n["a"])({ delFlag: 0, rows: 9999 }).then(function(t) {
  2015. var a = t.data;
  2016. if (200 == t.code) {
  2017. var l = [];
  2018. a.rows.forEach(function(e) {
  2019. l.push({ label: e.name, value: e.id });
  2020. }),
  2021. (e.categoryList = l);
  2022. }
  2023. });
  2024. },
  2025. handleAvatarSuccess: function(e, t) {
  2026. this.form.image = e.data.url;
  2027. },
  2028. beforeAvatarUpload: function(e) {
  2029. var t = this,
  2030. a = { "image/png": !0, "image/jpeg": !0 },
  2031. l = a[e.type],
  2032. r = e.size / 1024 / 1024 < 2,
  2033. n = this.imageWidthM,
  2034. o = this.imageHeightM,
  2035. i = window.URL || window.webkitURL,
  2036. u = new Promise(function(t, a) {
  2037. var l = new Image();
  2038. (l.onload = function() {
  2039. n && o
  2040. ? this.width === n && this.height === o
  2041. ? t()
  2042. : a("请上传".concat(n, "x").concat(o, "尺寸图片"))
  2043. : n && !o
  2044. ? this.width === n
  2045. ? t()
  2046. : a("请上传宽为".concat(n, "的图片"))
  2047. : !n && o
  2048. ? this.height === o
  2049. ? t()
  2050. : a("请上传高为".concat(o, "的图片"))
  2051. : t();
  2052. }),
  2053. (l.src = i.createObjectURL(e));
  2054. }).then(
  2055. function() {
  2056. return e;
  2057. },
  2058. function(e) {
  2059. return (
  2060. t.$message.error(e),
  2061. (t.uploadImgLoading = !1),
  2062. Promise.reject()
  2063. );
  2064. }
  2065. );
  2066. return (
  2067. l || this.$message.error("只能上传图片格式!"),
  2068. r || this.$message.error("上传头像图片大小不能超过 2MB!"),
  2069. l && r && u
  2070. );
  2071. }
  2072. }
  2073. },
  2074. p = d,
  2075. b = (a("ed1e"), a("2877")),
  2076. m = Object(b["a"])(p, l, r, !1, null, "5ee77fb0", null);
  2077. t["default"] = m.exports;
  2078. }
  2079. }
  2080. ]);