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