|
|
@@ -1,7 +1,23 @@
|
|
|
<!-- 查询管理-内部订单查询-线下交收单查询-详情 -->
|
|
|
<template>
|
|
|
<app-drawer :title="t('query.internal.offlinedelivery.details.title')" width="960" v-model:show="show">
|
|
|
- <app-table-details :data="data" :label-width="160" :cell-props="detailProps" :column="2" />
|
|
|
+ <app-table-details :data="data" :label-width="160" :cell-props="detailProps" :column="2">
|
|
|
+ <!-- 申请交收数量 -->
|
|
|
+ <template #deliveryqty v-if="data">
|
|
|
+ <span>{{ data.deliveryqty }}</span>
|
|
|
+ <span>{{ goodsunitEnum.getEnumTypeName(data.goodunitid) }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 实际交收数量 -->
|
|
|
+ <template #sucdeliveryqty v-if="data">
|
|
|
+ <span>{{ data.sucdeliveryqty }}</span>
|
|
|
+ <span>{{ goodsunitEnum.getEnumTypeName(data.goodunitid) }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 撤销交收数量 -->
|
|
|
+ <template #cancledeliveryqty v-if="data">
|
|
|
+ <span>{{ data.cancledeliveryqty }}</span>
|
|
|
+ <span>{{ goodsunitEnum.getEnumTypeName(data.goodunitid) }}</span>
|
|
|
+ </template>
|
|
|
+ </app-table-details>
|
|
|
<template #footer>
|
|
|
<el-button @click="onCancel">{{ t('operation.close') }}</el-button>
|
|
|
</template>
|
|
|
@@ -12,6 +28,7 @@
|
|
|
import { shallowRef, PropType, computed } from 'vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { formatDate } from '@/filters'
|
|
|
+import { useEnum } from '@/hooks/enum'
|
|
|
import { getBuyOrSellName } from '@/constants/order'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryOfflineDetail } from '@/services/api/order'
|
|
|
@@ -28,6 +45,7 @@ const props = defineProps({
|
|
|
})
|
|
|
|
|
|
const { t } = i18n.global
|
|
|
+const goodsunitEnum = useEnum('goodsunit')
|
|
|
const show = shallowRef(true)
|
|
|
|
|
|
const { data } = useRequest(queryOfflineDetail, {
|