xyvcard-paper-buyer 0.0.11 → 0.0.12

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.
@@ -0,0 +1,355 @@
1
+ import { defineComponent as le, ref as g, reactive as T, onActivated as oe, resolveComponent as a, resolveDirective as ne, createElementBlock as R, openBlock as c, createElementVNode as A, createVNode as n, createBlock as U, createCommentVNode as C, withCtx as o, withKeys as j, unref as r, createTextVNode as b, toDisplayString as p, withDirectives as $, isRef as S } from "vue";
2
+ import { useTableHooks as re } from "jmash-core";
3
+ import { useI18n as ae } from "vue-i18n";
4
+ import { o as se } from "./index-CIhWvEaK.mjs";
5
+ import ie from "./edit-DT79EUCr.mjs";
6
+ import { useRouter as de } from "vue-router";
7
+ import { dictRegionApi as ue } from "jmash-region";
8
+ const me = { class: "app-container" }, pe = { class: "search-container" }, ce = ["onClick"], fe = ["onClick"], ge = /* @__PURE__ */ le({
9
+ __name: "index",
10
+ setup(be) {
11
+ const { t: y } = ae();
12
+ de();
13
+ const d = g({}), {
14
+ tableHooks: s,
15
+ multipleTableRef: z,
16
+ queryFormRef: B,
17
+ listLoading: D,
18
+ tableData: I,
19
+ total: h
20
+ } = re(y, se, d);
21
+ let v = g([
22
+ {
23
+ label: "orderUserAddress.note",
24
+ prop: "note",
25
+ minWidth: "150",
26
+ sortable: "custom",
27
+ isColumn: !0
28
+ },
29
+ {
30
+ label: "orderUserAddress.userName",
31
+ prop: "userName",
32
+ width: "150",
33
+ sortable: "custom",
34
+ isColumn: !0
35
+ },
36
+ {
37
+ label: "orderUserAddress.mobilePhone",
38
+ prop: "mobilePhoneIns",
39
+ slotName: "mobileIns",
40
+ columnType: "slot",
41
+ width: "150",
42
+ sortable: "custom",
43
+ isColumn: !0
44
+ },
45
+ {
46
+ label: "orderUserAddress.detailInfo",
47
+ prop: "detailInfo",
48
+ minWidth: "150",
49
+ sortable: "custom",
50
+ isColumn: !0,
51
+ slotName: "detailInfo",
52
+ columnType: "slot"
53
+ },
54
+ {
55
+ label: "orderUserAddress.listOrder",
56
+ width: "60",
57
+ columnType: "slot",
58
+ slotName: "listOrder",
59
+ isColumn: !0
60
+ },
61
+ {
62
+ label: "common.operate",
63
+ width: "100",
64
+ slotName: "operation",
65
+ columnType: "slot",
66
+ fixed: "right",
67
+ isColumn: !0
68
+ }
69
+ ]);
70
+ const u = g({
71
+ title: y("common.edit"),
72
+ visible: !1
73
+ });
74
+ function q(e) {
75
+ e.mobileEncrypt = !e.mobileEncrypt;
76
+ }
77
+ let V = T({});
78
+ function L() {
79
+ V = T({}), u.value.title = y("common.add"), u.value.visible = !0;
80
+ }
81
+ function F(e) {
82
+ V.addressId = e.addressId, u.value.title = y("common.edit"), u.value.visible = !0;
83
+ }
84
+ function K(e) {
85
+ s.selectionRows.value = e;
86
+ }
87
+ function M(e) {
88
+ s.handleSort(e.prop, e.order);
89
+ }
90
+ const f = g(/* @__PURE__ */ new Map());
91
+ async function Q(e) {
92
+ if (!e)
93
+ return "";
94
+ if (f.value.has(e))
95
+ return f.value.get(e) || e;
96
+ try {
97
+ const t = await ue.findByCode({
98
+ regionCode: e
99
+ });
100
+ if (t.data) {
101
+ const m = O(t.data);
102
+ return f.value.set(e, m), I.value = [...I.value], m;
103
+ }
104
+ return e;
105
+ } catch (t) {
106
+ return console.error(`获取地区编码 ${e} 的信息失败:`, t), f.value.set(e, e), e;
107
+ }
108
+ }
109
+ function O(e) {
110
+ const t = [];
111
+ function m(i) {
112
+ i && i.regionName && t.push(i.regionName), i && i.children && i.children.length > 0 && m(i.children[0]);
113
+ }
114
+ return m(e), t.join("");
115
+ }
116
+ function H(e) {
117
+ return f.value.has(e) ? f.value.get(e) || e : e ? (Q(e), e) : "";
118
+ }
119
+ function W(e) {
120
+ e && s.getList();
121
+ }
122
+ return oe(() => {
123
+ s.getList();
124
+ }), (e, t) => {
125
+ const m = a("el-input"), i = a("el-form-item"), _ = a("el-col"), k = a("el-button"), P = a("el-row"), G = a("el-form"), J = a("jmash-column-select"), X = a("jmash-mobileIns-component"), Y = a("Bottom"), E = a("el-icon"), Z = a("Top"), x = a("jmash-table"), ee = a("jmash-pagination"), te = a("el-card"), w = ne("hasPerm");
126
+ return c(), R("div", me, [
127
+ A("div", pe, [
128
+ n(G, {
129
+ ref_key: "queryFormRef",
130
+ ref: B,
131
+ model: d.value,
132
+ inline: !0
133
+ }, {
134
+ default: o(() => [
135
+ n(P, null, {
136
+ default: o(() => [
137
+ n(_, { span: 6 }, {
138
+ default: o(() => [
139
+ n(i, {
140
+ label: e.$t("orderUserAddress.note"),
141
+ prop: "likeNote"
142
+ }, {
143
+ default: o(() => [
144
+ n(m, {
145
+ modelValue: d.value.likeNote,
146
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => d.value.likeNote = l),
147
+ placeholder: e.$t("orderUserAddress.noteRequired"),
148
+ onKeyup: t[1] || (t[1] = j((l) => r(s).handleQuery(), ["enter"])),
149
+ class: "!w-[203px]"
150
+ }, null, 8, ["modelValue", "placeholder"])
151
+ ]),
152
+ _: 1
153
+ }, 8, ["label"])
154
+ ]),
155
+ _: 1
156
+ }),
157
+ n(_, { span: 6 }, {
158
+ default: o(() => [
159
+ n(i, {
160
+ label: e.$t("orderUserAddress.userName"),
161
+ prop: "likeUserName"
162
+ }, {
163
+ default: o(() => [
164
+ n(m, {
165
+ modelValue: d.value.likeUserName,
166
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => d.value.likeUserName = l),
167
+ placeholder: e.$t("orderUserAddress.userNameRequired"),
168
+ onKeyup: t[3] || (t[3] = j((l) => r(s).handleQuery(), ["enter"])),
169
+ class: "!w-[203px]"
170
+ }, null, 8, ["modelValue", "placeholder"])
171
+ ]),
172
+ _: 1
173
+ }, 8, ["label"])
174
+ ]),
175
+ _: 1
176
+ }),
177
+ n(_, { span: 12 }, {
178
+ default: o(() => [
179
+ n(i, { class: "search-btn" }, {
180
+ default: o(() => [
181
+ n(k, {
182
+ type: "primary",
183
+ onClick: t[4] || (t[4] = (l) => r(s).handleQuery())
184
+ }, {
185
+ default: o(() => [
186
+ b(p(e.$t("common.search")), 1)
187
+ ]),
188
+ _: 1
189
+ }),
190
+ n(k, {
191
+ onClick: t[5] || (t[5] = (l) => r(s).resetQuery())
192
+ }, {
193
+ default: o(() => [
194
+ b(p(e.$t("common.reset")), 1)
195
+ ]),
196
+ _: 1
197
+ })
198
+ ]),
199
+ _: 1
200
+ })
201
+ ]),
202
+ _: 1
203
+ })
204
+ ]),
205
+ _: 1
206
+ })
207
+ ]),
208
+ _: 1
209
+ }, 8, ["model"]),
210
+ t[13] || (t[13] = A("div", { class: "clear" }, null, -1))
211
+ ]),
212
+ n(te, {
213
+ shadow: "never",
214
+ class: "table-container"
215
+ }, {
216
+ header: o(() => [
217
+ n(P, null, {
218
+ default: o(() => [
219
+ n(_, { span: 17 }, {
220
+ default: o(() => [
221
+ $((c(), U(k, {
222
+ type: "primary",
223
+ onClick: L
224
+ }, {
225
+ default: o(() => [
226
+ b(p(e.$t("common.add")), 1)
227
+ ]),
228
+ _: 1
229
+ })), [
230
+ [w, ["order:order_user_address:add"]]
231
+ ]),
232
+ $((c(), U(k, {
233
+ type: "primary",
234
+ onClick: t[6] || (t[6] = (l) => r(s).deleteRecords())
235
+ }, {
236
+ default: o(() => [
237
+ b(p(e.$t("common.batchDelete")), 1)
238
+ ]),
239
+ _: 1
240
+ })), [
241
+ [w, ["order:order_user_address:delete"]]
242
+ ])
243
+ ]),
244
+ _: 1
245
+ }),
246
+ n(_, {
247
+ span: 7,
248
+ class: "container-float"
249
+ }, {
250
+ default: o(() => [
251
+ n(J, {
252
+ modelValue: r(v),
253
+ "onUpdate:modelValue": t[7] || (t[7] = (l) => S(v) ? v.value = l : v = l),
254
+ "label-name": "order/order-user-address"
255
+ }, null, 8, ["modelValue"])
256
+ ]),
257
+ _: 1
258
+ })
259
+ ]),
260
+ _: 1
261
+ })
262
+ ]),
263
+ footer: o(() => [
264
+ r(h) > 0 ? (c(), U(ee, {
265
+ key: 0,
266
+ total: r(h),
267
+ "onUpdate:total": t[8] || (t[8] = (l) => S(h) ? h.value = l : null),
268
+ "current-page": d.value.curPage,
269
+ "onUpdate:currentPage": t[9] || (t[9] = (l) => d.value.curPage = l),
270
+ "page-size": d.value.pageSize,
271
+ "onUpdate:pageSize": t[10] || (t[10] = (l) => d.value.pageSize = l),
272
+ onPagination: t[11] || (t[11] = (l) => r(s).getList())
273
+ }, null, 8, ["total", "current-page", "page-size"])) : C("", !0)
274
+ ]),
275
+ default: o(() => [
276
+ n(x, {
277
+ ref_key: "multipleTableRef",
278
+ ref: z,
279
+ "row-key": "addressId",
280
+ "list-loading": r(D),
281
+ data: r(I),
282
+ "table-label": r(v),
283
+ onSelectionChange: K,
284
+ onSortChange: M
285
+ }, {
286
+ mobileIns: o((l) => [
287
+ n(X, {
288
+ mobilePhoneIns: l.data.row.mobilePhoneIns,
289
+ mobilePhone: l.data.row.mobilePhone,
290
+ mobileEncrypt: l.data.row.mobileEncrypt,
291
+ onToggleEncrypt: (N) => q(l.data.row)
292
+ }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
293
+ ]),
294
+ detailInfo: o((l) => [
295
+ A("span", null, p(H(l.data.row.provinceName)) + " " + p(l.data.row.detailInfo), 1)
296
+ ]),
297
+ listOrder: o((l) => [
298
+ n(E, {
299
+ size: "16",
300
+ onClick: (N) => r(s).handleMove(l.data.row, !1)
301
+ }, {
302
+ default: o(() => [
303
+ n(Y)
304
+ ]),
305
+ _: 2
306
+ }, 1032, ["onClick"]),
307
+ n(E, {
308
+ size: "16",
309
+ onClick: (N) => r(s).handleMove(l.data.row, !0)
310
+ }, {
311
+ default: o(() => [
312
+ n(Z)
313
+ ]),
314
+ _: 2
315
+ }, 1032, ["onClick"])
316
+ ]),
317
+ operation: o((l) => [
318
+ $((c(), R("span", {
319
+ class: "el-button-color",
320
+ onClick: (N) => F(l.data.row)
321
+ }, [
322
+ b(p(e.$t("common.edit")), 1)
323
+ ], 8, ce)), [
324
+ [w, ["order:order_user_address:update"]]
325
+ ]),
326
+ $((c(), R("span", {
327
+ class: "el-button-color dropdown-left",
328
+ onClick: (N) => r(s).deleteRecord(l.data.row)
329
+ }, [
330
+ b(p(e.$t("common.delete")), 1)
331
+ ], 8, fe)), [
332
+ [w, ["order:order_user_address:delete"]]
333
+ ])
334
+ ]),
335
+ _: 1
336
+ }, 8, ["list-loading", "data", "table-label"])
337
+ ]),
338
+ _: 1
339
+ }),
340
+ u.value.visible ? (c(), U(ie, {
341
+ key: 0,
342
+ modelValue: u.value.visible,
343
+ "onUpdate:modelValue": t[12] || (t[12] = (l) => u.value.visible = l),
344
+ title: u.value.title,
345
+ "entity-key": r(V),
346
+ onRefresh: W,
347
+ width: "500px"
348
+ }, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0)
349
+ ]);
350
+ };
351
+ }
352
+ });
353
+ export {
354
+ ge as default
355
+ };
package/dist/index.mjs CHANGED
@@ -513,7 +513,7 @@ const R = () => import("./index-DSwrPGyq.mjs"), P = () => import("./orderPaper-_
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-D38xp4fr.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-BrIvEMDo.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-BRVKRWmR.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-CCsRE3bA.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-ByTTzFrR.mjs"), "./views/buyer/order-newspaper/orderPaper.vue": () => import("./orderPaper-_2Kq65vV.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-DT79EUCr.mjs"), "./views/buyer/order-user-address/index.vue": () => import("./index-BmhkFkvJ.mjs") }), M = {
516
+ const S = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-D38xp4fr.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-BrIvEMDo.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-BRVKRWmR.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-CCsRE3bA.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-ByTTzFrR.mjs"), "./views/buyer/order-newspaper/orderPaper.vue": () => import("./orderPaper-_2Kq65vV.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-DT79EUCr.mjs"), "./views/buyer/order-user-address/index.vue": () => import("./index-PoARbGVn.mjs") }), M = {
517
517
  install(e) {
518
518
  c(S, 7), l(t), v(f);
519
519
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-paper-buyer",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "vue": "^3.4.21",
30
30
  "vue-i18n": "^9.10.1",
31
31
  "vue-router": "^4.3.0",
32
- "xyvcard-paper-union": "^0.0.14",
32
+ "xyvcard-paper-union": "^0.0.17",
33
33
  "xyvcard-union": "^0.0.82"
34
34
  },
35
35
  "devDependencies": {
@@ -1,320 +0,0 @@
1
- import { defineComponent as Z, ref as U, reactive as A, onActivated as x, resolveComponent as a, resolveDirective as ee, createElementBlock as $, openBlock as m, createElementVNode as I, createVNode as t, createBlock as h, createCommentVNode as E, withCtx as l, withKeys as R, unref as r, createTextVNode as u, toDisplayString as p, 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-DT79EUCr.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: f } = 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(f, 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
- },
51
- {
52
- label: "orderUserAddress.listOrder",
53
- width: "60",
54
- columnType: "slot",
55
- slotName: "listOrder",
56
- isColumn: !0
57
- },
58
- {
59
- label: "common.operate",
60
- width: "100",
61
- slotName: "operation",
62
- columnType: "slot",
63
- fixed: "right",
64
- isColumn: !0
65
- }
66
- ]);
67
- const i = U({
68
- title: f("common.edit"),
69
- visible: !1
70
- });
71
- function q(n) {
72
- n.mobileEncrypt = !n.mobileEncrypt;
73
- }
74
- let C = A({});
75
- function B() {
76
- C = A({}), i.value.title = f("common.add"), i.value.visible = !0;
77
- }
78
- function L(n) {
79
- C.addressId = n.addressId, i.value.title = f("common.edit"), i.value.visible = !0;
80
- }
81
- function K(n) {
82
- s.selectionRows.value = n;
83
- }
84
- function Q(n) {
85
- s.handleSort(n.prop, n.order);
86
- }
87
- function O(n) {
88
- n && s.getList();
89
- }
90
- return x(() => {
91
- s.getList();
92
- }), (n, o) => {
93
- const N = a("el-input"), w = a("el-form-item"), b = 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");
94
- return m(), $("div", ae, [
95
- I("div", se, [
96
- t(F, {
97
- ref_key: "queryFormRef",
98
- ref: j,
99
- model: d.value,
100
- inline: !0
101
- }, {
102
- default: l(() => [
103
- t(V, null, {
104
- default: l(() => [
105
- t(b, { span: 6 }, {
106
- default: l(() => [
107
- t(w, {
108
- label: n.$t("orderUserAddress.note"),
109
- prop: "likeNote"
110
- }, {
111
- default: l(() => [
112
- t(N, {
113
- modelValue: d.value.likeNote,
114
- "onUpdate:modelValue": o[0] || (o[0] = (e) => d.value.likeNote = e),
115
- placeholder: n.$t("orderUserAddress.noteRequired"),
116
- onKeyup: o[1] || (o[1] = R((e) => r(s).handleQuery(), ["enter"])),
117
- class: "!w-[203px]"
118
- }, null, 8, ["modelValue", "placeholder"])
119
- ]),
120
- _: 1
121
- }, 8, ["label"])
122
- ]),
123
- _: 1
124
- }),
125
- t(b, { span: 6 }, {
126
- default: l(() => [
127
- t(w, {
128
- label: n.$t("orderUserAddress.userName"),
129
- prop: "likeUserName"
130
- }, {
131
- default: l(() => [
132
- t(N, {
133
- modelValue: d.value.likeUserName,
134
- "onUpdate:modelValue": o[2] || (o[2] = (e) => d.value.likeUserName = e),
135
- placeholder: n.$t("orderUserAddress.userNameRequired"),
136
- onKeyup: o[3] || (o[3] = R((e) => r(s).handleQuery(), ["enter"])),
137
- class: "!w-[203px]"
138
- }, null, 8, ["modelValue", "placeholder"])
139
- ]),
140
- _: 1
141
- }, 8, ["label"])
142
- ]),
143
- _: 1
144
- }),
145
- t(b, { span: 12 }, {
146
- default: l(() => [
147
- t(w, { class: "search-btn" }, {
148
- default: l(() => [
149
- t(v, {
150
- type: "primary",
151
- onClick: o[4] || (o[4] = (e) => r(s).handleQuery())
152
- }, {
153
- default: l(() => [
154
- u(p(n.$t("common.search")), 1)
155
- ]),
156
- _: 1
157
- }),
158
- t(v, {
159
- onClick: o[5] || (o[5] = (e) => r(s).resetQuery())
160
- }, {
161
- default: l(() => [
162
- u(p(n.$t("common.reset")), 1)
163
- ]),
164
- _: 1
165
- })
166
- ]),
167
- _: 1
168
- })
169
- ]),
170
- _: 1
171
- })
172
- ]),
173
- _: 1
174
- })
175
- ]),
176
- _: 1
177
- }, 8, ["model"]),
178
- o[13] || (o[13] = I("div", { class: "clear" }, null, -1))
179
- ]),
180
- t(Y, {
181
- shadow: "never",
182
- class: "table-container"
183
- }, {
184
- header: l(() => [
185
- t(V, null, {
186
- default: l(() => [
187
- t(b, { span: 17 }, {
188
- default: l(() => [
189
- g((m(), h(v, {
190
- type: "primary",
191
- onClick: B
192
- }, {
193
- default: l(() => [
194
- u(p(n.$t("common.add")), 1)
195
- ]),
196
- _: 1
197
- })), [
198
- [y, ["order:order_user_address:add"]]
199
- ]),
200
- g((m(), h(v, {
201
- type: "primary",
202
- onClick: o[6] || (o[6] = (e) => r(s).deleteRecords())
203
- }, {
204
- default: l(() => [
205
- u(p(n.$t("common.batchDelete")), 1)
206
- ]),
207
- _: 1
208
- })), [
209
- [y, ["order:order_user_address:delete"]]
210
- ])
211
- ]),
212
- _: 1
213
- }),
214
- t(b, {
215
- span: 7,
216
- class: "container-float"
217
- }, {
218
- default: l(() => [
219
- t(H, {
220
- modelValue: r(c),
221
- "onUpdate:modelValue": o[7] || (o[7] = (e) => T(c) ? c.value = e : c = e),
222
- "label-name": "order/order-user-address"
223
- }, null, 8, ["modelValue"])
224
- ]),
225
- _: 1
226
- })
227
- ]),
228
- _: 1
229
- })
230
- ]),
231
- footer: l(() => [
232
- r(_) > 0 ? (m(), h(X, {
233
- key: 0,
234
- total: r(_),
235
- "onUpdate:total": o[8] || (o[8] = (e) => T(_) ? _.value = e : null),
236
- "current-page": d.value.curPage,
237
- "onUpdate:currentPage": o[9] || (o[9] = (e) => d.value.curPage = e),
238
- "page-size": d.value.pageSize,
239
- "onUpdate:pageSize": o[10] || (o[10] = (e) => d.value.pageSize = e),
240
- onPagination: o[11] || (o[11] = (e) => r(s).getList())
241
- }, null, 8, ["total", "current-page", "page-size"])) : E("", !0)
242
- ]),
243
- default: l(() => [
244
- t(J, {
245
- ref_key: "multipleTableRef",
246
- ref: S,
247
- "row-key": "addressId",
248
- "list-loading": r(z),
249
- data: r(D),
250
- "table-label": r(c),
251
- onSelectionChange: K,
252
- onSortChange: Q
253
- }, {
254
- mobileIns: l((e) => [
255
- t(M, {
256
- mobilePhoneIns: e.data.row.mobilePhoneIns,
257
- mobilePhone: e.data.row.mobilePhone,
258
- mobileEncrypt: e.data.row.mobileEncrypt,
259
- onToggleEncrypt: (k) => q(e.data.row)
260
- }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
261
- ]),
262
- listOrder: l((e) => [
263
- t(P, {
264
- size: "16",
265
- onClick: (k) => r(s).handleMove(e.data.row, !1)
266
- }, {
267
- default: l(() => [
268
- t(W)
269
- ]),
270
- _: 2
271
- }, 1032, ["onClick"]),
272
- t(P, {
273
- size: "16",
274
- onClick: (k) => r(s).handleMove(e.data.row, !0)
275
- }, {
276
- default: l(() => [
277
- t(G)
278
- ]),
279
- _: 2
280
- }, 1032, ["onClick"])
281
- ]),
282
- operation: l((e) => [
283
- g((m(), $("span", {
284
- class: "el-button-color",
285
- onClick: (k) => L(e.data.row)
286
- }, [
287
- u(p(n.$t("common.edit")), 1)
288
- ], 8, de)), [
289
- [y, ["order:order_user_address:update"]]
290
- ]),
291
- g((m(), $("span", {
292
- class: "el-button-color dropdown-left",
293
- onClick: (k) => r(s).deleteRecord(e.data.row)
294
- }, [
295
- u(p(n.$t("common.delete")), 1)
296
- ], 8, ie)), [
297
- [y, ["order:order_user_address:delete"]]
298
- ])
299
- ]),
300
- _: 1
301
- }, 8, ["list-loading", "data", "table-label"])
302
- ]),
303
- _: 1
304
- }),
305
- i.value.visible ? (m(), h(ne, {
306
- key: 0,
307
- modelValue: i.value.visible,
308
- "onUpdate:modelValue": o[12] || (o[12] = (e) => i.value.visible = e),
309
- title: i.value.title,
310
- "entity-key": r(C),
311
- onRefresh: O,
312
- width: "500px"
313
- }, null, 8, ["modelValue", "title", "entity-key"])) : E("", !0)
314
- ]);
315
- };
316
- }
317
- });
318
- export {
319
- ve as default
320
- };