|
@@ -32,7 +32,19 @@
|
|
|
</div>
|
|
|
<div class="form">
|
|
|
<span class="formSpan">开票状态:</span>
|
|
|
- <el-input v-model="queryParams.status" style="width: 160px" />
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.flowStatus"
|
|
|
+ placeholder="请选择开票状态"
|
|
|
+ clearable
|
|
|
+ class="!w-240px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in getIntDictOptions(DICT_TYPE.INVOICE_OUT_STATUS)"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</div>
|
|
|
|
|
|
<div class="form" style="width: 380px">
|
|
@@ -138,9 +150,9 @@
|
|
|
prop="returnDate"
|
|
|
label="回款日期"
|
|
|
/>
|
|
|
- <el-table-column prop="state" label="开票状态" width="100">
|
|
|
+ <el-table-column prop="state" label="开票状态" width="120">
|
|
|
<template #default="scope">
|
|
|
- {{ xmztMap[scope.row.flowStatus] }}
|
|
|
+ {{ getDictLabel(DICT_TYPE.INVOICE_OUT_STATUS, scope.row.flowStatus) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="操作" width="160" fixed="right">
|
|
@@ -170,20 +182,13 @@
|
|
|
import * as kpglApi from '@/api/oa/kpgl'
|
|
|
import { getFlowUrl } from '@/api/oa/index'
|
|
|
import { openFlow } from '@/utils/flow'
|
|
|
+import { DICT_TYPE, getIntDictOptions, getDictLabel } from '@/utils/dict'
|
|
|
import { formatDate, dateFormatter2 } from '@/utils/formatTime'
|
|
|
import TableLayout from '../../oaViews/layout/TableLayout.vue'
|
|
|
import UserOrgTree from '@/views/OaSystem/components/UserOrgTree/index.vue'
|
|
|
import DeptTree from '@/views/OaSystem/components/DeptTree/index.vue'
|
|
|
|
|
|
defineOptions({ name: 'CommonCost' })
|
|
|
-const xmztMap: any = {
|
|
|
- 0: '开票中',
|
|
|
- 1: '回款完成',
|
|
|
- 2: '已开票',
|
|
|
- 3: '票已送达',
|
|
|
- 4: '部分回款',
|
|
|
- 20: '开票申请完成'
|
|
|
-}
|
|
|
|
|
|
const invoiceTime = ref([])
|
|
|
const returnTime = ref([])
|