|
@@ -3,7 +3,7 @@
|
|
|
<app-table :data="dataList" v-model:columns="tableColumns" :loading="loading">
|
|
<app-table :data="dataList" v-model:columns="tableColumns" :loading="loading">
|
|
|
<template #headerLeft>
|
|
<template #headerLeft>
|
|
|
<app-filter :options="filterOptons">
|
|
<app-filter :options="filterOptons">
|
|
|
- <template #before>
|
|
|
|
|
|
|
+ <template #after>
|
|
|
<el-date-picker type="daterange" start-placeholder="开始日期" end-placeholder="结束日期" value-format="YYYYMMDD"
|
|
<el-date-picker type="daterange" start-placeholder="开始日期" end-placeholder="结束日期" value-format="YYYYMMDD"
|
|
|
v-model="filterDate" />
|
|
v-model="filterDate" />
|
|
|
</template>
|
|
</template>
|
|
@@ -34,11 +34,11 @@ import { formatDate } from '@/filters'
|
|
|
import { useDataFilter } from '@/hooks/datatable'
|
|
import { useDataFilter } from '@/hooks/datatable'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryPerformancePlan } from '@/services/api/performance'
|
|
import { queryPerformancePlan } from '@/services/api/performance'
|
|
|
-import { BuyOrSell, getPaymentTypeName, getPerformanceStatusName, getPerformanceTypeName } from '@/constants/order'
|
|
|
|
|
|
|
+import { BuyOrSell, getPaymentTypeName, getPerformanceStatusName, getPerformanceStatusList, getPerformanceTypeName } from '@/constants/order'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import AppFilter from '@pc/components/base/table-filter/index.vue'
|
|
import AppFilter from '@pc/components/base/table-filter/index.vue'
|
|
|
|
|
|
|
|
-const { filterOptons, getQueryParams } = useDataFilter<Model.WrOrderDetailRsp>()
|
|
|
|
|
|
|
+const { filterOptons, getQueryParams } = useDataFilter<Model.PerformancePlanReq>()
|
|
|
const filterDate = shallowRef<string[]>([])
|
|
const filterDate = shallowRef<string[]>([])
|
|
|
|
|
|
|
|
const { loading, dataList, run } = useRequest(queryPerformancePlan, {
|
|
const { loading, dataList, run } = useRequest(queryPerformancePlan, {
|
|
@@ -64,6 +64,15 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
{ prop: 'starttime', label: '开始时间' },
|
|
{ prop: 'starttime', label: '开始时间' },
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
|
|
+filterOptons.selectList = [
|
|
|
|
|
+ {
|
|
|
|
|
+ key: 'status',
|
|
|
|
|
+ selectedValue: 2,
|
|
|
|
|
+ options: getPerformanceStatusList(),
|
|
|
|
|
+ locked: true,
|
|
|
|
|
+ }
|
|
|
|
|
+]
|
|
|
|
|
+
|
|
|
filterOptons.buttonList = [
|
|
filterOptons.buttonList = [
|
|
|
{ lable: '查询', className: 'el-button--info', onClick: () => onSearch() },
|
|
{ lable: '查询', className: 'el-button--info', onClick: () => onSearch() },
|
|
|
{ lable: '重置', className: 'el-button--info', onClick: () => onSearch(true) }
|
|
{ lable: '重置', className: 'el-button--info', onClick: () => onSearch(true) }
|