|
@@ -34,7 +34,7 @@
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef } from 'vue'
|
|
import { shallowRef } from 'vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
import { ElMessage } from 'element-plus'
|
|
|
-import { BuyOrSell, getBuyOrSellList } from '@/constants/order'
|
|
|
|
|
|
|
+import { BuyOrSell, getBuyOrSellList, getBuyOrSellName } from '@/constants/order'
|
|
|
import { useDataFilter } from '@/hooks/datatable-v2'
|
|
import { useDataFilter } from '@/hooks/datatable-v2'
|
|
|
import { useEnum } from '@/hooks/enum'
|
|
import { useEnum } from '@/hooks/enum'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
@@ -67,7 +67,7 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
{ field: 'deliveryorderid', label: 'query.internal.offlinedelivery.deliveryorderid' },
|
|
{ field: 'deliveryorderid', label: 'query.internal.offlinedelivery.deliveryorderid' },
|
|
|
{ field: 'username', label: 'query.internal.offlinedelivery.username' },
|
|
{ field: 'username', label: 'query.internal.offlinedelivery.username' },
|
|
|
{ field: 'goodsdisplay', label: 'query.internal.offlinedelivery.goodsdisplay' },
|
|
{ field: 'goodsdisplay', label: 'query.internal.offlinedelivery.goodsdisplay' },
|
|
|
- { field: 'buyorselldisplay', label: 'query.internal.offlinedelivery.buyorselldisplay' },
|
|
|
|
|
|
|
+ { field: 'buyorsell', label: 'query.internal.offlinedelivery.buyorselldisplay', formatValue: (val) => getBuyOrSellName(val) },
|
|
|
{ field: 'deliveryqty', label: 'query.internal.offlinedelivery.deliveryqty' },
|
|
{ field: 'deliveryqty', label: 'query.internal.offlinedelivery.deliveryqty' },
|
|
|
{ field: 'sucdeliveryqty', label: 'query.internal.offlinedelivery.sucdeliveryqty' },
|
|
{ field: 'sucdeliveryqty', label: 'query.internal.offlinedelivery.sucdeliveryqty' },
|
|
|
{ field: 'deliveryprice', label: 'query.internal.offlinedelivery.deliveryprice' },
|
|
{ field: 'deliveryprice', label: 'query.internal.offlinedelivery.deliveryprice' },
|