|
@@ -78,6 +78,7 @@ import { Button } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
import { deliveryClientOperator } from '@/services/api/trade'
|
|
import { deliveryClientOperator } from '@/services/api/trade'
|
|
|
|
|
+import { i18n } from '@/stores'
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
buyorsell: Number
|
|
buyorsell: Number
|
|
@@ -88,6 +89,7 @@ const selectedRow = shallowRef<Model.MyTradeGoodsDeliveryOfflineRsp>()
|
|
|
const error = shallowRef(false)
|
|
const error = shallowRef(false)
|
|
|
const pullRefreshRef = shallowRef()
|
|
const pullRefreshRef = shallowRef()
|
|
|
const formData = reactive<Proto.DeliveryClientOperatorReq>({ PayAmount: 0, DeliveryPayMode: 2 })
|
|
const formData = reactive<Proto.DeliveryClientOperatorReq>({ PayAmount: 0, DeliveryPayMode: 2 })
|
|
|
|
|
+const { global: { t } } = i18n
|
|
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['detail', defineAsyncComponent(() => import('../../components/detail/index.vue'))], // 详情
|
|
['detail', defineAsyncComponent(() => import('../../components/detail/index.vue'))], // 详情
|
|
@@ -117,7 +119,7 @@ const { loading, pageIndex, pageCount, run } = useRequest(queryMyTradeGoodsDeliv
|
|
|
|
|
|
|
|
// 获取标签名称
|
|
// 获取标签名称
|
|
|
const getTagName = (value: number) => {
|
|
const getTagName = (value: number) => {
|
|
|
- return value === BuyOrSell.Buy ? '提料' : '交料'
|
|
|
|
|
|
|
+ return value === BuyOrSell.Buy ? t('enum.BuyOrSell.Buy') : t('enum.BuyOrSell.Sell')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const showComponent = (componentName: string, row: Model.MyTradeGoodsDeliveryOfflineRsp) => {
|
|
const showComponent = (componentName: string, row: Model.MyTradeGoodsDeliveryOfflineRsp) => {
|