xyvcard-paper-buyer 0.0.49 → 0.0.51
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-Ch-oVoTx.mjs → applyEdit-xjYBzFbb.mjs} +1 -1
- package/dist/{index-BKZPqxLM.mjs → index-BCt6P3MY.mjs} +501 -519
- package/dist/{index-CBj9jO6o.mjs → index-CFbuS8W8.mjs} +121 -108
- package/dist/index-CNxs6SEe.mjs +136 -0
- package/dist/index.mjs +3 -2
- package/dist/{info-D61FnBcM.mjs → info-BmV7cZbD.mjs} +1 -1
- package/dist/{orderInfo-mkmFfFuC.mjs → orderInfo-BSPKYn7H.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/buyer/order-newspaper/types.d.ts +1 -0
- package/dts/lang/order/zh-cn.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-BWV5njqv.mjs +0 -135
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { defineComponent as ie, ref as
|
|
1
|
+
import { defineComponent as ie, ref as U, onActivated as pe, resolveComponent as i, resolveDirective as me, createElementBlock as I, openBlock as m, createElementVNode as c, createVNode as n, withCtx as r, withKeys as P, unref as a, createTextVNode as u, toDisplayString as l, withDirectives as S, createCommentVNode as y, createBlock as $, isRef as L } from "vue";
|
|
2
2
|
import { D as k, C as _ } from "./index-Knr6dYOL.mjs";
|
|
3
|
-
import { o as
|
|
3
|
+
import { o as Q } from "./index-BCt6P3MY.mjs";
|
|
4
4
|
import { vueMetaEnv as fe, useTableHooks as ce } from "jmash-core";
|
|
5
5
|
import { useI18n as be } from "vue-i18n";
|
|
6
6
|
import { useRouter as ve } from "vue-router";
|
|
7
|
-
const ye = { class: "app-container" }, Ie = { class: "search-container dis_bottom" }, _e = { class: "total-num dis_bottom" }, we = { class: "blue_color" }, he = { class: "blue_color" }, Ce = { class: "blue_color" }, Se = { key: 0 }, ge = ["onClick"], ke = ["onClick"], Ne = ["onClick"], Pe = ["onClick"],
|
|
7
|
+
const ye = { class: "app-container" }, Ie = { class: "search-container dis_bottom" }, _e = { class: "total-num dis_bottom" }, we = { class: "blue_color" }, he = { class: "blue_color" }, Ce = { class: "blue_color" }, Se = { key: 0 }, ge = ["onClick"], ke = ["onClick"], Ne = ["onClick"], Pe = ["onClick"], $e = ["onClick"], Oe = /* @__PURE__ */ ie({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
9
|
+
setup(Ve) {
|
|
10
|
+
const q = localStorage.getItem("unionUserInfo"), z = (q ? JSON.parse(q) : {}).orgId, R = fe.APP_ORGAN_ID, { t: A } = be(), w = ve(), d = U({
|
|
11
11
|
curPage: 1,
|
|
12
12
|
pageSize: 10,
|
|
13
|
-
shopBranchId:
|
|
13
|
+
shopBranchId: z
|
|
14
14
|
}), {
|
|
15
|
-
tableHooks:
|
|
15
|
+
tableHooks: f,
|
|
16
16
|
multipleTableRef: K,
|
|
17
17
|
queryFormRef: M,
|
|
18
18
|
listLoading: B,
|
|
19
19
|
tableData: F,
|
|
20
20
|
total: N
|
|
21
|
-
} = ce(
|
|
21
|
+
} = ce(A, Q, d), V = f.totalRecord;
|
|
22
22
|
function W(t) {
|
|
23
23
|
if (!t) return "0";
|
|
24
24
|
const o = parseFloat(String(t));
|
|
25
25
|
return Number.isInteger(o) ? o.toString() : o.toFixed(2);
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const T = U([]);
|
|
28
28
|
function G(t) {
|
|
29
|
-
|
|
29
|
+
d.value.startDate = t[0], d.value.endDate = t[1];
|
|
30
30
|
}
|
|
31
31
|
function H() {
|
|
32
|
-
|
|
32
|
+
T.value = [], d.value.startDate = "", d.value.endDate = "", f.resetQuery();
|
|
33
33
|
}
|
|
34
|
-
let
|
|
34
|
+
let g = U([
|
|
35
35
|
{
|
|
36
36
|
label: "orderInfo.orderCode",
|
|
37
37
|
prop: "orderCode",
|
|
@@ -140,7 +140,7 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
140
140
|
path: "/buyer/order-info/invoice",
|
|
141
141
|
query: {
|
|
142
142
|
orderCode: t.orderCode,
|
|
143
|
-
organId:
|
|
143
|
+
organId: R
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}
|
|
@@ -149,13 +149,13 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
149
149
|
path: "/buyer/order-info/invoiceView",
|
|
150
150
|
query: {
|
|
151
151
|
orderCode: t.orderCode,
|
|
152
|
-
organId:
|
|
152
|
+
organId: R
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
async function oe(t) {
|
|
157
157
|
try {
|
|
158
|
-
const o = await
|
|
158
|
+
const o = await Q.queryOrderAddress({ orderId: t.orderId });
|
|
159
159
|
o && o.data === !0 ? w.push({
|
|
160
160
|
path: "/buyer/order-newspaper/orderDetails",
|
|
161
161
|
query: {
|
|
@@ -175,34 +175,34 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
175
175
|
query: { orderId: t.orderId }
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
return
|
|
179
|
-
|
|
178
|
+
return pe(() => {
|
|
179
|
+
f.getList();
|
|
180
180
|
}), (t, o) => {
|
|
181
|
-
const
|
|
182
|
-
return
|
|
183
|
-
|
|
181
|
+
const O = i("el-input"), h = i("el-form-item"), p = i("el-col"), j = i("jmash-select"), re = i("el-date-picker"), E = i("el-button"), D = i("el-row"), ne = i("el-form"), ae = i("jmash-column-select"), Y = i("el-tag"), le = i("jmash-mobileIns-component"), de = i("jmash-table"), ue = i("jmash-pagination"), se = i("el-card"), C = me("hasPerm");
|
|
182
|
+
return m(), I("div", ye, [
|
|
183
|
+
c("div", Ie, [
|
|
184
184
|
n(ne, {
|
|
185
185
|
ref_key: "queryFormRef",
|
|
186
186
|
ref: M,
|
|
187
|
-
model:
|
|
187
|
+
model: d.value,
|
|
188
188
|
inline: !0
|
|
189
189
|
}, {
|
|
190
190
|
default: r(() => [
|
|
191
|
-
n(
|
|
191
|
+
n(D, null, {
|
|
192
192
|
default: r(() => [
|
|
193
|
-
n(
|
|
193
|
+
n(p, { span: 6 }, {
|
|
194
194
|
default: r(() => [
|
|
195
195
|
n(h, {
|
|
196
196
|
label: t.$t("orderInfo.orderCode"),
|
|
197
197
|
prop: "likeOrderCode"
|
|
198
198
|
}, {
|
|
199
199
|
default: r(() => [
|
|
200
|
-
n(
|
|
201
|
-
modelValue:
|
|
202
|
-
"onUpdate:modelValue": o[0] || (o[0] = (e) =>
|
|
200
|
+
n(O, {
|
|
201
|
+
modelValue: d.value.likeOrderCode,
|
|
202
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => d.value.likeOrderCode = e),
|
|
203
203
|
placeholder: t.$t("orderInfo.orderCodeRequired"),
|
|
204
204
|
clearable: "",
|
|
205
|
-
onKeyup: o[1] || (o[1] = P((e) => a(
|
|
205
|
+
onKeyup: o[1] || (o[1] = P((e) => a(f).handleQuery(), ["enter"])),
|
|
206
206
|
class: "!w-[203px]"
|
|
207
207
|
}, null, 8, ["modelValue", "placeholder"])
|
|
208
208
|
]),
|
|
@@ -211,19 +211,19 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
}),
|
|
214
|
-
n(
|
|
214
|
+
n(p, { span: 6 }, {
|
|
215
215
|
default: r(() => [
|
|
216
216
|
n(h, {
|
|
217
217
|
label: t.$t("orderInfo.spuName"),
|
|
218
218
|
prop: "likeSpuName"
|
|
219
219
|
}, {
|
|
220
220
|
default: r(() => [
|
|
221
|
-
n(
|
|
222
|
-
modelValue:
|
|
223
|
-
"onUpdate:modelValue": o[2] || (o[2] = (e) =>
|
|
221
|
+
n(O, {
|
|
222
|
+
modelValue: d.value.likeSpuName,
|
|
223
|
+
"onUpdate:modelValue": o[2] || (o[2] = (e) => d.value.likeSpuName = e),
|
|
224
224
|
placeholder: t.$t("orderInfo.spuNameRequired"),
|
|
225
225
|
clearable: "",
|
|
226
|
-
onKeyup: o[3] || (o[3] = P((e) => a(
|
|
226
|
+
onKeyup: o[3] || (o[3] = P((e) => a(f).handleQuery(), ["enter"])),
|
|
227
227
|
class: "!w-[203px]"
|
|
228
228
|
}, null, 8, ["modelValue", "placeholder"])
|
|
229
229
|
]),
|
|
@@ -232,20 +232,20 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
232
232
|
]),
|
|
233
233
|
_: 1
|
|
234
234
|
}),
|
|
235
|
-
n(
|
|
235
|
+
n(p, { span: 6 }, {
|
|
236
236
|
default: r(() => [
|
|
237
237
|
n(h, {
|
|
238
238
|
label: t.$t("orderInfo.orderStatus"),
|
|
239
239
|
prop: "orderStatusPc"
|
|
240
240
|
}, {
|
|
241
241
|
default: r(() => [
|
|
242
|
-
n(
|
|
243
|
-
modelValue:
|
|
244
|
-
"onUpdate:modelValue": o[4] || (o[4] = (e) =>
|
|
242
|
+
n(j, {
|
|
243
|
+
modelValue: d.value.orderStatusPc,
|
|
244
|
+
"onUpdate:modelValue": o[4] || (o[4] = (e) => d.value.orderStatusPc = e),
|
|
245
245
|
data: a(k).orderStatusEnum.values,
|
|
246
246
|
placeholder: t.$t("orderInfo.orderStatusRequired"),
|
|
247
247
|
clearable: "",
|
|
248
|
-
onKeyup: o[5] || (o[5] = P((e) => a(
|
|
248
|
+
onKeyup: o[5] || (o[5] = P((e) => a(f).handleQuery(), ["enter"]))
|
|
249
249
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
250
250
|
]),
|
|
251
251
|
_: 1
|
|
@@ -253,20 +253,20 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
253
253
|
]),
|
|
254
254
|
_: 1
|
|
255
255
|
}),
|
|
256
|
-
n(
|
|
256
|
+
n(p, { span: 6 }, {
|
|
257
257
|
default: r(() => [
|
|
258
258
|
n(h, {
|
|
259
259
|
label: t.$t("orderInfo.invoiceStatus"),
|
|
260
260
|
prop: "invoiceStatus"
|
|
261
261
|
}, {
|
|
262
262
|
default: r(() => [
|
|
263
|
-
n(
|
|
264
|
-
modelValue:
|
|
265
|
-
"onUpdate:modelValue": o[6] || (o[6] = (e) =>
|
|
263
|
+
n(j, {
|
|
264
|
+
modelValue: d.value.invoiceStatus,
|
|
265
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => d.value.invoiceStatus = e),
|
|
266
266
|
data: a(k).invoiceStatusEnum.values,
|
|
267
267
|
placeholder: t.$t("orderInfo.invoiceStatusRequired"),
|
|
268
268
|
clearable: "",
|
|
269
|
-
onKeyup: o[7] || (o[7] = P((e) => a(
|
|
269
|
+
onKeyup: o[7] || (o[7] = P((e) => a(f).handleQuery(), ["enter"]))
|
|
270
270
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
271
271
|
]),
|
|
272
272
|
_: 1
|
|
@@ -274,7 +274,7 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
274
274
|
]),
|
|
275
275
|
_: 1
|
|
276
276
|
}),
|
|
277
|
-
n(
|
|
277
|
+
n(p, { span: 6 }, {
|
|
278
278
|
default: r(() => [
|
|
279
279
|
n(h, {
|
|
280
280
|
label: t.$t("orderInfo.createTime"),
|
|
@@ -282,8 +282,8 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
282
282
|
}, {
|
|
283
283
|
default: r(() => [
|
|
284
284
|
n(re, {
|
|
285
|
-
modelValue:
|
|
286
|
-
"onUpdate:modelValue": o[8] || (o[8] = (e) =>
|
|
285
|
+
modelValue: T.value,
|
|
286
|
+
"onUpdate:modelValue": o[8] || (o[8] = (e) => T.value = e),
|
|
287
287
|
type: "daterange",
|
|
288
288
|
"start-placeholder": t.$t("orderInfo.startCreateTime"),
|
|
289
289
|
"end-placeholder": t.$t("orderInfo.endCreateTime"),
|
|
@@ -297,22 +297,22 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
297
297
|
]),
|
|
298
298
|
_: 1
|
|
299
299
|
}),
|
|
300
|
-
n(
|
|
300
|
+
n(p, { span: 18 }, {
|
|
301
301
|
default: r(() => [
|
|
302
302
|
n(h, { class: "search-btn" }, {
|
|
303
303
|
default: r(() => [
|
|
304
|
-
n(
|
|
304
|
+
n(E, {
|
|
305
305
|
type: "primary",
|
|
306
|
-
onClick: o[9] || (o[9] = (e) => a(
|
|
306
|
+
onClick: o[9] || (o[9] = (e) => a(f).handleQuery())
|
|
307
307
|
}, {
|
|
308
308
|
default: r(() => [
|
|
309
|
-
u(
|
|
309
|
+
u(l(t.$t("common.search")), 1)
|
|
310
310
|
]),
|
|
311
311
|
_: 1
|
|
312
312
|
}),
|
|
313
|
-
n(
|
|
313
|
+
n(E, { onClick: H }, {
|
|
314
314
|
default: r(() => [
|
|
315
|
-
u(
|
|
315
|
+
u(l(t.$t("common.reset")), 1)
|
|
316
316
|
]),
|
|
317
317
|
_: 1
|
|
318
318
|
})
|
|
@@ -329,35 +329,35 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
329
329
|
_: 1
|
|
330
330
|
}, 8, ["model"])
|
|
331
331
|
]),
|
|
332
|
-
|
|
333
|
-
n(
|
|
332
|
+
c("div", _e, [
|
|
333
|
+
n(D, { gutter: 20 }, {
|
|
334
334
|
default: r(() => [
|
|
335
|
-
n(
|
|
335
|
+
n(p, { span: 4 }, {
|
|
336
336
|
default: r(() => [
|
|
337
|
-
o[
|
|
338
|
-
|
|
339
|
-
o[
|
|
337
|
+
o[16] || (o[16] = u("订阅单位:")),
|
|
338
|
+
c("span", we, l(a(V).totalUnit || 0), 1),
|
|
339
|
+
o[17] || (o[17] = u("家 "))
|
|
340
340
|
]),
|
|
341
341
|
_: 1,
|
|
342
|
-
__: [
|
|
342
|
+
__: [16, 17]
|
|
343
343
|
}),
|
|
344
|
-
n(
|
|
344
|
+
n(p, { span: 4 }, {
|
|
345
345
|
default: r(() => [
|
|
346
|
-
o[
|
|
347
|
-
|
|
348
|
-
o[
|
|
346
|
+
o[18] || (o[18] = u(" 订阅报刊:")),
|
|
347
|
+
c("span", he, l(a(V).totalQuantity || 0), 1),
|
|
348
|
+
o[19] || (o[19] = u("份 "))
|
|
349
349
|
]),
|
|
350
350
|
_: 1,
|
|
351
|
-
__: [
|
|
351
|
+
__: [18, 19]
|
|
352
352
|
}),
|
|
353
|
-
n(
|
|
353
|
+
n(p, { span: 4 }, {
|
|
354
354
|
default: r(() => [
|
|
355
|
-
o[
|
|
356
|
-
|
|
357
|
-
o[
|
|
355
|
+
o[20] || (o[20] = u("订购总金额:")),
|
|
356
|
+
c("span", Ce, l(a(V).totalAmount || 0), 1),
|
|
357
|
+
o[21] || (o[21] = u("元 "))
|
|
358
358
|
]),
|
|
359
359
|
_: 1,
|
|
360
|
-
__: [
|
|
360
|
+
__: [20, 21]
|
|
361
361
|
})
|
|
362
362
|
]),
|
|
363
363
|
_: 1
|
|
@@ -368,16 +368,29 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
368
368
|
class: "table-container"
|
|
369
369
|
}, {
|
|
370
370
|
header: r(() => [
|
|
371
|
-
n(
|
|
371
|
+
n(D, null, {
|
|
372
372
|
default: r(() => [
|
|
373
|
-
n(
|
|
374
|
-
|
|
373
|
+
n(p, { span: 17 }),
|
|
374
|
+
n(p, {
|
|
375
|
+
span: 7,
|
|
375
376
|
class: "container-float"
|
|
376
377
|
}, {
|
|
377
378
|
default: r(() => [
|
|
379
|
+
S((m(), $(E, {
|
|
380
|
+
plain: "",
|
|
381
|
+
type: "primary",
|
|
382
|
+
onClick: o[10] || (o[10] = (e) => a(f).handleExport(a(A)("orderInfo.name")))
|
|
383
|
+
}, {
|
|
384
|
+
default: r(() => [
|
|
385
|
+
u(l(t.$t("common.export")), 1)
|
|
386
|
+
]),
|
|
387
|
+
_: 1
|
|
388
|
+
})), [
|
|
389
|
+
[C, ["order:order_info:export"]]
|
|
390
|
+
]),
|
|
378
391
|
n(ae, {
|
|
379
|
-
modelValue: a(
|
|
380
|
-
"onUpdate:modelValue": o[
|
|
392
|
+
modelValue: a(g),
|
|
393
|
+
"onUpdate:modelValue": o[11] || (o[11] = (e) => L(g) ? g.value = e : g = e),
|
|
381
394
|
"label-name": "paper-order/order-info"
|
|
382
395
|
}, null, 8, ["modelValue"])
|
|
383
396
|
]),
|
|
@@ -388,15 +401,15 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
388
401
|
})
|
|
389
402
|
]),
|
|
390
403
|
footer: r(() => [
|
|
391
|
-
a(N) > 0 ? (
|
|
404
|
+
a(N) > 0 ? (m(), $(ue, {
|
|
392
405
|
key: 0,
|
|
393
406
|
total: a(N),
|
|
394
|
-
"onUpdate:total": o[
|
|
395
|
-
"current-page":
|
|
396
|
-
"onUpdate:currentPage": o[
|
|
397
|
-
"page-size":
|
|
398
|
-
"onUpdate:pageSize": o[
|
|
399
|
-
onPagination: o[
|
|
407
|
+
"onUpdate:total": o[12] || (o[12] = (e) => L(N) ? N.value = e : null),
|
|
408
|
+
"current-page": d.value.curPage,
|
|
409
|
+
"onUpdate:currentPage": o[13] || (o[13] = (e) => d.value.curPage = e),
|
|
410
|
+
"page-size": d.value.pageSize,
|
|
411
|
+
"onUpdate:pageSize": o[14] || (o[14] = (e) => d.value.pageSize = e),
|
|
412
|
+
onPagination: o[15] || (o[15] = (e) => a(f).getList())
|
|
400
413
|
}, null, 8, ["total", "current-page", "page-size"])) : y("", !0)
|
|
401
414
|
]),
|
|
402
415
|
default: r(() => [
|
|
@@ -406,59 +419,59 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
406
419
|
"row-key": "orderId",
|
|
407
420
|
"list-loading": a(B),
|
|
408
421
|
data: a(F),
|
|
409
|
-
"table-label": a(
|
|
422
|
+
"table-label": a(g),
|
|
410
423
|
isSelection: !1
|
|
411
424
|
}, {
|
|
412
425
|
createTime: r((e) => [
|
|
413
|
-
|
|
426
|
+
c("span", null, l(J(e.data.row.createTime)), 1)
|
|
414
427
|
]),
|
|
415
428
|
spuName: r((e) => {
|
|
416
429
|
var s, b, v;
|
|
417
430
|
return [
|
|
418
|
-
|
|
431
|
+
c("span", null, l((v = (b = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : b[0]) == null ? void 0 : v.spuName), 1)
|
|
419
432
|
];
|
|
420
433
|
}),
|
|
421
434
|
quantity: r((e) => {
|
|
422
435
|
var s, b, v;
|
|
423
436
|
return [
|
|
424
|
-
|
|
437
|
+
c("span", null, l((v = (b = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : b[0]) == null ? void 0 : v.quantity), 1)
|
|
425
438
|
];
|
|
426
439
|
}),
|
|
427
440
|
unitPrice: r((e) => {
|
|
428
441
|
var s, b, v;
|
|
429
442
|
return [
|
|
430
|
-
|
|
443
|
+
c("span", null, l(W(
|
|
431
444
|
(v = (b = (s = e.data.row.orderItemList) == null ? void 0 : s.results) == null ? void 0 : b[0]) == null ? void 0 : v.salesPrice
|
|
432
445
|
)), 1)
|
|
433
446
|
];
|
|
434
447
|
}),
|
|
435
448
|
orderCycle: r((e) => [
|
|
436
|
-
e.data.row.remark !== "undefined至undefined" ? (
|
|
449
|
+
e.data.row.remark !== "undefined至undefined" ? (m(), I("span", Se, l(e.data.row.remark), 1)) : y("", !0)
|
|
437
450
|
]),
|
|
438
451
|
orderStatus: r((e) => [
|
|
439
|
-
|
|
440
|
-
e.data.row.orderStatus === a(_).UNPAY ? (
|
|
452
|
+
c("div", null, [
|
|
453
|
+
e.data.row.orderStatus === a(_).UNPAY ? (m(), $(Y, {
|
|
441
454
|
key: 0,
|
|
442
455
|
type: "danger"
|
|
443
456
|
}, {
|
|
444
457
|
default: r(() => [
|
|
445
|
-
u(
|
|
458
|
+
u(l(a(k).orderStatusEnum.getValue(e.data.row.orderStatus)), 1)
|
|
446
459
|
]),
|
|
447
460
|
_: 2
|
|
448
461
|
}, 1024)) : y("", !0),
|
|
449
|
-
e.data.row.orderStatus === a(_).UNPOST ? (
|
|
462
|
+
e.data.row.orderStatus === a(_).UNPOST ? (m(), $(Y, {
|
|
450
463
|
key: 1,
|
|
451
464
|
type: "success"
|
|
452
465
|
}, {
|
|
453
466
|
default: r(() => [
|
|
454
|
-
u(
|
|
467
|
+
u(l(a(k).orderStatusEnum.getValue(e.data.row.orderStatus)), 1)
|
|
455
468
|
]),
|
|
456
469
|
_: 2
|
|
457
470
|
}, 1024)) : y("", !0)
|
|
458
471
|
])
|
|
459
472
|
]),
|
|
460
473
|
invoiceStatus: r((e) => [
|
|
461
|
-
u(
|
|
474
|
+
u(l(a(k).invoiceStatusEnum.getEnumValue(e.data.row.invoiceStatus)), 1)
|
|
462
475
|
]),
|
|
463
476
|
mobilePhone: r((e) => [
|
|
464
477
|
n(le, {
|
|
@@ -469,49 +482,49 @@ const ye = { class: "app-container" }, Ie = { class: "search-container dis_botto
|
|
|
469
482
|
}, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
|
|
470
483
|
]),
|
|
471
484
|
operation: r((e) => [
|
|
472
|
-
|
|
485
|
+
S((m(), I("span", {
|
|
473
486
|
class: "el-button-color",
|
|
474
487
|
onClick: (s) => Z(e.data.row)
|
|
475
488
|
}, [
|
|
476
|
-
u(
|
|
489
|
+
u(l(t.$t("common.view")), 1)
|
|
477
490
|
], 8, ge)), [
|
|
478
|
-
[
|
|
491
|
+
[C, ["order:order_info:view"]]
|
|
479
492
|
]),
|
|
480
|
-
e.data.row.invoiceStatus === a(_).UNINVOICE && e.data.row.orderStatus === a(_).UNPOST ?
|
|
493
|
+
e.data.row.invoiceStatus === a(_).UNINVOICE && e.data.row.orderStatus === a(_).UNPOST ? S((m(), I("span", {
|
|
481
494
|
key: 0,
|
|
482
495
|
class: "el-button-color dropdown-left",
|
|
483
496
|
onClick: (s) => te(e.data.row)
|
|
484
497
|
}, [
|
|
485
|
-
u(
|
|
498
|
+
u(l(t.$t("orderInfo.apply")), 1)
|
|
486
499
|
], 8, ke)), [
|
|
487
|
-
[
|
|
500
|
+
[C, ["order:order_info:view"]]
|
|
488
501
|
]) : y("", !0),
|
|
489
|
-
e.data.row.invoiceStatus === a(_).INVOICING ?
|
|
502
|
+
e.data.row.invoiceStatus === a(_).INVOICING ? S((m(), I("span", {
|
|
490
503
|
key: 1,
|
|
491
504
|
class: "el-button-color dropdown-left",
|
|
492
505
|
onClick: (s) => x(e.data.row)
|
|
493
506
|
}, [
|
|
494
|
-
u(
|
|
507
|
+
u(l(t.$t("orderInfo.invoiceInformation")), 1)
|
|
495
508
|
], 8, Ne)), [
|
|
496
|
-
[
|
|
509
|
+
[C, ["order:order_info:view"]]
|
|
497
510
|
]) : y("", !0),
|
|
498
|
-
e.data.row.orderStatus === a(_).UNPAY ?
|
|
511
|
+
e.data.row.orderStatus === a(_).UNPAY ? S((m(), I("span", {
|
|
499
512
|
key: 2,
|
|
500
513
|
class: "el-button-color dropdown-left",
|
|
501
514
|
onClick: (s) => oe(e.data.row)
|
|
502
515
|
}, [
|
|
503
|
-
u(
|
|
516
|
+
u(l(t.$t("orderInfo.payment")), 1)
|
|
504
517
|
], 8, Pe)), [
|
|
505
|
-
[
|
|
518
|
+
[C, ["order:order_info:view"]]
|
|
506
519
|
]) : y("", !0),
|
|
507
|
-
e.data.row.invoiceStatus === a(_).INVOICED ?
|
|
520
|
+
e.data.row.invoiceStatus === a(_).INVOICED ? S((m(), I("span", {
|
|
508
521
|
key: 3,
|
|
509
522
|
class: "el-button-color dropdown-left",
|
|
510
523
|
onClick: (s) => ee(e.data.row)
|
|
511
524
|
}, [
|
|
512
|
-
u(
|
|
513
|
-
], 8,
|
|
514
|
-
[
|
|
525
|
+
u(l(t.$t("orderInfo.viewInvoice")), 1)
|
|
526
|
+
], 8, $e)), [
|
|
527
|
+
[C, ["order:order_info:view"]]
|
|
515
528
|
]) : y("", !0)
|
|
516
529
|
]),
|
|
517
530
|
_: 1
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { defineComponent as q, ref as x, onMounted as R, onActivated as F, resolveComponent as s, createElementBlock as _, openBlock as d, createElementVNode as i, createVNode as o, createBlock as I, createCommentVNode as L, withModifiers as A, withCtx as a, withKeys as B, unref as r, createTextVNode as y, toDisplayString as c, Fragment as M, renderList as Q, isRef as j } from "vue";
|
|
2
|
+
import { useTableHooks as E, fileApi as H } from "jmash-core";
|
|
3
|
+
import { useI18n as K } from "vue-i18n";
|
|
4
|
+
import { useRouter as T } from "vue-router";
|
|
5
|
+
import { o as Y } from "./index-B90ZLkZ9.mjs";
|
|
6
|
+
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const J = { class: "app-container" }, O = { class: "search-container" }, W = { class: "subscription-container" }, X = ["onClick"], Z = { class: "newspaper-image" }, ee = { class: "dummy-text" }, te = { class: "subscription-info" }, oe = { class: "subscription-title" }, ne = { class: "subscription-price" }, se = /* @__PURE__ */ q({
|
|
8
|
+
__name: "index",
|
|
9
|
+
setup(ae) {
|
|
10
|
+
const k = T(), { t: b } = K(), m = /* @__PURE__ */ new Date(), S = m.getFullYear(), w = String(m.getMonth() + 1).padStart(2, "0"), $ = String(m.getDate()).padStart(2, "0"), n = x({
|
|
11
|
+
curPage: 1,
|
|
12
|
+
pageSize: 10,
|
|
13
|
+
curDate: `${S}-${w}-${$}`
|
|
14
|
+
}), { tableHooks: l, queryFormRef: N, total: u } = E(
|
|
15
|
+
b,
|
|
16
|
+
Y,
|
|
17
|
+
n
|
|
18
|
+
), P = l.tableData;
|
|
19
|
+
function h(p) {
|
|
20
|
+
k.push({
|
|
21
|
+
path: "/buyer/order-newspaper/orderPaper",
|
|
22
|
+
query: { spuId: p }
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return R(() => {
|
|
26
|
+
l.getList();
|
|
27
|
+
}), F(() => {
|
|
28
|
+
l.getList();
|
|
29
|
+
}), (p, e) => {
|
|
30
|
+
const C = s("el-input"), f = s("el-form-item"), g = s("el-col"), v = s("el-button"), V = s("el-row"), z = s("el-form"), D = s("el-image"), U = s("jmash-pagination");
|
|
31
|
+
return d(), _("div", J, [
|
|
32
|
+
i("div", O, [
|
|
33
|
+
o(z, {
|
|
34
|
+
ref_key: "queryFormRef",
|
|
35
|
+
ref: N,
|
|
36
|
+
model: n.value,
|
|
37
|
+
inline: !0,
|
|
38
|
+
onSubmit: e[4] || (e[4] = A(() => {
|
|
39
|
+
}, ["prevent"]))
|
|
40
|
+
}, {
|
|
41
|
+
default: a(() => [
|
|
42
|
+
o(V, null, {
|
|
43
|
+
default: a(() => [
|
|
44
|
+
o(g, { span: 6 }, {
|
|
45
|
+
default: a(() => [
|
|
46
|
+
o(f, {
|
|
47
|
+
label: p.$t("newsPapepr.likeSpuName"),
|
|
48
|
+
prop: "likeSpuName"
|
|
49
|
+
}, {
|
|
50
|
+
default: a(() => [
|
|
51
|
+
o(C, {
|
|
52
|
+
modelValue: n.value.likeSpuName,
|
|
53
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => n.value.likeSpuName = t),
|
|
54
|
+
placeholder: p.$t("newsPapepr.likeSpuNameRequired"),
|
|
55
|
+
onKeyup: e[1] || (e[1] = B((t) => r(l).handleQuery(), ["enter"])),
|
|
56
|
+
class: "!w-[203px]"
|
|
57
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["label"])
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}),
|
|
64
|
+
o(g, { span: 18 }, {
|
|
65
|
+
default: a(() => [
|
|
66
|
+
o(f, { class: "search-btn" }, {
|
|
67
|
+
default: a(() => [
|
|
68
|
+
o(v, {
|
|
69
|
+
type: "primary",
|
|
70
|
+
onClick: e[2] || (e[2] = (t) => r(l).handleQuery())
|
|
71
|
+
}, {
|
|
72
|
+
default: a(() => [
|
|
73
|
+
y(c(p.$t("common.search")), 1)
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
}),
|
|
77
|
+
o(v, {
|
|
78
|
+
onClick: e[3] || (e[3] = (t) => r(l).resetQuery())
|
|
79
|
+
}, {
|
|
80
|
+
default: a(() => [
|
|
81
|
+
y(c(p.$t("common.reset")), 1)
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
})
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["model"]),
|
|
97
|
+
i("div", W, [
|
|
98
|
+
(d(!0), _(M, null, Q(r(P), (t) => (d(), _("div", {
|
|
99
|
+
class: "subscription-card selected",
|
|
100
|
+
key: t.spuId,
|
|
101
|
+
onClick: (re) => h(t.spuId)
|
|
102
|
+
}, [
|
|
103
|
+
i("div", Z, [
|
|
104
|
+
i("div", ee, [
|
|
105
|
+
o(D, {
|
|
106
|
+
src: r(H).imageUrl(t.picUrls, 0, 0),
|
|
107
|
+
"hide-on-click-modal": "",
|
|
108
|
+
fit: "contain"
|
|
109
|
+
}, null, 8, ["src"])
|
|
110
|
+
])
|
|
111
|
+
]),
|
|
112
|
+
i("div", te, [
|
|
113
|
+
i("div", oe, c(t.spuName), 1),
|
|
114
|
+
i("div", ne, "¥" + c(t.minPrice), 1)
|
|
115
|
+
])
|
|
116
|
+
], 8, X))), 128))
|
|
117
|
+
]),
|
|
118
|
+
r(u) > 0 ? (d(), I(U, {
|
|
119
|
+
key: 0,
|
|
120
|
+
total: r(u),
|
|
121
|
+
"onUpdate:total": e[5] || (e[5] = (t) => j(u) ? u.value = t : null),
|
|
122
|
+
"current-page": n.value.curPage,
|
|
123
|
+
"onUpdate:currentPage": e[6] || (e[6] = (t) => n.value.curPage = t),
|
|
124
|
+
"page-size": n.value.pageSize,
|
|
125
|
+
"onUpdate:pageSize": e[7] || (e[7] = (t) => n.value.pageSize = t),
|
|
126
|
+
onPagination: e[8] || (e[8] = (t) => r(l).getList()),
|
|
127
|
+
class: "pagination-container"
|
|
128
|
+
}, null, 8, ["total", "current-page", "page-size"])) : L("", !0)
|
|
129
|
+
])
|
|
130
|
+
]);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}), me = /* @__PURE__ */ G(se, [["__scopeId", "data-v-e449e775"]]);
|
|
134
|
+
export {
|
|
135
|
+
me as default
|
|
136
|
+
};
|