xyvcard-paper-buyer 0.0.4 → 0.0.6
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-BBkk-Y-v.mjs → applyEdit-pzAI4h9A.mjs} +28 -27
- package/dist/{edit-DeNy_Q-1.mjs → edit-B_W9Nbg_.mjs} +13 -13
- package/dist/{edit-DNnXE9Sm.mjs → edit-DT79EUCr.mjs} +22 -22
- package/dist/index-5MVT-ka0.mjs +133 -0
- package/dist/{index-D-j9X_Yb.mjs → index-BmhkFkvJ.mjs} +42 -42
- package/dist/index-CIhWvEaK.mjs +83 -0
- package/dist/{index-yiIuuYih.mjs → index-D07dGPVZ.mjs} +581 -722
- package/dist/{index-BU_9CKQl.mjs → index-DecGu_zO.mjs} +94 -93
- package/dist/index.mjs +48 -19
- package/dist/{info-B0uRv4UI.mjs → info-DH7jH9F-.mjs} +4 -3
- package/dist/{orderAddress-C-J2jp-9.mjs → orderAddress-ByTTzFrR.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{userInvoice-DC_nj4Bm.mjs → userInvoice-BKAsWcqv.mjs} +1 -1
- package/dist/userInvoice.vue_vue_type_script_setup_true_lang-o13refla.mjs +361 -0
- package/dts/App.vue.d.ts +2 -0
- package/dts/api/buyer/dict.d.ts +14 -0
- package/dts/api/buyer/index.d.ts +13 -0
- package/dts/api/buyer/lqfp-fp/index.d.ts +13 -0
- package/dts/api/buyer/lqfp-fp/types.d.ts +87 -0
- package/dts/api/buyer/lqfp-fps/index.d.ts +8 -0
- package/dts/api/buyer/lqfp-fps/types.d.ts +72 -0
- package/dts/api/buyer/order-info/index.d.ts +17 -0
- package/dts/api/buyer/order-info/types.d.ts +128 -0
- package/dts/api/buyer/order-newspaper/index.d.ts +18 -0
- package/dts/api/buyer/order-newspaper/types.d.ts +126 -0
- package/dts/api/buyer/order-user-address/index.d.ts +15 -0
- package/dts/api/buyer/order-user-address/types.d.ts +85 -0
- package/dts/constant.d.ts +36 -0
- package/dts/index.d.ts +6 -0
- package/dts/lang/index.d.ts +1 -0
- package/dts/lang/order/en.d.ts +143 -0
- package/dts/lang/order/zh-cn.d.ts +197 -0
- package/dts/main.d.ts +5 -0
- package/dts/permission.d.ts +1 -0
- package/dts/router/index.d.ts +16 -0
- package/dts/views/buyer/order-info/applyEdit.vue.d.ts +2 -0
- package/dts/views/buyer/order-info/index.vue.d.ts +2 -0
- package/dts/views/buyer/order-info/info.vue.d.ts +2 -0
- package/dts/views/buyer/order-info/invoice.vue.d.ts +2 -0
- package/dts/views/buyer/order-info/invoiceView.vue.d.ts +2 -0
- package/dts/views/buyer/order-info/list.vue.d.ts +14 -0
- package/dts/views/buyer/order-info/sendDialog.vue.d.ts +10 -0
- package/dts/views/buyer/order-info/userInvoice.vue.d.ts +10 -0
- package/dts/views/buyer/order-newspaper/edit.vue.d.ts +22 -0
- package/dts/views/buyer/order-newspaper/index.vue.d.ts +2 -0
- package/dts/views/buyer/order-newspaper/orderAddress.vue.d.ts +2 -0
- package/dts/views/buyer/order-newspaper/orderPaper.vue.d.ts +2 -0
- package/dts/views/buyer/order-newspaper/payment copy.vue.d.ts +2 -0
- package/dts/views/buyer/order-newspaper/payment.vue.d.ts +2 -0
- package/dts/views/buyer/order-user-address/edit.vue.d.ts +22 -0
- package/dts/views/buyer/order-user-address/index.vue.d.ts +2 -0
- package/package.json +5 -5
- package/dist/index-BbV7Gddl-dXq_lNW3.mjs +0 -1664
- package/dist/userInvoice.vue_vue_type_script_setup_true_lang-Bqn6qhKH.mjs +0 -154
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineComponent as J, ref as v, reactive as z, resolveComponent as
|
|
1
|
+
import { defineComponent as J, ref as v, reactive as z, resolveComponent as r, createElementBlock as w, openBlock as i, createElementVNode as C, createBlock as y, createCommentVNode as K, createVNode as t, unref as s, withCtx as a, Fragment as D, renderList as R, createTextVNode as g, toDisplayString as h } from "vue";
|
|
2
2
|
import { useI18n as O } from "vue-i18n";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
import { routerUtil as E } from "jmash-core";
|
|
5
5
|
import { useRouter as Q, useRoute as W } from "vue-router";
|
|
6
|
-
import { D as F
|
|
7
|
-
import { l as
|
|
8
|
-
import {
|
|
6
|
+
import { D as F } from "./index-5MVT-ka0.mjs";
|
|
7
|
+
import { l as X } from "./index-B1a-Ksur.mjs";
|
|
8
|
+
import { o as Y } from "./index-D07dGPVZ.mjs";
|
|
9
|
+
import { _ as Z } from "./userInvoice.vue_vue_type_script_setup_true_lang-o13refla.mjs";
|
|
9
10
|
import { E as x } from "./el-message-D5NtBelf.mjs";
|
|
10
11
|
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
11
12
|
const le = { class: "app-container" }, oe = { class: "search-container" }, te = { class: "form-footer" }, ae = /* @__PURE__ */ J({
|
|
12
13
|
__name: "applyEdit",
|
|
13
14
|
setup(ne) {
|
|
14
15
|
const I = Q(), _ = W(), { t: u } = O(), b = v(""), f = v([]);
|
|
15
|
-
function
|
|
16
|
-
|
|
16
|
+
function k() {
|
|
17
|
+
X.findMyList({}).then((e) => {
|
|
17
18
|
f.value = e.data.results;
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
const
|
|
21
|
+
k();
|
|
22
|
+
const $ = v();
|
|
22
23
|
F.fppzDict.useDictValues(), console.log(F.fppzDict.values, "=> fppzDict");
|
|
23
24
|
let n = z({
|
|
24
25
|
requestId: Math.random() * 10 + "",
|
|
@@ -50,8 +51,8 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, te =
|
|
|
50
51
|
}
|
|
51
52
|
const L = async () => {
|
|
52
53
|
var e;
|
|
53
|
-
await ((e =
|
|
54
|
-
l &&
|
|
54
|
+
await ((e = $.value) == null ? void 0 : e.validate((l) => {
|
|
55
|
+
l && Y.lqfpApply(n).then((d) => {
|
|
55
56
|
console.log(d), d.status === 200 && (x({
|
|
56
57
|
message: u("common.submitSuccess"),
|
|
57
58
|
type: "success"
|
|
@@ -60,19 +61,19 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, te =
|
|
|
60
61
|
}));
|
|
61
62
|
};
|
|
62
63
|
function B(e) {
|
|
63
|
-
e &&
|
|
64
|
+
e && k();
|
|
64
65
|
}
|
|
65
66
|
function M() {
|
|
66
67
|
E.closeTagView(_.fullPath, I, !1);
|
|
67
68
|
}
|
|
68
69
|
return (e, l) => {
|
|
69
|
-
const d =
|
|
70
|
+
const d = r("el-radio"), P = r("el-radio-group"), m = r("el-form-item"), c = r("el-col"), S = r("el-option"), j = r("el-select"), V = r("el-button"), q = r("el-input"), G = r("el-row"), H = r("el-form");
|
|
70
71
|
return i(), w("div", le, [
|
|
71
72
|
C("div", oe, [
|
|
72
73
|
t(H, {
|
|
73
74
|
ref_key: "lqfpFpsFormRef",
|
|
74
|
-
ref:
|
|
75
|
-
model:
|
|
75
|
+
ref: $,
|
|
76
|
+
model: s(n),
|
|
76
77
|
"label-width": "120px",
|
|
77
78
|
rules: U,
|
|
78
79
|
class: "centered-form"
|
|
@@ -89,11 +90,11 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, te =
|
|
|
89
90
|
}, {
|
|
90
91
|
default: a(() => [
|
|
91
92
|
t(P, {
|
|
92
|
-
modelValue:
|
|
93
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) =>
|
|
93
|
+
modelValue: s(n).fppz,
|
|
94
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => s(n).fppz = o)
|
|
94
95
|
}, {
|
|
95
96
|
default: a(() => [
|
|
96
|
-
(i(!0), w(D, null, R(
|
|
97
|
+
(i(!0), w(D, null, R(s(F).fppzDict.values, (o) => (i(), y(d, {
|
|
97
98
|
key: o.dictCode,
|
|
98
99
|
value: o.dictCode,
|
|
99
100
|
disabled: N(o),
|
|
@@ -121,8 +122,8 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, te =
|
|
|
121
122
|
}, {
|
|
122
123
|
default: a(() => [
|
|
123
124
|
t(j, {
|
|
124
|
-
modelValue:
|
|
125
|
-
"onUpdate:modelValue": l[1] || (l[1] = (o) =>
|
|
125
|
+
modelValue: s(n).infoId,
|
|
126
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => s(n).infoId = o),
|
|
126
127
|
placeholder: e.$t("lqfpFps.dwmcRead"),
|
|
127
128
|
data: f.value,
|
|
128
129
|
clearable: "",
|
|
@@ -183,8 +184,8 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, te =
|
|
|
183
184
|
}, {
|
|
184
185
|
default: a(() => [
|
|
185
186
|
t(q, {
|
|
186
|
-
modelValue:
|
|
187
|
-
"onUpdate:modelValue": l[3] || (l[3] = (o) =>
|
|
187
|
+
modelValue: s(n).email,
|
|
188
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => s(n).email = o),
|
|
188
189
|
placeholder: e.$t("lqfpFps.emailRead"),
|
|
189
190
|
"show-word-limit": "",
|
|
190
191
|
clearable: ""
|
|
@@ -203,9 +204,9 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, te =
|
|
|
203
204
|
}, {
|
|
204
205
|
default: a(() => [
|
|
205
206
|
t(q, {
|
|
206
|
-
modelValue:
|
|
207
|
-
"onUpdate:modelValue": l[4] || (l[4] = (o) =>
|
|
208
|
-
placeholder: e.$t("lqfpFps.
|
|
207
|
+
modelValue: s(n).note,
|
|
208
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => s(n).note = o),
|
|
209
|
+
placeholder: e.$t("lqfpFps.remakrRead"),
|
|
209
210
|
"show-word-limit": "",
|
|
210
211
|
clearable: ""
|
|
211
212
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -245,12 +246,12 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, te =
|
|
|
245
246
|
"onUpdate:modelValue": l[5] || (l[5] = (o) => p.value.visible = o),
|
|
246
247
|
title: p.value.title,
|
|
247
248
|
onRefresh: B,
|
|
248
|
-
width: "
|
|
249
|
+
width: "900px"
|
|
249
250
|
}, null, 8, ["modelValue", "title"])) : K("", !0)
|
|
250
251
|
]);
|
|
251
252
|
};
|
|
252
253
|
}
|
|
253
|
-
}),
|
|
254
|
+
}), ve = /* @__PURE__ */ ee(ae, [["__scopeId", "data-v-40b33619"]]);
|
|
254
255
|
export {
|
|
255
|
-
|
|
256
|
+
ve as default
|
|
256
257
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as I, mergeModels as _, ref as P, reactive as
|
|
1
|
+
import { defineComponent as I, mergeModels as _, ref as P, reactive as b, useModel as C, resolveComponent as m, createBlock as M, openBlock as k, withCtx as r, createVNode as e, unref as d, createElementVNode as E, createTextVNode as V, toDisplayString as U } from "vue";
|
|
2
2
|
import { ElMessage as B } from "element-plus";
|
|
3
|
-
import "jmash-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
const j = { class: "dialog-footer" },
|
|
3
|
+
import { JmashRegionTree as F } from "jmash-region";
|
|
4
|
+
import { useI18n as T } from "vue-i18n";
|
|
5
|
+
import { o as D } from "./index-CIhWvEaK.mjs";
|
|
6
|
+
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const j = { class: "dialog-footer" }, J = /* @__PURE__ */ I({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ _({
|
|
10
10
|
entityKey: {
|
|
@@ -18,14 +18,14 @@ const j = { class: "dialog-footer" }, K = /* @__PURE__ */ I({
|
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ _(["refresh"], ["update:modelValue"]),
|
|
20
20
|
setup(h, { emit: A }) {
|
|
21
|
-
const { t: n } =
|
|
22
|
-
let t =
|
|
21
|
+
const { t: n } = T(), f = P();
|
|
22
|
+
let t = b({
|
|
23
23
|
requestId: Math.random() * 10 + "",
|
|
24
24
|
updateMask: ""
|
|
25
25
|
});
|
|
26
26
|
const v = (l, o, a) => {
|
|
27
27
|
o && !/^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(o) ? a(new Error(n("orderUserAddress.mobilePhoneTrueRequired"))) : a();
|
|
28
|
-
}, q =
|
|
28
|
+
}, q = b({
|
|
29
29
|
note: [
|
|
30
30
|
{
|
|
31
31
|
required: !0,
|
|
@@ -76,7 +76,7 @@ const j = { class: "dialog-footer" }, K = /* @__PURE__ */ I({
|
|
|
76
76
|
u.value && (u.value = !1);
|
|
77
77
|
}
|
|
78
78
|
return (l, o) => {
|
|
79
|
-
const a = m("el-input"), i = m("el-form-item"), p = m("el-col"), R = m("el-row"), y = m("el-form"),
|
|
79
|
+
const a = m("el-input"), i = m("el-form-item"), p = m("el-col"), R = m("el-row"), y = m("el-form"), g = m("el-button"), $ = m("el-dialog");
|
|
80
80
|
return k(), M($, {
|
|
81
81
|
modelValue: u.value,
|
|
82
82
|
"onUpdate:modelValue": o[5] || (o[5] = (s) => u.value = s),
|
|
@@ -84,13 +84,13 @@ const j = { class: "dialog-footer" }, K = /* @__PURE__ */ I({
|
|
|
84
84
|
}, {
|
|
85
85
|
footer: r(() => [
|
|
86
86
|
E("div", j, [
|
|
87
|
-
e(
|
|
87
|
+
e(g, { onClick: c }, {
|
|
88
88
|
default: r(() => [
|
|
89
89
|
V(U(l.$t("common.cancel")), 1)
|
|
90
90
|
]),
|
|
91
91
|
_: 1
|
|
92
92
|
}),
|
|
93
|
-
e(
|
|
93
|
+
e(g, {
|
|
94
94
|
type: "primary",
|
|
95
95
|
onClick: w
|
|
96
96
|
}, {
|
|
@@ -221,7 +221,7 @@ const j = { class: "dialog-footer" }, K = /* @__PURE__ */ I({
|
|
|
221
221
|
}, 8, ["modelValue"]);
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
}), Q = /* @__PURE__ */
|
|
224
|
+
}), Q = /* @__PURE__ */ S(J, [["__scopeId", "data-v-dd87de48"]]);
|
|
225
225
|
export {
|
|
226
226
|
Q as default
|
|
227
227
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as E, mergeModels as v, ref as y, reactive as A, useModel as j, resolveComponent as
|
|
1
|
+
import { defineComponent as E, mergeModels as v, ref as y, reactive as A, useModel as j, resolveComponent as u, createBlock as F, openBlock as K, withCtx as l, createVNode as e, unref as s, createElementVNode as O, createTextVNode as N, toDisplayString as q } from "vue";
|
|
2
2
|
import { ElMessage as w } from "element-plus";
|
|
3
|
-
import "jmash-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
3
|
+
import { JmashRegionTree as S } from "jmash-region";
|
|
4
|
+
import { useI18n as T } from "vue-i18n";
|
|
5
|
+
import { o as f } from "./index-CIhWvEaK.mjs";
|
|
6
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const J = { class: "dialog-footer" }, z = /* @__PURE__ */ E({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ v({
|
|
10
10
|
entityKey: {
|
|
@@ -17,13 +17,13 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
|
|
20
|
-
setup(c, { emit:
|
|
21
|
-
const { t: n } =
|
|
20
|
+
setup(c, { emit: R }) {
|
|
21
|
+
const { t: n } = T(), g = y();
|
|
22
22
|
let d = A({
|
|
23
23
|
requestId: Math.random() * 10 + "",
|
|
24
24
|
updateMask: "note,userName,mobilePhone,provinceName,detailInfo"
|
|
25
25
|
});
|
|
26
|
-
const
|
|
26
|
+
const I = (r, o, t) => {
|
|
27
27
|
o && !/^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(o) ? t(new Error(n("orderUserAddress.mobilePhoneTrueRequired"))) : t();
|
|
28
28
|
}, $ = A({
|
|
29
29
|
note: [
|
|
@@ -43,7 +43,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
43
43
|
mobilePhone: [
|
|
44
44
|
{
|
|
45
45
|
required: !0,
|
|
46
|
-
validator:
|
|
46
|
+
validator: I,
|
|
47
47
|
trigger: "blur"
|
|
48
48
|
}
|
|
49
49
|
],
|
|
@@ -61,38 +61,38 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
61
61
|
trigger: "change"
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
|
-
}),
|
|
65
|
-
h.value && f.findById(
|
|
64
|
+
}), m = j(c, "modelValue"), b = c, _ = R, P = Object.keys(b.entityKey), h = y(P.length >= 1);
|
|
65
|
+
h.value && f.findById(b.entityKey).then(({ data: r }) => {
|
|
66
66
|
Object.assign(d, r);
|
|
67
67
|
});
|
|
68
68
|
const k = async () => {
|
|
69
69
|
var r;
|
|
70
|
-
await ((r =
|
|
70
|
+
await ((r = g.value) == null ? void 0 : r.validate((o) => {
|
|
71
71
|
o && (h.value ? f.update(d).then((t) => {
|
|
72
72
|
console.log(t), t.status === 200 && (w({
|
|
73
73
|
message: n("common.submitSuccess"),
|
|
74
74
|
type: "success"
|
|
75
|
-
}),
|
|
75
|
+
}), m.value && (m.value = !1), _("refresh", t.status === 200));
|
|
76
76
|
}) : f.create(d).then((t) => {
|
|
77
77
|
console.log(t), t.status === 200 && (w({
|
|
78
78
|
message: n("common.submitSuccess"),
|
|
79
79
|
type: "success"
|
|
80
|
-
}),
|
|
80
|
+
}), m.value && (m.value = !1), _("refresh", t.status === 200));
|
|
81
81
|
}));
|
|
82
82
|
}));
|
|
83
83
|
};
|
|
84
84
|
function V() {
|
|
85
|
-
|
|
85
|
+
m.value && (m.value = !1);
|
|
86
86
|
}
|
|
87
87
|
return (r, o) => {
|
|
88
|
-
const t =
|
|
88
|
+
const t = u("el-input"), i = u("el-form-item"), p = u("el-col"), C = u("el-row"), M = u("el-form"), U = u("el-button"), B = u("el-dialog");
|
|
89
89
|
return K(), F(B, {
|
|
90
|
-
modelValue:
|
|
91
|
-
"onUpdate:modelValue": o[5] || (o[5] = (a) =>
|
|
90
|
+
modelValue: m.value,
|
|
91
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => m.value = a),
|
|
92
92
|
onClose: V
|
|
93
93
|
}, {
|
|
94
94
|
footer: l(() => [
|
|
95
|
-
O("div",
|
|
95
|
+
O("div", J, [
|
|
96
96
|
e(U, { onClick: V }, {
|
|
97
97
|
default: l(() => [
|
|
98
98
|
N(q(r.$t("common.cancel")), 1)
|
|
@@ -113,7 +113,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
113
113
|
default: l(() => [
|
|
114
114
|
e(M, {
|
|
115
115
|
ref_key: "orderUserAddressFormRef",
|
|
116
|
-
ref:
|
|
116
|
+
ref: g,
|
|
117
117
|
model: s(d),
|
|
118
118
|
"label-position": "top",
|
|
119
119
|
rules: $
|
|
@@ -230,7 +230,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
230
230
|
}, 8, ["modelValue"]);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
}), Y = /* @__PURE__ */
|
|
233
|
+
}), Y = /* @__PURE__ */ D(z, [["__scopeId", "data-v-f17c5e2b"]]);
|
|
234
234
|
export {
|
|
235
235
|
Y as default
|
|
236
236
|
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var I = (s, t, e) => t in s ? P(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var r = (s, t, e) => I(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as h } from "vue";
|
|
5
|
+
import { BizLayDict as l, CustomBizDict as p, EnumDict as v } from "jmash-core";
|
|
6
|
+
import { unionOrgApi as n } from "xyvcard-paper-union";
|
|
7
|
+
import { EntryDict as T } from "jmash-dict";
|
|
8
|
+
class i {
|
|
9
|
+
}
|
|
10
|
+
//模块
|
|
11
|
+
r(i, "PAPER_DICT", "paper"), // 订单状态
|
|
12
|
+
r(i, "ENUM_ORDER_STATUS", h([
|
|
13
|
+
{ key: "unpay", value: "待付款" },
|
|
14
|
+
{ key: "complete", value: "订阅成功" },
|
|
15
|
+
{ key: "unpost", value: "完善地址" }
|
|
16
|
+
])), // 订单状态常量
|
|
17
|
+
r(i, "UNPAY", "unpay"), r(i, "UNPOST", "unpost"), r(i, "COMPLETE", "complete"), // 支付方式
|
|
18
|
+
r(i, "ENUM_PAYMENT_WAY", "xyvcard.order.protobuf.PaymentWay"), // 发票票种
|
|
19
|
+
r(i, "LQFP_FPPZ", "Fppz"), // 开票状态
|
|
20
|
+
r(i, "INVOICE_STATUS", "xyvcard.order.protobuf.InvoiceStatus"), r(i, "UNINVOICE", "uninvoice"), r(i, "INVOICING", "invoicing"), r(i, "INVOICED", "invoiced"), // 基层工会
|
|
21
|
+
r(i, "BASE_UNION", "base"), // 企业
|
|
22
|
+
r(i, "GMF_TYPE_ENT", "ent"), // 个人
|
|
23
|
+
r(i, "GMF_TYPE_PER", "person"), // 证件类型
|
|
24
|
+
r(i, "DICT_TYPE_ID", "TypeID"), // 抬头类型
|
|
25
|
+
r(i, "GMF_TYPE_VALUES", h([
|
|
26
|
+
{ key: "ent", value: "企业" },
|
|
27
|
+
{ key: "person", value: "个人" }
|
|
28
|
+
]));
|
|
29
|
+
class d extends l {
|
|
30
|
+
// 实现 useValues 方法
|
|
31
|
+
useValues() {
|
|
32
|
+
return new Promise((t, e) => {
|
|
33
|
+
if (typeof n.findList > "u") {
|
|
34
|
+
t(this.values);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
n.findList(this.query).then(({ data: u }) => {
|
|
38
|
+
const o = u.results;
|
|
39
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(o)), t(this.values);
|
|
40
|
+
}).catch(e);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
convertToLayEntryArray(t) {
|
|
44
|
+
return t.map((e) => ({
|
|
45
|
+
value: e.orgId,
|
|
46
|
+
label: e.orgName,
|
|
47
|
+
parentId: e.parentId || "",
|
|
48
|
+
disabled: !e.status,
|
|
49
|
+
children: e.children ? this.convertToLayEntryArray(e.children) : []
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
class y extends l {
|
|
54
|
+
// 实现 useValues 方法
|
|
55
|
+
useValues() {
|
|
56
|
+
return new Promise((t, e) => {
|
|
57
|
+
if (typeof n.findList > "u") {
|
|
58
|
+
t(this.values);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const u = {
|
|
62
|
+
...this.query,
|
|
63
|
+
orgType: i.BASE_UNION
|
|
64
|
+
};
|
|
65
|
+
n.findList(u).then(({ data: o }) => {
|
|
66
|
+
const c = o.results;
|
|
67
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(c)), t(this.values);
|
|
68
|
+
}).catch(e);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
convertToLayEntryArray(t) {
|
|
72
|
+
return t.filter(
|
|
73
|
+
(e) => e.orgId !== void 0 && e.chargePersonMobile !== void 0
|
|
74
|
+
).map((e) => ({
|
|
75
|
+
value: e.orgId,
|
|
76
|
+
label: e.chargePersonMobile,
|
|
77
|
+
parentId: e.parentId || "",
|
|
78
|
+
children: e.children ? this.convertToLayEntryArray(e.children) : []
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
class m extends l {
|
|
83
|
+
// 实现 useValues 方法
|
|
84
|
+
useValues() {
|
|
85
|
+
return new Promise((t, e) => {
|
|
86
|
+
if (typeof n.findList > "u") {
|
|
87
|
+
t(this.values);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const u = {
|
|
91
|
+
...this.query,
|
|
92
|
+
orgType: i.BASE_UNION
|
|
93
|
+
};
|
|
94
|
+
n.findList(u).then(({ data: o }) => {
|
|
95
|
+
const c = o.results;
|
|
96
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(c)), t(this.values);
|
|
97
|
+
}).catch(e);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
convertToLayEntryArray(t) {
|
|
101
|
+
return t.filter(
|
|
102
|
+
(e) => e.orgId !== void 0 && e.chargePersonMobile !== void 0
|
|
103
|
+
).map((e) => ({
|
|
104
|
+
value: e.orgId,
|
|
105
|
+
label: e.chargePersonMobileIns,
|
|
106
|
+
parentId: e.parentId || "",
|
|
107
|
+
children: e.children ? this.convertToLayEntryArray(e.children) : []
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
class a {
|
|
112
|
+
}
|
|
113
|
+
// 订单状态
|
|
114
|
+
r(a, "orderStatusEnum", new p(
|
|
115
|
+
i.ENUM_ORDER_STATUS,
|
|
116
|
+
{}
|
|
117
|
+
)), // 支付方式
|
|
118
|
+
r(a, "paymentWayEnum", new v(
|
|
119
|
+
i.PAPER_DICT,
|
|
120
|
+
i.ENUM_PAYMENT_WAY
|
|
121
|
+
)), // 所属工会
|
|
122
|
+
r(a, "unionOrgBizLayDict", new d({})), r(a, "unionOrgPhoneBizLayDict", new y({})), r(a, "unionOrgPhoneInsBizLayDict", new m(
|
|
123
|
+
{}
|
|
124
|
+
)), // 发票票种
|
|
125
|
+
r(a, "fppzDict", new T(i.LQFP_FPPZ)), // 开票状态
|
|
126
|
+
r(a, "invoiceStatusEnum", new v(
|
|
127
|
+
i.PAPER_DICT,
|
|
128
|
+
i.INVOICE_STATUS
|
|
129
|
+
)), r(a, "gmfTypeDict", new p(i.GMF_TYPE_VALUES, {}));
|
|
130
|
+
export {
|
|
131
|
+
i as C,
|
|
132
|
+
a as D
|
|
133
|
+
};
|