xyvcard-goods 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,7 +103,7 @@ const te = ["src"], se = /* @__PURE__ */ F({
103
103
  );
104
104
  let o = L({
105
105
  requestId: Math.random() * 10 + "",
106
- updateMask: "spuName,categoryId,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
106
+ updateMask: "spuName,categoryIds,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
107
107
  skuSpecValues: [],
108
108
  freightType: c.freightTypeEnum.values[0].key,
109
109
  freightAmount: 0,
@@ -134,7 +134,7 @@ const te = ["src"], se = /* @__PURE__ */ F({
134
134
  trigger: "blur"
135
135
  }
136
136
  ],
137
- categoryId: [
137
+ categoryIds: [
138
138
  {
139
139
  required: !0,
140
140
  message: i("goodsSpu.categoryIdRequired"),
@@ -256,12 +256,12 @@ const te = ["src"], se = /* @__PURE__ */ F({
256
256
  default: a(() => [
257
257
  e(r, {
258
258
  label: s.$t("goodsSpu.categoryId"),
259
- prop: "categoryId"
259
+ prop: "categoryIds"
260
260
  }, {
261
261
  default: a(() => [
262
262
  e(m, {
263
- modelValue: t(o).categoryId,
264
- "onUpdate:modelValue": l[1] || (l[1] = (n) => t(o).categoryId = n),
263
+ modelValue: t(o).categoryIds,
264
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => t(o).categoryIds = n),
265
265
  data: t(c).goodsCategoryListBizLayDict.values,
266
266
  multiple: "",
267
267
  "render-after-expand": !1,
package/dist/index.mjs CHANGED
@@ -62,7 +62,7 @@ function Ps(e) {
62
62
  let s = e.global.getLocaleMessage("en");
63
63
  s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
64
64
  }
65
- const Ns = () => import("./edit-C80KQhPy.mjs"), Ws = () => import("./info-D6MWRZ1y.mjs"), Fs = [
65
+ const Ns = () => import("./edit-CYk6B5NG.mjs"), Ws = () => import("./info-D6MWRZ1y.mjs"), Fs = [
66
66
  {
67
67
  path: "/rawgoods",
68
68
  component: Ys,
@@ -2806,7 +2806,7 @@ class Ii {
2806
2806
  });
2807
2807
  }
2808
2808
  }
2809
- const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-E57LIt5x.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-CnyW3rxw.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-C80KQhPy.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-0TMcPn_Q.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-nSAowuoJ.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-D6MWRZ1y.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-H9IDa7ys.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-DbNThlFG.mjs").then((e) => e.a) }), Ei = {
2809
+ const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-E57LIt5x.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-CnyW3rxw.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-CYk6B5NG.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-0TMcPn_Q.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-nSAowuoJ.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-D6MWRZ1y.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-H9IDa7ys.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-DbNThlFG.mjs").then((e) => e.a) }), Ei = {
2810
2810
  install(e) {
2811
2811
  Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Ci);
2812
2812
  }
@@ -63,6 +63,7 @@ export interface GoodsSpuCreateReq extends EntityCreateReq {
63
63
  specType?: string;
64
64
  specId?: Array<string>;
65
65
  skuSpecValues: Array<GoodsSkuModel>;
66
+ categoryIds?: Array<string>;
66
67
  }
67
68
  export interface GoodsSpuUpdateReq extends EntityUpdateReq {
68
69
  spuId?: string;
@@ -81,6 +82,7 @@ export interface GoodsSpuUpdateReq extends EntityUpdateReq {
81
82
  ensureIds?: Array<string>;
82
83
  specId?: Array<string>;
83
84
  skuSpecValues: Array<GoodsSkuModel>;
85
+ categoryIds?: Array<string>;
84
86
  }
85
87
  export type GoodsSpuFormReq = GoodsSpuCreateReq | GoodsSpuUpdateReq;
86
88
  export interface GoodsSpuEnableKey {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-goods",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",