|
|
@@ -4,7 +4,7 @@
|
|
|
<template #headerLeft>
|
|
|
<app-filter :options="filterOptons">
|
|
|
<template #before>
|
|
|
- <el-date-picker type="daterange" effect="dark" start-placeholder="开始日期" end-placeholder="结束日期" value-format="YYYYMMDD"
|
|
|
+ <el-date-picker type="daterange" effect="dark" :start-placeholder="t('common.startdate')" :end-placeholder="t('common.enddate')" value-format="YYYYMMDD"
|
|
|
v-model="filterDate" />
|
|
|
</template>
|
|
|
</app-filter>
|
|
|
@@ -30,6 +30,7 @@ import { formatDate } from '@/filters'
|
|
|
import { useDataFilter } from '@/hooks/datatable'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryWrDeliveryDetail } from '@/services/api/transfer'
|
|
|
+import { i18n } from '@/stores'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import AppFilter from '@pc/components/base/table-filter/index.vue'
|
|
|
|
|
|
@@ -38,23 +39,25 @@ const filterDate = shallowRef<string[]>([])
|
|
|
|
|
|
const { loading, dataList, run } = useRequest(queryWrDeliveryDetail, {})
|
|
|
|
|
|
+const { t } = i18n.global
|
|
|
+
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
- { field: 'wrtypename', label: '商品名称' },
|
|
|
- { field: 'deliveryqty', label: '交收数量' },
|
|
|
- { field: 'xdeliveryprice', label: '订货价' },
|
|
|
- { field: 'deliverypricemove', label: '升贴水' },
|
|
|
- { field: 'deliverytotalamount', label: '总金额' },
|
|
|
- { field: 'remaintotalamount', label: '剩余金额' },
|
|
|
- { field: 'warehousename', label: '仓库' },
|
|
|
- { field: 'matchusername', label: '发货方' },
|
|
|
- { field: 'deliverytime', label: '申请时间' },
|
|
|
- { field: 'xgoodsname', label: '交收合约' },
|
|
|
- { field: 'deliveryid', label: '交收单号' }
|
|
|
+ { field: 'wrtypename', label: t('delivery.online.wrtypename') },
|
|
|
+ { field: 'deliveryqty', label: t('delivery.online.deliveryqty') },
|
|
|
+ { field: 'xdeliveryprice', label: t('delivery.online.xdeliveryprice') },
|
|
|
+ { field: 'deliverypricemove', label: t('delivery.online.deliverypricemove') },
|
|
|
+ { field: 'deliverytotalamount', label: t('delivery.online.deliverytotalamount') },
|
|
|
+ { field: 'remaintotalamount', label: t('delivery.online.remaintotalamount') },
|
|
|
+ { field: 'warehousename', label: t('delivery.online.warehousename') },
|
|
|
+ { field: 'matchusername', label: t('delivery.online.matchusername') },
|
|
|
+ { field: 'deliverytime', label: t('delivery.online.deliverytime') },
|
|
|
+ { field: 'xgoodsname', label: t('delivery.online.xgoodscode') },
|
|
|
+ { field: 'deliveryid', label: t('delivery.online.deliveryid') }
|
|
|
])
|
|
|
|
|
|
filterOptons.buttonList = [
|
|
|
- { lable: '查询', className: 'el-button--info', onClick: () => onSearch() },
|
|
|
- { lable: '重置', className: 'el-button--info', onClick: () => onSearch(true) }
|
|
|
+ { lable: t('operation.search'), className: 'el-button--info', onClick: () => onSearch() },
|
|
|
+ { lable: t('operation.reset'), className: 'el-button--info', onClick: () => onSearch(true) }
|
|
|
]
|
|
|
|
|
|
const onSearch = (clear = false) => {
|