xyvcard-paper-buyer 0.0.42 → 0.0.43
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-PZxjIdlm.mjs → applyEdit-DzxmV4oI.mjs} +2 -2
- package/dist/{edit--iYDGPN6.mjs → edit-DwsTiwF8.mjs} +48 -48
- package/dist/{edit-DxbJEXn-.mjs → edit-Omp_CxC3.mjs} +50 -50
- package/dist/{index-CUfcoWMj.mjs → index-BPKQNnjE.mjs} +30 -35
- package/dist/{index-BRBqB4uC.mjs → index-C18T6VjZ.mjs} +15 -26
- package/dist/{index-C_O5LkoO.mjs → index-MoEV6c7S.mjs} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{info-yQ5o6UTa.mjs → info-CSgoyt6A.mjs} +65 -74
- package/dist/{invoiceEdit-BPyK5oBD.mjs → invoiceEdit-D3qEYbNL.mjs} +2 -2
- package/dist/{orderAddress-BXu0z9LD.mjs → orderAddress-BXFhutnA.mjs} +96 -85
- package/dist/{orderInfo-CxDN2Vgs.mjs → orderInfo-BP5ei-W0.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{userInvoice-ByXwccaa.mjs → userInvoice-CZ7yW4I6.mjs} +1 -1
- package/dist/{userInvoice.vue_vue_type_script_setup_true_lang-BaWmhSHl.mjs → userInvoice.vue_vue_type_script_setup_true_lang-D-3fXoBu.mjs} +1 -1
- package/dts/api/buyer/index.d.ts +0 -1
- package/dts/constant.d.ts +0 -1
- package/package.json +2 -2
|
@@ -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-
|
|
7
|
-
import { _ as X, u as Y } from "./userInvoice.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { D as U } from "./index-BPKQNnjE.mjs";
|
|
7
|
+
import { _ as X, u as Y } from "./userInvoice.vue_vue_type_script_setup_true_lang-D-3fXoBu.mjs";
|
|
8
8
|
import { o as Z } from "./index-BKZPqxLM.mjs";
|
|
9
9
|
import { E as x } from "./el-message-VSzNakoG.mjs";
|
|
10
10
|
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as S, mergeModels as y, ref as
|
|
1
|
+
import { defineComponent as S, mergeModels as y, ref as c, 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 L, createTextVNode as R, toDisplayString as q } from "vue";
|
|
2
2
|
import { ElMessage as w } from "element-plus";
|
|
3
|
-
import { JmashRegionTree as
|
|
4
|
-
import { useI18n as
|
|
3
|
+
import { JmashRegionTree as z, dictRegionApi as C } from "jmash-region";
|
|
4
|
+
import { useI18n as G } from "vue-i18n";
|
|
5
5
|
import { o as h } from "./index-BP8zUjOw.mjs";
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import { validatePhoneOrLandline as H } from "jmash-core";
|
|
7
|
+
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
|
+
const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
|
|
8
9
|
__name: "edit",
|
|
9
10
|
props: /* @__PURE__ */ y({
|
|
10
11
|
entityKey: {
|
|
@@ -17,52 +18,51 @@ const Q = { class: "dialog-footer" }, W = /* @__PURE__ */ S({
|
|
|
17
18
|
modelModifiers: {}
|
|
18
19
|
}),
|
|
19
20
|
emits: /* @__PURE__ */ y(["refresh"], ["update:modelValue"]),
|
|
20
|
-
setup(
|
|
21
|
-
const { t:
|
|
21
|
+
setup(g, { emit: I }) {
|
|
22
|
+
const { t: i } = G(), v = c();
|
|
22
23
|
let t = A({
|
|
23
24
|
requestId: Math.random() * 10 + "",
|
|
24
25
|
updateMask: "note,userName,mobilePhone,provinceName,detailInfo"
|
|
25
26
|
});
|
|
26
|
-
const
|
|
27
|
-
r &&
|
|
28
|
-
},
|
|
27
|
+
const P = (e, r, o) => {
|
|
28
|
+
r && (H(r) || o(new Error(i("orderUserAddress.mobilePhoneTrueRequired")))), o();
|
|
29
|
+
}, $ = A({
|
|
29
30
|
note: [
|
|
30
31
|
{
|
|
31
32
|
required: !0,
|
|
32
|
-
message:
|
|
33
|
+
message: i("orderUserAddress.noteRequired"),
|
|
33
34
|
trigger: "change"
|
|
34
35
|
}
|
|
35
36
|
],
|
|
36
37
|
userName: [
|
|
37
38
|
{
|
|
38
39
|
required: !0,
|
|
39
|
-
message:
|
|
40
|
+
message: i("orderUserAddress.userNameRequired"),
|
|
40
41
|
trigger: "change"
|
|
41
42
|
}
|
|
42
43
|
],
|
|
43
44
|
mobilePhone: [
|
|
44
45
|
{
|
|
45
|
-
|
|
46
|
-
validator: $,
|
|
46
|
+
validator: P,
|
|
47
47
|
trigger: "blur"
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
detailInfo: [
|
|
51
51
|
{
|
|
52
52
|
required: !0,
|
|
53
|
-
message:
|
|
53
|
+
message: i("orderUserAddress.detailInfoRequired"),
|
|
54
54
|
trigger: "change"
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
57
|
provinceName: [
|
|
58
58
|
{
|
|
59
59
|
required: !0,
|
|
60
|
-
message:
|
|
60
|
+
message: i("orderUserAddress.provinceNameRequired"),
|
|
61
61
|
trigger: "change"
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
|
-
}),
|
|
65
|
-
_.value && h.findById(
|
|
64
|
+
}), u = T(g, "modelValue"), b = g, N = I, M = Object.keys(b.entityKey), _ = c(M.length >= 1);
|
|
65
|
+
_.value && h.findById(b.entityKey).then(({ data: e }) => {
|
|
66
66
|
Object.assign(t, e);
|
|
67
67
|
});
|
|
68
68
|
function k() {
|
|
@@ -70,23 +70,23 @@ const Q = { class: "dialog-footer" }, W = /* @__PURE__ */ S({
|
|
|
70
70
|
t.cityName = e;
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const f = c(/* @__PURE__ */ new Map());
|
|
74
74
|
async function B(e) {
|
|
75
75
|
if (!e)
|
|
76
76
|
return "";
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
77
|
+
if (f.value.has(e))
|
|
78
|
+
return f.value.get(e) || e;
|
|
79
79
|
try {
|
|
80
|
-
const r = await
|
|
80
|
+
const r = await C.findByCode({
|
|
81
81
|
regionCode: e
|
|
82
82
|
});
|
|
83
83
|
if (r.data) {
|
|
84
84
|
const o = F(r.data);
|
|
85
|
-
return
|
|
85
|
+
return f.value.set(e, o), o;
|
|
86
86
|
}
|
|
87
87
|
return e;
|
|
88
88
|
} catch {
|
|
89
|
-
return
|
|
89
|
+
return f.value.set(e, e), e;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
function F(e) {
|
|
@@ -98,56 +98,56 @@ const Q = { class: "dialog-footer" }, W = /* @__PURE__ */ S({
|
|
|
98
98
|
}
|
|
99
99
|
const j = async () => {
|
|
100
100
|
var e;
|
|
101
|
-
await ((e =
|
|
101
|
+
await ((e = v.value) == null ? void 0 : e.validate((r) => {
|
|
102
102
|
r && (_.value ? h.update(t).then((o) => {
|
|
103
103
|
o.status === 200 && (w({
|
|
104
|
-
message:
|
|
104
|
+
message: i("common.submitSuccess"),
|
|
105
105
|
type: "success"
|
|
106
|
-
}),
|
|
106
|
+
}), u.value && (u.value = !1), N("refresh", o.status === 200));
|
|
107
107
|
}) : h.create(t).then((o) => {
|
|
108
108
|
o.status === 200 && (w({
|
|
109
|
-
message:
|
|
109
|
+
message: i("common.submitSuccess"),
|
|
110
110
|
type: "success"
|
|
111
|
-
}),
|
|
111
|
+
}), u.value && (u.value = !1), N("refresh", o.status === 200));
|
|
112
112
|
}));
|
|
113
113
|
}));
|
|
114
114
|
};
|
|
115
|
-
function
|
|
116
|
-
|
|
115
|
+
function U() {
|
|
116
|
+
u.value && (u.value = !1);
|
|
117
117
|
}
|
|
118
118
|
return (e, r) => {
|
|
119
|
-
const o = m("el-input"), s = m("el-form-item"), p = m("el-col"), E = m("el-row"),
|
|
120
|
-
return J(), D(
|
|
121
|
-
modelValue:
|
|
122
|
-
"onUpdate:modelValue": r[5] || (r[5] = (n) =>
|
|
123
|
-
onClose:
|
|
119
|
+
const o = m("el-input"), s = m("el-form-item"), p = m("el-col"), E = m("el-row"), O = m("el-form"), V = m("el-button"), K = m("el-dialog");
|
|
120
|
+
return J(), D(K, {
|
|
121
|
+
modelValue: u.value,
|
|
122
|
+
"onUpdate:modelValue": r[5] || (r[5] = (n) => u.value = n),
|
|
123
|
+
onClose: U
|
|
124
124
|
}, {
|
|
125
125
|
footer: a(() => [
|
|
126
|
-
|
|
127
|
-
l(
|
|
126
|
+
L("div", W, [
|
|
127
|
+
l(V, { onClick: U }, {
|
|
128
128
|
default: a(() => [
|
|
129
|
-
q(
|
|
129
|
+
R(q(e.$t("common.cancel")), 1)
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
132
|
}),
|
|
133
|
-
l(
|
|
133
|
+
l(V, {
|
|
134
134
|
type: "primary",
|
|
135
135
|
onClick: j
|
|
136
136
|
}, {
|
|
137
137
|
default: a(() => [
|
|
138
|
-
q(
|
|
138
|
+
R(q(e.$t("common.confirm")), 1)
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
})
|
|
142
142
|
])
|
|
143
143
|
]),
|
|
144
144
|
default: a(() => [
|
|
145
|
-
l(
|
|
145
|
+
l(O, {
|
|
146
146
|
ref_key: "orderUserAddressFormRef",
|
|
147
|
-
ref:
|
|
147
|
+
ref: v,
|
|
148
148
|
model: d(t),
|
|
149
149
|
"label-position": "top",
|
|
150
|
-
rules:
|
|
150
|
+
rules: $
|
|
151
151
|
}, {
|
|
152
152
|
default: a(() => [
|
|
153
153
|
l(E, { gutter: 20 }, {
|
|
@@ -216,11 +216,11 @@ const Q = { class: "dialog-footer" }, W = /* @__PURE__ */ S({
|
|
|
216
216
|
default: a(() => [
|
|
217
217
|
l(s, {
|
|
218
218
|
prop: "provinceName",
|
|
219
|
-
label: d(
|
|
219
|
+
label: d(i)("orderUserAddress.detailInfo"),
|
|
220
220
|
class: "form-item"
|
|
221
221
|
}, {
|
|
222
222
|
default: a(() => [
|
|
223
|
-
l(d(
|
|
223
|
+
l(d(z), {
|
|
224
224
|
modelValue: d(t).provinceName,
|
|
225
225
|
"onUpdate:modelValue": r[3] || (r[3] = (n) => d(t).provinceName = n),
|
|
226
226
|
placeholder: e.$t("orderUserAddress.provinceNameRequired"),
|
|
@@ -262,7 +262,7 @@ const Q = { class: "dialog-footer" }, W = /* @__PURE__ */ S({
|
|
|
262
262
|
}, 8, ["modelValue"]);
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
|
-
}),
|
|
265
|
+
}), te = /* @__PURE__ */ Q(X, [["__scopeId", "data-v-390f0c01"]]);
|
|
266
266
|
export {
|
|
267
|
-
|
|
267
|
+
te as default
|
|
268
268
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as B, mergeModels as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { JmashRegionTree as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { o as
|
|
1
|
+
import { defineComponent as B, mergeModels as _, ref as b, reactive as v, useModel as E, resolveComponent as m, createBlock as T, openBlock as j, withCtx as t, createVNode as o, unref as s, createElementVNode as D, createTextVNode as N, toDisplayString as U } from "vue";
|
|
2
|
+
import { ElMessage as O } from "element-plus";
|
|
3
|
+
import { JmashRegionTree as S, dictRegionApi as J } from "jmash-region";
|
|
4
|
+
import { useI18n as K } from "vue-i18n";
|
|
5
|
+
import { o as L } from "./index-BP8zUjOw.mjs";
|
|
6
|
+
import { validatePhoneOrLandline as z } from "jmash-core";
|
|
6
7
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
8
|
const G = { class: "dialog-footer" }, H = /* @__PURE__ */ B({
|
|
8
9
|
__name: "edit",
|
|
9
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ _({
|
|
10
11
|
entityKey: {
|
|
11
12
|
type: Object,
|
|
12
13
|
default: () => {
|
|
@@ -16,118 +17,117 @@ const G = { class: "dialog-footer" }, H = /* @__PURE__ */ B({
|
|
|
16
17
|
modelValue: { type: Boolean },
|
|
17
18
|
modelModifiers: {}
|
|
18
19
|
}),
|
|
19
|
-
emits: /* @__PURE__ */
|
|
20
|
-
setup(
|
|
21
|
-
const { t:
|
|
22
|
-
let a =
|
|
20
|
+
emits: /* @__PURE__ */ _(["refresh"], ["update:modelValue"]),
|
|
21
|
+
setup(V, { emit: A }) {
|
|
22
|
+
const { t: i } = K(), c = b();
|
|
23
|
+
let a = v({
|
|
23
24
|
requestId: Math.random() * 10 + "",
|
|
24
25
|
updateMask: ""
|
|
25
26
|
});
|
|
26
|
-
const
|
|
27
|
-
r &&
|
|
28
|
-
},
|
|
27
|
+
const R = (e, r, l) => {
|
|
28
|
+
r && (z(r) || l(new Error(i("orderUserAddress.mobilePhoneTrueRequired")))), l();
|
|
29
|
+
}, q = v({
|
|
29
30
|
note: [
|
|
30
31
|
{
|
|
31
32
|
required: !0,
|
|
32
|
-
message:
|
|
33
|
+
message: i("orderUserAddress.noteRequired"),
|
|
33
34
|
trigger: "change"
|
|
34
35
|
}
|
|
35
36
|
],
|
|
36
37
|
userName: [
|
|
37
38
|
{
|
|
38
39
|
required: !0,
|
|
39
|
-
message:
|
|
40
|
+
message: i("orderUserAddress.userNameRequired"),
|
|
40
41
|
trigger: "change"
|
|
41
42
|
}
|
|
42
43
|
],
|
|
43
44
|
mobilePhone: [
|
|
44
45
|
{
|
|
45
|
-
|
|
46
|
-
validator: q,
|
|
46
|
+
validator: R,
|
|
47
47
|
trigger: "blur"
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
detailInfo: [
|
|
51
51
|
{
|
|
52
52
|
required: !0,
|
|
53
|
-
message:
|
|
53
|
+
message: i("orderUserAddress.detailInfoRequired"),
|
|
54
54
|
trigger: "change"
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
57
|
provinceName: [
|
|
58
58
|
{
|
|
59
59
|
required: !0,
|
|
60
|
-
message:
|
|
60
|
+
message: i("orderUserAddress.provinceNameRequired"),
|
|
61
61
|
trigger: "change"
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
|
-
}),
|
|
64
|
+
}), u = E(V, "modelValue"), w = A;
|
|
65
65
|
function y() {
|
|
66
|
-
a.provinceName &&
|
|
66
|
+
a.provinceName && I(a.provinceName).then((e) => {
|
|
67
67
|
a.cityName = e;
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
const
|
|
71
|
-
async function
|
|
70
|
+
const f = b(/* @__PURE__ */ new Map());
|
|
71
|
+
async function I(e) {
|
|
72
72
|
if (!e)
|
|
73
73
|
return "";
|
|
74
|
-
if (
|
|
75
|
-
return
|
|
74
|
+
if (f.value.has(e))
|
|
75
|
+
return f.value.get(e) || e;
|
|
76
76
|
try {
|
|
77
|
-
const r = await
|
|
77
|
+
const r = await J.findByCode({
|
|
78
78
|
regionCode: e
|
|
79
79
|
});
|
|
80
80
|
if (r.data) {
|
|
81
|
-
const l =
|
|
82
|
-
return
|
|
81
|
+
const l = P(r.data);
|
|
82
|
+
return f.value.set(e, l), l;
|
|
83
83
|
}
|
|
84
84
|
return e;
|
|
85
85
|
} catch {
|
|
86
|
-
return
|
|
86
|
+
return f.value.set(e, e), e;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function P(e) {
|
|
90
90
|
const r = [];
|
|
91
91
|
function l(d) {
|
|
92
92
|
d && d.regionName && r.push(d.regionName), d && d.children && d.children.length > 0 && l(d.children[0]);
|
|
93
93
|
}
|
|
94
94
|
return l(e), r.join("");
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const $ = async () => {
|
|
97
97
|
var e;
|
|
98
|
-
await ((e =
|
|
99
|
-
r &&
|
|
100
|
-
l.status === 200 && (
|
|
101
|
-
message:
|
|
98
|
+
await ((e = c.value) == null ? void 0 : e.validate((r) => {
|
|
99
|
+
r && L.create(a).then((l) => {
|
|
100
|
+
l.status === 200 && (O({
|
|
101
|
+
message: i("common.submitSuccess"),
|
|
102
102
|
type: "success"
|
|
103
|
-
}),
|
|
103
|
+
}), u.value && (u.value = !1), w("refresh", l.status === 200));
|
|
104
104
|
});
|
|
105
105
|
}));
|
|
106
106
|
};
|
|
107
107
|
function h() {
|
|
108
|
-
|
|
108
|
+
u.value && (u.value = !1);
|
|
109
109
|
}
|
|
110
110
|
return (e, r) => {
|
|
111
|
-
const l =
|
|
111
|
+
const l = m("el-input"), d = m("el-form-item"), p = m("el-col"), M = m("el-row"), k = m("el-form"), g = m("el-button"), F = m("el-dialog");
|
|
112
112
|
return j(), T(F, {
|
|
113
|
-
modelValue:
|
|
114
|
-
"onUpdate:modelValue": r[5] || (r[5] = (n) =>
|
|
113
|
+
modelValue: u.value,
|
|
114
|
+
"onUpdate:modelValue": r[5] || (r[5] = (n) => u.value = n),
|
|
115
115
|
onClose: h
|
|
116
116
|
}, {
|
|
117
117
|
footer: t(() => [
|
|
118
118
|
D("div", G, [
|
|
119
119
|
o(g, { onClick: h }, {
|
|
120
120
|
default: t(() => [
|
|
121
|
-
|
|
121
|
+
N(U(e.$t("common.cancel")), 1)
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
124
124
|
}),
|
|
125
125
|
o(g, {
|
|
126
126
|
type: "primary",
|
|
127
|
-
onClick:
|
|
127
|
+
onClick: $
|
|
128
128
|
}, {
|
|
129
129
|
default: t(() => [
|
|
130
|
-
|
|
130
|
+
N(U(e.$t("common.confirm")), 1)
|
|
131
131
|
]),
|
|
132
132
|
_: 1
|
|
133
133
|
})
|
|
@@ -136,13 +136,13 @@ const G = { class: "dialog-footer" }, H = /* @__PURE__ */ B({
|
|
|
136
136
|
default: t(() => [
|
|
137
137
|
o(k, {
|
|
138
138
|
ref_key: "orderUserAddressFormRef",
|
|
139
|
-
ref:
|
|
139
|
+
ref: c,
|
|
140
140
|
model: s(a),
|
|
141
141
|
"label-position": "top",
|
|
142
|
-
rules:
|
|
142
|
+
rules: q
|
|
143
143
|
}, {
|
|
144
144
|
default: t(() => [
|
|
145
|
-
o(
|
|
145
|
+
o(M, { gutter: 20 }, {
|
|
146
146
|
default: t(() => [
|
|
147
147
|
o(p, { span: 24 }, {
|
|
148
148
|
default: t(() => [
|
|
@@ -208,11 +208,11 @@ const G = { class: "dialog-footer" }, H = /* @__PURE__ */ B({
|
|
|
208
208
|
default: t(() => [
|
|
209
209
|
o(d, {
|
|
210
210
|
prop: "provinceName",
|
|
211
|
-
label: s(
|
|
211
|
+
label: s(i)("orderUserAddress.detailInfo"),
|
|
212
212
|
class: "form-item"
|
|
213
213
|
}, {
|
|
214
214
|
default: t(() => [
|
|
215
|
-
o(s(
|
|
215
|
+
o(s(S), {
|
|
216
216
|
modelValue: s(a).provinceName,
|
|
217
217
|
"onUpdate:modelValue": r[3] || (r[3] = (n) => s(a).provinceName = n),
|
|
218
218
|
placeholder: e.$t("orderUserAddress.provinceNameRequired"),
|
|
@@ -254,7 +254,7 @@ const G = { class: "dialog-footer" }, H = /* @__PURE__ */ B({
|
|
|
254
254
|
}, 8, ["modelValue"]);
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
}),
|
|
257
|
+
}), re = /* @__PURE__ */ C(H, [["__scopeId", "data-v-35c6c80a"]]);
|
|
258
258
|
export {
|
|
259
|
-
|
|
259
|
+
re as default
|
|
260
260
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (i, r, e) =>
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var v = (i, r, e) => r in i ? y(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
|
|
3
|
+
var t = (i, r, e) => v(i, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { ref as h } from "vue";
|
|
5
|
-
import { BizLayDict as l, CustomBizDict as p, EnumDict as
|
|
6
|
-
import { goodsCategoryApi as
|
|
5
|
+
import { BizLayDict as l, CustomBizDict as p, EnumDict as I } from "jmash-core";
|
|
6
|
+
import { goodsCategoryApi as g } from "xyvcard-paper-goods";
|
|
7
7
|
import { unionOrgApi as c } from "xyvcard-paper-union";
|
|
8
|
-
import { EntryDict as
|
|
8
|
+
import { EntryDict as P } from "jmash-dict";
|
|
9
9
|
class s {
|
|
10
10
|
}
|
|
11
11
|
//模块
|
|
@@ -14,8 +14,7 @@ t(s, "ENUM_ORDER_STATUS", h([
|
|
|
14
14
|
{ key: "unpay", value: "待付款" },
|
|
15
15
|
{ key: "unpost", value: "订阅成功" }
|
|
16
16
|
])), // 订单状态常量
|
|
17
|
-
t(s, "UNPAY", "unpay"), t(s, "UNPOST", "unpost"), //
|
|
18
|
-
t(s, "ENUM_PAYMENT_WAY", "xyvcard.order.protobuf.PaymentWay"), // 发票票种
|
|
17
|
+
t(s, "UNPAY", "unpay"), t(s, "UNPOST", "unpost"), // 发票票种
|
|
19
18
|
t(s, "LQFP_FPPZ", "Fppz"), // 开票状态
|
|
20
19
|
t(s, "INVOICE_STATUS", "xyvcard.order.protobuf.InvoiceStatus"), t(s, "UNINVOICE", "uninvoice"), t(s, "INVOICING", "invoicing"), t(s, "INVOICED", "invoiced"), // 基层工会
|
|
21
20
|
t(s, "BASE_UNION", "base"), // 企业
|
|
@@ -26,10 +25,10 @@ t(s, "GMF_TYPE_VALUES", h([
|
|
|
26
25
|
{ key: "ent", value: "企业" },
|
|
27
26
|
{ key: "person", value: "个人" }
|
|
28
27
|
]));
|
|
29
|
-
function
|
|
28
|
+
function d(i, r, e) {
|
|
30
29
|
return !Array.isArray(i) || i.length === 0 ? [] : i.map((a) => {
|
|
31
30
|
let o = [];
|
|
32
|
-
return Array.isArray(a.children) && a.children.length > 0 && (o =
|
|
31
|
+
return Array.isArray(a.children) && a.children.length > 0 && (o = d(a.children, r, e)), {
|
|
33
32
|
value: a[e],
|
|
34
33
|
label: a[r],
|
|
35
34
|
parentId: a.parentId,
|
|
@@ -37,7 +36,7 @@ function y(i, r, e) {
|
|
|
37
36
|
};
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
|
-
class
|
|
39
|
+
class T extends l {
|
|
41
40
|
// 实现 useValues 方法
|
|
42
41
|
useValues() {
|
|
43
42
|
return new Promise((r, e) => {
|
|
@@ -45,8 +44,8 @@ class A extends l {
|
|
|
45
44
|
r(this.values);
|
|
46
45
|
return;
|
|
47
46
|
}
|
|
48
|
-
c.findList(this.query).then(({ data:
|
|
49
|
-
const a =
|
|
47
|
+
c.findList(this.query).then(({ data: n }) => {
|
|
48
|
+
const a = n.results;
|
|
50
49
|
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(a)), r(this.values);
|
|
51
50
|
}).catch(e);
|
|
52
51
|
});
|
|
@@ -61,7 +60,7 @@ class A extends l {
|
|
|
61
60
|
}));
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
|
-
class
|
|
63
|
+
class f extends l {
|
|
65
64
|
// 实现 useValues 方法
|
|
66
65
|
useValues() {
|
|
67
66
|
return new Promise((r, e) => {
|
|
@@ -69,11 +68,11 @@ class g extends l {
|
|
|
69
68
|
r(this.values);
|
|
70
69
|
return;
|
|
71
70
|
}
|
|
72
|
-
const
|
|
71
|
+
const n = {
|
|
73
72
|
...this.query,
|
|
74
73
|
orgType: s.BASE_UNION
|
|
75
74
|
};
|
|
76
|
-
c.findList(
|
|
75
|
+
c.findList(n).then(({ data: a }) => {
|
|
77
76
|
const o = a.results;
|
|
78
77
|
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(o)), r(this.values);
|
|
79
78
|
}).catch(e);
|
|
@@ -90,7 +89,7 @@ class g extends l {
|
|
|
90
89
|
}));
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
|
-
class
|
|
92
|
+
class A extends l {
|
|
94
93
|
// 实现 useValues 方法
|
|
95
94
|
useValues() {
|
|
96
95
|
return new Promise((r, e) => {
|
|
@@ -98,11 +97,11 @@ class f extends l {
|
|
|
98
97
|
r(this.values);
|
|
99
98
|
return;
|
|
100
99
|
}
|
|
101
|
-
const
|
|
100
|
+
const n = {
|
|
102
101
|
...this.query,
|
|
103
102
|
orgType: s.BASE_UNION
|
|
104
103
|
};
|
|
105
|
-
c.findList(
|
|
104
|
+
c.findList(n).then(({ data: a }) => {
|
|
106
105
|
const o = a.results;
|
|
107
106
|
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(o)), r(this.values);
|
|
108
107
|
}).catch(e);
|
|
@@ -119,40 +118,36 @@ class f extends l {
|
|
|
119
118
|
}));
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
|
-
class
|
|
121
|
+
class m extends l {
|
|
123
122
|
// 实现 useValues 方法
|
|
124
123
|
useValues() {
|
|
125
124
|
return new Promise((r, e) => {
|
|
126
|
-
|
|
127
|
-
const { data: a } =
|
|
128
|
-
this.values.length = 0, this.values.push(...
|
|
125
|
+
g.findTreeListApi(this.query).then((n) => {
|
|
126
|
+
const { data: a } = n;
|
|
127
|
+
this.values.length = 0, this.values.push(...d(a.results, "label", "value")), r(this.values);
|
|
129
128
|
}).catch(e);
|
|
130
129
|
});
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
|
-
class
|
|
132
|
+
class u {
|
|
134
133
|
}
|
|
135
134
|
// 订单状态
|
|
136
|
-
t(
|
|
135
|
+
t(u, "orderStatusEnum", new p(
|
|
137
136
|
s.ENUM_ORDER_STATUS,
|
|
138
137
|
{}
|
|
139
|
-
)), // 支付方式
|
|
140
|
-
t(n, "paymentWayEnum", new d(
|
|
141
|
-
s.PAPER_DICT,
|
|
142
|
-
s.ENUM_PAYMENT_WAY
|
|
143
138
|
)), // 所属工会
|
|
144
|
-
t(
|
|
139
|
+
t(u, "unionOrgBizLayDict", new T({})), t(u, "unionOrgPhoneBizLayDict", new f({})), t(u, "unionOrgPhoneInsBizLayDict", new A(
|
|
145
140
|
{}
|
|
146
141
|
)), // 发票票种
|
|
147
|
-
t(
|
|
148
|
-
t(
|
|
142
|
+
t(u, "fppzDict", new P(s.LQFP_FPPZ)), // 开票状态
|
|
143
|
+
t(u, "invoiceStatusEnum", new I(
|
|
149
144
|
s.PAPER_DICT,
|
|
150
145
|
s.INVOICE_STATUS
|
|
151
146
|
)), // 商品分类(发行频率)
|
|
152
|
-
t(
|
|
147
|
+
t(u, "goodsCategoryListBizLayDict", new m(
|
|
153
148
|
{}
|
|
154
|
-
)), t(
|
|
149
|
+
)), t(u, "gmfTypeDict", new p(s.GMF_TYPE_VALUES, {}));
|
|
155
150
|
export {
|
|
156
151
|
s as C,
|
|
157
|
-
|
|
152
|
+
u as D
|
|
158
153
|
};
|