xyvcard-paper-buyer 0.0.29 → 0.0.30

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 (39) hide show
  1. package/dist/{applyEdit-BBkGmNz4.mjs → applyEdit-DYinV0av.mjs} +22 -22
  2. package/dist/assets/3a1c0fd6fbc19dd2.png +0 -0
  3. package/dist/confirm-B5tQ5VMT.mjs +178 -0
  4. package/dist/{edit-CEqukYUY.mjs → edit-BgQo-uqd.mjs} +24 -24
  5. package/dist/{edit-CCUAR44E.mjs → edit-DHXk9uMQ.mjs} +84 -84
  6. package/dist/el-message-VSzNakoG.mjs +1381 -0
  7. package/dist/{index-CT0KG-ax.mjs → index-1iQKY0yJ.mjs} +512 -494
  8. package/dist/{index-izvLgG-Q.mjs → index-BCSYWkW7.mjs} +159 -163
  9. package/dist/{index-oEQVLdND.mjs → index-DISDK9IB.mjs} +1 -1
  10. package/dist/index-Dph_ktOL.mjs +9456 -0
  11. package/dist/{index-3POeZkeU.mjs → index-ky8hEDAn.mjs} +35 -35
  12. package/dist/index-sU6sAHrn.mjs +35 -0
  13. package/dist/index.mjs +52 -30
  14. package/dist/info-B4ow2tzV.mjs +194 -0
  15. package/dist/{invoiceEdit-CezFMQuV.mjs → invoiceEdit-CILq1n3W.mjs} +18 -18
  16. package/dist/{invoiceView-CQ8xpAcH.mjs → invoiceView-ClfMLUV3.mjs} +37 -37
  17. package/dist/onlineBanking--2OAMgrT.mjs +204 -0
  18. package/dist/{orderAddress-BkCadi1G.mjs → orderAddress-CKllpjjU.mjs} +79 -76
  19. package/dist/orderInfo-Cl2DftVh.mjs +309 -0
  20. package/dist/{orderPaper-DfDpfRek.mjs → orderPaper-DpSTDYX4.mjs} +35 -37
  21. package/dist/{payment-CaWj9re7.mjs → payment-BkxF9Q0m.mjs} +14 -14
  22. package/dist/prompt-CsoFkmiu.mjs +76 -0
  23. package/dist/style.css +1 -1
  24. package/dts/api/buyer/order-newspaper/index.d.ts +8 -1
  25. package/dts/api/buyer/order-newspaper/types.d.ts +30 -0
  26. package/dts/lang/order/zh-cn.d.ts +13 -0
  27. package/dts/router/index.d.ts +2 -1
  28. package/dts/utils/index.d.ts +1 -0
  29. package/dts/utils/signature.d.ts +7 -0
  30. package/dts/views/buyer/order-newspaper/confirm.vue.d.ts +39 -0
  31. package/dts/views/buyer/order-newspaper/onlineBanking.vue.d.ts +43 -0
  32. package/dts/views/buyer/order-newspaper/orderInfo.vue.d.ts +2 -0
  33. package/dts/views/buyer/order-newspaper/prompt.vue.d.ts +45 -0
  34. package/package.json +1 -1
  35. package/dist/el-message-D5NtBelf.mjs +0 -1229
  36. package/dist/index-C8xOGCSg.mjs +0 -73
  37. package/dist/index-DOOUDqve.mjs +0 -110
  38. package/dist/info-BpCTqM6V.mjs +0 -189
  39. package/dist/payment copy-CyZWiAyq.mjs +0 -69
@@ -1,12 +1,12 @@
1
- import { defineComponent as S, mergeModels as U, ref as f, reactive as A, useModel as T, resolveComponent as m, createBlock as D, openBlock as J, withCtx as a, createVNode as t, unref as d, createElementVNode as z, createTextVNode as q, toDisplayString as R } from "vue";
1
+ import { defineComponent as S, mergeModels as y, ref as f, reactive as A, useModel as T, resolveComponent as m, createBlock as D, openBlock as J, withCtx as a, createVNode as l, unref as d, createElementVNode as z, createTextVNode as q, toDisplayString as R } from "vue";
2
2
  import { ElMessage as w } from "element-plus";
3
- import { JmashRegionTree as G, dictRegionApi as H } from "jmash-region";
4
- import { useI18n as L } from "vue-i18n";
5
- import { o as g } from "./index-BP8zUjOw.mjs";
6
- import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
3
+ import { JmashRegionTree as C, dictRegionApi as G } from "jmash-region";
4
+ import { useI18n as H } from "vue-i18n";
5
+ import { o as h } from "./index-BP8zUjOw.mjs";
6
+ import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const Q = { class: "dialog-footer" }, W = /* @__PURE__ */ S({
8
8
  __name: "edit",
9
- props: /* @__PURE__ */ U({
9
+ props: /* @__PURE__ */ y({
10
10
  entityKey: {
11
11
  type: Object,
12
12
  default: () => {
@@ -16,27 +16,27 @@ const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
16
16
  modelValue: { type: Boolean },
17
17
  modelModifiers: {}
18
18
  }),
19
- emits: /* @__PURE__ */ U(["refresh"], ["update:modelValue"]),
20
- setup(h, { emit: I }) {
21
- const { t: i } = L(), b = f();
22
- let l = A({
19
+ emits: /* @__PURE__ */ y(["refresh"], ["update:modelValue"]),
20
+ setup(b, { emit: I }) {
21
+ const { t: u } = H(), g = f();
22
+ let t = A({
23
23
  requestId: Math.random() * 10 + "",
24
24
  updateMask: "note,userName,mobilePhone,provinceName,detailInfo"
25
25
  });
26
- const $ = (e, o, r) => {
27
- o && !/^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(o) ? r(new Error(i("orderUserAddress.mobilePhoneTrueRequired"))) : r();
26
+ const $ = (e, r, o) => {
27
+ r && !/^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(r) ? o(new Error(u("orderUserAddress.mobilePhoneTrueRequired"))) : o();
28
28
  }, P = A({
29
29
  note: [
30
30
  {
31
31
  required: !0,
32
- message: i("orderUserAddress.noteRequired"),
32
+ message: u("orderUserAddress.noteRequired"),
33
33
  trigger: "change"
34
34
  }
35
35
  ],
36
36
  userName: [
37
37
  {
38
38
  required: !0,
39
- message: i("orderUserAddress.userNameRequired"),
39
+ message: u("orderUserAddress.userNameRequired"),
40
40
  trigger: "change"
41
41
  }
42
42
  ],
@@ -50,87 +50,87 @@ const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
50
50
  detailInfo: [
51
51
  {
52
52
  required: !0,
53
- message: i("orderUserAddress.detailInfoRequired"),
53
+ message: u("orderUserAddress.detailInfoRequired"),
54
54
  trigger: "change"
55
55
  }
56
56
  ],
57
57
  provinceName: [
58
58
  {
59
59
  required: !0,
60
- message: i("orderUserAddress.provinceNameRequired"),
60
+ message: u("orderUserAddress.provinceNameRequired"),
61
61
  trigger: "change"
62
62
  }
63
63
  ]
64
- }), u = T(h, "modelValue"), v = h, N = I, M = Object.keys(v.entityKey), _ = f(M.length >= 1);
65
- _.value && g.findById(v.entityKey).then(({ data: e }) => {
66
- Object.assign(l, e);
64
+ }), i = T(b, "modelValue"), v = b, N = I, M = Object.keys(v.entityKey), _ = f(M.length >= 1);
65
+ _.value && h.findById(v.entityKey).then(({ data: e }) => {
66
+ Object.assign(t, e);
67
67
  });
68
68
  function k() {
69
- console.log(l.provinceName), l.provinceName && B(l.provinceName).then((e) => {
70
- l.cityName = e, console.log("赋值后的完整地区名称11111:", l.cityName);
69
+ t.provinceName && B(t.provinceName).then((e) => {
70
+ t.cityName = e;
71
71
  });
72
72
  }
73
- const p = f(/* @__PURE__ */ new Map());
73
+ const c = f(/* @__PURE__ */ new Map());
74
74
  async function B(e) {
75
75
  if (!e)
76
76
  return "";
77
- if (p.value.has(e))
78
- return p.value.get(e) || e;
77
+ if (c.value.has(e))
78
+ return c.value.get(e) || e;
79
79
  try {
80
- const o = await H.findByCode({
80
+ const r = await G.findByCode({
81
81
  regionCode: e
82
82
  });
83
- if (o.data) {
84
- const r = F(o.data);
85
- return p.value.set(e, r), console.log("赋值后的完整地区名称:", r), r;
83
+ if (r.data) {
84
+ const o = F(r.data);
85
+ return c.value.set(e, o), o;
86
86
  }
87
87
  return e;
88
- } catch (o) {
89
- return console.error(`获取地区编码 ${e} 的信息失败:`, o), p.value.set(e, e), e;
88
+ } catch {
89
+ return c.value.set(e, e), e;
90
90
  }
91
91
  }
92
92
  function F(e) {
93
- const o = [];
94
- function r(s) {
95
- s && s.regionName && o.push(s.regionName), s && s.children && s.children.length > 0 && r(s.children[0]);
93
+ const r = [];
94
+ function o(s) {
95
+ s && s.regionName && r.push(s.regionName), s && s.children && s.children.length > 0 && o(s.children[0]);
96
96
  }
97
- return r(e), o.join("");
97
+ return o(e), r.join("");
98
98
  }
99
99
  const j = async () => {
100
100
  var e;
101
- await ((e = b.value) == null ? void 0 : e.validate((o) => {
102
- o && (_.value ? g.update(l).then((r) => {
103
- console.log(r), r.status === 200 && (w({
104
- message: i("common.submitSuccess"),
101
+ await ((e = g.value) == null ? void 0 : e.validate((r) => {
102
+ r && (_.value ? h.update(t).then((o) => {
103
+ o.status === 200 && (w({
104
+ message: u("common.submitSuccess"),
105
105
  type: "success"
106
- }), u.value && (u.value = !1), N("refresh", r.status === 200));
107
- }) : g.create(l).then((r) => {
108
- console.log(r), r.status === 200 && (w({
109
- message: i("common.submitSuccess"),
106
+ }), i.value && (i.value = !1), N("refresh", o.status === 200));
107
+ }) : h.create(t).then((o) => {
108
+ o.status === 200 && (w({
109
+ message: u("common.submitSuccess"),
110
110
  type: "success"
111
- }), u.value && (u.value = !1), N("refresh", r.status === 200));
111
+ }), i.value && (i.value = !1), N("refresh", o.status === 200));
112
112
  }));
113
113
  }));
114
114
  };
115
115
  function V() {
116
- u.value && (u.value = !1);
116
+ i.value && (i.value = !1);
117
117
  }
118
- return (e, o) => {
119
- const r = m("el-input"), s = m("el-form-item"), c = m("el-col"), E = m("el-row"), K = m("el-form"), y = m("el-button"), O = m("el-dialog");
118
+ return (e, r) => {
119
+ const o = m("el-input"), s = m("el-form-item"), p = m("el-col"), E = m("el-row"), K = m("el-form"), U = m("el-button"), O = m("el-dialog");
120
120
  return J(), D(O, {
121
- modelValue: u.value,
122
- "onUpdate:modelValue": o[5] || (o[5] = (n) => u.value = n),
121
+ modelValue: i.value,
122
+ "onUpdate:modelValue": r[5] || (r[5] = (n) => i.value = n),
123
123
  onClose: V
124
124
  }, {
125
125
  footer: a(() => [
126
- z("div", W, [
127
- t(y, { onClick: V }, {
126
+ z("div", Q, [
127
+ l(U, { onClick: V }, {
128
128
  default: a(() => [
129
129
  q(R(e.$t("common.cancel")), 1)
130
130
  ]),
131
131
  _: 1
132
132
  }),
133
- t(y, {
133
+ l(U, {
134
134
  type: "primary",
135
135
  onClick: j
136
136
  }, {
@@ -142,26 +142,26 @@ const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
142
142
  ])
143
143
  ]),
144
144
  default: a(() => [
145
- t(K, {
145
+ l(K, {
146
146
  ref_key: "orderUserAddressFormRef",
147
- ref: b,
148
- model: d(l),
147
+ ref: g,
148
+ model: d(t),
149
149
  "label-position": "top",
150
150
  rules: P
151
151
  }, {
152
152
  default: a(() => [
153
- t(E, { gutter: 20 }, {
153
+ l(E, { gutter: 20 }, {
154
154
  default: a(() => [
155
- t(c, { span: 24 }, {
155
+ l(p, { span: 24 }, {
156
156
  default: a(() => [
157
- t(s, {
157
+ l(s, {
158
158
  label: e.$t("orderUserAddress.note"),
159
159
  prop: "note"
160
160
  }, {
161
161
  default: a(() => [
162
- t(r, {
163
- modelValue: d(l).note,
164
- "onUpdate:modelValue": o[0] || (o[0] = (n) => d(l).note = n),
162
+ l(o, {
163
+ modelValue: d(t).note,
164
+ "onUpdate:modelValue": r[0] || (r[0] = (n) => d(t).note = n),
165
165
  placeholder: e.$t("orderUserAddress.noteRequired"),
166
166
  "show-word-limit": "",
167
167
  clearable: ""
@@ -172,16 +172,16 @@ const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
172
172
  ]),
173
173
  _: 1
174
174
  }),
175
- t(c, { span: 24 }, {
175
+ l(p, { span: 24 }, {
176
176
  default: a(() => [
177
- t(s, {
177
+ l(s, {
178
178
  label: e.$t("orderUserAddress.userName"),
179
179
  prop: "userName"
180
180
  }, {
181
181
  default: a(() => [
182
- t(r, {
183
- modelValue: d(l).userName,
184
- "onUpdate:modelValue": o[1] || (o[1] = (n) => d(l).userName = n),
182
+ l(o, {
183
+ modelValue: d(t).userName,
184
+ "onUpdate:modelValue": r[1] || (r[1] = (n) => d(t).userName = n),
185
185
  placeholder: e.$t("orderUserAddress.userNameRequired"),
186
186
  "show-word-limit": "",
187
187
  clearable: ""
@@ -192,16 +192,16 @@ const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
192
192
  ]),
193
193
  _: 1
194
194
  }),
195
- t(c, { span: 24 }, {
195
+ l(p, { span: 24 }, {
196
196
  default: a(() => [
197
- t(s, {
197
+ l(s, {
198
198
  label: e.$t("orderUserAddress.mobilePhone"),
199
199
  prop: "mobilePhone"
200
200
  }, {
201
201
  default: a(() => [
202
- t(r, {
203
- modelValue: d(l).mobilePhone,
204
- "onUpdate:modelValue": o[2] || (o[2] = (n) => d(l).mobilePhone = n),
202
+ l(o, {
203
+ modelValue: d(t).mobilePhone,
204
+ "onUpdate:modelValue": r[2] || (r[2] = (n) => d(t).mobilePhone = n),
205
205
  placeholder: e.$t("orderUserAddress.mobilePhoneRequired"),
206
206
  "show-word-limit": "",
207
207
  clearable: ""
@@ -212,17 +212,17 @@ const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
212
212
  ]),
213
213
  _: 1
214
214
  }),
215
- t(c, { span: 24 }, {
215
+ l(p, { span: 24 }, {
216
216
  default: a(() => [
217
- t(s, {
217
+ l(s, {
218
218
  prop: "provinceName",
219
- label: d(i)("orderUserAddress.detailInfo"),
219
+ label: d(u)("orderUserAddress.detailInfo"),
220
220
  class: "form-item"
221
221
  }, {
222
222
  default: a(() => [
223
- t(d(G), {
224
- modelValue: d(l).provinceName,
225
- "onUpdate:modelValue": o[3] || (o[3] = (n) => d(l).provinceName = n),
223
+ l(d(C), {
224
+ modelValue: d(t).provinceName,
225
+ "onUpdate:modelValue": r[3] || (r[3] = (n) => d(t).provinceName = n),
226
226
  placeholder: e.$t("orderUserAddress.provinceNameRequired"),
227
227
  clearable: "",
228
228
  onChange: k
@@ -233,13 +233,13 @@ const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
233
233
  ]),
234
234
  _: 1
235
235
  }),
236
- t(c, { span: 24 }, {
236
+ l(p, { span: 24 }, {
237
237
  default: a(() => [
238
- t(s, { prop: "detailInfo" }, {
238
+ l(s, { prop: "detailInfo" }, {
239
239
  default: a(() => [
240
- t(r, {
241
- modelValue: d(l).detailInfo,
242
- "onUpdate:modelValue": o[4] || (o[4] = (n) => d(l).detailInfo = n),
240
+ l(o, {
241
+ modelValue: d(t).detailInfo,
242
+ "onUpdate:modelValue": r[4] || (r[4] = (n) => d(t).detailInfo = n),
243
243
  placeholder: e.$t("orderUserAddress.detailInfoRequired"),
244
244
  "show-word-limit": "",
245
245
  clearable: "",
@@ -262,7 +262,7 @@ const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
262
262
  }, 8, ["modelValue"]);
263
263
  };
264
264
  }
265
- }), re = /* @__PURE__ */ Q(X, [["__scopeId", "data-v-1dc0babb"]]);
265
+ }), oe = /* @__PURE__ */ L(W, [["__scopeId", "data-v-cbbeb2ba"]]);
266
266
  export {
267
- re as default
267
+ oe as default
268
268
  };