|
@@ -10,14 +10,17 @@
|
|
|
highlight-current-row
|
|
|
@get-list="getList"
|
|
|
@clickReset="clickReset">
|
|
|
- <template #code="{ item }">
|
|
|
+ <template #orderCode="{ item }">
|
|
|
<div>
|
|
|
- <a style="color: #409eff; cursor: pointer; word-break: break-all" @click="clickCode(item)">{{ item.code }}</a>
|
|
|
+ <a style="color: #409eff; cursor: pointer; word-break: break-all" @click="clickCode(item)">{{ item.orderCode }}</a>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #blueprint="{ item }">
|
|
|
<div>图片</div>
|
|
|
</template>
|
|
|
+ <template #subtotal="{ item }">
|
|
|
+ <div style="color: #409eff">{{ subtotal(item) }}</div>
|
|
|
+ </template>
|
|
|
<template #wlnCreateTime="{ item }">
|
|
|
<div>{{ item.wlnCreateTime || item.createTime }}</div>
|
|
|
</template>
|
|
@@ -40,7 +43,7 @@ const sourceList = ref({
|
|
|
skuSpecName: "",
|
|
|
bomSpecCode: "",
|
|
|
bomSpecName: "",
|
|
|
- orderCode: "PI1690269227623",
|
|
|
+ orderCode: "",
|
|
|
orderWlnCode: "",
|
|
|
orderStatus: "",
|
|
|
beginTime: "",
|
|
@@ -86,6 +89,11 @@ const searchConfig = computed(() => {
|
|
|
dictKey: "order_status",
|
|
|
label: "订单状态",
|
|
|
},
|
|
|
+ {
|
|
|
+ type: "datetime",
|
|
|
+ propList: ["beginTime", "endTime"],
|
|
|
+ label: "下单时间",
|
|
|
+ },
|
|
|
];
|
|
|
});
|
|
|
const config = computed(() => {
|
|
@@ -135,14 +143,14 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "订单号",
|
|
|
- slot: "code",
|
|
|
+ slot: "orderCode",
|
|
|
width: 200,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "万里牛单号",
|
|
|
- prop: "wlnCode",
|
|
|
+ prop: "orderWlnCode",
|
|
|
width: 160,
|
|
|
},
|
|
|
},
|
|
@@ -159,7 +167,7 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "结算状态",
|
|
|
- prop: "settlementStatus",
|
|
|
+ prop: "orderSettlementStatus",
|
|
|
width: 120,
|
|
|
},
|
|
|
render(val) {
|
|
@@ -175,19 +183,16 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "订单总金额 ¥",
|
|
|
- prop: "totalAmount",
|
|
|
+ label: "小计 ¥",
|
|
|
+ slot: "subtotal",
|
|
|
width: 120,
|
|
|
align: "right",
|
|
|
},
|
|
|
- render(val) {
|
|
|
- return proxy.moneyFormat(val);
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "产品总金额 ¥",
|
|
|
- prop: "productTotalAmount",
|
|
|
+ label: "产品单价 ¥",
|
|
|
+ prop: "unitPrice",
|
|
|
width: 120,
|
|
|
align: "right",
|
|
|
},
|
|
@@ -279,11 +284,39 @@ const getList = async (req, status) => {
|
|
|
};
|
|
|
getList();
|
|
|
const clickReset = () => {
|
|
|
- treeCategory.value.setCurrentKey(null);
|
|
|
getList("", true);
|
|
|
};
|
|
|
const clickCode = (row) => {
|
|
|
- console.log(row, "订单详情");
|
|
|
+ proxy.$router.replace({
|
|
|
+ path: "/addOrder",
|
|
|
+ query: {
|
|
|
+ detailId: row.orderId,
|
|
|
+ text: "订单详情",
|
|
|
+ random: proxy.random(),
|
|
|
+ },
|
|
|
+ });
|
|
|
+};
|
|
|
+const subtotal = (row) => {
|
|
|
+ let money = 0;
|
|
|
+ if (row.unitPrice) {
|
|
|
+ money = Number(Math.round((money + row.unitPrice) * 100) / 100);
|
|
|
+ }
|
|
|
+ if (row.customProcessingFee) {
|
|
|
+ money = Number(Math.round((money + row.customProcessingFee) * 100) / 100);
|
|
|
+ }
|
|
|
+ if (row.lssueFee) {
|
|
|
+ money = Number(Math.round((money + row.lssueFee) * 100) / 100);
|
|
|
+ }
|
|
|
+ if (row.deliveryMaterialsFee) {
|
|
|
+ money = Number(Math.round((money + row.deliveryMaterialsFee) * 100) / 100);
|
|
|
+ }
|
|
|
+ if (row.packingLabor) {
|
|
|
+ money = Number(Math.round((money + row.packingLabor) * 100) / 100);
|
|
|
+ }
|
|
|
+ if (row.packagingMaterialCost) {
|
|
|
+ money = Number(Math.round((money + row.packagingMaterialCost) * 100) / 100);
|
|
|
+ }
|
|
|
+ return money;
|
|
|
};
|
|
|
</script>
|
|
|
|