xyvcard-goods 0.0.34 → 0.0.35

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.
Files changed (64) hide show
  1. package/dist/BatchSetting-B1LcBFPD.mjs +333 -0
  2. package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
  3. package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
  4. package/dist/{GoodsBaseForm-BSvXc_XA.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
  5. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
  6. package/dist/{GoodsLogisticsForm-1Bbd4Z52.mjs → GoodsLogisticsForm-BqlwdGQ1.mjs} +1 -1
  7. package/dist/{GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs → GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs} +56 -57
  8. package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
  9. package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
  10. package/dist/{GoodsSpecForm-Ddo1IZLZ.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
  11. package/dist/{GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs → GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs} +130 -121
  12. package/dist/SingleSku-rWv9vVhv.mjs +351 -0
  13. package/dist/constant-sVd2JbJt.mjs +115 -0
  14. package/dist/edit-B1cmsJpy.mjs +70 -0
  15. package/dist/{edit-lfXK_dUp.mjs → edit-Br1Y569l.mjs} +8 -7
  16. package/dist/{edit-e5-aXV6K.mjs → edit-CET8Fr-t.mjs} +1 -1
  17. package/dist/{edit-pUKONjxH.mjs → edit-CagYTFKr.mjs} +1 -1
  18. package/dist/{edit-BgtwinSN.mjs → edit-iJGrWlSv.mjs} +1 -1
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +2 -2
  20. package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
  21. package/dist/{index-DyLLV1NK.mjs → index copy-kNLE7fPg.mjs } +6 -5
  22. package/dist/index-C61SQFSx.mjs +264 -0
  23. package/dist/index-CeWPdEJD.mjs +713 -0
  24. package/dist/{index-CkJncbVf.mjs → index-Cg6GUdSP.mjs} +3 -3
  25. package/dist/index-CyxnVWnL.mjs +182 -0
  26. package/dist/{index-CkMWas2b.mjs → index-D9s8hsVw.mjs} +3 -3
  27. package/dist/{index-BSzOTWcG.mjs → index-DbnKa_BJ.mjs} +1 -1
  28. package/dist/{index-ChQ-ZxD1.mjs → index-DoxTu4kg.mjs} +5 -4
  29. package/dist/{index-BpKiAhvt.mjs → index-kw0UYOIu.mjs} +3 -3
  30. package/dist/{index-DhS4AuWf.mjs → index-xQgC-8Gd.mjs} +1106 -1038
  31. package/dist/index.mjs +1 -1
  32. package/dist/info-CTElDVo6.mjs +376 -0
  33. package/dist/{info-DOKoSi7a.mjs → info-DpGJgdac.mjs} +5 -4
  34. package/dist/{skuForm-DVGkw6rD.mjs → skuForm-C7w9YIDe.mjs} +24 -23
  35. package/dist/skuForm-CPlnCToi.mjs +279 -0
  36. package/dist/skuTable-C-LcASbX.mjs +594 -0
  37. package/dist/spec-DkiGCkuM.mjs +44 -0
  38. package/dist/style.css +1 -1
  39. package/dts/xyvcard-goods/src/api/dict.d.ts +5 -4
  40. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +3 -0
  41. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +4 -1
  42. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +35 -9
  43. package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
  44. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +32 -0
  45. package/dts/xyvcard-goods/src/router/index.d.ts +1 -0
  46. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
  47. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
  48. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
  49. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
  50. package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
  51. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +17 -4
  52. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +14 -1
  53. package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
  54. package/package.json +4 -3
  55. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +0 -381
  56. package/dist/edit copy 2-Yzf_M31V.mjs +0 -59
  57. package/dist/edit copy-CCnzlrgL.mjs +0 -526
  58. package/dist/edit-Dke5sWct.mjs +0 -526
  59. package/dist/index-BHmGYIuc.mjs +0 -24
  60. package/dist/index-Da2R0n8O.mjs +0 -374
  61. package/dist/index-vHQhUQSO.mjs +0 -95
  62. package/dist/info-De_pBN6A.mjs +0 -365
  63. package/dist/skuForm-YXHrhyPI.mjs +0 -476
  64. package/dist/skuTable-DOIQ9kiV.mjs +0 -639
@@ -1,9 +1,10 @@
1
- import { defineComponent as L, reactive as b, ref as P, resolveComponent as n, createBlock as m, openBlock as y, unref as e, withCtx as o, createVNode as l, createCommentVNode as v, createTextVNode as w } from "vue";
2
- import { useI18n as M } from "vue-i18n";
3
- import { useRoute as k, useRouter as C } from "vue-router";
1
+ import { defineComponent as L, reactive as b, ref as P, resolveComponent as n, createBlock as m, openBlock as y, unref as e, withCtx as t, createVNode as l, createCommentVNode as v, createTextVNode as M } from "vue";
2
+ import { useI18n as k } from "vue-i18n";
3
+ import { useRoute as w, useRouter as C } from "vue-router";
4
4
  import { useUserStore as F, clearEmpty as N, request as j, routerUtil as G } from "jmash-core";
5
- import { D as i, C as g } from "./index-Da2R0n8O.mjs";
6
- import { E as H } from "./el-message-BB2-39XJ.mjs";
5
+ import { D as i } from "./index-C61SQFSx.mjs";
6
+ import { C as g } from "./constant-sVd2JbJt.mjs";
7
+ import { E as H } from "./el-message-Dj6aaz4G.mjs";
7
8
  class O {
8
9
  // A设置商品物流信息
9
10
  create(c) {
@@ -14,7 +15,7 @@ class O {
14
15
  });
15
16
  }
16
17
  }
17
- const z = new O(), x = /* @__PURE__ */ L({
18
+ const z = new O(), ee = /* @__PURE__ */ L({
18
19
  __name: "GoodsLogisticsForm",
19
20
  props: {
20
21
  goodsSpuModel: { default: () => ({ skuList: { results: [{}] } }) }
@@ -22,7 +23,7 @@ const z = new O(), x = /* @__PURE__ */ L({
22
23
  emits: ["submit"],
23
24
  setup(D, { emit: c }) {
24
25
  i.goodsDeliveryTypeEnum.useEnumValues(), i.goodsDeliverySpotTypeEnum.useEnumValues(), i.validityTypeEnum.useEnumValues(), i.useBranchEnum.useEnumValues(), i.freightTypeEnum.useEnumValues(), i.shopBranchBizDict.useValues();
25
- const h = D, { t: p } = M(), E = k(), I = C();
26
+ const h = D, { t: p } = k(), E = w(), I = C();
26
27
  let a = b({
27
28
  requestId: Math.random() * 10 + "",
28
29
  updateMask: "deliveryType,deliverySpotDate,deliveryPresaleDate,freightType,freightAmount,note,useBranch,branchIds,validityType,validityDays,validityDate,ensureIds",
@@ -115,8 +116,8 @@ const z = new O(), x = /* @__PURE__ */ L({
115
116
  }), S = P();
116
117
  function q() {
117
118
  var d;
118
- (d = S.value) == null || d.validate((t) => {
119
- t && z.create(a).then((f) => {
119
+ (d = S.value) == null || d.validate((o) => {
120
+ o && z.create(a).then((f) => {
120
121
  f.status === 200 && (H({
121
122
  message: p("common.submitSuccess"),
122
123
  type: "success"
@@ -124,7 +125,7 @@ const z = new O(), x = /* @__PURE__ */ L({
124
125
  });
125
126
  });
126
127
  }
127
- return (d, t) => {
128
+ return (d, o) => {
128
129
  const f = n("jmash-enum-radio"), u = n("el-form-item"), s = n("el-col"), V = n("jmash-select"), _ = n("el-date-picker"), Y = n("el-input"), T = n("el-input-number"), A = n("jmash-dict-checkbox"), U = n("el-row"), B = n("el-button"), $ = n("el-form");
129
130
  return y(), m($, {
130
131
  ref_key: "goodsLogisticsFormRef",
@@ -133,19 +134,19 @@ const z = new O(), x = /* @__PURE__ */ L({
133
134
  "label-width": "140px",
134
135
  rules: R
135
136
  }, {
136
- default: o(() => [
137
+ default: t(() => [
137
138
  l(U, null, {
138
- default: o(() => [
139
+ default: t(() => [
139
140
  l(s, { span: 12 }, {
140
- default: o(() => [
141
+ default: t(() => [
141
142
  l(u, {
142
143
  label: d.$t("goodsSpu.deliveryType"),
143
144
  prop: "deliveryType"
144
145
  }, {
145
- default: o(() => [
146
+ default: t(() => [
146
147
  l(f, {
147
148
  modelValue: e(a).deliveryType,
148
- "onUpdate:modelValue": t[0] || (t[0] = (r) => e(a).deliveryType = r),
149
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => e(a).deliveryType = r),
149
150
  data: e(i).goodsDeliveryTypeEnum.values
150
151
  }, null, 8, ["modelValue", "data"])
151
152
  ]),
@@ -158,15 +159,15 @@ const z = new O(), x = /* @__PURE__ */ L({
158
159
  key: 0,
159
160
  span: 12
160
161
  }, {
161
- default: o(() => [
162
+ default: t(() => [
162
163
  l(u, {
163
164
  label: d.$t("goodsSpu.deliverySpotDate"),
164
165
  prop: "deliverySpotDate"
165
166
  }, {
166
- default: o(() => [
167
+ default: t(() => [
167
168
  l(V, {
168
169
  modelValue: e(a).deliverySpotDate,
169
- "onUpdate:modelValue": t[1] || (t[1] = (r) => e(a).deliverySpotDate = r),
170
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => e(a).deliverySpotDate = r),
170
171
  data: e(i).goodsDeliverySpotTypeEnum.values,
171
172
  clearable: "",
172
173
  placeholder: d.$t("goodsSpu.deliverySpotDateRequireds"),
@@ -182,16 +183,16 @@ const z = new O(), x = /* @__PURE__ */ L({
182
183
  key: 1,
183
184
  span: 12
184
185
  }, {
185
- default: o(() => [
186
+ default: t(() => [
186
187
  l(u, {
187
188
  label: d.$t("goodsSpu.deliveryPresaleDate"),
188
189
  prop: "deliveryPresaleDate"
189
190
  }, {
190
- default: o(() => [
191
+ default: t(() => [
191
192
  l(_, {
192
193
  class: "w-full",
193
194
  modelValue: e(a).deliveryPresaleDate,
194
- "onUpdate:modelValue": t[2] || (t[2] = (r) => e(a).deliveryPresaleDate = r),
195
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => e(a).deliveryPresaleDate = r),
195
196
  placeholder: d.$t("goodsSpu.deliveryPresaleDateRequired"),
196
197
  "show-word-limit": "",
197
198
  type: "date",
@@ -207,15 +208,15 @@ const z = new O(), x = /* @__PURE__ */ L({
207
208
  _: 1
208
209
  })) : v("", !0),
209
210
  l(s, { span: 12 }, {
210
- default: o(() => [
211
+ default: t(() => [
211
212
  l(u, {
212
213
  label: d.$t("goodsSpu.freightType"),
213
214
  prop: "freightType"
214
215
  }, {
215
- default: o(() => [
216
+ default: t(() => [
216
217
  l(f, {
217
218
  modelValue: e(a).freightType,
218
- "onUpdate:modelValue": t[3] || (t[3] = (r) => e(a).freightType = r),
219
+ "onUpdate:modelValue": o[3] || (o[3] = (r) => e(a).freightType = r),
219
220
  data: e(i).freightTypeEnum.values
220
221
  }, null, 8, ["modelValue", "data"])
221
222
  ]),
@@ -225,19 +226,17 @@ const z = new O(), x = /* @__PURE__ */ L({
225
226
  _: 1
226
227
  }),
227
228
  l(s, { span: 12 }, {
228
- default: o(() => [
229
+ default: t(() => [
229
230
  l(u, {
230
231
  label: d.$t("goodsSpu.note"),
231
232
  prop: "note"
232
233
  }, {
233
- default: o(() => [
234
+ default: t(() => [
234
235
  l(Y, {
235
- type: "textarea",
236
236
  modelValue: e(a).note,
237
- "onUpdate:modelValue": t[4] || (t[4] = (r) => e(a).note = r),
237
+ "onUpdate:modelValue": o[4] || (o[4] = (r) => e(a).note = r),
238
238
  placeholder: d.$t("goodsSpu.noteRequired"),
239
- clearable: "",
240
- rows: 4
239
+ clearable: ""
241
240
  }, null, 8, ["modelValue", "placeholder"])
242
241
  ]),
243
242
  _: 1
@@ -249,15 +248,15 @@ const z = new O(), x = /* @__PURE__ */ L({
249
248
  key: 2,
250
249
  span: 12
251
250
  }, {
252
- default: o(() => [
251
+ default: t(() => [
253
252
  l(u, {
254
253
  label: d.$t("goodsSpu.freightAmount"),
255
254
  prop: "freightAmount"
256
255
  }, {
257
- default: o(() => [
256
+ default: t(() => [
258
257
  l(T, {
259
258
  modelValue: e(a).freightAmount,
260
- "onUpdate:modelValue": t[5] || (t[5] = (r) => e(a).freightAmount = r),
259
+ "onUpdate:modelValue": o[5] || (o[5] = (r) => e(a).freightAmount = r),
261
260
  placeholder: d.$t("goodsSpu.freightAmountRequired"),
262
261
  precision: 2,
263
262
  step: 0.1,
@@ -273,15 +272,15 @@ const z = new O(), x = /* @__PURE__ */ L({
273
272
  _: 1
274
273
  })) : v("", !0),
275
274
  l(s, { span: 12 }, {
276
- default: o(() => [
275
+ default: t(() => [
277
276
  l(u, {
278
277
  label: d.$t("goodsSpu.useBranch"),
279
278
  prop: "useBranch"
280
279
  }, {
281
- default: o(() => [
280
+ default: t(() => [
282
281
  l(f, {
283
282
  modelValue: e(a).useBranch,
284
- "onUpdate:modelValue": t[6] || (t[6] = (r) => e(a).useBranch = r),
283
+ "onUpdate:modelValue": o[6] || (o[6] = (r) => e(a).useBranch = r),
285
284
  data: e(i).useBranchEnum.values
286
285
  }, null, 8, ["modelValue", "data"])
287
286
  ]),
@@ -294,15 +293,15 @@ const z = new O(), x = /* @__PURE__ */ L({
294
293
  key: 3,
295
294
  span: 12
296
295
  }, {
297
- default: o(() => [
296
+ default: t(() => [
298
297
  l(u, {
299
298
  label: d.$t("goodsSpu.branchIds"),
300
299
  prop: "branchIds"
301
300
  }, {
302
- default: o(() => [
301
+ default: t(() => [
303
302
  l(V, {
304
303
  modelValue: e(a).branchIds,
305
- "onUpdate:modelValue": t[7] || (t[7] = (r) => e(a).branchIds = r),
304
+ "onUpdate:modelValue": o[7] || (o[7] = (r) => e(a).branchIds = r),
306
305
  data: e(i).shopBranchBizDict.values,
307
306
  multiple: "",
308
307
  clearable: "",
@@ -316,15 +315,15 @@ const z = new O(), x = /* @__PURE__ */ L({
316
315
  _: 1
317
316
  })) : v("", !0),
318
317
  l(s, { span: 12 }, {
319
- default: o(() => [
318
+ default: t(() => [
320
319
  l(u, {
321
320
  label: d.$t("goodsSpu.validityType"),
322
321
  prop: "validityType"
323
322
  }, {
324
- default: o(() => [
323
+ default: t(() => [
325
324
  l(f, {
326
325
  modelValue: e(a).validityType,
327
- "onUpdate:modelValue": t[8] || (t[8] = (r) => e(a).validityType = r),
326
+ "onUpdate:modelValue": o[8] || (o[8] = (r) => e(a).validityType = r),
328
327
  data: e(i).validityTypeEnum.values
329
328
  }, null, 8, ["modelValue", "data"])
330
329
  ]),
@@ -335,18 +334,18 @@ const z = new O(), x = /* @__PURE__ */ L({
335
334
  }),
336
335
  e(a).validityType === e(g).VALIDITY_TYPE_VALUES.DYNAMIC_TIME ? (y(), m(s, {
337
336
  key: 4,
338
- span: 8
337
+ span: 12
339
338
  }, {
340
- default: o(() => [
339
+ default: t(() => [
341
340
  l(u, {
342
341
  label: d.$t("goodsSpu.validityDays"),
343
342
  prop: "validityDays"
344
343
  }, {
345
- default: o(() => [
344
+ default: t(() => [
346
345
  l(T, {
347
346
  class: "w-full",
348
347
  modelValue: e(a).validityDays,
349
- "onUpdate:modelValue": t[9] || (t[9] = (r) => e(a).validityDays = r),
348
+ "onUpdate:modelValue": o[9] || (o[9] = (r) => e(a).validityDays = r),
350
349
  placeholder: d.$t("goodsSpu.validityDaysRequired"),
351
350
  min: 0,
352
351
  step: 1,
@@ -361,18 +360,18 @@ const z = new O(), x = /* @__PURE__ */ L({
361
360
  })) : v("", !0),
362
361
  e(a).validityType === e(g).VALIDITY_TYPE_VALUES.FIXED_TIME ? (y(), m(s, {
363
362
  key: 5,
364
- span: 8
363
+ span: 12
365
364
  }, {
366
- default: o(() => [
365
+ default: t(() => [
367
366
  l(u, {
368
367
  label: d.$t("goodsSpu.validityDate"),
369
368
  prop: "validityDate"
370
369
  }, {
371
- default: o(() => [
370
+ default: t(() => [
372
371
  l(_, {
373
372
  class: "w-full",
374
373
  modelValue: e(a).validityDate,
375
- "onUpdate:modelValue": t[10] || (t[10] = (r) => e(a).validityDate = r),
374
+ "onUpdate:modelValue": o[10] || (o[10] = (r) => e(a).validityDate = r),
376
375
  placeholder: d.$t("goodsSpu.validityDateRequired"),
377
376
  "show-word-limit": "",
378
377
  type: "date",
@@ -388,15 +387,15 @@ const z = new O(), x = /* @__PURE__ */ L({
388
387
  _: 1
389
388
  })) : v("", !0),
390
389
  l(s, { span: 24 }, {
391
- default: o(() => [
390
+ default: t(() => [
392
391
  l(u, {
393
392
  label: d.$t("goodsSpu.ensureIds"),
394
393
  prop: "ensureIds"
395
394
  }, {
396
- default: o(() => [
395
+ default: t(() => [
397
396
  l(A, {
398
397
  modelValue: e(a).ensureIds,
399
- "onUpdate:modelValue": t[11] || (t[11] = (r) => e(a).ensureIds = r),
398
+ "onUpdate:modelValue": o[11] || (o[11] = (r) => e(a).ensureIds = r),
400
399
  "type-code": e(g).DICT_GOODS_ENSURE
401
400
  }, null, 8, ["modelValue", "type-code"])
402
401
  ]),
@@ -409,13 +408,13 @@ const z = new O(), x = /* @__PURE__ */ L({
409
408
  _: 1
410
409
  }),
411
410
  l(u, null, {
412
- default: o(() => [
411
+ default: t(() => [
413
412
  l(B, {
414
413
  type: "primary",
415
414
  onClick: q
416
415
  }, {
417
- default: o(() => t[12] || (t[12] = [
418
- w("保存", -1)
416
+ default: t(() => o[12] || (o[12] = [
417
+ M("保存", -1)
419
418
  ])),
420
419
  _: 1,
421
420
  __: [12]
@@ -430,5 +429,5 @@ const z = new O(), x = /* @__PURE__ */ L({
430
429
  }
431
430
  });
432
431
  export {
433
- x as _
432
+ ee as _
434
433
  };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs";
2
+ export {
3
+ f as default
4
+ };