xyvcard-order 0.0.13 → 0.0.14

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 (34) hide show
  1. package/dist/{change-ZEjolHT6.mjs → change-DGamLhRi.mjs} +1 -1
  2. package/dist/change.vue_vue_type_script_setup_true_lang-C8lf4PIw.mjs +170 -0
  3. package/dist/{deliver-TfrCwaGj.mjs → deliver-c_zzsilY.mjs} +1 -1
  4. package/dist/{deliver.vue_vue_type_script_setup_true_lang-B1aMmSt1.mjs → deliver.vue_vue_type_script_setup_true_lang-DAoCkmOi.mjs} +39 -39
  5. package/dist/{edit-BdUVrlcn.mjs → edit-mVQUFq0q.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-vOwPW97O.mjs → edit.vue_vue_type_script_setup_true_lang-AHBcvcRn.mjs} +29 -28
  7. package/dist/{index-ByufLV6K.mjs → index-BlR9fPfK.mjs} +108 -111
  8. package/dist/{index-B_-apQkW.mjs → index-CxzT_Hk2.mjs} +2 -2
  9. package/dist/{index-PLezrWfs.mjs → index-D3YsBDBM.mjs} +107 -104
  10. package/dist/{index-1R3wKfde.mjs → index-IiHp9Y40.mjs} +475 -493
  11. package/dist/index.mjs +2 -2
  12. package/dist/{info-DbWhDIS0.mjs → info-BgzKwnii.mjs} +113 -113
  13. package/dist/{info-DYltAD_A.mjs → info-BpYW4SHu.mjs} +1 -1
  14. package/dist/{info.vue_vue_type_script_setup_true_lang-Dbup8oTm.mjs → info.vue_vue_type_script_setup_true_lang-BioQaXDt.mjs} +2 -2
  15. package/dist/{orderList-RTzDSXuR.mjs → orderList-CNj8AcQQ.mjs} +1 -1
  16. package/dist/{orderList.vue_vue_type_script_setup_true_lang-wHXiNleT.mjs → orderList.vue_vue_type_script_setup_true_lang-C0EyjiIS.mjs} +72 -75
  17. package/dist/{review-z7cdFET5.mjs → review-DH5466Un.mjs} +1 -1
  18. package/dist/{review.vue_vue_type_script_setup_true_lang-DKc6FoP1.mjs → review.vue_vue_type_script_setup_true_lang-C5Fb8wnP.mjs} +55 -54
  19. package/dts/src/api/dict.d.ts +0 -6
  20. package/dts/src/api/order-appraises/types.d.ts +1 -3
  21. package/dts/src/api/order-info/types.d.ts +3 -1
  22. package/dts/src/api/order-logistics/types.d.ts +0 -1
  23. package/dts/src/router/orderRouter.d.ts +0 -1
  24. package/dts/src/views/order/order-info/change.vue.d.ts +1 -10
  25. package/dts/src/views/order/order-info/viewLogist.vue.d.ts +1 -1
  26. package/package.json +5 -5
  27. package/dist/change.vue_vue_type_script_setup_true_lang-BBPAc1hq.mjs +0 -190
  28. package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
  29. package/dts/src/views/order/order-info/canceled.vue.d.ts +0 -2
  30. package/dts/src/views/order/order-info/completed.vue.d.ts +0 -2
  31. package/dts/src/views/order/order-info/unpay.vue.d.ts +0 -2
  32. package/dts/src/views/order/order-info/unpost.vue.d.ts +0 -2
  33. package/dts/src/views/order/order-info/unreceive.vue.d.ts +0 -2
  34. package/dist/{index-CHzhYqx8.mjs → index-CIvF2jlB.mjs} +1 -1
@@ -1,11 +1,12 @@
1
- import { defineComponent as K, mergeModels as N, ref as h, reactive as $, useModel as S, resolveComponent as t, createBlock as R, openBlock as b, withCtx as u, createVNode as l, unref as e, createCommentVNode as V, createElementVNode as G, createTextVNode as O, toDisplayString as U } from "vue";
1
+ import { defineComponent as K, mergeModels as q, ref as h, reactive as O, useModel as S, resolveComponent as t, createBlock as R, openBlock as b, withCtx as u, createVNode as r, unref as e, createCommentVNode as V, createElementVNode as G, createTextVNode as U, toDisplayString as $ } from "vue";
2
2
  import { ElMessage as H } from "element-plus";
3
3
  import { useI18n as J } from "vue-i18n";
4
+ import { validatePhoneNumber as L } from "jmash-core";
4
5
  import { o as A } from "./index-DAb5kkOk.mjs";
5
- import { D as T, C as y } from "./index-CHzhYqx8.mjs";
6
- const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
6
+ import { D as T, C as y } from "./index-CIvF2jlB.mjs";
7
+ const Q = { class: "dialog-footer" }, oe = /* @__PURE__ */ K({
7
8
  __name: "review",
8
- props: /* @__PURE__ */ N({
9
+ props: /* @__PURE__ */ q({
9
10
  entityKey: {
10
11
  type: Object,
11
12
  default: () => {
@@ -15,16 +16,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
15
16
  modelValue: { type: Boolean },
16
17
  modelModifiers: {}
17
18
  }),
18
- emits: /* @__PURE__ */ N(["refresh"], ["update:modelValue"]),
19
+ emits: /* @__PURE__ */ q(["refresh"], ["update:modelValue"]),
19
20
  setup(_, { emit: E }) {
20
21
  const { t: a } = J(), c = h();
21
- let o = $({
22
+ let o = O({
22
23
  requestId: Math.random() * 10 + "",
23
24
  updateMask: "refundAmount,refuseRefundReson,auditOpinion,userName,userMobile,userAddress"
24
25
  });
25
- const M = (d, r, s) => {
26
- r ? /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(r) ? s() : s(new Error(a("orderRefunds.correctPhone"))) : s(new Error(a("orderRefunds.mobilePhoneRequired")));
27
- }, k = $({
26
+ const M = (d, l, s) => {
27
+ l ? L(l) ? s() : s(new Error(a("orderRefunds.correctPhone"))) : s(new Error(a("orderRefunds.mobilePhoneRequired")));
28
+ }, k = O({
28
29
  refundAmount: [
29
30
  {
30
31
  required: !0,
@@ -67,14 +68,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
67
68
  trigger: "blur"
68
69
  }
69
70
  ]
70
- }), f = S(_, "modelValue"), C = E, g = _, j = Object.keys(g.entityKey), w = h(j.length >= 1);
71
- w.value && A.findById(g.entityKey).then(({ data: d }) => {
71
+ }), f = S(_, "modelValue"), C = E, g = _, j = Object.keys(g.entityKey), v = h(j.length >= 1);
72
+ v.value && A.findById(g.entityKey).then(({ data: d }) => {
72
73
  Object.assign(o, d);
73
74
  });
74
75
  const D = async () => {
75
76
  var d;
76
- await ((d = c.value) == null ? void 0 : d.validate((r) => {
77
- r && w.value && A.update(o).then((s) => {
77
+ await ((d = c.value) == null ? void 0 : d.validate((l) => {
78
+ l && v.value && A.update(o).then((s) => {
78
79
  s.status === 200 && (H({
79
80
  message: a("common.submitSuccess"),
80
81
  type: "success"
@@ -82,37 +83,37 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
82
83
  });
83
84
  }));
84
85
  };
85
- function q() {
86
+ function w() {
86
87
  f.value && (f.value = !1);
87
88
  }
88
- return (d, r) => {
89
- const s = t("jmash-select"), i = t("el-form-item"), m = t("el-col"), F = t("el-input-number"), p = t("el-input"), B = t("jmash-enum-radio"), P = t("el-row"), z = t("el-form"), v = t("el-button"), I = t("el-dialog");
89
+ return (d, l) => {
90
+ const s = t("jmash-select"), i = t("el-form-item"), m = t("el-col"), F = t("el-input-number"), p = t("el-input"), P = t("jmash-enum-radio"), B = t("el-row"), z = t("el-form"), N = t("el-button"), I = t("el-dialog");
90
91
  return b(), R(I, {
91
92
  modelValue: f.value,
92
- "onUpdate:modelValue": r[8] || (r[8] = (n) => f.value = n),
93
- onClose: q
93
+ "onUpdate:modelValue": l[8] || (l[8] = (n) => f.value = n),
94
+ onClose: w
94
95
  }, {
95
96
  footer: u(() => [
96
- G("div", L, [
97
- l(v, { onClick: q }, {
97
+ G("div", Q, [
98
+ r(N, { onClick: w }, {
98
99
  default: u(() => [
99
- O(U(d.$t("common.cancel")), 1)
100
+ U($(d.$t("common.cancel")), 1)
100
101
  ]),
101
102
  _: 1
102
103
  }),
103
- l(v, {
104
+ r(N, {
104
105
  type: "primary",
105
106
  onClick: D
106
107
  }, {
107
108
  default: u(() => [
108
- O(U(d.$t("common.confirm")), 1)
109
+ U($(d.$t("common.confirm")), 1)
109
110
  ]),
110
111
  _: 1
111
112
  })
112
113
  ])
113
114
  ]),
114
115
  default: u(() => [
115
- l(z, {
116
+ r(z, {
116
117
  ref_key: "refundsReviewFormRef",
117
118
  ref: c,
118
119
  model: e(o),
@@ -120,18 +121,18 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
120
121
  rules: k
121
122
  }, {
122
123
  default: u(() => [
123
- l(P, null, {
124
+ r(B, null, {
124
125
  default: u(() => [
125
- l(m, { span: 12 }, {
126
+ r(m, { span: 12 }, {
126
127
  default: u(() => [
127
- l(i, {
128
+ r(i, {
128
129
  label: d.$t("orderRefunds.refundType"),
129
130
  prop: "refundType"
130
131
  }, {
131
132
  default: u(() => [
132
- l(s, {
133
+ r(s, {
133
134
  modelValue: e(o).refundType,
134
- "onUpdate:modelValue": r[0] || (r[0] = (n) => e(o).refundType = n),
135
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => e(o).refundType = n),
135
136
  data: e(T).refundTypeEnum.values,
136
137
  style: { width: "100% !important" },
137
138
  disabled: ""
@@ -142,16 +143,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
142
143
  ]),
143
144
  _: 1
144
145
  }),
145
- l(m, { span: 12 }, {
146
+ r(m, { span: 12 }, {
146
147
  default: u(() => [
147
- l(i, {
148
+ r(i, {
148
149
  label: d.$t("orderRefunds.refundAmount"),
149
150
  prop: "refundAmount"
150
151
  }, {
151
152
  default: u(() => [
152
- l(F, {
153
+ r(F, {
153
154
  modelValue: e(o).refundAmount,
154
- "onUpdate:modelValue": r[1] || (r[1] = (n) => e(o).refundAmount = n),
155
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => e(o).refundAmount = n),
155
156
  precision: 2,
156
157
  controls: !1,
157
158
  min: 0,
@@ -164,16 +165,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
164
165
  ]),
165
166
  _: 1
166
167
  }),
167
- l(m, { span: 24 }, {
168
+ r(m, { span: 24 }, {
168
169
  default: u(() => [
169
- l(i, {
170
+ r(i, {
170
171
  label: d.$t("orderRefunds.refundReson"),
171
172
  prop: "refundReson"
172
173
  }, {
173
174
  default: u(() => [
174
- l(p, {
175
+ r(p, {
175
176
  modelValue: e(o).refundReson,
176
- "onUpdate:modelValue": r[2] || (r[2] = (n) => e(o).refundReson = n),
177
+ "onUpdate:modelValue": l[2] || (l[2] = (n) => e(o).refundReson = n),
177
178
  type: "textarea",
178
179
  autosize: { minRows: 2 },
179
180
  disabled: ""
@@ -184,16 +185,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
184
185
  ]),
185
186
  _: 1
186
187
  }),
187
- l(m, { span: 24 }, {
188
+ r(m, { span: 24 }, {
188
189
  default: u(() => [
189
- l(i, {
190
+ r(i, {
190
191
  label: d.$t("orderRefunds.auditOpinion"),
191
192
  prop: "auditOpinion"
192
193
  }, {
193
194
  default: u(() => [
194
- l(B, {
195
+ r(P, {
195
196
  modelValue: e(o).auditOpinion,
196
- "onUpdate:modelValue": r[3] || (r[3] = (n) => e(o).auditOpinion = n),
197
+ "onUpdate:modelValue": l[3] || (l[3] = (n) => e(o).auditOpinion = n),
197
198
  data: e(T).auditOpinion.values
198
199
  }, null, 8, ["modelValue", "data"])
199
200
  ]),
@@ -207,14 +208,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
207
208
  span: 24
208
209
  }, {
209
210
  default: u(() => [
210
- l(i, {
211
+ r(i, {
211
212
  label: d.$t("orderRefunds.refuseRefundReson"),
212
213
  prop: "refuseRefundReson"
213
214
  }, {
214
215
  default: u(() => [
215
- l(p, {
216
+ r(p, {
216
217
  modelValue: e(o).refuseRefundReson,
217
- "onUpdate:modelValue": r[4] || (r[4] = (n) => e(o).refuseRefundReson = n),
218
+ "onUpdate:modelValue": l[4] || (l[4] = (n) => e(o).refuseRefundReson = n),
218
219
  placeholder: d.$t("orderRefunds.refuseRefundResonRequired"),
219
220
  type: "textarea",
220
221
  autosize: { minRows: 2 },
@@ -232,14 +233,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
232
233
  span: 12
233
234
  }, {
234
235
  default: u(() => [
235
- l(i, {
236
+ r(i, {
236
237
  label: d.$t("orderRefunds.userName"),
237
238
  prop: "userName"
238
239
  }, {
239
240
  default: u(() => [
240
- l(p, {
241
+ r(p, {
241
242
  modelValue: e(o).userName,
242
- "onUpdate:modelValue": r[5] || (r[5] = (n) => e(o).userName = n),
243
+ "onUpdate:modelValue": l[5] || (l[5] = (n) => e(o).userName = n),
243
244
  placeholder: d.$t("orderRefunds.userNameRequired"),
244
245
  clearable: ""
245
246
  }, null, 8, ["modelValue", "placeholder"])
@@ -254,14 +255,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
254
255
  span: 12
255
256
  }, {
256
257
  default: u(() => [
257
- l(i, {
258
+ r(i, {
258
259
  label: d.$t("orderRefunds.mobilePhone"),
259
260
  prop: "userMobile"
260
261
  }, {
261
262
  default: u(() => [
262
- l(p, {
263
+ r(p, {
263
264
  modelValue: e(o).userMobile,
264
- "onUpdate:modelValue": r[6] || (r[6] = (n) => e(o).userMobile = n),
265
+ "onUpdate:modelValue": l[6] || (l[6] = (n) => e(o).userMobile = n),
265
266
  placeholder: d.$t("orderRefunds.mobilePhoneRequired"),
266
267
  clearable: ""
267
268
  }, null, 8, ["modelValue", "placeholder"])
@@ -276,14 +277,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
276
277
  span: 24
277
278
  }, {
278
279
  default: u(() => [
279
- l(i, {
280
+ r(i, {
280
281
  label: d.$t("orderRefunds.address"),
281
282
  prop: "userAddress"
282
283
  }, {
283
284
  default: u(() => [
284
- l(p, {
285
+ r(p, {
285
286
  modelValue: e(o).userAddress,
286
- "onUpdate:modelValue": r[7] || (r[7] = (n) => e(o).userAddress = n),
287
+ "onUpdate:modelValue": l[7] || (l[7] = (n) => e(o).userAddress = n),
287
288
  placeholder: d.$t("orderRefunds.addressRequired"),
288
289
  type: "textarea",
289
290
  autosize: { minRows: 2 },
@@ -309,5 +310,5 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
309
310
  }
310
311
  });
311
312
  export {
312
- x as _
313
+ oe as _
313
314
  };
@@ -1,10 +1,4 @@
1
1
  import { BizDict, type Entry } from "jmash-core";
2
- export declare class CustomBizDict {
3
- values: import("vue").Reactive<Entry[]>;
4
- query: any;
5
- constructor(results: any, query: any);
6
- getValue(key: string): string;
7
- }
8
2
  export declare class ShopBizDict extends BizDict {
9
3
  useValues(): Promise<Entry[]>;
10
4
  }
@@ -10,8 +10,6 @@ export interface GoodsAppraisesReq extends EntityReq {
10
10
  }
11
11
  export interface GoodsAppraisesModel extends EntityModel {
12
12
  appraisesId?: string;
13
- orderId?: string;
14
- createTime?: string;
15
13
  shopId?: string;
16
14
  nickName?: string;
17
15
  goodsScore?: number;
@@ -37,7 +35,7 @@ export interface OrderItemModel extends EntityModel {
37
35
  spuName?: string;
38
36
  picUrl?: string;
39
37
  salesPrice?: number;
40
- quantity?: string;
38
+ quantity?: number;
41
39
  specInfo?: string;
42
40
  }
43
41
  export interface GoodsAppraisesList extends EntityList {
@@ -38,6 +38,7 @@ export interface OrderInfoModel extends EntityModel {
38
38
  address?: string;
39
39
  mobilePhone?: string;
40
40
  mobilePhoneIns?: string;
41
+ mobileEncrypt?: boolean;
41
42
  }
42
43
  export interface OrderItemList extends EntityList {
43
44
  results: Array<OrderItemModel>;
@@ -47,7 +48,7 @@ export interface OrderItemModel extends EntityModel {
47
48
  itemId?: string;
48
49
  spuName?: string;
49
50
  salesPrice?: number;
50
- quantity?: string;
51
+ quantity?: number;
51
52
  specInfo?: string;
52
53
  picUrl?: string;
53
54
  freightPrice?: number;
@@ -81,6 +82,7 @@ export interface OrderPostReq {
81
82
  logisticsNo?: string;
82
83
  }
83
84
  export interface OrderChangePriceReq {
85
+ requestId?: string;
84
86
  items: Array<OrderItemChangeReq>;
85
87
  }
86
88
  export interface OrderItemChangeReq {
@@ -16,7 +16,6 @@ export interface LogisticsQueryReq {
16
16
  }
17
17
  export interface LogisticsInfoList extends EntityList {
18
18
  list: Array<LogisticsInfoModel>;
19
- message?: string;
20
19
  }
21
20
  export interface LogisticsInfoModel extends EntityModel {
22
21
  time?: string;
@@ -1,4 +1,3 @@
1
1
  import type { RouteRecordRaw } from "vue-router";
2
2
  export declare const orderInfo: () => Promise<typeof import("@/views/order/order-info/info.vue")>;
3
- export declare const refundsInfo: () => Promise<typeof import("@/views/order/order-refunds/info.vue")>;
4
3
  export declare const orderRouter: RouteRecordRaw[];
@@ -1,11 +1,7 @@
1
1
  import { type PropType } from "vue";
2
- import type { OrderInfoKey, OrderItemModel } from "@/api/order-info/types";
2
+ import type { OrderItemModel } from "@/api/order-info/types";
3
3
  declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
4
4
  modelValue: PropType<boolean>;
5
- entityKey: {
6
- type: PropType<OrderInfoKey>;
7
- default: () => void;
8
- };
9
5
  entityModel: {
10
6
  type: PropType<OrderItemModel>;
11
7
  default: () => void;
@@ -14,10 +10,6 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
14
10
  refresh: (...args: any[]) => void;
15
11
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
16
12
  modelValue: PropType<boolean>;
17
- entityKey: {
18
- type: PropType<OrderInfoKey>;
19
- default: () => void;
20
- };
21
13
  entityModel: {
22
14
  type: PropType<OrderItemModel>;
23
15
  default: () => void;
@@ -25,7 +17,6 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
25
17
  }>> & Readonly<{
26
18
  onRefresh?: ((...args: any[]) => any) | undefined;
27
19
  }>, {
28
- entityKey: OrderInfoKey;
29
20
  entityModel: OrderItemModel;
30
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
22
  export default _default;
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
21
21
  }>> & Readonly<{
22
22
  onClose?: ((...args: any[]) => any) | undefined;
23
23
  }>, {
24
- orderId: string;
25
24
  orderItemId: string;
25
+ orderId: string;
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
27
27
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-order",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -11,15 +11,15 @@
11
11
  "peerDependencies": {
12
12
  "axios": "^1.7.7",
13
13
  "element-plus": "^2.8.7",
14
- "jmash-core": "^0.0.132",
14
+ "jmash-core": "^0.0.134",
15
15
  "jmash-dict": "^0.0.47",
16
- "jmash-rbac": "^0.0.46",
16
+ "jmash-rbac": "^0.0.47",
17
17
  "pinia": "^2.2.4",
18
18
  "vue": "^3.5.11",
19
19
  "vue-i18n": "^9.14.1",
20
20
  "vue-router": "^4.4.5",
21
- "xyvcard-shop": "^0.0.23",
22
- "xyvcard-shell": "^0.0.12"
21
+ "xyvcard-shop": "^0.0.24",
22
+ "xyvcard-shell": "^0.0.13"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@eslint/js": "^9.16.0",
@@ -1,190 +0,0 @@
1
- import { defineComponent as R, mergeModels as b, ref as I, reactive as V, useModel as j, watch as F, resolveComponent as s, createBlock as O, openBlock as U, withCtx as o, createVNode as l, unref as m, createElementVNode as v, toDisplayString as f, createTextVNode as C } from "vue";
2
- import { ElMessage as E } from "element-plus";
3
- import { useI18n as S } from "vue-i18n";
4
- import { o as N } from "./index-1R3wKfde.mjs";
5
- const A = { class: "dialog-footer" }, J = /* @__PURE__ */ R({
6
- __name: "change",
7
- props: /* @__PURE__ */ b({
8
- entityKey: {
9
- type: Object,
10
- default: () => {
11
- }
12
- },
13
- entityModel: {
14
- type: Object,
15
- default: () => {
16
- }
17
- }
18
- }, {
19
- modelValue: { type: Boolean },
20
- modelModifiers: {}
21
- }),
22
- emits: /* @__PURE__ */ b(["refresh"], ["update:modelValue"]),
23
- setup(p, { emit: w }) {
24
- const { t: u } = S(), g = I();
25
- let r = V({
26
- items: [
27
- {
28
- orderItemId: "",
29
- salesPrice: 0,
30
- freightPrice: 0
31
- }
32
- ]
33
- });
34
- const M = V({
35
- salesPrice: [
36
- {
37
- required: !0,
38
- message: u("orderInfo.salesPriceRequired"),
39
- trigger: "blur"
40
- }
41
- ],
42
- freightPrice: [
43
- {
44
- required: !0,
45
- message: u("orderInfo.freightPriceRequired"),
46
- trigger: "blur"
47
- }
48
- ]
49
- }), a = j(p, "modelValue"), k = w, n = p, $ = Object.keys(n.entityKey), _ = I($.length >= 1);
50
- F([() => n.entityKey, () => n.entityModel], async () => {
51
- var e;
52
- if (_.value) {
53
- const { data: i } = await N.findById(n.entityKey), t = (e = i.orderItemList) == null ? void 0 : e.results.find(
54
- (d) => d.itemId === n.entityModel.itemId
55
- );
56
- t && (r.items[0].spuName = t.spuName, r.items[0].salesPrice = Number(t.salesPrice), r.items[0].freightPrice = Number(t.freightPrice));
57
- }
58
- }, {
59
- immediate: !0,
60
- deep: !0
61
- });
62
- const q = async () => {
63
- var e;
64
- await ((e = g.value) == null ? void 0 : e.validate((i) => {
65
- i && _.value && N.orderPrice({
66
- items: r.items.map((t) => ({
67
- ...t,
68
- orderItemId: n.entityModel.itemId
69
- }))
70
- }).then((t) => {
71
- t.status === 200 && (E({
72
- message: u("common.submitSuccess"),
73
- type: "success"
74
- }), a.value && (a.value = !1), k("refresh", t.status === 200));
75
- });
76
- }));
77
- };
78
- function h() {
79
- a.value && (a.value = !1);
80
- }
81
- return (e, i) => {
82
- const t = s("el-form-item"), d = s("el-col"), y = s("el-input-number"), B = s("el-row"), D = s("el-form"), P = s("el-button"), K = s("el-dialog");
83
- return U(), O(K, {
84
- modelValue: a.value,
85
- "onUpdate:modelValue": i[2] || (i[2] = (c) => a.value = c),
86
- onClose: h
87
- }, {
88
- footer: o(() => [
89
- v("div", A, [
90
- l(P, { onClick: h }, {
91
- default: o(() => [
92
- C(f(e.$t("common.cancel")), 1)
93
- ]),
94
- _: 1
95
- }),
96
- l(P, {
97
- type: "primary",
98
- onClick: q
99
- }, {
100
- default: o(() => [
101
- C(f(e.$t("common.confirm")), 1)
102
- ]),
103
- _: 1
104
- })
105
- ])
106
- ]),
107
- default: o(() => [
108
- l(D, {
109
- ref_key: "priceChangeForm",
110
- ref: g,
111
- model: m(r).items[0],
112
- "label-width": "120px",
113
- rules: M
114
- }, {
115
- default: o(() => [
116
- l(B, null, {
117
- default: o(() => [
118
- l(d, { span: 24 }, {
119
- default: o(() => [
120
- l(t, {
121
- label: e.$t("orderInfo.spuName"),
122
- prop: "spuName"
123
- }, {
124
- default: o(() => [
125
- v("span", null, f(m(r).items[0].spuName), 1)
126
- ]),
127
- _: 1
128
- }, 8, ["label"])
129
- ]),
130
- _: 1
131
- }),
132
- l(d, { span: 24 }, {
133
- default: o(() => [
134
- l(t, {
135
- label: e.$t("orderInfo.sellPrice"),
136
- prop: "salesPrice"
137
- }, {
138
- default: o(() => [
139
- l(y, {
140
- modelValue: m(r).items[0].salesPrice,
141
- "onUpdate:modelValue": i[0] || (i[0] = (c) => m(r).items[0].salesPrice = c),
142
- precision: 2,
143
- controls: !1,
144
- min: 0,
145
- placeholder: e.$t("orderInfo.sellPriceRequired"),
146
- class: "w-full"
147
- }, null, 8, ["modelValue", "placeholder"])
148
- ]),
149
- _: 1
150
- }, 8, ["label"])
151
- ]),
152
- _: 1
153
- }),
154
- l(d, { span: 24 }, {
155
- default: o(() => [
156
- l(t, {
157
- label: e.$t("orderInfo.freightPrice"),
158
- prop: "freightPrice"
159
- }, {
160
- default: o(() => [
161
- l(y, {
162
- modelValue: m(r).items[0].freightPrice,
163
- "onUpdate:modelValue": i[1] || (i[1] = (c) => m(r).items[0].freightPrice = c),
164
- precision: 2,
165
- controls: !1,
166
- min: 0,
167
- placeholder: e.$t("orderInfo.freightPriceRequired"),
168
- class: "w-full"
169
- }, null, 8, ["modelValue", "placeholder"])
170
- ]),
171
- _: 1
172
- }, 8, ["label"])
173
- ]),
174
- _: 1
175
- })
176
- ]),
177
- _: 1
178
- })
179
- ]),
180
- _: 1
181
- }, 8, ["model", "rules"])
182
- ]),
183
- _: 1
184
- }, 8, ["modelValue"]);
185
- };
186
- }
187
- });
188
- export {
189
- J as _
190
- };
@@ -1,18 +0,0 @@
1
- import type { PropType } from "vue";
2
- import type { Entry } from "jmash-core";
3
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
4
- modelValue: PropType<string | boolean>;
5
- data: {
6
- type: PropType<Entry[]>;
7
- default: () => void;
8
- };
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
10
- modelValue: PropType<string | boolean>;
11
- data: {
12
- type: PropType<Entry[]>;
13
- default: () => void;
14
- };
15
- }>> & Readonly<{}>, {
16
- data: Entry[];
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -2,9 +2,9 @@ var P = Object.defineProperty;
2
2
  var d = (a, E, i) => E in a ? P(a, E, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[E] = i;
3
3
  var t = (a, E, i) => d(a, typeof E != "symbol" ? E + "" : E, i);
4
4
  import { BizDict as R, EnumDict as r, CustomBizDict as _ } from "jmash-core";
5
- import { ref as U } from "vue";
6
5
  import { phoneModelApi as l } from "xyvcard-shell";
7
6
  import { infoApi as o } from "xyvcard-shop";
7
+ import { ref as U } from "vue";
8
8
  import { EntryDict as T } from "jmash-dict";
9
9
  class A extends R {
10
10
  // 实现 useValues 方法