xyvcard-paper-buyer 0.0.29 → 0.0.31
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.
- package/dist/{applyEdit-BBkGmNz4.mjs → applyEdit-DYinV0av.mjs} +22 -22
- package/dist/assets/3a1c0fd6fbc19dd2.png +0 -0
- package/dist/confirm-BBtbi4mX.mjs +227 -0
- package/dist/{edit-CEqukYUY.mjs → edit-BgQo-uqd.mjs} +24 -24
- package/dist/{edit-CCUAR44E.mjs → edit-DHXk9uMQ.mjs} +84 -84
- package/dist/el-message-VSzNakoG.mjs +1381 -0
- package/dist/{index-CT0KG-ax.mjs → index-1iQKY0yJ.mjs} +512 -494
- package/dist/{index-izvLgG-Q.mjs → index-BCSYWkW7.mjs} +159 -163
- package/dist/{index-oEQVLdND.mjs → index-DISDK9IB.mjs} +1 -1
- package/dist/index-Dph_ktOL.mjs +9456 -0
- package/dist/{index-3POeZkeU.mjs → index-ky8hEDAn.mjs} +35 -35
- package/dist/index-sU6sAHrn.mjs +35 -0
- package/dist/index.mjs +56 -30
- package/dist/info-B4ow2tzV.mjs +194 -0
- package/dist/{invoiceEdit-CezFMQuV.mjs → invoiceEdit-CILq1n3W.mjs} +18 -18
- package/dist/{invoiceView-CQ8xpAcH.mjs → invoiceView-ClfMLUV3.mjs} +37 -37
- package/dist/onlineBanking-oV-IPpiL.mjs +206 -0
- package/dist/{orderAddress-BkCadi1G.mjs → orderAddress-CKllpjjU.mjs} +79 -76
- package/dist/orderInfo-BVT4H9ew.mjs +309 -0
- package/dist/{orderPaper-DfDpfRek.mjs → orderPaper-DpSTDYX4.mjs} +35 -37
- package/dist/{payment-CaWj9re7.mjs → payment-BkxF9Q0m.mjs} +14 -14
- package/dist/prompt-CsoFkmiu.mjs +76 -0
- package/dist/style.css +1 -1
- package/dts/api/buyer/order-newspaper/index.d.ts +8 -1
- package/dts/api/buyer/order-newspaper/types.d.ts +32 -0
- package/dts/lang/order/zh-cn.d.ts +17 -0
- package/dts/router/index.d.ts +2 -1
- package/dts/utils/index.d.ts +1 -0
- package/dts/utils/signature.d.ts +7 -0
- package/dts/views/buyer/order-newspaper/confirm.vue.d.ts +39 -0
- package/dts/views/buyer/order-newspaper/onlineBanking.vue.d.ts +43 -0
- package/dts/views/buyer/order-newspaper/orderInfo.vue.d.ts +2 -0
- package/dts/views/buyer/order-newspaper/prompt.vue.d.ts +45 -0
- package/package.json +2 -2
- package/dist/el-message-D5NtBelf.mjs +0 -1229
- package/dist/index-C8xOGCSg.mjs +0 -73
- package/dist/index-DOOUDqve.mjs +0 -110
- package/dist/info-BpCTqM6V.mjs +0 -189
- package/dist/payment copy-CyZWiAyq.mjs +0 -69
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as S, mergeModels as
|
|
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
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { o as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
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__ */
|
|
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__ */
|
|
20
|
-
setup(
|
|
21
|
-
const { t:
|
|
22
|
-
let
|
|
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,
|
|
27
|
-
|
|
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:
|
|
32
|
+
message: u("orderUserAddress.noteRequired"),
|
|
33
33
|
trigger: "change"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
userName: [
|
|
37
37
|
{
|
|
38
38
|
required: !0,
|
|
39
|
-
message:
|
|
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:
|
|
53
|
+
message: u("orderUserAddress.detailInfoRequired"),
|
|
54
54
|
trigger: "change"
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
57
|
provinceName: [
|
|
58
58
|
{
|
|
59
59
|
required: !0,
|
|
60
|
-
message:
|
|
60
|
+
message: u("orderUserAddress.provinceNameRequired"),
|
|
61
61
|
trigger: "change"
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
|
-
}),
|
|
65
|
-
_.value &&
|
|
66
|
-
Object.assign(
|
|
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
|
-
|
|
70
|
-
|
|
69
|
+
t.provinceName && B(t.provinceName).then((e) => {
|
|
70
|
+
t.cityName = e;
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const c = f(/* @__PURE__ */ new Map());
|
|
74
74
|
async function B(e) {
|
|
75
75
|
if (!e)
|
|
76
76
|
return "";
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
77
|
+
if (c.value.has(e))
|
|
78
|
+
return c.value.get(e) || e;
|
|
79
79
|
try {
|
|
80
|
-
const
|
|
80
|
+
const r = await G.findByCode({
|
|
81
81
|
regionCode: e
|
|
82
82
|
});
|
|
83
|
-
if (
|
|
84
|
-
const
|
|
85
|
-
return
|
|
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
|
|
89
|
-
return
|
|
88
|
+
} catch {
|
|
89
|
+
return c.value.set(e, e), e;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
function F(e) {
|
|
93
|
-
const
|
|
94
|
-
function
|
|
95
|
-
s && s.regionName &&
|
|
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
|
|
97
|
+
return o(e), r.join("");
|
|
98
98
|
}
|
|
99
99
|
const j = async () => {
|
|
100
100
|
var e;
|
|
101
|
-
await ((e =
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
message:
|
|
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
|
-
}),
|
|
107
|
-
}) :
|
|
108
|
-
|
|
109
|
-
message:
|
|
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
|
-
}),
|
|
111
|
+
}), i.value && (i.value = !1), N("refresh", o.status === 200));
|
|
112
112
|
}));
|
|
113
113
|
}));
|
|
114
114
|
};
|
|
115
115
|
function V() {
|
|
116
|
-
|
|
116
|
+
i.value && (i.value = !1);
|
|
117
117
|
}
|
|
118
|
-
return (e,
|
|
119
|
-
const
|
|
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:
|
|
122
|
-
"onUpdate:modelValue":
|
|
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",
|
|
127
|
-
|
|
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
|
-
|
|
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
|
-
|
|
145
|
+
l(K, {
|
|
146
146
|
ref_key: "orderUserAddressFormRef",
|
|
147
|
-
ref:
|
|
148
|
-
model: d(
|
|
147
|
+
ref: g,
|
|
148
|
+
model: d(t),
|
|
149
149
|
"label-position": "top",
|
|
150
150
|
rules: P
|
|
151
151
|
}, {
|
|
152
152
|
default: a(() => [
|
|
153
|
-
|
|
153
|
+
l(E, { gutter: 20 }, {
|
|
154
154
|
default: a(() => [
|
|
155
|
-
|
|
155
|
+
l(p, { span: 24 }, {
|
|
156
156
|
default: a(() => [
|
|
157
|
-
|
|
157
|
+
l(s, {
|
|
158
158
|
label: e.$t("orderUserAddress.note"),
|
|
159
159
|
prop: "note"
|
|
160
160
|
}, {
|
|
161
161
|
default: a(() => [
|
|
162
|
-
|
|
163
|
-
modelValue: d(
|
|
164
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
175
|
+
l(p, { span: 24 }, {
|
|
176
176
|
default: a(() => [
|
|
177
|
-
|
|
177
|
+
l(s, {
|
|
178
178
|
label: e.$t("orderUserAddress.userName"),
|
|
179
179
|
prop: "userName"
|
|
180
180
|
}, {
|
|
181
181
|
default: a(() => [
|
|
182
|
-
|
|
183
|
-
modelValue: d(
|
|
184
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
195
|
+
l(p, { span: 24 }, {
|
|
196
196
|
default: a(() => [
|
|
197
|
-
|
|
197
|
+
l(s, {
|
|
198
198
|
label: e.$t("orderUserAddress.mobilePhone"),
|
|
199
199
|
prop: "mobilePhone"
|
|
200
200
|
}, {
|
|
201
201
|
default: a(() => [
|
|
202
|
-
|
|
203
|
-
modelValue: d(
|
|
204
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
215
|
+
l(p, { span: 24 }, {
|
|
216
216
|
default: a(() => [
|
|
217
|
-
|
|
217
|
+
l(s, {
|
|
218
218
|
prop: "provinceName",
|
|
219
|
-
label: d(
|
|
219
|
+
label: d(u)("orderUserAddress.detailInfo"),
|
|
220
220
|
class: "form-item"
|
|
221
221
|
}, {
|
|
222
222
|
default: a(() => [
|
|
223
|
-
|
|
224
|
-
modelValue: d(
|
|
225
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
236
|
+
l(p, { span: 24 }, {
|
|
237
237
|
default: a(() => [
|
|
238
|
-
|
|
238
|
+
l(s, { prop: "detailInfo" }, {
|
|
239
239
|
default: a(() => [
|
|
240
|
-
|
|
241
|
-
modelValue: d(
|
|
242
|
-
"onUpdate:modelValue":
|
|
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
|
-
}),
|
|
265
|
+
}), oe = /* @__PURE__ */ L(W, [["__scopeId", "data-v-cbbeb2ba"]]);
|
|
266
266
|
export {
|
|
267
|
-
|
|
267
|
+
oe as default
|
|
268
268
|
};
|