xyvcard-goods 0.0.33 → 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 (116) 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-6rzBkBTh.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-BqlwdGQ1.mjs +4 -0
  7. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs +433 -0
  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-BqaN71rS.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
  11. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs +347 -0
  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-DBTNknBy.mjs → edit-Br1Y569l.mjs} +8 -7
  16. package/dist/{edit-CZwlbL9o.mjs → edit-CET8Fr-t.mjs} +18 -18
  17. package/dist/{edit-1Lv_dvlq.mjs → edit-CagYTFKr.mjs} +1 -1
  18. package/dist/{edit-D2zcGl_U.mjs → edit-iJGrWlSv.mjs} +1 -1
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +32 -32
  20. package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
  21. package/dist/{index-BhUD_X30.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-BpXZNA11.mjs → index-Cg6GUdSP.mjs} +3 -3
  25. package/dist/index-CyxnVWnL.mjs +182 -0
  26. package/dist/{index-DGYGNHfx.mjs → index-D9s8hsVw.mjs} +3 -3
  27. package/dist/{index-BXa-atkT.mjs → index-DbnKa_BJ.mjs} +1 -1
  28. package/dist/{index-DXIGHcIv.mjs → index-DoxTu4kg.mjs} +5 -4
  29. package/dist/{index-Cl4wz2yF.mjs → index-kw0UYOIu.mjs} +3 -3
  30. package/dist/{index-CRfiEzkA.mjs → index-xQgC-8Gd.mjs} +1237 -1141
  31. package/dist/index.mjs +1 -1
  32. package/dist/info-CTElDVo6.mjs +376 -0
  33. package/dist/{info-DfbU-CWk.mjs → info-DpGJgdac.mjs} +37 -36
  34. package/dist/{skuForm-DoIpxDvq.mjs → skuForm-C7w9YIDe.mjs} +40 -39
  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/App.vue.d.ts +2 -0
  40. package/dts/xyvcard-goods/src/api/dict.d.ts +36 -0
  41. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  42. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  43. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  44. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  45. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  46. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  47. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  48. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  49. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  50. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  51. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  52. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  53. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +21 -0
  54. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  55. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  56. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +72 -0
  57. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +271 -0
  58. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  59. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  60. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  61. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  62. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  63. package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
  64. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  65. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  66. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  67. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  68. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +173 -0
  69. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  70. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  71. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  72. package/dts/xyvcard-goods/src/router/index.d.ts +7 -0
  73. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  74. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  75. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  76. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  77. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  78. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  79. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  80. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  81. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  82. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  83. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  84. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  85. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  86. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
  87. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
  88. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  89. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  90. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
  91. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  92. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
  93. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  94. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  95. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  96. package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
  97. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  98. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  99. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +42 -0
  100. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +53 -0
  101. package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
  102. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  103. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  104. package/package.json +6 -5
  105. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +0 -374
  106. package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
  107. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
  108. package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
  109. package/dist/edit copy-tfwJCdiV.mjs +0 -526
  110. package/dist/edit-Db2EJ9dq.mjs +0 -526
  111. package/dist/index-BHmGYIuc.mjs +0 -24
  112. package/dist/index-Df-F10aZ.mjs +0 -264
  113. package/dist/index-vHQhUQSO.mjs +0 -95
  114. package/dist/info-DDi6GKQH.mjs +0 -365
  115. package/dist/skuForm-DWIoveRP.mjs +0 -475
  116. package/dist/skuTable-BVBtWrf9.mjs +0 -639
@@ -0,0 +1,433 @@
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
+ import { useUserStore as F, clearEmpty as N, request as j, routerUtil as G } from "jmash-core";
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";
8
+ class O {
9
+ // A设置商品物流信息
10
+ create(c) {
11
+ return c.tenant = F().user.tenant, N(c), j({
12
+ url: "/v1/goods/goods_logistics",
13
+ method: "patch",
14
+ data: c
15
+ });
16
+ }
17
+ }
18
+ const z = new O(), ee = /* @__PURE__ */ L({
19
+ __name: "GoodsLogisticsForm",
20
+ props: {
21
+ goodsSpuModel: { default: () => ({ skuList: { results: [{}] } }) }
22
+ },
23
+ emits: ["submit"],
24
+ setup(D, { emit: c }) {
25
+ i.goodsDeliveryTypeEnum.useEnumValues(), i.goodsDeliverySpotTypeEnum.useEnumValues(), i.validityTypeEnum.useEnumValues(), i.useBranchEnum.useEnumValues(), i.freightTypeEnum.useEnumValues(), i.shopBranchBizDict.useValues();
26
+ const h = D, { t: p } = k(), E = w(), I = C();
27
+ let a = b({
28
+ requestId: Math.random() * 10 + "",
29
+ updateMask: "deliveryType,deliverySpotDate,deliveryPresaleDate,freightType,freightAmount,note,useBranch,branchIds,validityType,validityDays,validityDate,ensureIds",
30
+ spuId: h.goodsSpuModel.spuId,
31
+ deliveryType: "",
32
+ deliverySpotDate: "",
33
+ deliveryPresaleDate: "",
34
+ freightType: "",
35
+ freightAmount: 0,
36
+ note: "",
37
+ useBranch: "",
38
+ branchIds: [],
39
+ validityType: "",
40
+ validityDays: 0,
41
+ validityDate: "",
42
+ ensureIds: [],
43
+ ...h.goodsSpuModel
44
+ });
45
+ const R = b({
46
+ deliveryType: [
47
+ {
48
+ required: !0,
49
+ message: p("goodsSpu.deliveryTypeRequired"),
50
+ trigger: "change"
51
+ }
52
+ ],
53
+ deliverySpotDate: [
54
+ {
55
+ required: !0,
56
+ message: p("goodsSpu.deliverySpotDateRequireds"),
57
+ trigger: "change"
58
+ }
59
+ ],
60
+ deliveryPresaleDate: [
61
+ {
62
+ required: !0,
63
+ message: p("goodsSpu.deliveryPresaleDateRequired"),
64
+ trigger: "change"
65
+ }
66
+ ],
67
+ freightType: [
68
+ {
69
+ required: !0,
70
+ message: p("goodsSpu.freightTypeRequired"),
71
+ trigger: "change"
72
+ }
73
+ ],
74
+ freightAmount: [
75
+ {
76
+ required: !0,
77
+ message: p("goodsSpu.freightAmountRequired"),
78
+ trigger: "blur"
79
+ }
80
+ ],
81
+ useBranch: [
82
+ {
83
+ required: !0,
84
+ message: p("goodsSpu.useBranchRequired"),
85
+ trigger: "change"
86
+ }
87
+ ],
88
+ branchIds: [
89
+ {
90
+ required: !0,
91
+ message: p("goodsSpu.branchIdsRequired"),
92
+ trigger: "change"
93
+ }
94
+ ],
95
+ validityType: [
96
+ {
97
+ required: !0,
98
+ message: p("goodsSpu.validityTypeRequired"),
99
+ trigger: "change"
100
+ }
101
+ ],
102
+ validityDays: [
103
+ {
104
+ required: !0,
105
+ message: p("goodsSpu.validityDaysRequired"),
106
+ trigger: "blur"
107
+ }
108
+ ],
109
+ validityDate: [
110
+ {
111
+ required: !0,
112
+ message: p("goodsSpu.validityDateRequired"),
113
+ trigger: "change"
114
+ }
115
+ ]
116
+ }), S = P();
117
+ function q() {
118
+ var d;
119
+ (d = S.value) == null || d.validate((o) => {
120
+ o && z.create(a).then((f) => {
121
+ f.status === 200 && (H({
122
+ message: p("common.submitSuccess"),
123
+ type: "success"
124
+ }), G.closeTagView(E.fullPath, I, !1));
125
+ });
126
+ });
127
+ }
128
+ return (d, o) => {
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");
130
+ return y(), m($, {
131
+ ref_key: "goodsLogisticsFormRef",
132
+ ref: S,
133
+ model: e(a),
134
+ "label-width": "140px",
135
+ rules: R
136
+ }, {
137
+ default: t(() => [
138
+ l(U, null, {
139
+ default: t(() => [
140
+ l(s, { span: 12 }, {
141
+ default: t(() => [
142
+ l(u, {
143
+ label: d.$t("goodsSpu.deliveryType"),
144
+ prop: "deliveryType"
145
+ }, {
146
+ default: t(() => [
147
+ l(f, {
148
+ modelValue: e(a).deliveryType,
149
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => e(a).deliveryType = r),
150
+ data: e(i).goodsDeliveryTypeEnum.values
151
+ }, null, 8, ["modelValue", "data"])
152
+ ]),
153
+ _: 1
154
+ }, 8, ["label"])
155
+ ]),
156
+ _: 1
157
+ }),
158
+ e(a).deliveryType === e(g).DELIVERY_TYPE_VALUES.SPOT_ONLY ? (y(), m(s, {
159
+ key: 0,
160
+ span: 12
161
+ }, {
162
+ default: t(() => [
163
+ l(u, {
164
+ label: d.$t("goodsSpu.deliverySpotDate"),
165
+ prop: "deliverySpotDate"
166
+ }, {
167
+ default: t(() => [
168
+ l(V, {
169
+ modelValue: e(a).deliverySpotDate,
170
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => e(a).deliverySpotDate = r),
171
+ data: e(i).goodsDeliverySpotTypeEnum.values,
172
+ clearable: "",
173
+ placeholder: d.$t("goodsSpu.deliverySpotDateRequireds"),
174
+ class: "w-full"
175
+ }, null, 8, ["modelValue", "data", "placeholder"])
176
+ ]),
177
+ _: 1
178
+ }, 8, ["label"])
179
+ ]),
180
+ _: 1
181
+ })) : v("", !0),
182
+ e(a).deliveryType === e(g).DELIVERY_TYPE_VALUES.PRESALE ? (y(), m(s, {
183
+ key: 1,
184
+ span: 12
185
+ }, {
186
+ default: t(() => [
187
+ l(u, {
188
+ label: d.$t("goodsSpu.deliveryPresaleDate"),
189
+ prop: "deliveryPresaleDate"
190
+ }, {
191
+ default: t(() => [
192
+ l(_, {
193
+ class: "w-full",
194
+ modelValue: e(a).deliveryPresaleDate,
195
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => e(a).deliveryPresaleDate = r),
196
+ placeholder: d.$t("goodsSpu.deliveryPresaleDateRequired"),
197
+ "show-word-limit": "",
198
+ type: "date",
199
+ format: "YYYY-MM-DD",
200
+ "value-format": "YYYY-MM-DD",
201
+ clearable: "",
202
+ "value-on-clear": ""
203
+ }, null, 8, ["modelValue", "placeholder"])
204
+ ]),
205
+ _: 1
206
+ }, 8, ["label"])
207
+ ]),
208
+ _: 1
209
+ })) : v("", !0),
210
+ l(s, { span: 12 }, {
211
+ default: t(() => [
212
+ l(u, {
213
+ label: d.$t("goodsSpu.freightType"),
214
+ prop: "freightType"
215
+ }, {
216
+ default: t(() => [
217
+ l(f, {
218
+ modelValue: e(a).freightType,
219
+ "onUpdate:modelValue": o[3] || (o[3] = (r) => e(a).freightType = r),
220
+ data: e(i).freightTypeEnum.values
221
+ }, null, 8, ["modelValue", "data"])
222
+ ]),
223
+ _: 1
224
+ }, 8, ["label"])
225
+ ]),
226
+ _: 1
227
+ }),
228
+ l(s, { span: 12 }, {
229
+ default: t(() => [
230
+ l(u, {
231
+ label: d.$t("goodsSpu.note"),
232
+ prop: "note"
233
+ }, {
234
+ default: t(() => [
235
+ l(Y, {
236
+ modelValue: e(a).note,
237
+ "onUpdate:modelValue": o[4] || (o[4] = (r) => e(a).note = r),
238
+ placeholder: d.$t("goodsSpu.noteRequired"),
239
+ clearable: ""
240
+ }, null, 8, ["modelValue", "placeholder"])
241
+ ]),
242
+ _: 1
243
+ }, 8, ["label"])
244
+ ]),
245
+ _: 1
246
+ }),
247
+ e(a).freightType === e(g).FREIGHT_TYPE_VALUES.FREIGHT_FIXED ? (y(), m(s, {
248
+ key: 2,
249
+ span: 12
250
+ }, {
251
+ default: t(() => [
252
+ l(u, {
253
+ label: d.$t("goodsSpu.freightAmount"),
254
+ prop: "freightAmount"
255
+ }, {
256
+ default: t(() => [
257
+ l(T, {
258
+ modelValue: e(a).freightAmount,
259
+ "onUpdate:modelValue": o[5] || (o[5] = (r) => e(a).freightAmount = r),
260
+ placeholder: d.$t("goodsSpu.freightAmountRequired"),
261
+ precision: 2,
262
+ step: 0.1,
263
+ min: 0,
264
+ class: "w-full",
265
+ "controls-position": "right",
266
+ clearable: ""
267
+ }, null, 8, ["modelValue", "placeholder"])
268
+ ]),
269
+ _: 1
270
+ }, 8, ["label"])
271
+ ]),
272
+ _: 1
273
+ })) : v("", !0),
274
+ l(s, { span: 12 }, {
275
+ default: t(() => [
276
+ l(u, {
277
+ label: d.$t("goodsSpu.useBranch"),
278
+ prop: "useBranch"
279
+ }, {
280
+ default: t(() => [
281
+ l(f, {
282
+ modelValue: e(a).useBranch,
283
+ "onUpdate:modelValue": o[6] || (o[6] = (r) => e(a).useBranch = r),
284
+ data: e(i).useBranchEnum.values
285
+ }, null, 8, ["modelValue", "data"])
286
+ ]),
287
+ _: 1
288
+ }, 8, ["label"])
289
+ ]),
290
+ _: 1
291
+ }),
292
+ e(a).useBranch === e(g).USE_BRANCH_VALUES.USE_BRANCH_PART ? (y(), m(s, {
293
+ key: 3,
294
+ span: 12
295
+ }, {
296
+ default: t(() => [
297
+ l(u, {
298
+ label: d.$t("goodsSpu.branchIds"),
299
+ prop: "branchIds"
300
+ }, {
301
+ default: t(() => [
302
+ l(V, {
303
+ modelValue: e(a).branchIds,
304
+ "onUpdate:modelValue": o[7] || (o[7] = (r) => e(a).branchIds = r),
305
+ data: e(i).shopBranchBizDict.values,
306
+ multiple: "",
307
+ clearable: "",
308
+ placeholder: d.$t("goodsSpu.branchIdsRequired"),
309
+ class: "w-full"
310
+ }, null, 8, ["modelValue", "data", "placeholder"])
311
+ ]),
312
+ _: 1
313
+ }, 8, ["label"])
314
+ ]),
315
+ _: 1
316
+ })) : v("", !0),
317
+ l(s, { span: 12 }, {
318
+ default: t(() => [
319
+ l(u, {
320
+ label: d.$t("goodsSpu.validityType"),
321
+ prop: "validityType"
322
+ }, {
323
+ default: t(() => [
324
+ l(f, {
325
+ modelValue: e(a).validityType,
326
+ "onUpdate:modelValue": o[8] || (o[8] = (r) => e(a).validityType = r),
327
+ data: e(i).validityTypeEnum.values
328
+ }, null, 8, ["modelValue", "data"])
329
+ ]),
330
+ _: 1
331
+ }, 8, ["label"])
332
+ ]),
333
+ _: 1
334
+ }),
335
+ e(a).validityType === e(g).VALIDITY_TYPE_VALUES.DYNAMIC_TIME ? (y(), m(s, {
336
+ key: 4,
337
+ span: 12
338
+ }, {
339
+ default: t(() => [
340
+ l(u, {
341
+ label: d.$t("goodsSpu.validityDays"),
342
+ prop: "validityDays"
343
+ }, {
344
+ default: t(() => [
345
+ l(T, {
346
+ class: "w-full",
347
+ modelValue: e(a).validityDays,
348
+ "onUpdate:modelValue": o[9] || (o[9] = (r) => e(a).validityDays = r),
349
+ placeholder: d.$t("goodsSpu.validityDaysRequired"),
350
+ min: 0,
351
+ step: 1,
352
+ "controls-position": "right",
353
+ clearable: ""
354
+ }, null, 8, ["modelValue", "placeholder"])
355
+ ]),
356
+ _: 1
357
+ }, 8, ["label"])
358
+ ]),
359
+ _: 1
360
+ })) : v("", !0),
361
+ e(a).validityType === e(g).VALIDITY_TYPE_VALUES.FIXED_TIME ? (y(), m(s, {
362
+ key: 5,
363
+ span: 12
364
+ }, {
365
+ default: t(() => [
366
+ l(u, {
367
+ label: d.$t("goodsSpu.validityDate"),
368
+ prop: "validityDate"
369
+ }, {
370
+ default: t(() => [
371
+ l(_, {
372
+ class: "w-full",
373
+ modelValue: e(a).validityDate,
374
+ "onUpdate:modelValue": o[10] || (o[10] = (r) => e(a).validityDate = r),
375
+ placeholder: d.$t("goodsSpu.validityDateRequired"),
376
+ "show-word-limit": "",
377
+ type: "date",
378
+ format: "YYYY-MM-DD",
379
+ "value-format": "YYYY-MM-DD",
380
+ clearable: "",
381
+ "value-on-clear": ""
382
+ }, null, 8, ["modelValue", "placeholder"])
383
+ ]),
384
+ _: 1
385
+ }, 8, ["label"])
386
+ ]),
387
+ _: 1
388
+ })) : v("", !0),
389
+ l(s, { span: 24 }, {
390
+ default: t(() => [
391
+ l(u, {
392
+ label: d.$t("goodsSpu.ensureIds"),
393
+ prop: "ensureIds"
394
+ }, {
395
+ default: t(() => [
396
+ l(A, {
397
+ modelValue: e(a).ensureIds,
398
+ "onUpdate:modelValue": o[11] || (o[11] = (r) => e(a).ensureIds = r),
399
+ "type-code": e(g).DICT_GOODS_ENSURE
400
+ }, null, 8, ["modelValue", "type-code"])
401
+ ]),
402
+ _: 1
403
+ }, 8, ["label"])
404
+ ]),
405
+ _: 1
406
+ })
407
+ ]),
408
+ _: 1
409
+ }),
410
+ l(u, null, {
411
+ default: t(() => [
412
+ l(B, {
413
+ type: "primary",
414
+ onClick: q
415
+ }, {
416
+ default: t(() => o[12] || (o[12] = [
417
+ M("保存", -1)
418
+ ])),
419
+ _: 1,
420
+ __: [12]
421
+ })
422
+ ]),
423
+ _: 1
424
+ })
425
+ ]),
426
+ _: 1
427
+ }, 8, ["model", "rules"]);
428
+ };
429
+ }
430
+ });
431
+ export {
432
+ ee as _
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
+ };