xyvcard-paper-buyer 0.0.42 → 0.0.44
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-DMbelNYl.mjs} +3 -3
- 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-CJvB_knp.mjs} +15 -26
- package/dist/{index-BKZPqxLM.mjs → index-DyTbbNUO.mjs} +500 -518
- package/dist/{index-C_O5LkoO.mjs → index-MoEV6c7S.mjs} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{info-yQ5o6UTa.mjs → info-iJb2mpwO.mjs} +65 -74
- package/dist/{invoiceEdit-BPyK5oBD.mjs → invoiceEdit-D3qEYbNL.mjs} +2 -2
- package/dist/orderAddress-DMeZ9ynO.mjs +249 -0
- package/dist/{orderInfo-CxDN2Vgs.mjs → orderInfo-BE6BEAw1.mjs} +2 -2
- 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
- package/dist/orderAddress-BXu0z9LD.mjs +0 -234
|
@@ -2,7 +2,7 @@ import { defineComponent as te, ref as C, reactive as T, onActivated as le, reso
|
|
|
2
2
|
import { useTableHooks as re } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
4
|
import { o as se } from "./index-BP8zUjOw.mjs";
|
|
5
|
-
import de from "./edit
|
|
5
|
+
import de from "./edit-DwsTiwF8.mjs";
|
|
6
6
|
const ie = { class: "app-container" }, me = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], ke = /* @__PURE__ */ te({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(ce) {
|
package/dist/index.mjs
CHANGED
|
@@ -377,7 +377,7 @@ function g(e) {
|
|
|
377
377
|
let i = e.global.getLocaleMessage("en");
|
|
378
378
|
i = d(i, b), e.global.setLocaleMessage("zh-cn", o), e.global.setLocaleMessage("en", i);
|
|
379
379
|
}
|
|
380
|
-
const R = () => import("./index-BWV5njqv.mjs"), w = () => import("./orderPaper-DAXED5UU.mjs"), P = () => import("./orderAddress-
|
|
380
|
+
const R = () => import("./index-BWV5njqv.mjs"), w = () => import("./orderPaper-DAXED5UU.mjs"), P = () => import("./orderAddress-DMeZ9ynO.mjs"), q = () => import("./orderInfo-BE6BEAw1.mjs"), D = () => import("./payment-DD_Lhvf0.mjs"), N = () => import("./invoice-Ca967WuM.mjs"), z = () => import("./invoiceView-BQ20QFpo.mjs"), x = () => import("./applyEdit-DMbelNYl.mjs"), C = () => import("./invoiceEdit-D3qEYbNL.mjs"), k = () => import("./info-iJb2mpwO.mjs"), t = [
|
|
381
381
|
{
|
|
382
382
|
path: "/buyer",
|
|
383
383
|
component: r,
|
|
@@ -543,7 +543,7 @@ const R = () => import("./index-BWV5njqv.mjs"), w = () => import("./orderPaper-D
|
|
|
543
543
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
544
544
|
});
|
|
545
545
|
c.value = T;
|
|
546
|
-
const A = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-
|
|
546
|
+
const A = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-DMbelNYl.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-CJvB_knp.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-iJb2mpwO.mjs"), "./views/buyer/order-info/invoice.vue": () => import("./invoice-Ca967WuM.mjs"), "./views/buyer/order-info/invoiceEdit.vue": () => import("./invoiceEdit-D3qEYbNL.mjs"), "./views/buyer/order-info/invoiceView.vue": () => import("./invoiceView-BQ20QFpo.mjs"), "./views/buyer/order-info/list.vue": () => import("./list-CeY2OdrK.mjs"), "./views/buyer/order-info/sendDialog.vue": () => import("./sendDialog-B0HE_2cs.mjs"), "./views/buyer/order-info/userInvoice.vue": () => import("./userInvoice-CZ7yW4I6.mjs"), "./views/buyer/order-newspaper/confirm.vue": () => import("./confirm-BYEYokBP.mjs"), "./views/buyer/order-newspaper/edit.vue": () => import("./edit-Omp_CxC3.mjs"), "./views/buyer/order-newspaper/index.vue": () => import("./index-BWV5njqv.mjs"), "./views/buyer/order-newspaper/onlineBanking.vue": () => import("./onlineBanking-CdDAY0YQ.mjs"), "./views/buyer/order-newspaper/orderAddress.vue": () => import("./orderAddress-DMeZ9ynO.mjs"), "./views/buyer/order-newspaper/orderInfo.vue": () => import("./orderInfo-BE6BEAw1.mjs"), "./views/buyer/order-newspaper/orderPaper.vue": () => import("./orderPaper-DAXED5UU.mjs"), "./views/buyer/order-newspaper/payment.vue": () => import("./payment-DD_Lhvf0.mjs"), "./views/buyer/order-newspaper/prompt.vue": () => import("./prompt-DQX4apPU.mjs"), "./views/buyer/order-user-address/edit.vue": () => import("./edit-DwsTiwF8.mjs"), "./views/buyer/order-user-address/index.vue": () => import("./index-MoEV6c7S.mjs") }), M = {
|
|
547
547
|
install(e) {
|
|
548
548
|
l(A, 7), f(t), g(h);
|
|
549
549
|
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as
|
|
2
|
-
import { D as
|
|
3
|
-
import { o as
|
|
4
|
-
import { fileApi as
|
|
1
|
+
import { defineComponent as Y, ref as v, onMounted as Z, resolveComponent as a, createElementBlock as x, openBlock as q, createVNode as t, withCtx as n, createElementVNode as e, unref as _, toDisplayString as i, createTextVNode as m, createBlock as ee, createCommentVNode as oe } from "vue";
|
|
2
|
+
import { D as h } from "./index-BPKQNnjE.mjs";
|
|
3
|
+
import { o as R } from "./index-DyTbbNUO.mjs";
|
|
4
|
+
import { fileApi as M, routerUtil as te } from "jmash-core";
|
|
5
5
|
import { useRouter as se, useRoute as le } from "vue-router";
|
|
6
6
|
import { goodsSpuApi as ne } from "xyvcard-paper-goods";
|
|
7
7
|
import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
|
-
const re = { class: "app-container" }, ae = { class: "subscription-container" }, de = { class: "newspaper-image" }, ce = { class: "shanxi-worker-paper" }, me = { class: "subscription-info" }, ue = { class: "magazine-title" }, pe = { class: "info-item" }, _e = { class: "info-label" }, fe = { class: "info-item" }, be = { class: "info-label" }, ve = { class: "price" }, he = { class: "price-value" }, Ie = { class: "subscription-containers" }, ge = { class: "cell-item" }, ye = { class: "cell-item" }, Ee = { class: "
|
|
8
|
+
const re = { class: "app-container" }, ae = { class: "subscription-container" }, de = { class: "newspaper-image" }, ce = { class: "shanxi-worker-paper" }, me = { class: "subscription-info" }, ue = { class: "magazine-title" }, pe = { class: "info-item" }, _e = { class: "info-label" }, fe = { class: "info-item" }, be = { class: "info-label" }, ve = { class: "price" }, he = { class: "price-value" }, Ie = { class: "subscription-containers" }, ge = { class: "cell-item" }, ye = { class: "cell-item" }, Ee = { class: "dialog-footer" }, Ne = /* @__PURE__ */ Y({
|
|
9
9
|
__name: "info",
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
function
|
|
10
|
+
setup(Pe) {
|
|
11
|
+
const F = se(), f = le(), I = v([]);
|
|
12
|
+
h.goodsCategoryListBizLayDict.useValues();
|
|
13
|
+
function G(o) {
|
|
14
14
|
o.mobileEncrypt = !o.mobileEncrypt;
|
|
15
15
|
}
|
|
16
|
-
function G() {
|
|
17
|
-
te.closeTagView(b.fullPath, M, !1);
|
|
18
|
-
}
|
|
19
|
-
const n = h(), g = h([]);
|
|
20
16
|
function H() {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
te.closeTagView(f.fullPath, F, !1);
|
|
18
|
+
}
|
|
19
|
+
const s = v(), g = v([]);
|
|
20
|
+
function J() {
|
|
21
|
+
R.findById({ orderId: f.query.orderId }).then(({ data: o }) => {
|
|
22
|
+
var l, u, c, p, r;
|
|
23
|
+
s.value = [o], ne.findById({
|
|
24
|
+
spuId: (r = (p = (c = (u = (l = s.value) == null ? void 0 : l[0]) == null ? void 0 : u.orderItemList) == null ? void 0 : c.results) == null ? void 0 : p[0]) == null ? void 0 : r.spuId
|
|
25
|
+
}).then(({ data: b }) => {
|
|
26
|
+
g.value = b.categoryIds;
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function K() {
|
|
31
|
+
R.findOrderAddressList({ orderId: f.query.orderId }).then(({ data: o }) => {
|
|
32
32
|
I.value = o.results;
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
return Z(() => {
|
|
36
|
-
|
|
37
|
-
}), (o,
|
|
38
|
-
const
|
|
39
|
-
return
|
|
36
|
+
J(), K();
|
|
37
|
+
}), (o, l) => {
|
|
38
|
+
const u = a("el-image"), c = a("el-descriptions-item"), p = a("el-descriptions"), r = a("el-table-column"), b = a("jmash-mobileIns-component"), Q = a("el-table"), W = a("el-button"), X = a("el-card");
|
|
39
|
+
return q(), x("div", re, [
|
|
40
40
|
t(X, { shadow: "never" }, {
|
|
41
|
-
footer:
|
|
42
|
-
e("div",
|
|
43
|
-
t(
|
|
41
|
+
footer: n(() => [
|
|
42
|
+
e("div", Ee, [
|
|
43
|
+
t(W, {
|
|
44
44
|
type: "primary",
|
|
45
|
-
onClick:
|
|
45
|
+
onClick: H
|
|
46
46
|
}, {
|
|
47
|
-
default:
|
|
48
|
-
m(
|
|
47
|
+
default: n(() => [
|
|
48
|
+
m(i(o.$t("common.back")), 1)
|
|
49
49
|
]),
|
|
50
50
|
_: 1
|
|
51
51
|
})
|
|
52
52
|
])
|
|
53
53
|
]),
|
|
54
|
-
default:
|
|
55
|
-
var y, E, N, P, k,
|
|
54
|
+
default: n(() => {
|
|
55
|
+
var y, E, N, P, k, L, $, w, B, V, C, D, A, S, U, z, T, j, O;
|
|
56
56
|
return [
|
|
57
|
-
|
|
57
|
+
l[1] || (l[1] = e("div", { class: "title-content" }, "订单详情", -1)),
|
|
58
58
|
e("div", ae, [
|
|
59
59
|
e("div", de, [
|
|
60
60
|
e("div", ce, [
|
|
61
|
-
t(
|
|
62
|
-
src:
|
|
63
|
-
(k = (P = (N = (E = (y =
|
|
61
|
+
t(u, {
|
|
62
|
+
src: _(M).imageUrl(
|
|
63
|
+
(k = (P = (N = (E = (y = s.value) == null ? void 0 : y[0]) == null ? void 0 : E.orderItemList) == null ? void 0 : N.results) == null ? void 0 : P[0]) == null ? void 0 : k.picUrl,
|
|
64
64
|
160,
|
|
65
65
|
160
|
|
66
66
|
),
|
|
67
67
|
"preview-src-list": [
|
|
68
|
-
|
|
69
|
-
(
|
|
68
|
+
_(M).imageUrl(
|
|
69
|
+
(V = (B = (w = ($ = (L = s.value) == null ? void 0 : L[0]) == null ? void 0 : $.orderItemList) == null ? void 0 : w.results) == null ? void 0 : B[0]) == null ? void 0 : V.picUrl
|
|
70
70
|
)
|
|
71
71
|
],
|
|
72
72
|
"preview-teleported": "",
|
|
@@ -77,55 +77,46 @@ const re = { class: "app-container" }, ae = { class: "subscription-container" },
|
|
|
77
77
|
])
|
|
78
78
|
]),
|
|
79
79
|
e("div", me, [
|
|
80
|
-
e("span", ue, "《" +
|
|
80
|
+
e("span", ue, "《" + i((U = (S = (A = (D = (C = s.value) == null ? void 0 : C[0]) == null ? void 0 : D.orderItemList) == null ? void 0 : A.results) == null ? void 0 : S[0]) == null ? void 0 : U.spuName) + "》 ", 1),
|
|
81
81
|
e("div", pe, [
|
|
82
82
|
e("span", _e, [
|
|
83
|
-
|
|
84
|
-
e("span", null,
|
|
83
|
+
l[0] || (l[0] = m("发行频率: ")),
|
|
84
|
+
e("span", null, i(_(h).goodsCategoryListBizLayDict.getValue(g.value.join(","))), 1)
|
|
85
85
|
])
|
|
86
86
|
]),
|
|
87
87
|
e("div", fe, [
|
|
88
|
-
e("span", be, "订阅周期:" +
|
|
88
|
+
e("span", be, "订阅周期:" + i((T = (z = s.value) == null ? void 0 : z[0]) == null ? void 0 : T.remark), 1)
|
|
89
89
|
]),
|
|
90
90
|
e("div", ve, [
|
|
91
|
-
e("span", he, "¥" +
|
|
91
|
+
e("span", he, "¥" + i((O = (j = s.value) == null ? void 0 : j[0]) == null ? void 0 : O.salesPrice) + "/年", 1)
|
|
92
92
|
])
|
|
93
93
|
])
|
|
94
94
|
]),
|
|
95
|
-
|
|
95
|
+
l[2] || (l[2] = e("div", { class: "title-content" }, "付款信息", -1)),
|
|
96
96
|
e("div", Ie, [
|
|
97
|
-
|
|
97
|
+
s.value && s.value.length > 0 ? (q(), ee(p, {
|
|
98
98
|
key: 0,
|
|
99
99
|
class: "margin-top",
|
|
100
100
|
"label-width": 420,
|
|
101
101
|
"label-align": "left",
|
|
102
102
|
column: 1
|
|
103
103
|
}, {
|
|
104
|
-
default:
|
|
104
|
+
default: n(() => [
|
|
105
105
|
t(c, null, {
|
|
106
|
-
label:
|
|
107
|
-
e("div", ge,
|
|
106
|
+
label: n(() => [
|
|
107
|
+
e("div", ge, i(o.$t("orderInfo.salesPrices")), 1)
|
|
108
108
|
]),
|
|
109
|
-
default:
|
|
110
|
-
m(" ¥" +
|
|
109
|
+
default: n(() => [
|
|
110
|
+
m(" ¥" + i(s.value[0].salesPrice), 1)
|
|
111
111
|
]),
|
|
112
112
|
_: 1
|
|
113
113
|
}),
|
|
114
114
|
t(c, null, {
|
|
115
|
-
label:
|
|
116
|
-
e("div", ye,
|
|
115
|
+
label: n(() => [
|
|
116
|
+
e("div", ye, i(o.$t("orderInfo.orderStatuss")), 1)
|
|
117
117
|
]),
|
|
118
|
-
default:
|
|
119
|
-
m(" " +
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}),
|
|
123
|
-
t(c, null, {
|
|
124
|
-
label: s(() => [
|
|
125
|
-
e("div", Ee, l(o.$t("orderInfo.paymentWay")), 1)
|
|
126
|
-
]),
|
|
127
|
-
default: s(() => [
|
|
128
|
-
m(" " + l(u(f).paymentWayEnum.getEnumValue(n.value[0].paymentWay)), 1)
|
|
118
|
+
default: n(() => [
|
|
119
|
+
m(" " + i(_(h).orderStatusEnum.getValue(s.value[0].orderStatus)), 1)
|
|
129
120
|
]),
|
|
130
121
|
_: 1
|
|
131
122
|
})
|
|
@@ -133,12 +124,12 @@ const re = { class: "app-container" }, ae = { class: "subscription-container" },
|
|
|
133
124
|
_: 1
|
|
134
125
|
})) : oe("", !0)
|
|
135
126
|
]),
|
|
136
|
-
|
|
137
|
-
t(
|
|
127
|
+
l[3] || (l[3] = e("div", { class: "title-content" }, "收报地址", -1)),
|
|
128
|
+
t(Q, {
|
|
138
129
|
data: I.value,
|
|
139
130
|
border: ""
|
|
140
131
|
}, {
|
|
141
|
-
default:
|
|
132
|
+
default: n(() => [
|
|
142
133
|
t(r, {
|
|
143
134
|
prop: "note",
|
|
144
135
|
label: o.$t("orderInfo.unitNames"),
|
|
@@ -153,12 +144,12 @@ const re = { class: "app-container" }, ae = { class: "subscription-container" },
|
|
|
153
144
|
label: o.$t("orderInfo.mobilePhone"),
|
|
154
145
|
width: "170"
|
|
155
146
|
}, {
|
|
156
|
-
default:
|
|
157
|
-
t(
|
|
147
|
+
default: n(({ row: d }) => [
|
|
148
|
+
t(b, {
|
|
158
149
|
mobileEncrypt: d.mobileEncrypt,
|
|
159
150
|
mobilePhoneIns: d.mobilePhoneIns,
|
|
160
151
|
mobilePhone: d.mobilePhone,
|
|
161
|
-
onToggleEncrypt: (
|
|
152
|
+
onToggleEncrypt: (ke) => G(d)
|
|
162
153
|
}, null, 8, ["mobileEncrypt", "mobilePhoneIns", "mobilePhone", "onToggleEncrypt"])
|
|
163
154
|
]),
|
|
164
155
|
_: 1
|
|
@@ -167,8 +158,8 @@ const re = { class: "app-container" }, ae = { class: "subscription-container" },
|
|
|
167
158
|
prop: "detailInfo",
|
|
168
159
|
label: o.$t("orderInfo.address")
|
|
169
160
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
m(
|
|
161
|
+
default: n(({ row: d }) => [
|
|
162
|
+
m(i(d.cityName) + i(d.detailInfo), 1)
|
|
172
163
|
]),
|
|
173
164
|
_: 1
|
|
174
165
|
}, 8, ["label"]),
|
|
@@ -188,7 +179,7 @@ const re = { class: "app-container" }, ae = { class: "subscription-container" },
|
|
|
188
179
|
]);
|
|
189
180
|
};
|
|
190
181
|
}
|
|
191
|
-
}),
|
|
182
|
+
}), Ae = /* @__PURE__ */ ie(Ne, [["__scopeId", "data-v-94114052"]]);
|
|
192
183
|
export {
|
|
193
|
-
|
|
184
|
+
Ae as default
|
|
194
185
|
};
|
|
@@ -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-
|
|
6
|
+
import { D as U } from "./index-BPKQNnjE.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-
|
|
8
|
+
import { _ as ee, u as le } from "./userInvoice.vue_vue_type_script_setup_true_lang-D-3fXoBu.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({
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { defineComponent as F, ref as d, computed as E, reactive as G, resolveComponent as f, createElementBlock as J, openBlock as k, createElementVNode as s, createBlock as q, createCommentVNode as U, toDisplayString as v, createVNode as a, withCtx as u, createTextVNode as y, unref as $ } from "vue";
|
|
2
|
+
import { o as D } from "./index-B90ZLkZ9.mjs";
|
|
3
|
+
import { o as M } from "./index-BP8zUjOw.mjs";
|
|
4
|
+
import { useTableHooks as K } from "jmash-core";
|
|
5
|
+
import { useI18n as W } from "vue-i18n";
|
|
6
|
+
import { useRoute as X, useRouter as Y } from "vue-router";
|
|
7
|
+
import Z from "./edit-Omp_CxC3.mjs";
|
|
8
|
+
import { E as _ } from "./el-message-VSzNakoG.mjs";
|
|
9
|
+
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
10
|
+
const te = { class: "app-container" }, oe = { class: "search-container" }, se = { class: "address-management-container" }, le = { class: "subscription-info" }, ne = { class: "info-item" }, ae = { class: "value" }, de = { class: "info-item" }, re = { class: "value" }, ie = { class: "info-item" }, ue = { class: "value" }, me = { class: "action-bar" }, pe = { class: "address-table" }, ce = { class: "footer" }, fe = /* @__PURE__ */ F({
|
|
11
|
+
__name: "orderAddress",
|
|
12
|
+
setup(ve) {
|
|
13
|
+
const { t: b } = W(), m = d([]), w = X(), B = Y(), p = d(0), x = d(""), r = d({
|
|
14
|
+
title: b("common.edit"),
|
|
15
|
+
visible: !1
|
|
16
|
+
});
|
|
17
|
+
function L() {
|
|
18
|
+
r.value.title = b("common.add"), r.value.visible = !0;
|
|
19
|
+
}
|
|
20
|
+
const A = d("");
|
|
21
|
+
D.findOrderInfoById({ orderId: w.query.orderId }).then((t) => {
|
|
22
|
+
var n, o, i, I;
|
|
23
|
+
x.value = (o = (n = t.data.orderItemList) == null ? void 0 : n.results[0]) == null ? void 0 : o.itemId;
|
|
24
|
+
const e = (I = (i = t.data.orderItemList) == null ? void 0 : i.results[0]) == null ? void 0 : I.quantity;
|
|
25
|
+
p.value = typeof e == "number" ? e : 0, A.value = t.data.shopId;
|
|
26
|
+
});
|
|
27
|
+
const g = E(() => m.value.reduce((t, e) => t + (e.goodsNum || 0), 0)), P = E(() => p.value - g.value), N = (t) => {
|
|
28
|
+
const e = g.value - (t.goodsNum || 0);
|
|
29
|
+
return p.value - e;
|
|
30
|
+
}, T = (t) => {
|
|
31
|
+
const e = t.goodsNum ?? 0;
|
|
32
|
+
e < 0 && (t.goodsNum = 0);
|
|
33
|
+
const n = N(t);
|
|
34
|
+
e > n && (t.goodsNum = e, _.warning(`订阅份数不能超过${n}份`));
|
|
35
|
+
};
|
|
36
|
+
h();
|
|
37
|
+
function h() {
|
|
38
|
+
M.findList().then((t) => {
|
|
39
|
+
m.value = t.data.results.map((e) => ({
|
|
40
|
+
...e,
|
|
41
|
+
goodsNum: 0
|
|
42
|
+
// 初始化为0
|
|
43
|
+
}));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const R = G({
|
|
47
|
+
requestId: Math.random() * 10 + ""
|
|
48
|
+
}), j = () => {
|
|
49
|
+
let t = !0;
|
|
50
|
+
for (const o of m.value)
|
|
51
|
+
if (o.goodsNum && o.goodsNum > 0) {
|
|
52
|
+
const i = N(o);
|
|
53
|
+
if (o.goodsNum > i) {
|
|
54
|
+
_.warning("某地址订阅份数超出可分配范围,请检查后重新提交"), t = !1;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (!t)
|
|
59
|
+
return;
|
|
60
|
+
if (g.value !== p.value) {
|
|
61
|
+
_.warning("分配份数与总订阅份数不匹配,请调整后重新提交");
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const n = m.value.filter((o) => o.goodsNum && o.goodsNum > 0).map((o) => ({
|
|
65
|
+
addressId: o.addressId,
|
|
66
|
+
goodsNum: o.goodsNum
|
|
67
|
+
}));
|
|
68
|
+
if (n.length === 0) {
|
|
69
|
+
_.warning("请至少为一个地址分配订阅份数");
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
D.createOrderAddress({
|
|
73
|
+
...R,
|
|
74
|
+
orderItemId: x.value,
|
|
75
|
+
userAddresses: n
|
|
76
|
+
}).then((o) => {
|
|
77
|
+
o && o.data === !0 && (_({
|
|
78
|
+
message: "提交成功",
|
|
79
|
+
type: "success"
|
|
80
|
+
}), B.push({
|
|
81
|
+
path: "/buyer/order-newspaper/orderDetails",
|
|
82
|
+
query: {
|
|
83
|
+
orderId: w.query.orderId,
|
|
84
|
+
shopId: A.value
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
}).catch((o) => {
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
function H(t) {
|
|
91
|
+
t && h();
|
|
92
|
+
}
|
|
93
|
+
const c = d(!1), O = d({}), { tableHooks: V } = K(b, M, O);
|
|
94
|
+
function Q() {
|
|
95
|
+
c.value = !1;
|
|
96
|
+
}
|
|
97
|
+
function S(t) {
|
|
98
|
+
t.updateMask = "", V.importExcel(t).then(() => {
|
|
99
|
+
c.value = !1, h();
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return (t, e) => {
|
|
103
|
+
const n = f("el-button"), o = f("el-table-column"), i = f("el-input"), I = f("el-table"), z = f("jmash-import-upload");
|
|
104
|
+
return k(), J("div", te, [
|
|
105
|
+
s("div", oe, [
|
|
106
|
+
s("div", se, [
|
|
107
|
+
e[11] || (e[11] = s("div", { class: "header" }, [
|
|
108
|
+
s("h2", null, "收报地址")
|
|
109
|
+
], -1)),
|
|
110
|
+
s("div", le, [
|
|
111
|
+
s("div", ne, [
|
|
112
|
+
e[5] || (e[5] = s("span", null, "总订阅份数:", -1)),
|
|
113
|
+
s("span", ae, v(p.value) + "份", 1)
|
|
114
|
+
]),
|
|
115
|
+
s("div", de, [
|
|
116
|
+
e[6] || (e[6] = s("span", null, "已分配:", -1)),
|
|
117
|
+
s("span", re, v(g.value) + "份", 1)
|
|
118
|
+
]),
|
|
119
|
+
s("div", ie, [
|
|
120
|
+
e[7] || (e[7] = s("span", null, "待分配:", -1)),
|
|
121
|
+
s("span", ue, v(P.value) + "份", 1)
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
s("div", me, [
|
|
125
|
+
a(n, {
|
|
126
|
+
type: "danger",
|
|
127
|
+
class: "add-button",
|
|
128
|
+
onClick: e[0] || (e[0] = (l) => L())
|
|
129
|
+
}, {
|
|
130
|
+
default: u(() => e[8] || (e[8] = [
|
|
131
|
+
y("新增收报地址")
|
|
132
|
+
])),
|
|
133
|
+
_: 1,
|
|
134
|
+
__: [8]
|
|
135
|
+
}),
|
|
136
|
+
a(n, {
|
|
137
|
+
type: "danger",
|
|
138
|
+
class: "add-button",
|
|
139
|
+
onClick: e[1] || (e[1] = (l) => c.value = !0)
|
|
140
|
+
}, {
|
|
141
|
+
default: u(() => e[9] || (e[9] = [
|
|
142
|
+
y("导入收报地址")
|
|
143
|
+
])),
|
|
144
|
+
_: 1,
|
|
145
|
+
__: [9]
|
|
146
|
+
})
|
|
147
|
+
]),
|
|
148
|
+
s("div", pe, [
|
|
149
|
+
a(I, {
|
|
150
|
+
data: m.value,
|
|
151
|
+
border: "",
|
|
152
|
+
style: { width: "100%" },
|
|
153
|
+
"header-cell-style": { backgroundColor: "#fafafa", color: "#333" }
|
|
154
|
+
}, {
|
|
155
|
+
default: u(() => [
|
|
156
|
+
a(o, {
|
|
157
|
+
label: "序号",
|
|
158
|
+
width: "80",
|
|
159
|
+
align: "center",
|
|
160
|
+
type: "index"
|
|
161
|
+
}),
|
|
162
|
+
a(o, {
|
|
163
|
+
prop: "note",
|
|
164
|
+
label: "收报单位",
|
|
165
|
+
"min-width": "180"
|
|
166
|
+
}),
|
|
167
|
+
a(o, {
|
|
168
|
+
prop: "userName",
|
|
169
|
+
label: "收报人",
|
|
170
|
+
width: "120",
|
|
171
|
+
align: "center"
|
|
172
|
+
}),
|
|
173
|
+
a(o, {
|
|
174
|
+
prop: "mobilePhone",
|
|
175
|
+
label: "联系电话",
|
|
176
|
+
width: "150",
|
|
177
|
+
align: "center"
|
|
178
|
+
}),
|
|
179
|
+
a(o, {
|
|
180
|
+
prop: "detailInfo",
|
|
181
|
+
label: "收报地址",
|
|
182
|
+
"min-width": "250"
|
|
183
|
+
}, {
|
|
184
|
+
default: u(({ row: l }) => [
|
|
185
|
+
y(v(l.cityName) + v(l.detailInfo), 1)
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}),
|
|
189
|
+
a(o, {
|
|
190
|
+
label: "订阅份数",
|
|
191
|
+
width: "100",
|
|
192
|
+
align: "center"
|
|
193
|
+
}, {
|
|
194
|
+
default: u(({ row: l }) => [
|
|
195
|
+
a(i, {
|
|
196
|
+
modelValue: l.goodsNum,
|
|
197
|
+
"onUpdate:modelValue": (C) => l.goodsNum = C,
|
|
198
|
+
modelModifiers: { number: !0 },
|
|
199
|
+
type: "number",
|
|
200
|
+
min: "0",
|
|
201
|
+
max: N(l),
|
|
202
|
+
onInput: (C) => T(l)
|
|
203
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max", "onInput"])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["data"])
|
|
210
|
+
]),
|
|
211
|
+
s("div", ce, [
|
|
212
|
+
a(n, {
|
|
213
|
+
type: "danger",
|
|
214
|
+
class: "confirm-button",
|
|
215
|
+
onClick: e[2] || (e[2] = (l) => j())
|
|
216
|
+
}, {
|
|
217
|
+
default: u(() => e[10] || (e[10] = [
|
|
218
|
+
y("确定")
|
|
219
|
+
])),
|
|
220
|
+
_: 1,
|
|
221
|
+
__: [10]
|
|
222
|
+
})
|
|
223
|
+
])
|
|
224
|
+
])
|
|
225
|
+
]),
|
|
226
|
+
r.value.visible ? (k(), q(Z, {
|
|
227
|
+
key: 0,
|
|
228
|
+
modelValue: r.value.visible,
|
|
229
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => r.value.visible = l),
|
|
230
|
+
title: r.value.title,
|
|
231
|
+
onRefresh: H,
|
|
232
|
+
width: "500px",
|
|
233
|
+
"close-on-click-modal": !1
|
|
234
|
+
}, null, 8, ["modelValue", "title"])) : U("", !0),
|
|
235
|
+
c.value ? (k(), q(z, {
|
|
236
|
+
key: 1,
|
|
237
|
+
"upload-visible": c.value,
|
|
238
|
+
"template-title": t.$t("sysUser.templateDownload"),
|
|
239
|
+
onTemplateDown: e[4] || (e[4] = (l) => $(V).downloadTemplate($(b)("newsPapepr.names"))),
|
|
240
|
+
onImportEvents: S,
|
|
241
|
+
onUploadClosed: Q
|
|
242
|
+
}, null, 8, ["upload-visible", "template-title"])) : U("", !0)
|
|
243
|
+
]);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}), xe = /* @__PURE__ */ ee(fe, [["__scopeId", "data-v-64c6cbde"]]);
|
|
247
|
+
export {
|
|
248
|
+
xe as default
|
|
249
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as we, ref as _, reactive as h, onMounted as Ke, resolveComponent as c, createElementBlock as Le, openBlock as k, createVNode as r, createBlock as B, createCommentVNode as D, withCtx as m, createElementVNode as t, unref as O, toDisplayString as a, createTextVNode as fe } from "vue";
|
|
2
2
|
import { useI18n as Ae } from "vue-i18n";
|
|
3
|
-
import { D as ve } from "./index-
|
|
4
|
-
import { o as be } from "./index-
|
|
3
|
+
import { D as ve } from "./index-BPKQNnjE.mjs";
|
|
4
|
+
import { o as be } from "./index-DyTbbNUO.mjs";
|
|
5
5
|
import { fileApi as ye } from "jmash-core";
|
|
6
6
|
import { useRoute as $e, useRouter as Ue } from "vue-router";
|
|
7
7
|
import { goodsSpuApi as Me } from "xyvcard-paper-goods";
|