|
@@ -8,6 +8,7 @@
|
|
|
:morePlan="morePlan"
|
|
|
:operationColumnWidth="200"
|
|
|
:operation="operation()"
|
|
|
+ :moreParameters="moreParameters"
|
|
|
>
|
|
|
<Popu v-if="visible">
|
|
|
<el-page-header slot="head" content="" @back="handleClose" />
|
|
@@ -31,7 +32,7 @@ import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import Popu from '@/components/template/popu.vue'
|
|
|
import InsuranceContractForm from './InsuranceContractForm.vue'
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
|
-import { workerApplyList, workerApplyListExport } from '@/api/difficultyExpenseApproval.js'
|
|
|
+import { workerApplyList, workerApplyListExport, workerApplyCount } from '@/api/difficultyExpenseApproval.js'
|
|
|
export default {
|
|
|
components: { TemplatePage, Popu, InsuranceContractForm },
|
|
|
mixins: [import_mixin, operation_mixin],
|
|
@@ -52,12 +53,67 @@ export default {
|
|
|
recordSelected: [],
|
|
|
visible: false,
|
|
|
item: null,
|
|
|
- showType: null
|
|
|
+ showType: null,
|
|
|
+ statusList: []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ moreParameters() {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ name: '状态',
|
|
|
+ key: 'status',
|
|
|
+ value: '',
|
|
|
+ conditions: [
|
|
|
+ {
|
|
|
+ label: '全部',
|
|
|
+ value: ''
|
|
|
+ },
|
|
|
+ ...this.statusList
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
// 列表请求函数
|
|
|
- getList: workerApplyList,
|
|
|
+ getList(p, cb) {
|
|
|
+ var pam = JSON.parse(JSON.stringify(p))
|
|
|
+ try {
|
|
|
+ if (pam.status) {
|
|
|
+ pam.params.push({ param: 'a.status', compare: '=', value: pam.status })
|
|
|
+ }
|
|
|
+ cb && cb(pam)
|
|
|
+ return workerApplyList(pam)
|
|
|
+ } catch (err) {
|
|
|
+ } finally {
|
|
|
+ workerApplyCount().then(res => {
|
|
|
+ this.statusList = [
|
|
|
+ {
|
|
|
+ label: `待网点审核${res.data.dwdsp ? `(${res.data.dwdsp})` : ''}`,
|
|
|
+ value: '1'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: `待中心审核${res.data.dzxsp ? `(${res.data.dzxsp})` : ''}`,
|
|
|
+ value: '3'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '通过审核',
|
|
|
+ value: '5'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: `驳回重申${res.data.bhcs ? `(${res.data.bhcs})` : ''}`,
|
|
|
+ value: '2'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ label: '驳回禁止申诉',
|
|
|
+ value: '4'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 导出
|
|
|
exportList: workerApplyListExport,
|
|
|
// 表格列解析渲染数据更改
|