|
|
@@ -6,7 +6,7 @@
|
|
|
<template #startDate="{ item }">
|
|
|
<el-form-item :label="item.label" prop="date">
|
|
|
<el-date-picker type="daterange" v-model="dateValue" value-format="YYYYMMDD"
|
|
|
- start-placeholder="开始时间" end-placeholder="结束时间" />
|
|
|
+ :start-placeholder="t('query.order.report.startDate')" :end-placeholder="t('query.order.report.enddate')" />
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template #goodsid="{ item }">
|
|
|
@@ -55,8 +55,10 @@ import AppFilter from '@pc/components/base/table-filter-v2/index.vue'
|
|
|
import AppSelectGoods from '@pc/components/modules/select-goods/index.vue'
|
|
|
import AppSelectInvestor from '@pc/components/modules/select-investor/index.vue'
|
|
|
import AppSelectMember from '@pc/components/modules/select-member/index.vue'
|
|
|
+import { i18n } from '@/stores'
|
|
|
|
|
|
const dateValue = shallowRef<string[] | null>([])
|
|
|
+const { global: { t } } = i18n
|
|
|
|
|
|
const { componentMap, componentId, record, openComponent, closeComponent, getActionButtons } = useOperation<Model.OrderDateRsp>({
|
|
|
onClose: () => onSearch()
|
|
|
@@ -74,24 +76,24 @@ const { dataList, total, pageSize, pageIndex, loading, run } = useRequest(queryO
|
|
|
})
|
|
|
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
- { field: 'reckondate', label: '日期' },
|
|
|
- { field: 'tradeid', label: '订单号' },
|
|
|
- { field: 'userfullname', label: '客户' },
|
|
|
- { field: 'areafullname', label: '所属会员' },
|
|
|
- { field: 'goodsfullname', label: '商品/代码' },
|
|
|
- { field: 'buyorselldisplay', label: '方向' },
|
|
|
- { field: 'holderprice', label: '订单价格' },
|
|
|
- { field: 'opennum', label: '原始数量' },
|
|
|
- { field: 'tradeamount', label: '原始金额' },
|
|
|
- { field: 'holdernum', label: '订单数量' },
|
|
|
- { field: 'holderamount', label: '订单金额' },
|
|
|
- { field: 'payeddeposit', label: '占用资金' },
|
|
|
- { field: 'freezenum', label: '冻结数量' },
|
|
|
- { field: 'deliverynum', label: '交收数量' },
|
|
|
- { field: 'closepl', label: '终止盈亏' },
|
|
|
- { field: 'floatpl', label: '浮动盈亏' },
|
|
|
- { field: 'depositratedisplay', label: '风险率' },
|
|
|
- { field: 'operatorcode', label: '操作人' }
|
|
|
+ { field: 'reckondate', label: 'query.order.report.reckondate' },
|
|
|
+ { field: 'tradeid', label: 'query.order.report.tradeid' },
|
|
|
+ { field: 'userfullname', label: 'query.order.report.userfullname' },
|
|
|
+ { field: 'areafullname', label: 'query.order.report.areafullname' },
|
|
|
+ { field: 'goodsfullname', label: 'query.order.report.goodsfullname' },
|
|
|
+ { field: 'buyorselldisplay', label: 'query.order.report.buyorselldisplay' },
|
|
|
+ { field: 'holderprice', label: 'query.order.report.holderprice' },
|
|
|
+ { field: 'opennum', label: 'query.order.report.opennum' },
|
|
|
+ { field: 'tradeamount', label: 'query.order.report.tradeamount' },
|
|
|
+ { field: 'holdernum', label: 'query.order.report.holdernum' },
|
|
|
+ { field: 'holderamount', label: 'query.order.report.holderamount' },
|
|
|
+ { field: 'payeddeposit', label: 'query.order.report.payeddeposit' },
|
|
|
+ { field: 'freezenum', label: 'query.order.report.freezenum' },
|
|
|
+ { field: 'deliverynum', label: 'query.order.report.deliverynum' },
|
|
|
+ { field: 'closepl', label: 'query.order.report.closepl' },
|
|
|
+ { field: 'floatpl', label: 'query.order.report.floatpl' },
|
|
|
+ { field: 'depositratedisplay', label: 'query.order.report.depositratedisplay' },
|
|
|
+ { field: 'operatorcode', label: 'query.order.report.operatorcode' }
|
|
|
])
|
|
|
|
|
|
// 表单验证规则
|
|
|
@@ -108,29 +110,29 @@ const { queryParams, filterOption, getQueryParams, resetFilters } = useDataFilte
|
|
|
filters: [
|
|
|
{
|
|
|
field: 'startDate',
|
|
|
- label: '日期',
|
|
|
+ label: t('query.order.report.date'),
|
|
|
required: true
|
|
|
},
|
|
|
{
|
|
|
field: 'goodsid',
|
|
|
- label: '商品'
|
|
|
+ label: t('query.order.report.goodsid'),
|
|
|
},
|
|
|
{
|
|
|
field: 'tradeid',
|
|
|
- label: '订单号'
|
|
|
+ label: t('query.order.report.tradeid'),
|
|
|
},
|
|
|
{
|
|
|
field: 'currentUserId',
|
|
|
- label: '交易商'
|
|
|
+ label: t('query.order.report.currentUserId'),
|
|
|
},
|
|
|
{
|
|
|
field: 'areauserid',
|
|
|
- label: '所属会员'
|
|
|
+ label: t('query.order.report.areauserid'),
|
|
|
},
|
|
|
],
|
|
|
buttons: [
|
|
|
- { label: '查询', className: 'el-button--primary', onClick: () => onSearch() },
|
|
|
- { label: '重置', className: 'el-button--primary', validateEvent: false, onClick: () => onReset() }
|
|
|
+ { label: t('operation.search'), className: 'el-button--primary', onClick: () => onSearch() },
|
|
|
+ { label: t('operation.reset'), className: 'el-button--primary', validateEvent: false, onClick: () => onReset() }
|
|
|
]
|
|
|
})
|
|
|
|