xyvcard-paper-buyer 0.0.15 → 0.0.16
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/edit-BFspmCb_.mjs +268 -0
- package/dist/index-CvxCHZ3l.mjs +325 -0
- package/dist/index.mjs +2 -2
- package/dist/{orderAddress-ByTTzFrR.mjs → orderAddress-D4LKaLK_.mjs} +64 -59
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/edit-DT79EUCr.mjs +0 -236
- package/dist/index-PoARbGVn.mjs +0 -355
|
@@ -0,0 +1,268 @@
|
|
|
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";
|
|
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-CIhWvEaK.mjs";
|
|
6
|
+
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
|
|
8
|
+
__name: "edit",
|
|
9
|
+
props: /* @__PURE__ */ U({
|
|
10
|
+
entityKey: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: { type: Boolean },
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: /* @__PURE__ */ U(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(h, { emit: I }) {
|
|
21
|
+
const { t: i } = L(), b = f();
|
|
22
|
+
let l = A({
|
|
23
|
+
requestId: Math.random() * 10 + "",
|
|
24
|
+
updateMask: "note,userName,mobilePhone,provinceName,detailInfo"
|
|
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();
|
|
28
|
+
}, P = A({
|
|
29
|
+
note: [
|
|
30
|
+
{
|
|
31
|
+
required: !0,
|
|
32
|
+
message: i("orderUserAddress.noteRequired"),
|
|
33
|
+
trigger: "change"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
userName: [
|
|
37
|
+
{
|
|
38
|
+
required: !0,
|
|
39
|
+
message: i("orderUserAddress.userNameRequired"),
|
|
40
|
+
trigger: "change"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
mobilePhone: [
|
|
44
|
+
{
|
|
45
|
+
required: !0,
|
|
46
|
+
validator: $,
|
|
47
|
+
trigger: "blur"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
detailInfo: [
|
|
51
|
+
{
|
|
52
|
+
required: !0,
|
|
53
|
+
message: i("orderUserAddress.detailInfoRequired"),
|
|
54
|
+
trigger: "change"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
provinceName: [
|
|
58
|
+
{
|
|
59
|
+
required: !0,
|
|
60
|
+
message: i("orderUserAddress.provinceNameRequired"),
|
|
61
|
+
trigger: "change"
|
|
62
|
+
}
|
|
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);
|
|
67
|
+
});
|
|
68
|
+
function k() {
|
|
69
|
+
console.log(l.provinceName), l.provinceName && B(l.provinceName).then((e) => {
|
|
70
|
+
l.cityName = e, console.log("赋值后的完整地区名称11111:", l.cityName);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const p = f(/* @__PURE__ */ new Map());
|
|
74
|
+
async function B(e) {
|
|
75
|
+
if (!e)
|
|
76
|
+
return "";
|
|
77
|
+
if (p.value.has(e))
|
|
78
|
+
return p.value.get(e) || e;
|
|
79
|
+
try {
|
|
80
|
+
const o = await H.findByCode({
|
|
81
|
+
regionCode: e
|
|
82
|
+
});
|
|
83
|
+
if (o.data) {
|
|
84
|
+
const r = F(o.data);
|
|
85
|
+
return p.value.set(e, r), console.log("赋值后的完整地区名称:", r), r;
|
|
86
|
+
}
|
|
87
|
+
return e;
|
|
88
|
+
} catch (o) {
|
|
89
|
+
return console.error(`获取地区编码 ${e} 的信息失败:`, o), p.value.set(e, e), e;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
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]);
|
|
96
|
+
}
|
|
97
|
+
return r(e), o.join("");
|
|
98
|
+
}
|
|
99
|
+
const j = async () => {
|
|
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"),
|
|
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"),
|
|
110
|
+
type: "success"
|
|
111
|
+
}), u.value && (u.value = !1), N("refresh", r.status === 200));
|
|
112
|
+
}));
|
|
113
|
+
}));
|
|
114
|
+
};
|
|
115
|
+
function V() {
|
|
116
|
+
u.value && (u.value = !1);
|
|
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");
|
|
120
|
+
return J(), D(O, {
|
|
121
|
+
modelValue: u.value,
|
|
122
|
+
"onUpdate:modelValue": o[5] || (o[5] = (n) => u.value = n),
|
|
123
|
+
onClose: V
|
|
124
|
+
}, {
|
|
125
|
+
footer: a(() => [
|
|
126
|
+
z("div", W, [
|
|
127
|
+
t(y, { onClick: V }, {
|
|
128
|
+
default: a(() => [
|
|
129
|
+
q(R(e.$t("common.cancel")), 1)
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
}),
|
|
133
|
+
t(y, {
|
|
134
|
+
type: "primary",
|
|
135
|
+
onClick: j
|
|
136
|
+
}, {
|
|
137
|
+
default: a(() => [
|
|
138
|
+
q(R(e.$t("common.confirm")), 1)
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
})
|
|
142
|
+
])
|
|
143
|
+
]),
|
|
144
|
+
default: a(() => [
|
|
145
|
+
t(K, {
|
|
146
|
+
ref_key: "orderUserAddressFormRef",
|
|
147
|
+
ref: b,
|
|
148
|
+
model: d(l),
|
|
149
|
+
"label-position": "top",
|
|
150
|
+
rules: P
|
|
151
|
+
}, {
|
|
152
|
+
default: a(() => [
|
|
153
|
+
t(E, { gutter: 20 }, {
|
|
154
|
+
default: a(() => [
|
|
155
|
+
t(c, { span: 24 }, {
|
|
156
|
+
default: a(() => [
|
|
157
|
+
t(s, {
|
|
158
|
+
label: e.$t("orderUserAddress.note"),
|
|
159
|
+
prop: "note"
|
|
160
|
+
}, {
|
|
161
|
+
default: a(() => [
|
|
162
|
+
t(r, {
|
|
163
|
+
modelValue: d(l).note,
|
|
164
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => d(l).note = n),
|
|
165
|
+
placeholder: e.$t("orderUserAddress.noteRequired"),
|
|
166
|
+
"show-word-limit": "",
|
|
167
|
+
clearable: ""
|
|
168
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 8, ["label"])
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}),
|
|
175
|
+
t(c, { span: 24 }, {
|
|
176
|
+
default: a(() => [
|
|
177
|
+
t(s, {
|
|
178
|
+
label: e.$t("orderUserAddress.userName"),
|
|
179
|
+
prop: "userName"
|
|
180
|
+
}, {
|
|
181
|
+
default: a(() => [
|
|
182
|
+
t(r, {
|
|
183
|
+
modelValue: d(l).userName,
|
|
184
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => d(l).userName = n),
|
|
185
|
+
placeholder: e.$t("orderUserAddress.userNameRequired"),
|
|
186
|
+
"show-word-limit": "",
|
|
187
|
+
clearable: ""
|
|
188
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["label"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}),
|
|
195
|
+
t(c, { span: 24 }, {
|
|
196
|
+
default: a(() => [
|
|
197
|
+
t(s, {
|
|
198
|
+
label: e.$t("orderUserAddress.mobilePhone"),
|
|
199
|
+
prop: "mobilePhone"
|
|
200
|
+
}, {
|
|
201
|
+
default: a(() => [
|
|
202
|
+
t(r, {
|
|
203
|
+
modelValue: d(l).mobilePhone,
|
|
204
|
+
"onUpdate:modelValue": o[2] || (o[2] = (n) => d(l).mobilePhone = n),
|
|
205
|
+
placeholder: e.$t("orderUserAddress.mobilePhoneRequired"),
|
|
206
|
+
"show-word-limit": "",
|
|
207
|
+
clearable: ""
|
|
208
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["label"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}),
|
|
215
|
+
t(c, { span: 24 }, {
|
|
216
|
+
default: a(() => [
|
|
217
|
+
t(s, {
|
|
218
|
+
prop: "provinceName",
|
|
219
|
+
label: d(i)("orderUserAddress.detailInfo"),
|
|
220
|
+
class: "form-item"
|
|
221
|
+
}, {
|
|
222
|
+
default: a(() => [
|
|
223
|
+
t(d(G), {
|
|
224
|
+
modelValue: d(l).provinceName,
|
|
225
|
+
"onUpdate:modelValue": o[3] || (o[3] = (n) => d(l).provinceName = n),
|
|
226
|
+
placeholder: e.$t("orderUserAddress.provinceNameRequired"),
|
|
227
|
+
clearable: "",
|
|
228
|
+
onChange: k
|
|
229
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["label"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}),
|
|
236
|
+
t(c, { span: 24 }, {
|
|
237
|
+
default: a(() => [
|
|
238
|
+
t(s, { prop: "detailInfo" }, {
|
|
239
|
+
default: a(() => [
|
|
240
|
+
t(r, {
|
|
241
|
+
modelValue: d(l).detailInfo,
|
|
242
|
+
"onUpdate:modelValue": o[4] || (o[4] = (n) => d(l).detailInfo = n),
|
|
243
|
+
placeholder: e.$t("orderUserAddress.detailInfoRequired"),
|
|
244
|
+
"show-word-limit": "",
|
|
245
|
+
clearable: "",
|
|
246
|
+
type: "textarea"
|
|
247
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
})
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
})
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
})
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}, 8, ["model", "rules"])
|
|
260
|
+
]),
|
|
261
|
+
_: 1
|
|
262
|
+
}, 8, ["modelValue"]);
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
}), re = /* @__PURE__ */ Q(X, [["__scopeId", "data-v-1dc0babb"]]);
|
|
266
|
+
export {
|
|
267
|
+
re as default
|
|
268
|
+
};
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { defineComponent as Z, ref as U, reactive as A, onActivated as x, resolveComponent as a, resolveDirective as ee, createElementBlock as $, openBlock as u, createElementVNode as N, createVNode as l, createBlock as h, createCommentVNode as E, withCtx as t, withKeys as R, unref as r, createTextVNode as p, toDisplayString as m, withDirectives as g, isRef as T } from "vue";
|
|
2
|
+
import { useTableHooks as oe } from "jmash-core";
|
|
3
|
+
import { useI18n as te } from "vue-i18n";
|
|
4
|
+
import { o as le } from "./index-CIhWvEaK.mjs";
|
|
5
|
+
import ne from "./edit-BFspmCb_.mjs";
|
|
6
|
+
import { useRouter as re } from "vue-router";
|
|
7
|
+
const ae = { class: "app-container" }, se = { class: "search-container" }, de = ["onClick"], ie = ["onClick"], ve = /* @__PURE__ */ Z({
|
|
8
|
+
__name: "index",
|
|
9
|
+
setup(me) {
|
|
10
|
+
const { t: b } = te();
|
|
11
|
+
re();
|
|
12
|
+
const d = U({}), {
|
|
13
|
+
tableHooks: s,
|
|
14
|
+
multipleTableRef: S,
|
|
15
|
+
queryFormRef: j,
|
|
16
|
+
listLoading: z,
|
|
17
|
+
tableData: D,
|
|
18
|
+
total: _
|
|
19
|
+
} = oe(b, le, d);
|
|
20
|
+
let c = U([
|
|
21
|
+
{
|
|
22
|
+
label: "orderUserAddress.note",
|
|
23
|
+
prop: "note",
|
|
24
|
+
minWidth: "150",
|
|
25
|
+
sortable: "custom",
|
|
26
|
+
isColumn: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "orderUserAddress.userName",
|
|
30
|
+
prop: "userName",
|
|
31
|
+
width: "150",
|
|
32
|
+
sortable: "custom",
|
|
33
|
+
isColumn: !0
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: "orderUserAddress.mobilePhone",
|
|
37
|
+
prop: "mobilePhoneIns",
|
|
38
|
+
slotName: "mobileIns",
|
|
39
|
+
columnType: "slot",
|
|
40
|
+
width: "150",
|
|
41
|
+
sortable: "custom",
|
|
42
|
+
isColumn: !0
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "orderUserAddress.detailInfo",
|
|
46
|
+
prop: "detailInfo",
|
|
47
|
+
minWidth: "150",
|
|
48
|
+
sortable: "custom",
|
|
49
|
+
isColumn: !0,
|
|
50
|
+
slotName: "detailInfo",
|
|
51
|
+
columnType: "slot"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "orderUserAddress.listOrder",
|
|
55
|
+
width: "60",
|
|
56
|
+
columnType: "slot",
|
|
57
|
+
slotName: "listOrder",
|
|
58
|
+
isColumn: !0
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "common.operate",
|
|
62
|
+
width: "100",
|
|
63
|
+
slotName: "operation",
|
|
64
|
+
columnType: "slot",
|
|
65
|
+
fixed: "right",
|
|
66
|
+
isColumn: !0
|
|
67
|
+
}
|
|
68
|
+
]);
|
|
69
|
+
const i = U({
|
|
70
|
+
title: b("common.edit"),
|
|
71
|
+
visible: !1
|
|
72
|
+
});
|
|
73
|
+
function q(n) {
|
|
74
|
+
n.mobileEncrypt = !n.mobileEncrypt;
|
|
75
|
+
}
|
|
76
|
+
let w = A({});
|
|
77
|
+
function B() {
|
|
78
|
+
w = A({}), i.value.title = b("common.add"), i.value.visible = !0;
|
|
79
|
+
}
|
|
80
|
+
function L(n) {
|
|
81
|
+
w.addressId = n.addressId, i.value.title = b("common.edit"), i.value.visible = !0;
|
|
82
|
+
}
|
|
83
|
+
function K(n) {
|
|
84
|
+
s.selectionRows.value = n;
|
|
85
|
+
}
|
|
86
|
+
function Q(n) {
|
|
87
|
+
s.handleSort(n.prop, n.order);
|
|
88
|
+
}
|
|
89
|
+
function O(n) {
|
|
90
|
+
n && s.getList();
|
|
91
|
+
}
|
|
92
|
+
return x(() => {
|
|
93
|
+
s.getList();
|
|
94
|
+
}), (n, o) => {
|
|
95
|
+
const I = a("el-input"), C = a("el-form-item"), f = a("el-col"), v = a("el-button"), V = a("el-row"), F = a("el-form"), H = a("jmash-column-select"), M = a("jmash-mobileIns-component"), W = a("Bottom"), P = a("el-icon"), G = a("Top"), J = a("jmash-table"), X = a("jmash-pagination"), Y = a("el-card"), y = ee("hasPerm");
|
|
96
|
+
return u(), $("div", ae, [
|
|
97
|
+
N("div", se, [
|
|
98
|
+
l(F, {
|
|
99
|
+
ref_key: "queryFormRef",
|
|
100
|
+
ref: j,
|
|
101
|
+
model: d.value,
|
|
102
|
+
inline: !0
|
|
103
|
+
}, {
|
|
104
|
+
default: t(() => [
|
|
105
|
+
l(V, null, {
|
|
106
|
+
default: t(() => [
|
|
107
|
+
l(f, { span: 6 }, {
|
|
108
|
+
default: t(() => [
|
|
109
|
+
l(C, {
|
|
110
|
+
label: n.$t("orderUserAddress.note"),
|
|
111
|
+
prop: "likeNote"
|
|
112
|
+
}, {
|
|
113
|
+
default: t(() => [
|
|
114
|
+
l(I, {
|
|
115
|
+
modelValue: d.value.likeNote,
|
|
116
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => d.value.likeNote = e),
|
|
117
|
+
placeholder: n.$t("orderUserAddress.noteRequired"),
|
|
118
|
+
onKeyup: o[1] || (o[1] = R((e) => r(s).handleQuery(), ["enter"])),
|
|
119
|
+
class: "!w-[203px]"
|
|
120
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["label"])
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}),
|
|
127
|
+
l(f, { span: 6 }, {
|
|
128
|
+
default: t(() => [
|
|
129
|
+
l(C, {
|
|
130
|
+
label: n.$t("orderUserAddress.userName"),
|
|
131
|
+
prop: "likeUserName"
|
|
132
|
+
}, {
|
|
133
|
+
default: t(() => [
|
|
134
|
+
l(I, {
|
|
135
|
+
modelValue: d.value.likeUserName,
|
|
136
|
+
"onUpdate:modelValue": o[2] || (o[2] = (e) => d.value.likeUserName = e),
|
|
137
|
+
placeholder: n.$t("orderUserAddress.userNameRequired"),
|
|
138
|
+
onKeyup: o[3] || (o[3] = R((e) => r(s).handleQuery(), ["enter"])),
|
|
139
|
+
class: "!w-[203px]"
|
|
140
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["label"])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}),
|
|
147
|
+
l(f, { span: 12 }, {
|
|
148
|
+
default: t(() => [
|
|
149
|
+
l(C, { class: "search-btn" }, {
|
|
150
|
+
default: t(() => [
|
|
151
|
+
l(v, {
|
|
152
|
+
type: "primary",
|
|
153
|
+
onClick: o[4] || (o[4] = (e) => r(s).handleQuery())
|
|
154
|
+
}, {
|
|
155
|
+
default: t(() => [
|
|
156
|
+
p(m(n.$t("common.search")), 1)
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
l(v, {
|
|
161
|
+
onClick: o[5] || (o[5] = (e) => r(s).resetQuery())
|
|
162
|
+
}, {
|
|
163
|
+
default: t(() => [
|
|
164
|
+
p(m(n.$t("common.reset")), 1)
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
})
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
})
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["model"]),
|
|
180
|
+
o[13] || (o[13] = N("div", { class: "clear" }, null, -1))
|
|
181
|
+
]),
|
|
182
|
+
l(Y, {
|
|
183
|
+
shadow: "never",
|
|
184
|
+
class: "table-container"
|
|
185
|
+
}, {
|
|
186
|
+
header: t(() => [
|
|
187
|
+
l(V, null, {
|
|
188
|
+
default: t(() => [
|
|
189
|
+
l(f, { span: 17 }, {
|
|
190
|
+
default: t(() => [
|
|
191
|
+
g((u(), h(v, {
|
|
192
|
+
type: "primary",
|
|
193
|
+
onClick: B
|
|
194
|
+
}, {
|
|
195
|
+
default: t(() => [
|
|
196
|
+
p(m(n.$t("common.add")), 1)
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
})), [
|
|
200
|
+
[y, ["order:order_user_address:add"]]
|
|
201
|
+
]),
|
|
202
|
+
g((u(), h(v, {
|
|
203
|
+
type: "primary",
|
|
204
|
+
onClick: o[6] || (o[6] = (e) => r(s).deleteRecords())
|
|
205
|
+
}, {
|
|
206
|
+
default: t(() => [
|
|
207
|
+
p(m(n.$t("common.batchDelete")), 1)
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
})), [
|
|
211
|
+
[y, ["order:order_user_address:delete"]]
|
|
212
|
+
])
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}),
|
|
216
|
+
l(f, {
|
|
217
|
+
span: 7,
|
|
218
|
+
class: "container-float"
|
|
219
|
+
}, {
|
|
220
|
+
default: t(() => [
|
|
221
|
+
l(H, {
|
|
222
|
+
modelValue: r(c),
|
|
223
|
+
"onUpdate:modelValue": o[7] || (o[7] = (e) => T(c) ? c.value = e : c = e),
|
|
224
|
+
"label-name": "order/order-user-address"
|
|
225
|
+
}, null, 8, ["modelValue"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
})
|
|
232
|
+
]),
|
|
233
|
+
footer: t(() => [
|
|
234
|
+
r(_) > 0 ? (u(), h(X, {
|
|
235
|
+
key: 0,
|
|
236
|
+
total: r(_),
|
|
237
|
+
"onUpdate:total": o[8] || (o[8] = (e) => T(_) ? _.value = e : null),
|
|
238
|
+
"current-page": d.value.curPage,
|
|
239
|
+
"onUpdate:currentPage": o[9] || (o[9] = (e) => d.value.curPage = e),
|
|
240
|
+
"page-size": d.value.pageSize,
|
|
241
|
+
"onUpdate:pageSize": o[10] || (o[10] = (e) => d.value.pageSize = e),
|
|
242
|
+
onPagination: o[11] || (o[11] = (e) => r(s).getList())
|
|
243
|
+
}, null, 8, ["total", "current-page", "page-size"])) : E("", !0)
|
|
244
|
+
]),
|
|
245
|
+
default: t(() => [
|
|
246
|
+
l(J, {
|
|
247
|
+
ref_key: "multipleTableRef",
|
|
248
|
+
ref: S,
|
|
249
|
+
"row-key": "addressId",
|
|
250
|
+
"list-loading": r(z),
|
|
251
|
+
data: r(D),
|
|
252
|
+
"table-label": r(c),
|
|
253
|
+
onSelectionChange: K,
|
|
254
|
+
onSortChange: Q
|
|
255
|
+
}, {
|
|
256
|
+
mobileIns: t((e) => [
|
|
257
|
+
l(M, {
|
|
258
|
+
mobilePhoneIns: e.data.row.mobilePhoneIns,
|
|
259
|
+
mobilePhone: e.data.row.mobilePhone,
|
|
260
|
+
mobileEncrypt: e.data.row.mobileEncrypt,
|
|
261
|
+
onToggleEncrypt: (k) => q(e.data.row)
|
|
262
|
+
}, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
|
|
263
|
+
]),
|
|
264
|
+
detailInfo: t((e) => [
|
|
265
|
+
N("span", null, m(e.data.row.cityName) + " " + m(e.data.row.detailInfo), 1)
|
|
266
|
+
]),
|
|
267
|
+
listOrder: t((e) => [
|
|
268
|
+
l(P, {
|
|
269
|
+
size: "16",
|
|
270
|
+
onClick: (k) => r(s).handleMove(e.data.row, !1)
|
|
271
|
+
}, {
|
|
272
|
+
default: t(() => [
|
|
273
|
+
l(W)
|
|
274
|
+
]),
|
|
275
|
+
_: 2
|
|
276
|
+
}, 1032, ["onClick"]),
|
|
277
|
+
l(P, {
|
|
278
|
+
size: "16",
|
|
279
|
+
onClick: (k) => r(s).handleMove(e.data.row, !0)
|
|
280
|
+
}, {
|
|
281
|
+
default: t(() => [
|
|
282
|
+
l(G)
|
|
283
|
+
]),
|
|
284
|
+
_: 2
|
|
285
|
+
}, 1032, ["onClick"])
|
|
286
|
+
]),
|
|
287
|
+
operation: t((e) => [
|
|
288
|
+
g((u(), $("span", {
|
|
289
|
+
class: "el-button-color",
|
|
290
|
+
onClick: (k) => L(e.data.row)
|
|
291
|
+
}, [
|
|
292
|
+
p(m(n.$t("common.edit")), 1)
|
|
293
|
+
], 8, de)), [
|
|
294
|
+
[y, ["order:order_user_address:update"]]
|
|
295
|
+
]),
|
|
296
|
+
g((u(), $("span", {
|
|
297
|
+
class: "el-button-color dropdown-left",
|
|
298
|
+
onClick: (k) => r(s).deleteRecord(e.data.row)
|
|
299
|
+
}, [
|
|
300
|
+
p(m(n.$t("common.delete")), 1)
|
|
301
|
+
], 8, ie)), [
|
|
302
|
+
[y, ["order:order_user_address:delete"]]
|
|
303
|
+
])
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}),
|
|
310
|
+
i.value.visible ? (u(), h(ne, {
|
|
311
|
+
key: 0,
|
|
312
|
+
modelValue: i.value.visible,
|
|
313
|
+
"onUpdate:modelValue": o[12] || (o[12] = (e) => i.value.visible = e),
|
|
314
|
+
title: i.value.title,
|
|
315
|
+
"entity-key": r(w),
|
|
316
|
+
onRefresh: O,
|
|
317
|
+
width: "500px"
|
|
318
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : E("", !0)
|
|
319
|
+
]);
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
export {
|
|
324
|
+
ve as default
|
|
325
|
+
};
|
package/dist/index.mjs
CHANGED
|
@@ -360,7 +360,7 @@ function v(e) {
|
|
|
360
360
|
let i = e.global.getLocaleMessage("en");
|
|
361
361
|
i = d(i, g), e.global.setLocaleMessage("zh-cn", o), e.global.setLocaleMessage("en", i);
|
|
362
362
|
}
|
|
363
|
-
const R = () => import("./index-DSwrPGyq.mjs"), P = () => import("./orderPaper-C6ua3CNE.mjs"), w = () => import("./payment-BcsD4Glh.mjs"), q = () => import("./orderAddress-
|
|
363
|
+
const R = () => import("./index-DSwrPGyq.mjs"), P = () => import("./orderPaper-C6ua3CNE.mjs"), w = () => import("./payment-BcsD4Glh.mjs"), q = () => import("./orderAddress-D4LKaLK_.mjs"), D = () => import("./invoice-Gr3U3ZFi.mjs"), N = () => import("./invoiceView-Cshwyw3t.mjs"), z = () => import("./applyEdit-CWE44lBB.mjs"), x = () => import("./info-DPgtOp9p.mjs"), t = [
|
|
364
364
|
{
|
|
365
365
|
path: "/buyer",
|
|
366
366
|
component: r,
|
|
@@ -513,7 +513,7 @@ const R = () => import("./index-DSwrPGyq.mjs"), P = () => import("./orderPaper-C
|
|
|
513
513
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
514
514
|
});
|
|
515
515
|
u.value = k;
|
|
516
|
-
const S = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-CWE44lBB.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-2-3T2C8U.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-DPgtOp9p.mjs"), "./views/buyer/order-info/invoice.vue": () => import("./invoice-Gr3U3ZFi.mjs"), "./views/buyer/order-info/invoiceEdit.vue": () => import("./invoiceEdit-zNW26cGt.mjs"), "./views/buyer/order-info/invoiceView.vue": () => import("./invoiceView-Cshwyw3t.mjs"), "./views/buyer/order-info/list.vue": () => import("./list-BPfP8vsl.mjs"), "./views/buyer/order-info/sendDialog.vue": () => import("./sendDialog-25fhb-Uj.mjs"), "./views/buyer/order-info/userInvoice.vue": () => import("./userInvoice-0RXAbWze.mjs"), "./views/buyer/order-newspaper/edit.vue": () => import("./edit-B_W9Nbg_.mjs"), "./views/buyer/order-newspaper/index.vue": () => import("./index-DSwrPGyq.mjs"), "./views/buyer/order-newspaper/orderAddress.vue": () => import("./orderAddress-
|
|
516
|
+
const S = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-CWE44lBB.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-2-3T2C8U.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-DPgtOp9p.mjs"), "./views/buyer/order-info/invoice.vue": () => import("./invoice-Gr3U3ZFi.mjs"), "./views/buyer/order-info/invoiceEdit.vue": () => import("./invoiceEdit-zNW26cGt.mjs"), "./views/buyer/order-info/invoiceView.vue": () => import("./invoiceView-Cshwyw3t.mjs"), "./views/buyer/order-info/list.vue": () => import("./list-BPfP8vsl.mjs"), "./views/buyer/order-info/sendDialog.vue": () => import("./sendDialog-25fhb-Uj.mjs"), "./views/buyer/order-info/userInvoice.vue": () => import("./userInvoice-0RXAbWze.mjs"), "./views/buyer/order-newspaper/edit.vue": () => import("./edit-B_W9Nbg_.mjs"), "./views/buyer/order-newspaper/index.vue": () => import("./index-DSwrPGyq.mjs"), "./views/buyer/order-newspaper/orderAddress.vue": () => import("./orderAddress-D4LKaLK_.mjs"), "./views/buyer/order-newspaper/orderPaper.vue": () => import("./orderPaper-C6ua3CNE.mjs"), "./views/buyer/order-newspaper/payment copy.vue": () => import("./payment copy-CyZWiAyq.mjs"), "./views/buyer/order-newspaper/payment.vue": () => import("./payment-BcsD4Glh.mjs"), "./views/buyer/order-user-address/edit.vue": () => import("./edit-BFspmCb_.mjs"), "./views/buyer/order-user-address/index.vue": () => import("./index-CvxCHZ3l.mjs") }), M = {
|
|
517
517
|
install(e) {
|
|
518
518
|
c(S, 7), l(t), v(f);
|
|
519
519
|
}
|