xyvcard-order 0.0.1
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/README.md +51 -0
- package/dist/canceled-CUME6Usz.mjs +4 -0
- package/dist/canceled.vue_vue_type_script_setup_true_lang-EX4zYQSu.mjs +509 -0
- package/dist/change-CK1I7hL9.mjs +4 -0
- package/dist/change.vue_vue_type_script_setup_true_lang-DMUKqQVp.mjs +186 -0
- package/dist/completed-Cf86bOvD.mjs +4 -0
- package/dist/completed.vue_vue_type_script_setup_true_lang-DqIyhNKh.mjs +509 -0
- package/dist/constant-CWTD7ap0.mjs +24 -0
- package/dist/deliver-BQIcivCV.mjs +4 -0
- package/dist/deliver.vue_vue_type_script_setup_true_lang-_2HCD1vV.mjs +221 -0
- package/dist/edit-BtY-5_aq.mjs +4 -0
- package/dist/edit-CXp819Cl.mjs +4 -0
- package/dist/edit-CagPAsCc.mjs +4 -0
- package/dist/edit-DSlSQclm.mjs +4 -0
- package/dist/edit-DZTWE770.mjs +4 -0
- package/dist/edit-kb9Vbd0O.mjs +553 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BHG0mS0L.mjs +382 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BzhS3SvZ.mjs +488 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-Cgbqi1i7.mjs +516 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DHkYd975.mjs +178 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-be-TDMci.mjs +684 -0
- package/dist/index-67kgHrd-.mjs +370 -0
- package/dist/index-BYkU3LYC.mjs +343 -0
- package/dist/index-CUO59YzZ.mjs +1275 -0
- package/dist/index-D-PNIrrr.mjs +55 -0
- package/dist/index-DMD0_mKi.mjs +673 -0
- package/dist/index-Dbp38ozL.mjs +350 -0
- package/dist/index-L15OdEOS.mjs +370 -0
- package/dist/index-Nw_g6g3T.mjs +80 -0
- package/dist/index-ZpOHqjUk.mjs +344 -0
- package/dist/index-w8CmEAxD.mjs +90 -0
- package/dist/index-xagR65a1.mjs +59 -0
- package/dist/index-zsqXCqfG.mjs +385 -0
- package/dist/index.mjs +2825 -0
- package/dist/info-6G1vmk51.mjs +369 -0
- package/dist/info-BWqDP7Q1.mjs +106 -0
- package/dist/style.css +1 -0
- package/dist/unpay-CqebDQ24.mjs +4 -0
- package/dist/unpay.vue_vue_type_script_setup_true_lang-Cq-l3JEe.mjs +3981 -0
- package/dist/unpost-vRTZyaW0.mjs +4 -0
- package/dist/unpost.vue_vue_type_script_setup_true_lang-CAd6DqNm.mjs +540 -0
- package/dist/unreceive-DUyGNC5h.mjs +4 -0
- package/dist/unreceive.vue_vue_type_script_setup_true_lang-DK1USH8c.mjs +509 -0
- package/dist/viewLogist-DdG4dbmo.mjs +4 -0
- package/dist/viewLogist.vue_vue_type_script_setup_true_lang-POKrzvX7.mjs +77 -0
- package/dts/src/App.vue.d.ts +2 -0
- package/dts/src/api/dict.d.ts +10 -0
- package/dts/src/api/index.d.ts +14 -0
- package/dts/src/api/order/order-bill/index.d.ts +20 -0
- package/dts/src/api/order/order-bill/types.d.ts +75 -0
- package/dts/src/api/order/order-info/index.d.ts +15 -0
- package/dts/src/api/order/order-info/types.d.ts +97 -0
- package/dts/src/api/order/order-item/index.d.ts +20 -0
- package/dts/src/api/order/order-item/types.d.ts +95 -0
- package/dts/src/api/order/order-logistics/index.d.ts +12 -0
- package/dts/src/api/order/order-logistics/types.d.ts +85 -0
- package/dts/src/api/order/order-pay-record/index.d.ts +20 -0
- package/dts/src/api/order/order-pay-record/types.d.ts +77 -0
- package/dts/src/api/order/order-refund-record/index.d.ts +20 -0
- package/dts/src/api/order/order-refund-record/types.d.ts +80 -0
- package/dts/src/api/order/order-refunds/index.d.ts +12 -0
- package/dts/src/api/order/order-refunds/types.d.ts +47 -0
- package/dts/src/api/shop/shop-info/index.d.ts +8 -0
- package/dts/src/api/shop/shop-info/types.d.ts +16 -0
- package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
- package/dts/src/constant.d.ts +28 -0
- package/dts/src/index.d.ts +6 -0
- package/dts/src/lang/index.d.ts +1 -0
- package/dts/src/lang/order/en.d.ts +2 -0
- package/dts/src/lang/order/zh-cn.d.ts +189 -0
- package/dts/src/main.d.ts +4 -0
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/orderRouter.d.ts +4 -0
- package/dts/src/utils/commons.d.ts +10 -0
- package/dts/src/utils/momentPlugin.d.ts +5 -0
- package/dts/src/views/order/order-bill/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-bill/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/canceled.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/change.vue.d.ts +31 -0
- package/dts/src/views/order/order-info/completed.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/deliver.vue.d.ts +31 -0
- package/dts/src/views/order/order-info/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-info/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/info.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/unpay.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/unpost.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/unreceive.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/viewLogist.vue.d.ts +27 -0
- package/dts/src/views/order/order-item/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-item/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-logistics/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-logistics/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-pay-record/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-pay-record/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-refund-record/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-refund-record/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-refunds/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-refunds/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-refunds/info.vue.d.ts +2 -0
- package/package.json +57 -0
@@ -0,0 +1,186 @@
|
|
1
|
+
import { defineComponent as R, mergeModels as b, ref as I, reactive as V, useModel as j, watch as F, resolveComponent as a, openBlock as O, createBlock as U, withCtx as o, createElementVNode as v, createVNode as l, createTextVNode as C, toDisplayString as f, unref as m } from "vue";
|
2
|
+
import { ElMessage as E } from "element-plus";
|
3
|
+
import { useI18n as S } from "vue-i18n";
|
4
|
+
import { o as N } from "./index-w8CmEAxD.mjs";
|
5
|
+
const A = { class: "dialog-footer" }, J = /* @__PURE__ */ R({
|
6
|
+
__name: "change",
|
7
|
+
props: /* @__PURE__ */ b({
|
8
|
+
entityKey: {
|
9
|
+
type: Object,
|
10
|
+
default: () => {
|
11
|
+
}
|
12
|
+
},
|
13
|
+
entityModel: {
|
14
|
+
type: Object,
|
15
|
+
default: () => {
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}, {
|
19
|
+
modelValue: { type: Boolean },
|
20
|
+
modelModifiers: {}
|
21
|
+
}),
|
22
|
+
emits: /* @__PURE__ */ b(["refresh"], ["update:modelValue"]),
|
23
|
+
setup(p, { emit: M }) {
|
24
|
+
const { t: c } = S(), g = I();
|
25
|
+
let r = V({
|
26
|
+
items: [
|
27
|
+
{
|
28
|
+
orderItemId: "",
|
29
|
+
salesPrice: 0,
|
30
|
+
freightPrice: 0
|
31
|
+
}
|
32
|
+
]
|
33
|
+
});
|
34
|
+
const k = V({
|
35
|
+
salesPrice: [
|
36
|
+
{
|
37
|
+
required: !0,
|
38
|
+
message: c("orderInfo.salesPriceRequired"),
|
39
|
+
trigger: "blur"
|
40
|
+
}
|
41
|
+
],
|
42
|
+
freightPrice: [
|
43
|
+
{
|
44
|
+
required: !0,
|
45
|
+
message: c("orderInfo.freightPriceRequired"),
|
46
|
+
trigger: "blur"
|
47
|
+
}
|
48
|
+
]
|
49
|
+
}), s = j(p, "modelValue"), w = M, n = p, $ = Object.keys(n.entityKey), _ = I($.length >= 1);
|
50
|
+
F([() => n.entityKey, () => n.entityModel], async () => {
|
51
|
+
var t;
|
52
|
+
if (_.value) {
|
53
|
+
const { data: i } = await N.findById(n.entityKey), e = (t = i.orderItemList) == null ? void 0 : t.results.find(
|
54
|
+
(d) => d.itemId === n.entityModel.itemId
|
55
|
+
);
|
56
|
+
e && (r.items[0].spuName = e.spuName, r.items[0].salesPrice = Number(e.salesPrice), r.items[0].freightPrice = Number(e.freightPrice));
|
57
|
+
}
|
58
|
+
}, {
|
59
|
+
immediate: !0,
|
60
|
+
deep: !0
|
61
|
+
});
|
62
|
+
const q = async () => {
|
63
|
+
var t;
|
64
|
+
await ((t = g.value) == null ? void 0 : t.validate((i) => {
|
65
|
+
i && _.value && N.orderPrice({
|
66
|
+
items: r.items.map((e) => ({
|
67
|
+
...e,
|
68
|
+
orderItemId: n.entityModel.itemId
|
69
|
+
}))
|
70
|
+
}).then((e) => {
|
71
|
+
console.log(e), e.status === 200 && (E({
|
72
|
+
message: c("common.submitSuccess"),
|
73
|
+
type: "success"
|
74
|
+
}), s.value && (s.value = !1), w("refresh", e.status === 200));
|
75
|
+
});
|
76
|
+
}));
|
77
|
+
};
|
78
|
+
function y() {
|
79
|
+
s.value && (s.value = !1);
|
80
|
+
}
|
81
|
+
return (t, i) => {
|
82
|
+
const e = a("el-form-item"), d = a("el-col"), h = a("el-input"), B = a("el-row"), D = a("el-form"), P = a("el-button"), K = a("el-dialog");
|
83
|
+
return O(), U(K, {
|
84
|
+
modelValue: s.value,
|
85
|
+
"onUpdate:modelValue": i[2] || (i[2] = (u) => s.value = u),
|
86
|
+
onClose: y
|
87
|
+
}, {
|
88
|
+
footer: o(() => [
|
89
|
+
v("div", A, [
|
90
|
+
l(P, { onClick: y }, {
|
91
|
+
default: o(() => [
|
92
|
+
C(f(t.$t("common.cancel")), 1)
|
93
|
+
]),
|
94
|
+
_: 1
|
95
|
+
}),
|
96
|
+
l(P, {
|
97
|
+
type: "primary",
|
98
|
+
onClick: q
|
99
|
+
}, {
|
100
|
+
default: o(() => [
|
101
|
+
C(f(t.$t("common.confirm")), 1)
|
102
|
+
]),
|
103
|
+
_: 1
|
104
|
+
})
|
105
|
+
])
|
106
|
+
]),
|
107
|
+
default: o(() => [
|
108
|
+
l(D, {
|
109
|
+
ref_key: "priceChangeForm",
|
110
|
+
ref: g,
|
111
|
+
model: m(r).items[0],
|
112
|
+
"label-width": "120px",
|
113
|
+
rules: k
|
114
|
+
}, {
|
115
|
+
default: o(() => [
|
116
|
+
l(B, null, {
|
117
|
+
default: o(() => [
|
118
|
+
l(d, { span: 24 }, {
|
119
|
+
default: o(() => [
|
120
|
+
l(e, {
|
121
|
+
label: t.$t("orderInfo.spuName"),
|
122
|
+
prop: "spuName"
|
123
|
+
}, {
|
124
|
+
default: o(() => [
|
125
|
+
v("span", null, ":" + f(m(r).items[0].spuName), 1)
|
126
|
+
]),
|
127
|
+
_: 1
|
128
|
+
}, 8, ["label"])
|
129
|
+
]),
|
130
|
+
_: 1
|
131
|
+
}),
|
132
|
+
l(d, { span: 24 }, {
|
133
|
+
default: o(() => [
|
134
|
+
l(e, {
|
135
|
+
label: t.$t("orderInfo.sellPrice"),
|
136
|
+
prop: "salesPrice"
|
137
|
+
}, {
|
138
|
+
default: o(() => [
|
139
|
+
l(h, {
|
140
|
+
modelValue: m(r).items[0].salesPrice,
|
141
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => m(r).items[0].salesPrice = u),
|
142
|
+
placeholder: t.$t("orderInfo.sellPriceRequired"),
|
143
|
+
clearable: "",
|
144
|
+
type: "number"
|
145
|
+
}, null, 8, ["modelValue", "placeholder"])
|
146
|
+
]),
|
147
|
+
_: 1
|
148
|
+
}, 8, ["label"])
|
149
|
+
]),
|
150
|
+
_: 1
|
151
|
+
}),
|
152
|
+
l(d, { span: 24 }, {
|
153
|
+
default: o(() => [
|
154
|
+
l(e, {
|
155
|
+
label: t.$t("orderInfo.freightPrice"),
|
156
|
+
prop: "freightPrice"
|
157
|
+
}, {
|
158
|
+
default: o(() => [
|
159
|
+
l(h, {
|
160
|
+
modelValue: m(r).items[0].freightPrice,
|
161
|
+
"onUpdate:modelValue": i[1] || (i[1] = (u) => m(r).items[0].freightPrice = u),
|
162
|
+
placeholder: t.$t("orderInfo.freightPriceRequired"),
|
163
|
+
clearable: "",
|
164
|
+
type: "number"
|
165
|
+
}, null, 8, ["modelValue", "placeholder"])
|
166
|
+
]),
|
167
|
+
_: 1
|
168
|
+
}, 8, ["label"])
|
169
|
+
]),
|
170
|
+
_: 1
|
171
|
+
})
|
172
|
+
]),
|
173
|
+
_: 1
|
174
|
+
})
|
175
|
+
]),
|
176
|
+
_: 1
|
177
|
+
}, 8, ["model", "rules"])
|
178
|
+
]),
|
179
|
+
_: 1
|
180
|
+
}, 8, ["modelValue"]);
|
181
|
+
};
|
182
|
+
}
|
183
|
+
});
|
184
|
+
export {
|
185
|
+
J as _
|
186
|
+
};
|
@@ -0,0 +1,509 @@
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as x, ref as E, resolveComponent as p, resolveDirective as ee, openBlock as i, createElementBlock as V, createElementVNode as u, createVNode as n, withCtx as t, unref as o, withKeys as _, createTextVNode as s, toDisplayString as l, withDirectives as R, createBlock as f, isRef as A, createCommentVNode as w, Fragment as te, renderList as ae } from "vue";
|
2
|
+
import { useRouter as oe } from "vue-router";
|
3
|
+
import { useTableHooks as le } from "jmash-core";
|
4
|
+
import { useI18n as re } from "vue-i18n";
|
5
|
+
import { o as ne } from "./index-w8CmEAxD.mjs";
|
6
|
+
import { D as m } from "./index-Nw_g6g3T.mjs";
|
7
|
+
import { C as c } from "./constant-CWTD7ap0.mjs";
|
8
|
+
const de = { class: "app-container" }, ue = { class: "search-container" }, se = { class: "item-spuName" }, ie = { class: "item-salesPrice" }, me = { class: "item-specInfo" }, pe = { class: "item-quantity" }, fe = { class: "orderPrice" }, ye = ["onClick"], Ce = /* @__PURE__ */ Z({
|
9
|
+
__name: "completed",
|
10
|
+
setup(ve) {
|
11
|
+
const { t: P } = re(), { proxy: U } = x();
|
12
|
+
m.shopBizDict.useValues();
|
13
|
+
const h = E([]), d = E({
|
14
|
+
curPage: 1,
|
15
|
+
pageSize: 10,
|
16
|
+
orderStatus: c.complete
|
17
|
+
}), W = oe(), {
|
18
|
+
tableHooks: y,
|
19
|
+
multipleTableRef: Y,
|
20
|
+
queryFormRef: q,
|
21
|
+
listLoading: M,
|
22
|
+
tableData: L,
|
23
|
+
total: C
|
24
|
+
} = le(P, ne, d);
|
25
|
+
let I = E([
|
26
|
+
{
|
27
|
+
label: "orderInfo.shopName",
|
28
|
+
prop: "shopId",
|
29
|
+
width: "200",
|
30
|
+
slotName: "shopId",
|
31
|
+
columnType: "slot",
|
32
|
+
isColumn: !0
|
33
|
+
},
|
34
|
+
{
|
35
|
+
label: "orderInfo.orderItemList",
|
36
|
+
prop: "orderItemList",
|
37
|
+
width: "300",
|
38
|
+
slotName: "orderItemList",
|
39
|
+
columnType: "slot",
|
40
|
+
isColumn: !0
|
41
|
+
},
|
42
|
+
{
|
43
|
+
label: "orderInfo.orderCodeAndCreateTime",
|
44
|
+
prop: "orderCodeAndCreateTime",
|
45
|
+
width: "250",
|
46
|
+
slotName: "orderCodeAndCreateTime",
|
47
|
+
columnType: "slot",
|
48
|
+
isColumn: !0
|
49
|
+
},
|
50
|
+
{
|
51
|
+
label: "orderInfo.status",
|
52
|
+
prop: "status",
|
53
|
+
width: "180",
|
54
|
+
slotName: "status",
|
55
|
+
columnType: "slot",
|
56
|
+
isColumn: !0
|
57
|
+
},
|
58
|
+
{
|
59
|
+
label: "orderInfo.salesPrice",
|
60
|
+
prop: "salesPrice",
|
61
|
+
width: "200",
|
62
|
+
slotName: "salesPrice",
|
63
|
+
columnType: "slot",
|
64
|
+
isColumn: !0
|
65
|
+
},
|
66
|
+
{
|
67
|
+
label: "orderInfo.paymentWay",
|
68
|
+
prop: "paymentWay",
|
69
|
+
width: "150",
|
70
|
+
slotName: "paymentWay",
|
71
|
+
columnType: "slot",
|
72
|
+
isColumn: !0
|
73
|
+
},
|
74
|
+
{
|
75
|
+
label: "orderInfo.deliveryWay",
|
76
|
+
prop: "deliveryWay",
|
77
|
+
width: "150",
|
78
|
+
slotName: "deliveryWay",
|
79
|
+
columnType: "slot",
|
80
|
+
isColumn: !0
|
81
|
+
},
|
82
|
+
{
|
83
|
+
label: "common.operate",
|
84
|
+
width: "80",
|
85
|
+
slotName: "operation",
|
86
|
+
columnType: "slot",
|
87
|
+
fixed: "right",
|
88
|
+
isColumn: !0
|
89
|
+
}
|
90
|
+
]);
|
91
|
+
function z(r) {
|
92
|
+
d.value.startCreateTime = r[0], d.value.endCreateTime = r[1];
|
93
|
+
}
|
94
|
+
function j() {
|
95
|
+
h.value = [], d.value.startCreateTime = "", d.value.endCreateTime = "", y.resetQuery();
|
96
|
+
}
|
97
|
+
function Q(r) {
|
98
|
+
W.push({
|
99
|
+
path: "/order/order-info/info",
|
100
|
+
query: { orderId: r.orderId }
|
101
|
+
});
|
102
|
+
}
|
103
|
+
function B(r) {
|
104
|
+
y.selectionRows.value = r;
|
105
|
+
}
|
106
|
+
return y.getList(), (r, a) => {
|
107
|
+
const N = p("jmash-select"), b = p("el-form-item"), S = p("el-col"), k = p("el-input"), $ = p("el-row"), K = p("el-date-picker"), T = p("el-button"), H = p("el-form"), F = p("jmash-column-select"), v = p("el-tag"), O = p("jmash-table"), G = p("jmash-pagination"), J = p("el-card"), D = ee("hasPerm");
|
108
|
+
return i(), V("div", de, [
|
109
|
+
u("div", ue, [
|
110
|
+
n(H, {
|
111
|
+
ref_key: "queryFormRef",
|
112
|
+
ref: q,
|
113
|
+
model: d.value,
|
114
|
+
inline: !0
|
115
|
+
}, {
|
116
|
+
default: t(() => [
|
117
|
+
n($, null, {
|
118
|
+
default: t(() => [
|
119
|
+
n(S, { span: 6 }, {
|
120
|
+
default: t(() => [
|
121
|
+
n(b, {
|
122
|
+
label: r.$t("orderInfo.shopName"),
|
123
|
+
prop: "shopId"
|
124
|
+
}, {
|
125
|
+
default: t(() => [
|
126
|
+
n(N, {
|
127
|
+
modelValue: d.value.shopId,
|
128
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => d.value.shopId = e),
|
129
|
+
data: o(m).shopBizDict.values,
|
130
|
+
placeholder: r.$t("orderInfo.shopNameRequired"),
|
131
|
+
clearable: "",
|
132
|
+
onKeyup: a[1] || (a[1] = _((e) => o(y).handleQuery(), ["enter"]))
|
133
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
134
|
+
]),
|
135
|
+
_: 1
|
136
|
+
}, 8, ["label"])
|
137
|
+
]),
|
138
|
+
_: 1
|
139
|
+
}),
|
140
|
+
n(S, { span: 6 }, {
|
141
|
+
default: t(() => [
|
142
|
+
n(b, {
|
143
|
+
label: r.$t("orderInfo.orderCode"),
|
144
|
+
prop: "likeOrderCode"
|
145
|
+
}, {
|
146
|
+
default: t(() => [
|
147
|
+
n(k, {
|
148
|
+
modelValue: d.value.likeOrderCode,
|
149
|
+
"onUpdate:modelValue": a[2] || (a[2] = (e) => d.value.likeOrderCode = e),
|
150
|
+
placeholder: r.$t("orderInfo.orderCodeRequired"),
|
151
|
+
clearable: "",
|
152
|
+
onKeyup: a[3] || (a[3] = _((e) => o(y).handleQuery(), ["enter"])),
|
153
|
+
class: "!w-[203px]"
|
154
|
+
}, null, 8, ["modelValue", "placeholder"])
|
155
|
+
]),
|
156
|
+
_: 1
|
157
|
+
}, 8, ["label"])
|
158
|
+
]),
|
159
|
+
_: 1
|
160
|
+
}),
|
161
|
+
n(S, { span: 6 }, {
|
162
|
+
default: t(() => [
|
163
|
+
n(b, {
|
164
|
+
label: r.$t("orderInfo.spuName"),
|
165
|
+
prop: "likeSpuName"
|
166
|
+
}, {
|
167
|
+
default: t(() => [
|
168
|
+
n(k, {
|
169
|
+
modelValue: d.value.likeSpuName,
|
170
|
+
"onUpdate:modelValue": a[4] || (a[4] = (e) => d.value.likeSpuName = e),
|
171
|
+
placeholder: r.$t("orderInfo.spuNameRequired"),
|
172
|
+
clearable: "",
|
173
|
+
onKeyup: a[5] || (a[5] = _((e) => o(y).handleQuery(), ["enter"])),
|
174
|
+
class: "!w-[203px]"
|
175
|
+
}, null, 8, ["modelValue", "placeholder"])
|
176
|
+
]),
|
177
|
+
_: 1
|
178
|
+
}, 8, ["label"])
|
179
|
+
]),
|
180
|
+
_: 1
|
181
|
+
}),
|
182
|
+
n(S, { span: 6 }, {
|
183
|
+
default: t(() => [
|
184
|
+
n(b, {
|
185
|
+
label: r.$t("orderInfo.likeMobile"),
|
186
|
+
prop: "likeMobile"
|
187
|
+
}, {
|
188
|
+
default: t(() => [
|
189
|
+
n(k, {
|
190
|
+
modelValue: d.value.likeMobile,
|
191
|
+
"onUpdate:modelValue": a[6] || (a[6] = (e) => d.value.likeMobile = e),
|
192
|
+
placeholder: r.$t("orderInfo.likeMobileRequired"),
|
193
|
+
clearable: "",
|
194
|
+
onKeyup: a[7] || (a[7] = _((e) => o(y).handleQuery(), ["enter"])),
|
195
|
+
class: "!w-[203px]"
|
196
|
+
}, null, 8, ["modelValue", "placeholder"])
|
197
|
+
]),
|
198
|
+
_: 1
|
199
|
+
}, 8, ["label"])
|
200
|
+
]),
|
201
|
+
_: 1
|
202
|
+
})
|
203
|
+
]),
|
204
|
+
_: 1
|
205
|
+
}),
|
206
|
+
n($, null, {
|
207
|
+
default: t(() => [
|
208
|
+
n(S, { span: 6 }, {
|
209
|
+
default: t(() => [
|
210
|
+
n(b, {
|
211
|
+
label: r.$t("orderInfo.paymentStatus"),
|
212
|
+
prop: "paymentStatus"
|
213
|
+
}, {
|
214
|
+
default: t(() => [
|
215
|
+
n(N, {
|
216
|
+
modelValue: d.value.paymentStatus,
|
217
|
+
"onUpdate:modelValue": a[8] || (a[8] = (e) => d.value.paymentStatus = e),
|
218
|
+
data: o(m).paymentStatusEnum.values,
|
219
|
+
placeholder: r.$t("orderInfo.paymentStatusRequired"),
|
220
|
+
clearable: "",
|
221
|
+
onKeyup: a[9] || (a[9] = _((e) => o(y).handleQuery(), ["enter"]))
|
222
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
223
|
+
]),
|
224
|
+
_: 1
|
225
|
+
}, 8, ["label"])
|
226
|
+
]),
|
227
|
+
_: 1
|
228
|
+
}),
|
229
|
+
n(S, { span: 6 }, {
|
230
|
+
default: t(() => [
|
231
|
+
n(b, {
|
232
|
+
label: r.$t("orderInfo.orderTime"),
|
233
|
+
prop: "startCreateTime"
|
234
|
+
}, {
|
235
|
+
default: t(() => [
|
236
|
+
n(K, {
|
237
|
+
modelValue: h.value,
|
238
|
+
"onUpdate:modelValue": a[10] || (a[10] = (e) => h.value = e),
|
239
|
+
class: "dropdown-left",
|
240
|
+
type: "daterange",
|
241
|
+
"start-placeholder": r.$t("orderInfo.startCreateTime"),
|
242
|
+
"end-placeholder": r.$t("orderInfo.endCreateTime"),
|
243
|
+
format: "YYYY-MM-DD",
|
244
|
+
"value-format": "YYYY-MM-DD",
|
245
|
+
onChange: z
|
246
|
+
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
247
|
+
]),
|
248
|
+
_: 1
|
249
|
+
}, 8, ["label"])
|
250
|
+
]),
|
251
|
+
_: 1
|
252
|
+
}),
|
253
|
+
n(S, { span: 12 }, {
|
254
|
+
default: t(() => [
|
255
|
+
n(b, { class: "search-btn" }, {
|
256
|
+
default: t(() => [
|
257
|
+
n(T, {
|
258
|
+
type: "primary",
|
259
|
+
onClick: a[11] || (a[11] = (e) => o(y).handleQuery())
|
260
|
+
}, {
|
261
|
+
default: t(() => [
|
262
|
+
s(l(r.$t("common.search")), 1)
|
263
|
+
]),
|
264
|
+
_: 1
|
265
|
+
}),
|
266
|
+
n(T, { onClick: j }, {
|
267
|
+
default: t(() => [
|
268
|
+
s(l(r.$t("common.reset")), 1)
|
269
|
+
]),
|
270
|
+
_: 1
|
271
|
+
})
|
272
|
+
]),
|
273
|
+
_: 1
|
274
|
+
})
|
275
|
+
]),
|
276
|
+
_: 1
|
277
|
+
})
|
278
|
+
]),
|
279
|
+
_: 1
|
280
|
+
})
|
281
|
+
]),
|
282
|
+
_: 1
|
283
|
+
}, 8, ["model"]),
|
284
|
+
a[18] || (a[18] = u("div", { class: "clear" }, null, -1))
|
285
|
+
]),
|
286
|
+
n(J, {
|
287
|
+
shadow: "never",
|
288
|
+
class: "table-container"
|
289
|
+
}, {
|
290
|
+
header: t(() => [
|
291
|
+
n($, null, {
|
292
|
+
default: t(() => [
|
293
|
+
n(S, { span: 17 }),
|
294
|
+
n(S, {
|
295
|
+
span: 7,
|
296
|
+
class: "container-float"
|
297
|
+
}, {
|
298
|
+
default: t(() => [
|
299
|
+
R((i(), f(T, {
|
300
|
+
plain: "",
|
301
|
+
type: "primary",
|
302
|
+
onClick: a[12] || (a[12] = (e) => o(y).handleExport(o(P)("orderInfo.name")))
|
303
|
+
}, {
|
304
|
+
default: t(() => [
|
305
|
+
s(l(r.$t("common.export")), 1)
|
306
|
+
]),
|
307
|
+
_: 1
|
308
|
+
})), [
|
309
|
+
[D, ["order:order_info:export"]]
|
310
|
+
]),
|
311
|
+
n(F, {
|
312
|
+
modelValue: o(I),
|
313
|
+
"onUpdate:modelValue": a[13] || (a[13] = (e) => A(I) ? I.value = e : I = e),
|
314
|
+
"label-name": "order/order-info"
|
315
|
+
}, null, 8, ["modelValue"])
|
316
|
+
]),
|
317
|
+
_: 1
|
318
|
+
})
|
319
|
+
]),
|
320
|
+
_: 1
|
321
|
+
})
|
322
|
+
]),
|
323
|
+
footer: t(() => [
|
324
|
+
o(C) > 0 ? (i(), f(G, {
|
325
|
+
key: 0,
|
326
|
+
total: o(C),
|
327
|
+
"onUpdate:total": a[14] || (a[14] = (e) => A(C) ? C.value = e : null),
|
328
|
+
"current-page": d.value.curPage,
|
329
|
+
"onUpdate:currentPage": a[15] || (a[15] = (e) => d.value.curPage = e),
|
330
|
+
"page-size": d.value.pageSize,
|
331
|
+
"onUpdate:pageSize": a[16] || (a[16] = (e) => d.value.pageSize = e),
|
332
|
+
onPagination: a[17] || (a[17] = (e) => o(y).getList())
|
333
|
+
}, null, 8, ["total", "current-page", "page-size"])) : w("", !0)
|
334
|
+
]),
|
335
|
+
default: t(() => [
|
336
|
+
n(O, {
|
337
|
+
ref_key: "multipleTableRef",
|
338
|
+
ref: Y,
|
339
|
+
"row-key": "orderId",
|
340
|
+
"list-loading": o(M),
|
341
|
+
data: o(L),
|
342
|
+
"table-label": o(I),
|
343
|
+
onSelectionChange: B
|
344
|
+
}, {
|
345
|
+
shopId: t((e) => [
|
346
|
+
u("span", null, l(o(m).shopBizDict.getValue(e.data.row.shopId)), 1)
|
347
|
+
]),
|
348
|
+
orderItemList: t((e) => [
|
349
|
+
(i(!0), V(te, null, ae(e.data.row.orderItemList.results, (g, X) => (i(), V("div", {
|
350
|
+
key: X,
|
351
|
+
class: "order-item"
|
352
|
+
}, [
|
353
|
+
u("div", se, l(g.spuName), 1),
|
354
|
+
u("div", ie, "¥" + l(g.salesPrice), 1),
|
355
|
+
u("div", me, l(g.specInfo), 1),
|
356
|
+
u("div", pe, "数量:" + l(g.quantity), 1)
|
357
|
+
]))), 128))
|
358
|
+
]),
|
359
|
+
orderCodeAndCreateTime: t((e) => [
|
360
|
+
u("span", null, [
|
361
|
+
s(l(o(U).$moment.formatDate(
|
362
|
+
e.data.row.createTime,
|
363
|
+
"YYYY-MM-DD HH:mm:ss"
|
364
|
+
)) + " ", 1),
|
365
|
+
a[19] || (a[19] = u("br", null, null, -1)),
|
366
|
+
s(" " + l(e.data.row.orderCode), 1)
|
367
|
+
])
|
368
|
+
]),
|
369
|
+
status: t((e) => [
|
370
|
+
u("div", null, [
|
371
|
+
s(l(r.$t("orderInfo.orderStatus")) + ": ", 1),
|
372
|
+
e.data.row.orderStatus === o(c).unpay ? (i(), f(v, {
|
373
|
+
key: 0,
|
374
|
+
type: "danger"
|
375
|
+
}, {
|
376
|
+
default: t(() => [
|
377
|
+
s(l(o(m).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
|
378
|
+
]),
|
379
|
+
_: 2
|
380
|
+
}, 1024)) : w("", !0),
|
381
|
+
e.data.row.orderStatus === o(c).unpost ? (i(), f(v, {
|
382
|
+
key: 1,
|
383
|
+
type: "warning"
|
384
|
+
}, {
|
385
|
+
default: t(() => [
|
386
|
+
s(l(o(m).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
|
387
|
+
]),
|
388
|
+
_: 2
|
389
|
+
}, 1024)) : w("", !0),
|
390
|
+
e.data.row.orderStatus === o(c).unreceive ? (i(), f(v, {
|
391
|
+
key: 2,
|
392
|
+
type: "primary"
|
393
|
+
}, {
|
394
|
+
default: t(() => [
|
395
|
+
s(l(o(m).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
|
396
|
+
]),
|
397
|
+
_: 2
|
398
|
+
}, 1024)) : w("", !0),
|
399
|
+
e.data.row.orderStatus === o(c).complete ? (i(), f(v, {
|
400
|
+
key: 3,
|
401
|
+
type: "success"
|
402
|
+
}, {
|
403
|
+
default: t(() => [
|
404
|
+
s(l(o(m).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
|
405
|
+
]),
|
406
|
+
_: 2
|
407
|
+
}, 1024)) : w("", !0),
|
408
|
+
e.data.row.orderStatus === o(c).cancel ? (i(), f(v, {
|
409
|
+
key: 4,
|
410
|
+
type: "info"
|
411
|
+
}, {
|
412
|
+
default: t(() => [
|
413
|
+
s(l(o(m).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
|
414
|
+
]),
|
415
|
+
_: 2
|
416
|
+
}, 1024)) : w("", !0)
|
417
|
+
]),
|
418
|
+
u("span", null, [
|
419
|
+
s(l(r.$t("orderInfo.paymentStatus")) + ": ", 1),
|
420
|
+
e.data.row.paymentStatus === o(c).unpaid ? (i(), f(v, {
|
421
|
+
key: 0,
|
422
|
+
type: "danger"
|
423
|
+
}, {
|
424
|
+
default: t(() => [
|
425
|
+
s(l(o(m).paymentStatusEnum.getEnumValue(
|
426
|
+
e.data.row.paymentStatus
|
427
|
+
)), 1)
|
428
|
+
]),
|
429
|
+
_: 2
|
430
|
+
}, 1024)) : e.data.row.paymentStatus === o(c).part_paid ? (i(), f(v, {
|
431
|
+
key: 1,
|
432
|
+
type: "info"
|
433
|
+
}, {
|
434
|
+
default: t(() => [
|
435
|
+
s(l(o(m).paymentStatusEnum.getEnumValue(
|
436
|
+
e.data.row.paymentStatus
|
437
|
+
)), 1)
|
438
|
+
]),
|
439
|
+
_: 2
|
440
|
+
}, 1024)) : e.data.row.paymentStatus === o(c).paid ? (i(), f(v, {
|
441
|
+
key: 2,
|
442
|
+
type: "success"
|
443
|
+
}, {
|
444
|
+
default: t(() => [
|
445
|
+
s(l(o(m).paymentStatusEnum.getEnumValue(
|
446
|
+
e.data.row.paymentStatus
|
447
|
+
)), 1)
|
448
|
+
]),
|
449
|
+
_: 2
|
450
|
+
}, 1024)) : w("", !0)
|
451
|
+
]),
|
452
|
+
u("div", null, [
|
453
|
+
s(l(r.$t("orderInfo.appraisesStatus")) + ": ", 1),
|
454
|
+
e.data.row.appraisesStatus === !1 ? (i(), f(v, {
|
455
|
+
key: 0,
|
456
|
+
type: "info"
|
457
|
+
}, {
|
458
|
+
default: t(() => [
|
459
|
+
s(l(o(m).APPRAISES_STATUS.getValue(e.data.row.appraisesStatus)), 1)
|
460
|
+
]),
|
461
|
+
_: 2
|
462
|
+
}, 1024)) : w("", !0),
|
463
|
+
e.data.row.appraisesStatus === !0 ? (i(), f(v, {
|
464
|
+
key: 1,
|
465
|
+
type: "success"
|
466
|
+
}, {
|
467
|
+
default: t(() => [
|
468
|
+
s(l(o(m).APPRAISES_STATUS.getValue(e.data.row.appraisesStatus)), 1)
|
469
|
+
]),
|
470
|
+
_: 2
|
471
|
+
}, 1024)) : w("", !0)
|
472
|
+
])
|
473
|
+
]),
|
474
|
+
salesPrice: t((e) => [
|
475
|
+
u("div", null, [
|
476
|
+
u("div", null, l(r.$t("orderInfo.salesPrice")) + ": ¥" + l(e.data.row.salesPrice), 1),
|
477
|
+
u("div", null, l(r.$t("orderInfo.freightPrice")) + ": +¥" + l(e.data.row.freightPrice), 1),
|
478
|
+
u("div", null, l(r.$t("orderInfo.paymentCouponPrice")) + ": -¥" + l(e.data.row.paymentCouponPrice), 1),
|
479
|
+
u("div", fe, l(r.$t("orderInfo.orderPrice")) + ": ¥" + l(e.data.row.orderPrice), 1)
|
480
|
+
])
|
481
|
+
]),
|
482
|
+
paymentWay: t((e) => [
|
483
|
+
u("span", null, l(o(m).paymentWayEnum.getEnumValue(e.data.row.paymentWay)), 1)
|
484
|
+
]),
|
485
|
+
deliveryWay: t((e) => [
|
486
|
+
u("span", null, l(o(m).deliveryWayEnum.getEnumValue(e.data.row.deliveryWay)), 1)
|
487
|
+
]),
|
488
|
+
operation: t((e) => [
|
489
|
+
R((i(), V("span", {
|
490
|
+
class: "el-button-colo dropdown-left",
|
491
|
+
onClick: (g) => Q(e.data.row)
|
492
|
+
}, [
|
493
|
+
s(l(r.$t("common.view")), 1)
|
494
|
+
], 8, ye)), [
|
495
|
+
[D, ["order:order_info:view"]]
|
496
|
+
])
|
497
|
+
]),
|
498
|
+
_: 1
|
499
|
+
}, 8, ["list-loading", "data", "table-label"])
|
500
|
+
]),
|
501
|
+
_: 1
|
502
|
+
})
|
503
|
+
]);
|
504
|
+
};
|
505
|
+
}
|
506
|
+
});
|
507
|
+
export {
|
508
|
+
Ce as _
|
509
|
+
};
|