From a853cbe51dd8deb26ba5e02d39c116a8e4b17d74 Mon Sep 17 00:00:00 2001 From: cuiyouliang Date: Mon, 16 Jun 2025 15:00:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=8E=A5=E5=8F=A3=E8=81=94?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oms/order.js | 4 +- src/plugins/index.ts | 3 +- src/utils/index.ts | 7 +- src/views/oms/order/detail.vue | 11 +++- src/views/oms/order/index.vue | 113 ++++++++++++++++++-------------- src/views/pms/product/index.vue | 109 +++++++++++++++++++++++++++++- 6 files changed, 188 insertions(+), 59 deletions(-) diff --git a/src/api/oms/order.js b/src/api/oms/order.js index 0d25094..a6eac0c 100644 --- a/src/api/oms/order.js +++ b/src/api/oms/order.js @@ -68,10 +68,10 @@ export function saveMerchantNote(data) { }); } -// 发货 +// 核销 export function deliverProduct(data) { return request({ - url: '/oms/order/deliverProduct', + url: '/oms/verification/verify', method: 'post', data: data }); diff --git a/src/plugins/index.ts b/src/plugins/index.ts index b47bf80..6c936e6 100644 --- a/src/plugins/index.ts +++ b/src/plugins/index.ts @@ -5,7 +5,7 @@ import cache from './cache'; import auth from './auth'; // 预设动画 import animate from '@/animate'; - +import { getEmulistLabelById } from '@/utils'; import { download as dl } from '@/utils/request'; import { useDict, getDictionaryByKey } from '@/utils/dict'; import { getConfigKey, updateConfigByKey } from '@/api/system/config'; @@ -57,4 +57,5 @@ export default function installPlugin(app: App) { app.config.globalProperties.getHiddenName = getHiddenName; app.config.globalProperties.getHiddenDetailAddress = getHiddenDetailAddress; app.config.globalProperties.getDictionaryByKey = getDictionaryByKey; + app.config.globalProperties.getEmulistLabelById = getEmulistLabelById; // 根据枚举key和枚举获取枚举中文label } diff --git a/src/utils/index.ts b/src/utils/index.ts index 8347e82..adac362 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -327,9 +327,10 @@ export const getEmulistLabelById = (id: string, emuList: any) => { return '--'; } if (emuList && emuList.length) { - const { label } = emuList.find((item: any) => { - return item.value == id; - }); + const { label } = + emuList.find((item: any) => { + return item.value == id; + }) || {}; return label || '--'; } else { return '--'; diff --git a/src/views/oms/order/detail.vue b/src/views/oms/order/detail.vue index 8c13928..29e079a 100644 --- a/src/views/oms/order/detail.vue +++ b/src/views/oms/order/detail.vue @@ -29,6 +29,15 @@ {{ getOrderStatus(orderDetail) }} + + + {{ orderDetail.orderSn }} + {{ orderDetail.userName }} + {{ orderDetail.userPhone }} + {{ parseTime(orderDetail.createTime, '') }} + {{ getPayType(orderDetail) }} + + {{ getHiddenName(addressInfo.name) }} @@ -111,7 +120,7 @@ export default { computed: {}, methods: { queryDetail(id) { - this.loading = true; + // this.loading = true; return new Promise((resolve) => getOmsOrder(id).then((res) => { const { productInfo, addressInfo } = res.data; diff --git a/src/views/oms/order/index.vue b/src/views/oms/order/index.vue index e441a63..6a0d718 100644 --- a/src/views/oms/order/index.vue +++ b/src/views/oms/order/index.vue @@ -36,7 +36,7 @@ > - + - + @@ -84,36 +84,38 @@ - + - + - + - + - + + + - - + + + + - - + - - + + + + + +