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 @@ - + - + - + - + - + + + - - + + + + - - + - - + + + + + +