xyvcard-paper-buyer 0.0.57 → 0.0.58

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.
@@ -3,8 +3,8 @@ import { useI18n as O } from "vue-i18n";
3
3
  import "element-plus";
4
4
  import { routerUtil as D } from "jmash-core";
5
5
  import { useRouter as Q, useRoute as W } from "vue-router";
6
- import { D as U } from "./index-Knr6dYOL.mjs";
7
- import { _ as X, u as Y } from "./userInvoice.vue_vue_type_script_setup_true_lang-Bzqz4vIJ.mjs";
6
+ import { D as U } from "./index-C_9577tG.mjs";
7
+ import { _ as X, u as Y } from "./userInvoice.vue_vue_type_script_setup_true_lang-_E3C_ACs.mjs";
8
8
  import { o as Z } from "./index-C-g3Ei_P.mjs";
9
9
  import { E as x } from "./el-message-VSzNakoG.mjs";
10
10
  import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -0,0 +1,72 @@
1
+ var l = Object.defineProperty;
2
+ var n = (r, i, a) => i in r ? l(r, i, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[i] = a;
3
+ var e = (r, i, a) => n(r, typeof i != "symbol" ? i + "" : i, a);
4
+ import { ref as y } from "vue";
5
+ import { BizLayDict as T, CustomBizDict as o, EnumDict as p } from "jmash-core";
6
+ import { goodsCategoryApi as P } from "xyvcard-paper-goods";
7
+ import { EntryDict as d } from "jmash-dict";
8
+ class t {
9
+ }
10
+ //模块
11
+ e(t, "PAPER_DICT", "paper"), // 订单状态
12
+ e(t, "ENUM_ORDER_STATUS", y([
13
+ { key: "unpay", value: "待付款" },
14
+ { key: "unpost", value: "订阅成功" }
15
+ ])), // 订单状态常量
16
+ e(t, "UNPAY", "unpay"), e(t, "UNPOST", "unpost"), // 发票票种
17
+ e(t, "LQFP_FPPZ", "Fppz"), // 开票状态
18
+ e(t, "INVOICE_STATUS", "xyvcard.order.protobuf.InvoiceStatus"), e(t, "UNINVOICE", "uninvoice"), e(t, "INVOICING", "invoicing"), e(t, "INVOICED", "invoiced"), // 企业
19
+ e(t, "GMF_TYPE_ENT", "ent"), // 个人
20
+ e(t, "GMF_TYPE_PER", "person"), // 证件类型
21
+ e(t, "DICT_TYPE_ID", "TypeID"), // 抬头类型
22
+ e(t, "GMF_TYPE_VALUES", y([
23
+ { key: "ent", value: "企业" },
24
+ { key: "person", value: "个人" }
25
+ ])), // 订单模块
26
+ e(t, "MODULE_ORDER", "order"), // 支付方式
27
+ e(t, "PAYMENT_MODE", "xyvcard.order.protobuf.PaymentMode");
28
+ function _(r, i, a) {
29
+ return !Array.isArray(r) || r.length === 0 ? [] : r.map((s) => {
30
+ let E = [];
31
+ return Array.isArray(s.children) && s.children.length > 0 && (E = _(s.children, i, a)), {
32
+ value: s[a],
33
+ label: s[i],
34
+ parentId: s.parentId,
35
+ children: E
36
+ };
37
+ });
38
+ }
39
+ class I extends T {
40
+ // 实现 useValues 方法
41
+ useValues() {
42
+ return new Promise((i, a) => {
43
+ P.findTreeListApi(this.query).then((u) => {
44
+ const { data: s } = u;
45
+ this.values.length = 0, this.values.push(..._(s.results, "label", "value")), i(this.values);
46
+ }).catch(a);
47
+ });
48
+ }
49
+ }
50
+ class c {
51
+ }
52
+ // 订单状态
53
+ e(c, "orderStatusEnum", new o(
54
+ t.ENUM_ORDER_STATUS,
55
+ {}
56
+ )), // 发票票种
57
+ e(c, "fppzDict", new d(t.LQFP_FPPZ)), // 开票状态
58
+ e(c, "invoiceStatusEnum", new p(
59
+ t.PAPER_DICT,
60
+ t.INVOICE_STATUS
61
+ )), // 商品分类(发行频率)
62
+ e(c, "goodsCategoryListBizLayDict", new I(
63
+ {}
64
+ )), e(c, "gmfTypeDict", new o(t.GMF_TYPE_VALUES, {})), // 支付方式
65
+ e(c, "paymentMode", new p(
66
+ t.MODULE_ORDER,
67
+ t.PAYMENT_MODE
68
+ ));
69
+ export {
70
+ t as C,
71
+ c as D
72
+ };
@@ -1,47 +1,54 @@
1
- import { defineComponent as ie, ref as U, onActivated as pe, resolveComponent as i, resolveDirective as me, createElementBlock as I, openBlock as m, createElementVNode as c, createVNode as n, withCtx as r, withKeys as P, unref as a, createTextVNode as u, toDisplayString as d, withDirectives as S, createCommentVNode as y, createBlock as $, isRef as L } from "vue";
2
- import { D as k, C as _ } from "./index-Knr6dYOL.mjs";
1
+ import { defineComponent as ie, ref as U, onActivated as me, resolveComponent as i, resolveDirective as pe, createElementBlock as _, openBlock as p, createElementVNode as f, createVNode as a, withCtx as r, withKeys as P, unref as n, createTextVNode as u, toDisplayString as l, withDirectives as g, createCommentVNode as v, createBlock as V, isRef as L } from "vue";
2
+ import { D as I, C as w } from "./index-C_9577tG.mjs";
3
3
  import { o as Q } from "./index-C-g3Ei_P.mjs";
4
4
  import { vueMetaEnv as fe, useTableHooks as ce } from "jmash-core";
5
- import { useI18n as be } from "vue-i18n";
6
- import { useRouter as ve } from "vue-router";
7
- const ye = { class: "app-container" }, Ie = { class: "search-container dis_bottom" }, _e = { class: "total-num dis_bottom" }, we = { class: "blue_color" }, he = { class: "blue_color" }, Ce = { class: "blue_color" }, Se = { key: 0 }, ge = ["onClick"], ke = ["onClick"], Ne = ["onClick"], Pe = ["onClick"], $e = ["onClick"], Oe = /* @__PURE__ */ ie({
5
+ import { useI18n as ye } from "vue-i18n";
6
+ import { useRouter as be } from "vue-router";
7
+ const ve = { class: "app-container" }, Ie = { class: "search-container dis_bottom" }, _e = { class: "total-num dis_bottom" }, we = { class: "blue_color" }, he = { class: "blue_color" }, Ce = { class: "blue_color" }, Se = { key: 0 }, ge = ["onClick"], ke = ["onClick"], Ne = ["onClick"], Pe = ["onClick"], Ve = ["onClick"], Ae = /* @__PURE__ */ ie({
8
8
  __name: "index",
9
- setup(Ve) {
10
- const q = localStorage.getItem("unionUserInfo"), z = (q ? JSON.parse(q) : {}).orgId, R = fe.APP_ORGAN_ID, { t: A } = be(), w = ve(), l = U({
9
+ setup(Te) {
10
+ I.paymentMode.useEnumValues(), I.invoiceStatusEnum.useEnumValues();
11
+ const q = localStorage.getItem("unionUserInfo"), z = (q ? JSON.parse(q) : {}).orgId, R = fe.APP_ORGAN_ID, { t: M } = ye(), h = be(), d = U({
11
12
  curPage: 1,
12
13
  pageSize: 10,
13
14
  shopBranchId: z
14
15
  }), {
15
- tableHooks: f,
16
+ tableHooks: c,
16
17
  multipleTableRef: K,
17
- queryFormRef: M,
18
- listLoading: B,
19
- tableData: F,
18
+ queryFormRef: B,
19
+ listLoading: F,
20
+ tableData: W,
20
21
  total: N
21
- } = ce(A, Q, l), V = f.totalRecord;
22
- function W(t) {
22
+ } = ce(M, Q, d), T = c.totalRecord;
23
+ function G(t) {
23
24
  if (!t) return "0";
24
25
  const o = parseFloat(String(t));
25
26
  return Number.isInteger(o) ? o.toString() : o.toFixed(2);
26
27
  }
27
- const T = U([]);
28
- function G(t) {
28
+ const $ = U([]);
29
+ function H(t) {
29
30
  if (!t || t.length !== 2) {
30
- l.value.startDate = "", l.value.endDate = "";
31
+ d.value.startDate = "", d.value.endDate = "";
31
32
  return;
32
33
  }
33
- l.value.startDate = t[0], l.value.endDate = t[1];
34
+ d.value.startDate = t[0], d.value.endDate = t[1];
34
35
  }
35
- function H() {
36
- T.value = [], l.value.startDate = "", l.value.endDate = "", f.resetQuery();
36
+ function J() {
37
+ $.value = [], d.value.startDate = "", d.value.endDate = "", c.resetQuery();
37
38
  }
38
- let g = U([
39
+ let k = U([
39
40
  {
40
41
  label: "orderInfo.orderCode",
41
42
  prop: "orderCode",
42
43
  width: "270",
43
44
  isColumn: !0
44
45
  },
46
+ {
47
+ label: "orderInfo.unitName",
48
+ prop: "userIdentifier",
49
+ minWidth: "180",
50
+ isColumn: !0
51
+ },
45
52
  {
46
53
  label: "orderInfo.spuName",
47
54
  prop: "spuName",
@@ -50,12 +57,6 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
50
57
  slotName: "spuName",
51
58
  columnType: "slot"
52
59
  },
53
- {
54
- label: "orderInfo.unitName",
55
- prop: "userIdentifier",
56
- minWidth: "180",
57
- isColumn: !0
58
- },
59
60
  {
60
61
  label: "orderInfo.paperNumber",
61
62
  prop: "quantity",
@@ -64,14 +65,6 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
64
65
  slotName: "quantity",
65
66
  columnType: "slot"
66
67
  },
67
- {
68
- label: "orderInfo.unitPrice",
69
- prop: "unitPrice",
70
- width: "105",
71
- isColumn: !0,
72
- slotName: "unitPrice",
73
- columnType: "slot"
74
- },
75
68
  {
76
69
  label: "orderInfo.salesPrice",
77
70
  prop: "salesPrice",
@@ -95,12 +88,28 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
95
88
  columnType: "slot"
96
89
  },
97
90
  {
98
- label: "orderInfo.mobilePhone",
99
- prop: "mobilePhone",
91
+ label: "orderInfo.payMode",
92
+ prop: "payMode",
93
+ width: "90",
94
+ slotName: "payMode",
95
+ columnType: "slot",
96
+ isColumn: !0
97
+ },
98
+ {
99
+ label: "orderInfo.tradeTime",
100
+ prop: "tradeTime",
100
101
  width: "160",
101
- isColumn: !0,
102
- slotName: "mobilePhone",
103
- columnType: "slot"
102
+ slotName: "tradeTime",
103
+ columnType: "slot",
104
+ isColumn: !0
105
+ },
106
+ {
107
+ label: "orderInfo.createTime",
108
+ prop: "createTime",
109
+ width: "160",
110
+ slotName: "createTime",
111
+ columnType: "slot",
112
+ isColumn: !0
104
113
  },
105
114
  {
106
115
  label: "orderInfo.orderCycle",
@@ -111,12 +120,12 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
111
120
  columnType: "slot"
112
121
  },
113
122
  {
114
- label: "orderInfo.createTime",
115
- prop: "createTime",
123
+ label: "orderInfo.mobilePhone",
124
+ prop: "mobilePhone",
116
125
  width: "160",
117
- slotName: "createTime",
118
- columnType: "slot",
119
- isColumn: !0
126
+ isColumn: !0,
127
+ slotName: "mobilePhone",
128
+ columnType: "slot"
120
129
  },
121
130
  {
122
131
  label: "common.operate",
@@ -127,20 +136,20 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
127
136
  isColumn: !0
128
137
  }
129
138
  ]);
130
- function J(t) {
139
+ function A(t) {
131
140
  return t ? new Date(t).toLocaleString() : "";
132
141
  }
133
142
  function X(t) {
134
143
  t.mobileEncrypt = !t.mobileEncrypt;
135
144
  }
136
145
  function Z(t) {
137
- w.push({
146
+ h.push({
138
147
  path: "/buyer/order-info/info",
139
148
  query: { orderId: t.orderId }
140
149
  });
141
150
  }
142
151
  function x(t) {
143
- w.push({
152
+ h.push({
144
153
  path: "/buyer/order-info/invoice",
145
154
  query: {
146
155
  orderCode: t.orderCode,
@@ -149,7 +158,7 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
149
158
  });
150
159
  }
151
160
  function ee(t) {
152
- w.push({
161
+ h.push({
153
162
  path: "/buyer/order-info/invoiceView",
154
163
  query: {
155
164
  orderCode: t.orderCode,
@@ -160,13 +169,13 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
160
169
  async function oe(t) {
161
170
  try {
162
171
  const o = await Q.queryOrderAddress({ orderId: t.orderId });
163
- o && o.data === !0 ? w.push({
172
+ o && o.data === !0 ? h.push({
164
173
  path: "/buyer/order-newspaper/orderDetails",
165
174
  query: {
166
175
  orderId: t.orderId,
167
176
  shopId: t.shopId
168
177
  }
169
- }) : o && o.data === !1 && w.push({
178
+ }) : o && o.data === !1 && h.push({
170
179
  path: "/buyer/order-newspaper/orderAddress",
171
180
  query: { orderId: t.orderId }
172
181
  });
@@ -174,39 +183,39 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
174
183
  }
175
184
  }
176
185
  function te(t) {
177
- w.push({
186
+ h.push({
178
187
  path: "/buyer/order-info/applyEdit",
179
188
  query: { orderId: t.orderId }
180
189
  });
181
190
  }
182
- return pe(() => {
183
- f.getList();
191
+ return me(() => {
192
+ c.getList();
184
193
  }), (t, o) => {
185
- const O = i("el-input"), h = i("el-form-item"), p = i("el-col"), j = i("jmash-select"), re = i("el-date-picker"), E = i("el-button"), D = i("el-row"), ne = i("el-form"), ae = i("jmash-column-select"), Y = i("el-tag"), le = i("jmash-mobileIns-component"), de = i("jmash-table"), ue = i("jmash-pagination"), se = i("el-card"), C = me("hasPerm");
186
- return m(), I("div", ye, [
187
- c("div", Ie, [
188
- n(ne, {
194
+ const O = i("el-input"), C = i("el-form-item"), m = i("el-col"), j = i("jmash-select"), re = i("el-date-picker"), E = i("el-button"), D = i("el-row"), ae = i("el-form"), ne = i("jmash-column-select"), Y = i("el-tag"), le = i("jmash-mobileIns-component"), de = i("jmash-table"), ue = i("jmash-pagination"), se = i("el-card"), S = pe("hasPerm");
195
+ return p(), _("div", ve, [
196
+ f("div", Ie, [
197
+ a(ae, {
189
198
  ref_key: "queryFormRef",
190
- ref: M,
191
- model: l.value,
199
+ ref: B,
200
+ model: d.value,
192
201
  inline: !0
193
202
  }, {
194
203
  default: r(() => [
195
- n(D, null, {
204
+ a(D, null, {
196
205
  default: r(() => [
197
- n(p, { span: 6 }, {
206
+ a(m, { span: 6 }, {
198
207
  default: r(() => [
199
- n(h, {
208
+ a(C, {
200
209
  label: t.$t("orderInfo.orderCode"),
201
210
  prop: "likeOrderCode"
202
211
  }, {
203
212
  default: r(() => [
204
- n(O, {
205
- modelValue: l.value.likeOrderCode,
206
- "onUpdate:modelValue": o[0] || (o[0] = (e) => l.value.likeOrderCode = e),
213
+ a(O, {
214
+ modelValue: d.value.likeOrderCode,
215
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => d.value.likeOrderCode = e),
207
216
  placeholder: t.$t("orderInfo.orderCodeRequired"),
208
217
  clearable: "",
209
- onKeyup: o[1] || (o[1] = P((e) => a(f).handleQuery(), ["enter"])),
218
+ onKeyup: o[1] || (o[1] = P((e) => n(c).handleQuery(), ["enter"])),
210
219
  class: "!w-[203px]"
211
220
  }, null, 8, ["modelValue", "placeholder"])
212
221
  ]),
@@ -215,19 +224,19 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
215
224
  ]),
216
225
  _: 1
217
226
  }),
218
- n(p, { span: 6 }, {
227
+ a(m, { span: 6 }, {
219
228
  default: r(() => [
220
- n(h, {
229
+ a(C, {
221
230
  label: t.$t("orderInfo.spuName"),
222
231
  prop: "likeSpuName"
223
232
  }, {
224
233
  default: r(() => [
225
- n(O, {
226
- modelValue: l.value.likeSpuName,
227
- "onUpdate:modelValue": o[2] || (o[2] = (e) => l.value.likeSpuName = e),
234
+ a(O, {
235
+ modelValue: d.value.likeSpuName,
236
+ "onUpdate:modelValue": o[2] || (o[2] = (e) => d.value.likeSpuName = e),
228
237
  placeholder: t.$t("orderInfo.spuNameRequired"),
229
238
  clearable: "",
230
- onKeyup: o[3] || (o[3] = P((e) => a(f).handleQuery(), ["enter"])),
239
+ onKeyup: o[3] || (o[3] = P((e) => n(c).handleQuery(), ["enter"])),
231
240
  class: "!w-[203px]"
232
241
  }, null, 8, ["modelValue", "placeholder"])
233
242
  ]),
@@ -236,20 +245,20 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
236
245
  ]),
237
246
  _: 1
238
247
  }),
239
- n(p, { span: 6 }, {
248
+ a(m, { span: 6 }, {
240
249
  default: r(() => [
241
- n(h, {
250
+ a(C, {
242
251
  label: t.$t("orderInfo.orderStatus"),
243
252
  prop: "orderStatusPc"
244
253
  }, {
245
254
  default: r(() => [
246
- n(j, {
247
- modelValue: l.value.orderStatusPc,
248
- "onUpdate:modelValue": o[4] || (o[4] = (e) => l.value.orderStatusPc = e),
249
- data: a(k).orderStatusEnum.values,
255
+ a(j, {
256
+ modelValue: d.value.orderStatusPc,
257
+ "onUpdate:modelValue": o[4] || (o[4] = (e) => d.value.orderStatusPc = e),
258
+ data: n(I).orderStatusEnum.values,
250
259
  placeholder: t.$t("orderInfo.orderStatusRequired"),
251
260
  clearable: "",
252
- onKeyup: o[5] || (o[5] = P((e) => a(f).handleQuery(), ["enter"]))
261
+ onKeyup: o[5] || (o[5] = P((e) => n(c).handleQuery(), ["enter"]))
253
262
  }, null, 8, ["modelValue", "data", "placeholder"])
254
263
  ]),
255
264
  _: 1
@@ -257,20 +266,20 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
257
266
  ]),
258
267
  _: 1
259
268
  }),
260
- n(p, { span: 6 }, {
269
+ a(m, { span: 6 }, {
261
270
  default: r(() => [
262
- n(h, {
271
+ a(C, {
263
272
  label: t.$t("orderInfo.invoiceStatus"),
264
273
  prop: "invoiceStatus"
265
274
  }, {
266
275
  default: r(() => [
267
- n(j, {
268
- modelValue: l.value.invoiceStatus,
269
- "onUpdate:modelValue": o[6] || (o[6] = (e) => l.value.invoiceStatus = e),
270
- data: a(k).invoiceStatusEnum.values,
276
+ a(j, {
277
+ modelValue: d.value.invoiceStatus,
278
+ "onUpdate:modelValue": o[6] || (o[6] = (e) => d.value.invoiceStatus = e),
279
+ data: n(I).invoiceStatusEnum.values,
271
280
  placeholder: t.$t("orderInfo.invoiceStatusRequired"),
272
281
  clearable: "",
273
- onKeyup: o[7] || (o[7] = P((e) => a(f).handleQuery(), ["enter"]))
282
+ onKeyup: o[7] || (o[7] = P((e) => n(c).handleQuery(), ["enter"]))
274
283
  }, null, 8, ["modelValue", "data", "placeholder"])
275
284
  ]),
276
285
  _: 1
@@ -278,22 +287,22 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
278
287
  ]),
279
288
  _: 1
280
289
  }),
281
- n(p, { span: 6 }, {
290
+ a(m, { span: 6 }, {
282
291
  default: r(() => [
283
- n(h, {
292
+ a(C, {
284
293
  label: t.$t("orderInfo.createTime"),
285
294
  prop: "startCreateTime"
286
295
  }, {
287
296
  default: r(() => [
288
- n(re, {
289
- modelValue: T.value,
290
- "onUpdate:modelValue": o[8] || (o[8] = (e) => T.value = e),
297
+ a(re, {
298
+ modelValue: $.value,
299
+ "onUpdate:modelValue": o[8] || (o[8] = (e) => $.value = e),
291
300
  type: "daterange",
292
301
  "start-placeholder": t.$t("orderInfo.startCreateTime"),
293
302
  "end-placeholder": t.$t("orderInfo.endCreateTime"),
294
303
  format: "YYYY-MM-DD",
295
304
  "value-format": "YYYY-MM-DD",
296
- onChange: G
305
+ onChange: H
297
306
  }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
298
307
  ]),
299
308
  _: 1
@@ -301,22 +310,22 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
301
310
  ]),
302
311
  _: 1
303
312
  }),
304
- n(p, { span: 18 }, {
313
+ a(m, { span: 18 }, {
305
314
  default: r(() => [
306
- n(h, { class: "search-btn" }, {
315
+ a(C, { class: "search-btn" }, {
307
316
  default: r(() => [
308
- n(E, {
317
+ a(E, {
309
318
  type: "primary",
310
- onClick: o[9] || (o[9] = (e) => a(f).handleQuery())
319
+ onClick: o[9] || (o[9] = (e) => n(c).handleQuery())
311
320
  }, {
312
321
  default: r(() => [
313
- u(d(t.$t("common.search")), 1)
322
+ u(l(t.$t("common.search")), 1)
314
323
  ]),
315
324
  _: 1
316
325
  }),
317
- n(E, { onClick: H }, {
326
+ a(E, { onClick: J }, {
318
327
  default: r(() => [
319
- u(d(t.$t("common.reset")), 1)
328
+ u(l(t.$t("common.reset")), 1)
320
329
  ]),
321
330
  _: 1
322
331
  })
@@ -333,31 +342,31 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
333
342
  _: 1
334
343
  }, 8, ["model"])
335
344
  ]),
336
- c("div", _e, [
337
- n(D, { gutter: 20 }, {
345
+ f("div", _e, [
346
+ a(D, { gutter: 20 }, {
338
347
  default: r(() => [
339
- n(p, { span: 4 }, {
348
+ a(m, { span: 4 }, {
340
349
  default: r(() => [
341
350
  o[16] || (o[16] = u("订阅单位:")),
342
- c("span", we, d(a(V).totalUnit || 0), 1),
351
+ f("span", we, l(n(T).totalUnit || 0), 1),
343
352
  o[17] || (o[17] = u("家 "))
344
353
  ]),
345
354
  _: 1,
346
355
  __: [16, 17]
347
356
  }),
348
- n(p, { span: 4 }, {
357
+ a(m, { span: 4 }, {
349
358
  default: r(() => [
350
359
  o[18] || (o[18] = u(" 订阅报刊:")),
351
- c("span", he, d(a(V).totalQuantity || 0), 1),
360
+ f("span", he, l(n(T).totalQuantity || 0), 1),
352
361
  o[19] || (o[19] = u("份 "))
353
362
  ]),
354
363
  _: 1,
355
364
  __: [18, 19]
356
365
  }),
357
- n(p, { span: 4 }, {
366
+ a(m, { span: 4 }, {
358
367
  default: r(() => [
359
368
  o[20] || (o[20] = u("订购总金额:")),
360
- c("span", Ce, d(a(V).totalAmount || 0), 1),
369
+ f("span", Ce, l(n(T).totalAmount || 0), 1),
361
370
  o[21] || (o[21] = u("元 "))
362
371
  ]),
363
372
  _: 1,
@@ -367,34 +376,34 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
367
376
  _: 1
368
377
  })
369
378
  ]),
370
- n(se, {
379
+ a(se, {
371
380
  shadow: "never",
372
381
  class: "table-container"
373
382
  }, {
374
383
  header: r(() => [
375
- n(D, null, {
384
+ a(D, null, {
376
385
  default: r(() => [
377
- n(p, { span: 17 }),
378
- n(p, {
386
+ a(m, { span: 17 }),
387
+ a(m, {
379
388
  span: 7,
380
389
  class: "container-float"
381
390
  }, {
382
391
  default: r(() => [
383
- S((m(), $(E, {
392
+ g((p(), V(E, {
384
393
  plain: "",
385
394
  type: "primary",
386
- onClick: o[10] || (o[10] = (e) => a(f).handleExport(a(A)("orderInfo.name")))
395
+ onClick: o[10] || (o[10] = (e) => n(c).handleExport(n(M)("orderInfo.name")))
387
396
  }, {
388
397
  default: r(() => [
389
- u(d(t.$t("common.export")), 1)
398
+ u(l(t.$t("orderInfo.paperInfoName")), 1)
390
399
  ]),
391
400
  _: 1
392
401
  })), [
393
- [C, ["order:order_info:export"]]
402
+ [S, ["order:order_info:export"]]
394
403
  ]),
395
- n(ae, {
396
- modelValue: a(g),
397
- "onUpdate:modelValue": o[11] || (o[11] = (e) => L(g) ? g.value = e : g = e),
404
+ a(ne, {
405
+ modelValue: n(k),
406
+ "onUpdate:modelValue": o[11] || (o[11] = (e) => L(k) ? k.value = e : k = e),
398
407
  "label-name": "paper-order/order-info"
399
408
  }, null, 8, ["modelValue"])
400
409
  ]),
@@ -405,80 +414,86 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
405
414
  })
406
415
  ]),
407
416
  footer: r(() => [
408
- a(N) > 0 ? (m(), $(ue, {
417
+ n(N) > 0 ? (p(), V(ue, {
409
418
  key: 0,
410
- total: a(N),
419
+ total: n(N),
411
420
  "onUpdate:total": o[12] || (o[12] = (e) => L(N) ? N.value = e : null),
412
- "current-page": l.value.curPage,
413
- "onUpdate:currentPage": o[13] || (o[13] = (e) => l.value.curPage = e),
414
- "page-size": l.value.pageSize,
415
- "onUpdate:pageSize": o[14] || (o[14] = (e) => l.value.pageSize = e),
416
- onPagination: o[15] || (o[15] = (e) => a(f).getList())
417
- }, null, 8, ["total", "current-page", "page-size"])) : y("", !0)
421
+ "current-page": d.value.curPage,
422
+ "onUpdate:currentPage": o[13] || (o[13] = (e) => d.value.curPage = e),
423
+ "page-size": d.value.pageSize,
424
+ "onUpdate:pageSize": o[14] || (o[14] = (e) => d.value.pageSize = e),
425
+ onPagination: o[15] || (o[15] = (e) => n(c).getList())
426
+ }, null, 8, ["total", "current-page", "page-size"])) : v("", !0)
418
427
  ]),
419
428
  default: r(() => [
420
- n(de, {
429
+ a(de, {
421
430
  ref_key: "multipleTableRef",
422
431
  ref: K,
423
432
  "row-key": "orderId",
424
- "list-loading": a(B),
425
- data: a(F),
426
- "table-label": a(g),
433
+ "list-loading": n(F),
434
+ data: n(W),
435
+ "table-label": n(k),
427
436
  isSelection: !1
428
437
  }, {
429
438
  createTime: r((e) => [
430
- c("span", null, d(J(e.data.row.createTime)), 1)
439
+ f("span", null, l(A(e.data.row.createTime)), 1)
431
440
  ]),
432
441
  spuName: r((e) => {
433
- var s, b, v;
442
+ var s, y, b;
434
443
  return [
435
- c("span", null, d((v = (b = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : b[0]) == null ? void 0 : v.spuName), 1)
444
+ f("span", null, l((b = (y = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : y[0]) == null ? void 0 : b.spuName), 1)
436
445
  ];
437
446
  }),
438
447
  quantity: r((e) => {
439
- var s, b, v;
448
+ var s, y, b;
440
449
  return [
441
- c("span", null, d((v = (b = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : b[0]) == null ? void 0 : v.quantity), 1)
450
+ f("span", null, l((b = (y = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : y[0]) == null ? void 0 : b.quantity), 1)
442
451
  ];
443
452
  }),
444
453
  unitPrice: r((e) => {
445
- var s, b, v;
454
+ var s, y, b;
446
455
  return [
447
- c("span", null, d(W(
448
- (v = (b = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : b[0]) == null ? void 0 : v.salesPrice
456
+ f("span", null, l(G(
457
+ (b = (y = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : y[0]) == null ? void 0 : b.salesPrice
449
458
  )), 1)
450
459
  ];
451
460
  }),
452
461
  orderCycle: r((e) => [
453
- e.data.row.remark !== "undefined至undefined" ? (m(), I("span", Se, d(e.data.row.remark), 1)) : y("", !0)
462
+ e.data.row.remark !== "undefined至undefined" ? (p(), _("span", Se, l(e.data.row.remark), 1)) : v("", !0)
454
463
  ]),
455
464
  orderStatus: r((e) => [
456
- c("div", null, [
457
- e.data.row.orderStatus === a(_).UNPAY ? (m(), $(Y, {
465
+ f("div", null, [
466
+ e.data.row.orderStatus === n(w).UNPAY ? (p(), V(Y, {
458
467
  key: 0,
459
468
  type: "danger"
460
469
  }, {
461
470
  default: r(() => [
462
- u(d(a(k).orderStatusEnum.getValue(e.data.row.orderStatus)), 1)
471
+ u(l(n(I).orderStatusEnum.getValue(e.data.row.orderStatus)), 1)
463
472
  ]),
464
473
  _: 2
465
- }, 1024)) : y("", !0),
466
- e.data.row.orderStatus === a(_).UNPOST ? (m(), $(Y, {
474
+ }, 1024)) : v("", !0),
475
+ e.data.row.orderStatus === n(w).UNPOST ? (p(), V(Y, {
467
476
  key: 1,
468
477
  type: "success"
469
478
  }, {
470
479
  default: r(() => [
471
- u(d(a(k).orderStatusEnum.getValue(e.data.row.orderStatus)), 1)
480
+ u(l(n(I).orderStatusEnum.getValue(e.data.row.orderStatus)), 1)
472
481
  ]),
473
482
  _: 2
474
- }, 1024)) : y("", !0)
483
+ }, 1024)) : v("", !0)
475
484
  ])
476
485
  ]),
486
+ payMode: r((e) => [
487
+ u(l(n(I).paymentMode.getEnumValue(e.data.row.payMode)), 1)
488
+ ]),
489
+ tradeTime: r((e) => [
490
+ f("span", null, l(A(e.data.row.tradeTime)), 1)
491
+ ]),
477
492
  invoiceStatus: r((e) => [
478
- u(d(a(k).invoiceStatusEnum.getEnumValue(e.data.row.invoiceStatus)), 1)
493
+ u(l(n(I).invoiceStatusEnum.getEnumValue(e.data.row.invoiceStatus)), 1)
479
494
  ]),
480
495
  mobilePhone: r((e) => [
481
- n(le, {
496
+ a(le, {
482
497
  mobilePhoneIns: e.data.row.mobilePhoneIns,
483
498
  mobilePhone: e.data.row.mobilePhone,
484
499
  mobileEncrypt: e.data.row.mobileEncrypt,
@@ -486,50 +501,50 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
486
501
  }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
487
502
  ]),
488
503
  operation: r((e) => [
489
- S((m(), I("span", {
504
+ g((p(), _("span", {
490
505
  class: "el-button-color",
491
506
  onClick: (s) => Z(e.data.row)
492
507
  }, [
493
- u(d(t.$t("common.view")), 1)
508
+ u(l(t.$t("common.view")), 1)
494
509
  ], 8, ge)), [
495
- [C, ["order:order_info:view"]]
510
+ [S, ["order:order_info:view"]]
496
511
  ]),
497
- e.data.row.invoiceStatus === a(_).UNINVOICE && e.data.row.orderStatus === a(_).UNPOST ? S((m(), I("span", {
512
+ e.data.row.invoiceStatus === n(w).UNINVOICE && e.data.row.orderStatus === n(w).UNPOST ? g((p(), _("span", {
498
513
  key: 0,
499
514
  class: "el-button-color dropdown-left",
500
515
  onClick: (s) => te(e.data.row)
501
516
  }, [
502
- u(d(t.$t("orderInfo.apply")), 1)
517
+ u(l(t.$t("orderInfo.apply")), 1)
503
518
  ], 8, ke)), [
504
- [C, ["order:order_info:view"]]
505
- ]) : y("", !0),
506
- e.data.row.invoiceStatus === a(_).INVOICING ? S((m(), I("span", {
519
+ [S, ["order:order_info:view"]]
520
+ ]) : v("", !0),
521
+ e.data.row.invoiceStatus === n(w).INVOICING ? g((p(), _("span", {
507
522
  key: 1,
508
523
  class: "el-button-color dropdown-left",
509
524
  onClick: (s) => x(e.data.row)
510
525
  }, [
511
- u(d(t.$t("orderInfo.invoiceInformation")), 1)
526
+ u(l(t.$t("orderInfo.invoiceInformation")), 1)
512
527
  ], 8, Ne)), [
513
- [C, ["order:order_info:view"]]
514
- ]) : y("", !0),
515
- e.data.row.orderStatus === a(_).UNPAY ? S((m(), I("span", {
528
+ [S, ["order:order_info:view"]]
529
+ ]) : v("", !0),
530
+ e.data.row.orderStatus === n(w).UNPAY ? g((p(), _("span", {
516
531
  key: 2,
517
532
  class: "el-button-color dropdown-left",
518
533
  onClick: (s) => oe(e.data.row)
519
534
  }, [
520
- u(d(t.$t("orderInfo.payment")), 1)
535
+ u(l(t.$t("orderInfo.payment")), 1)
521
536
  ], 8, Pe)), [
522
- [C, ["order:order_info:view"]]
523
- ]) : y("", !0),
524
- e.data.row.invoiceStatus === a(_).INVOICED ? S((m(), I("span", {
537
+ [S, ["order:order_info:view"]]
538
+ ]) : v("", !0),
539
+ e.data.row.invoiceStatus === n(w).INVOICED ? g((p(), _("span", {
525
540
  key: 3,
526
541
  class: "el-button-color dropdown-left",
527
542
  onClick: (s) => ee(e.data.row)
528
543
  }, [
529
- u(d(t.$t("orderInfo.viewInvoice")), 1)
530
- ], 8, $e)), [
531
- [C, ["order:order_info:view"]]
532
- ]) : y("", !0)
544
+ u(l(t.$t("orderInfo.viewInvoice")), 1)
545
+ ], 8, Ve)), [
546
+ [S, ["order:order_info:view"]]
547
+ ]) : v("", !0)
533
548
  ]),
534
549
  _: 1
535
550
  }, 8, ["list-loading", "data", "table-label"])
@@ -541,5 +556,5 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
541
556
  }
542
557
  });
543
558
  export {
544
- Oe as default
559
+ Ae as default
545
560
  };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { deepMerge as d, RedirectPage as a, Layout as r, LoginPage as n, MultiFactorLoginPage as s, ProfilePage as m, Error401Page as p, Error404Page as u, routerRef as c, addViteMenus as l, addDynamicRoute as f, i18n as h } from "jmash-core";
1
+ import { deepMerge as d, RedirectPage as t, Layout as r, LoginPage as n, MultiFactorLoginPage as s, ProfilePage as m, Error401Page as p, Error404Page as u, routerRef as c, addViteMenus as l, addDynamicRoute as f, i18n as h } from "jmash-core";
2
2
  import { createRouter as y, createWebHistory as I } from "vue-router";
3
3
  const b = {
4
4
  // 订单账单
@@ -259,6 +259,10 @@ const b = {
259
259
  // 订单管理
260
260
  orderInfo: {
261
261
  name: "订单管理",
262
+ paperInfoName: "订单明细",
263
+ accTradeNo: "交易单号",
264
+ payMode: "支付方式",
265
+ tradeTime: "支付时间",
262
266
  orderCode: "订单号",
263
267
  orderCodeRequired: "请输入订单号",
264
268
  spuName: "报刊名称",
@@ -378,7 +382,7 @@ function g(e) {
378
382
  let i = e.global.getLocaleMessage("en");
379
383
  i = d(i, b), e.global.setLocaleMessage("zh-cn", o), e.global.setLocaleMessage("en", i);
380
384
  }
381
- const R = () => import("./index-jeaiOykS.mjs"), w = () => import("./orderPaper-Bn6SwUD0.mjs"), P = () => import("./orderAddress-CqIRyskd.mjs"), q = () => import("./orderInfo-PLvka9mS.mjs"), D = () => import("./payment-BWhe3mhK.mjs"), N = () => import("./invoice-C6mhD6zX.mjs"), z = () => import("./invoiceView-Cvwqlg-m.mjs"), x = () => import("./applyEdit-CNh3bH5h.mjs"), C = () => import("./invoiceEdit-B-GHm9GY.mjs"), k = () => import("./info-Db-eQyrG.mjs"), t = [
385
+ const R = () => import("./index-jeaiOykS.mjs"), w = () => import("./orderPaper-Bn6SwUD0.mjs"), P = () => import("./orderAddress-CqIRyskd.mjs"), q = () => import("./orderInfo--5Dy6ucl.mjs"), D = () => import("./payment-BWhe3mhK.mjs"), N = () => import("./invoice-C6mhD6zX.mjs"), z = () => import("./invoiceView-Cvwqlg-m.mjs"), x = () => import("./applyEdit-C2PrzKta.mjs"), C = () => import("./invoiceEdit-CyOin4HT.mjs"), k = () => import("./info-JO0c7Ddl.mjs"), a = [
382
386
  {
383
387
  path: "/buyer",
384
388
  component: r,
@@ -468,7 +472,7 @@ const R = () => import("./index-jeaiOykS.mjs"), w = () => import("./orderPaper-B
468
472
  }
469
473
  ]
470
474
  }
471
- ], S = [
475
+ ], T = [
472
476
  {
473
477
  path: "/redirect",
474
478
  component: r,
@@ -476,7 +480,7 @@ const R = () => import("./index-jeaiOykS.mjs"), w = () => import("./orderPaper-B
476
480
  children: [
477
481
  {
478
482
  path: "/redirect/:path(.*)",
479
- component: a
483
+ component: t
480
484
  }
481
485
  ]
482
486
  },
@@ -536,17 +540,17 @@ const R = () => import("./index-jeaiOykS.mjs"), w = () => import("./orderPaper-B
536
540
  }
537
541
  ]
538
542
  },
539
- ...t
540
- ], T = y({
543
+ ...a
544
+ ], S = y({
541
545
  history: I(void 0),
542
- routes: S,
546
+ routes: T,
543
547
  // 刷新时,滚动条位置还原
544
548
  scrollBehavior: () => ({ left: 0, top: 0 })
545
549
  });
546
- c.value = T;
547
- const A = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-CNh3bH5h.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-Cl3sRj1E.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-Db-eQyrG.mjs"), "./views/buyer/order-info/invoice.vue": () => import("./invoice-C6mhD6zX.mjs"), "./views/buyer/order-info/invoiceEdit.vue": () => import("./invoiceEdit-B-GHm9GY.mjs"), "./views/buyer/order-info/invoiceView.vue": () => import("./invoiceView-Cvwqlg-m.mjs"), "./views/buyer/order-info/list.vue": () => import("./list-BlV0irYa.mjs"), "./views/buyer/order-info/sendDialog.vue": () => import("./sendDialog-D50t3cjw.mjs"), "./views/buyer/order-info/userInvoice.vue": () => import("./userInvoice-CDsynyWz.mjs"), "./views/buyer/order-newspaper/confirm.vue": () => import("./confirm-Be02OkOA.mjs"), "./views/buyer/order-newspaper/edit.vue": () => import("./edit-B3vIbXsy.mjs"), "./views/buyer/order-newspaper/index.vue": () => import("./index-jeaiOykS.mjs"), "./views/buyer/order-newspaper/onlineBanking.vue": () => import("./onlineBanking-e57OBfmj.mjs"), "./views/buyer/order-newspaper/orderAddress.vue": () => import("./orderAddress-CqIRyskd.mjs"), "./views/buyer/order-newspaper/orderInfo.vue": () => import("./orderInfo-PLvka9mS.mjs"), "./views/buyer/order-newspaper/orderPaper.vue": () => import("./orderPaper-Bn6SwUD0.mjs"), "./views/buyer/order-newspaper/payment.vue": () => import("./payment-BWhe3mhK.mjs"), "./views/buyer/order-newspaper/prompt.vue": () => import("./prompt-CF5J3V95.mjs"), "./views/buyer/order-user-address/edit.vue": () => import("./edit-1PaZ9XLl.mjs"), "./views/buyer/order-user-address/index.vue": () => import("./index-BuhpHQLA.mjs") }), M = {
550
+ c.value = S;
551
+ const A = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-C2PrzKta.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-CvTXIlZt.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-JO0c7Ddl.mjs"), "./views/buyer/order-info/invoice.vue": () => import("./invoice-C6mhD6zX.mjs"), "./views/buyer/order-info/invoiceEdit.vue": () => import("./invoiceEdit-CyOin4HT.mjs"), "./views/buyer/order-info/invoiceView.vue": () => import("./invoiceView-Cvwqlg-m.mjs"), "./views/buyer/order-info/list.vue": () => import("./list-BlV0irYa.mjs"), "./views/buyer/order-info/sendDialog.vue": () => import("./sendDialog-D50t3cjw.mjs"), "./views/buyer/order-info/userInvoice.vue": () => import("./userInvoice-BGxdy8kb.mjs"), "./views/buyer/order-newspaper/confirm.vue": () => import("./confirm-Be02OkOA.mjs"), "./views/buyer/order-newspaper/edit.vue": () => import("./edit-B3vIbXsy.mjs"), "./views/buyer/order-newspaper/index.vue": () => import("./index-jeaiOykS.mjs"), "./views/buyer/order-newspaper/onlineBanking.vue": () => import("./onlineBanking-e57OBfmj.mjs"), "./views/buyer/order-newspaper/orderAddress.vue": () => import("./orderAddress-CqIRyskd.mjs"), "./views/buyer/order-newspaper/orderInfo.vue": () => import("./orderInfo--5Dy6ucl.mjs"), "./views/buyer/order-newspaper/orderPaper.vue": () => import("./orderPaper-Bn6SwUD0.mjs"), "./views/buyer/order-newspaper/payment.vue": () => import("./payment-BWhe3mhK.mjs"), "./views/buyer/order-newspaper/prompt.vue": () => import("./prompt-CF5J3V95.mjs"), "./views/buyer/order-user-address/edit.vue": () => import("./edit-1PaZ9XLl.mjs"), "./views/buyer/order-user-address/index.vue": () => import("./index-BuhpHQLA.mjs") }), M = {
548
552
  install(e) {
549
- l(A, 7), f(t), g(h);
553
+ l(A, 7), f(a), g(h);
550
554
  }
551
555
  };
552
556
  export {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ne, ref as v, onMounted as re, resolveComponent as a, createElementBlock as ie, openBlock as Q, createVNode as s, withCtx as r, createElementVNode as e, unref as _, toDisplayString as l, createTextVNode as u, createBlock as ae, createCommentVNode as de } from "vue";
2
- import { D as h } from "./index-Knr6dYOL.mjs";
2
+ import { D as h } from "./index-C_9577tG.mjs";
3
3
  import { o as W } from "./index-C-g3Ei_P.mjs";
4
4
  import { fileApi as X, routerUtil as ce } from "jmash-core";
5
5
  import { useRouter as ue, useRoute as me } from "vue-router";
@@ -3,9 +3,9 @@ import { useI18n as W } from "vue-i18n";
3
3
  import "element-plus";
4
4
  import { routerUtil as F } from "jmash-core";
5
5
  import { useRouter as X, useRoute as Y } from "vue-router";
6
- import { D as U } from "./index-Knr6dYOL.mjs";
6
+ import { D as U } from "./index-C_9577tG.mjs";
7
7
  import { l as Z } from "./index-DspCttgG.mjs";
8
- import { _ as ee, u as le } from "./userInvoice.vue_vue_type_script_setup_true_lang-Bzqz4vIJ.mjs";
8
+ import { _ as ee, u as le } from "./userInvoice.vue_vue_type_script_setup_true_lang-_E3C_ACs.mjs";
9
9
  import { E as oe } from "./el-message-VSzNakoG.mjs";
10
10
  import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
11
11
  const ae = { class: "app-container" }, ne = { class: "search-container" }, se = { class: "form-footer" }, re = /* @__PURE__ */ O({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as Ue, ref as _, reactive as h, onMounted as Me, resolveComponent as c, createElementBlock as qe, openBlock as k, createVNode as r, createBlock as D, createCommentVNode as B, withCtx as m, createElementVNode as t, unref as L, toDisplayString as i, createTextVNode as _e } from "vue";
2
2
  import { useI18n as Se } from "vue-i18n";
3
- import { D as he } from "./index-Knr6dYOL.mjs";
3
+ import { D as he } from "./index-C_9577tG.mjs";
4
4
  import { o as ke } from "./index-C-g3Ei_P.mjs";
5
5
  import { fileApi as Pe } from "jmash-core";
6
6
  import { useRoute as Te, useRouter as je } from "vue-router";
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./userInvoice.vue_vue_type_script_setup_true_lang-Bzqz4vIJ.mjs";
1
+ import { _ as f } from "./userInvoice.vue_vue_type_script_setup_true_lang-_E3C_ACs.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,7 +2,7 @@ import { defineComponent as N, mergeModels as Y, ref as G, reactive as y, useMod
2
2
  import { useI18n as A } from "vue-i18n";
3
3
  import { ElMessage as L } from "element-plus";
4
4
  import { useUserStore as $, clearEmpty as q, request as R, validateEmail as K, validatePhoneOrLandline as O, validateIDCard as H } from "jmash-core";
5
- import { C as i, D as J } from "./index-Knr6dYOL.mjs";
5
+ import { C as i, D as J } from "./index-C_9577tG.mjs";
6
6
  class Q {
7
7
  getKey() {
8
8
  }
@@ -7,4 +7,5 @@ export declare class Dict {
7
7
  static readonly invoiceStatusEnum: EnumDict;
8
8
  static readonly goodsCategoryListBizLayDict: GoodsCategoryListBizLayDict;
9
9
  static readonly gmfTypeDict: CustomBizDict;
10
+ static readonly paymentMode: EnumDict;
10
11
  }
package/dts/constant.d.ts CHANGED
@@ -30,4 +30,6 @@ export declare class Constant {
30
30
  key: string;
31
31
  value: string;
32
32
  }[]>;
33
+ static readonly MODULE_ORDER = "order";
34
+ static readonly PAYMENT_MODE = "xyvcard.order.protobuf.PaymentMode";
33
35
  }
@@ -103,6 +103,10 @@ declare const _default: {
103
103
  };
104
104
  orderInfo: {
105
105
  name: string;
106
+ paperInfoName: string;
107
+ accTradeNo: string;
108
+ payMode: string;
109
+ tradeTime: string;
106
110
  orderCode: string;
107
111
  orderCodeRequired: string;
108
112
  spuName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-paper-buyer",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -1,66 +0,0 @@
1
- var o = Object.defineProperty;
2
- var l = (i, r, a) => r in i ? o(i, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : i[r] = a;
3
- var t = (i, r, a) => l(i, typeof r != "symbol" ? r + "" : r, a);
4
- import { ref as y } from "vue";
5
- import { BizLayDict as T, CustomBizDict as E, EnumDict as _ } from "jmash-core";
6
- import { goodsCategoryApi as I } from "xyvcard-paper-goods";
7
- import { EntryDict as P } from "jmash-dict";
8
- class e {
9
- }
10
- //模块
11
- t(e, "PAPER_DICT", "paper"), // 订单状态
12
- t(e, "ENUM_ORDER_STATUS", y([
13
- { key: "unpay", value: "待付款" },
14
- { key: "unpost", value: "订阅成功" }
15
- ])), // 订单状态常量
16
- t(e, "UNPAY", "unpay"), t(e, "UNPOST", "unpost"), // 发票票种
17
- t(e, "LQFP_FPPZ", "Fppz"), // 开票状态
18
- t(e, "INVOICE_STATUS", "xyvcard.order.protobuf.InvoiceStatus"), t(e, "UNINVOICE", "uninvoice"), t(e, "INVOICING", "invoicing"), t(e, "INVOICED", "invoiced"), // 企业
19
- t(e, "GMF_TYPE_ENT", "ent"), // 个人
20
- t(e, "GMF_TYPE_PER", "person"), // 证件类型
21
- t(e, "DICT_TYPE_ID", "TypeID"), // 抬头类型
22
- t(e, "GMF_TYPE_VALUES", y([
23
- { key: "ent", value: "企业" },
24
- { key: "person", value: "个人" }
25
- ]));
26
- function n(i, r, a) {
27
- return !Array.isArray(i) || i.length === 0 ? [] : i.map((s) => {
28
- let p = [];
29
- return Array.isArray(s.children) && s.children.length > 0 && (p = n(s.children, r, a)), {
30
- value: s[a],
31
- label: s[r],
32
- parentId: s.parentId,
33
- children: p
34
- };
35
- });
36
- }
37
- class d extends T {
38
- // 实现 useValues 方法
39
- useValues() {
40
- return new Promise((r, a) => {
41
- I.findTreeListApi(this.query).then((u) => {
42
- const { data: s } = u;
43
- this.values.length = 0, this.values.push(...n(s.results, "label", "value")), r(this.values);
44
- }).catch(a);
45
- });
46
- }
47
- }
48
- class c {
49
- }
50
- // 订单状态
51
- t(c, "orderStatusEnum", new E(
52
- e.ENUM_ORDER_STATUS,
53
- {}
54
- )), // 发票票种
55
- t(c, "fppzDict", new P(e.LQFP_FPPZ)), // 开票状态
56
- t(c, "invoiceStatusEnum", new _(
57
- e.PAPER_DICT,
58
- e.INVOICE_STATUS
59
- )), // 商品分类(发行频率)
60
- t(c, "goodsCategoryListBizLayDict", new d(
61
- {}
62
- )), t(c, "gmfTypeDict", new E(e.GMF_TYPE_VALUES, {}));
63
- export {
64
- e as C,
65
- c as D
66
- };