|
@@ -71,7 +71,7 @@ import Popu from '@/components/template/popu.vue'
|
|
|
import add_callback_mixin from '@/components/template/add_callback_mixin.js'
|
|
|
import DelayRecordForm from './components/delayRecordForm.vue'
|
|
|
import ReplaceRecordForm from './components/replaceRecordForm.vue'
|
|
|
-import Cancal from './components/cancal.vue';
|
|
|
+import Cancal from './components/cancal.vue'
|
|
|
import {
|
|
|
cancelPolicy,
|
|
|
cloneList,
|
|
@@ -317,7 +317,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
// 列表请求函数
|
|
|
- getList(p) {
|
|
|
+ getList(p, cb) {
|
|
|
var pm = JSON.parse(JSON.stringify(p))
|
|
|
var specification, customerId, specification2
|
|
|
|
|
@@ -339,6 +339,8 @@ export default {
|
|
|
pm.params.splice(i, 1)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ cb?.({ ...pm, specification, customerId, specification2 })
|
|
|
return policyListV2({ ...pm, specification, customerId, specification2 })
|
|
|
},
|
|
|
// 列表导出函数
|
|
@@ -364,12 +366,12 @@ export default {
|
|
|
operation() {
|
|
|
return (h, { row, index, column }) => {
|
|
|
return (
|
|
|
- <div class='operation-btns'>
|
|
|
+ <div class="operation-btns">
|
|
|
{row.examineStatus == 'SAVE' ? (
|
|
|
<el-button
|
|
|
- size='mini'
|
|
|
- type='text'
|
|
|
- onClick={async() => {
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ onClick={async () => {
|
|
|
this.isShow = 3
|
|
|
this.id = row.id
|
|
|
}}
|
|
@@ -381,9 +383,9 @@ export default {
|
|
|
)}
|
|
|
|
|
|
<el-button
|
|
|
- size='mini'
|
|
|
- type='text'
|
|
|
- onClick={async() => {
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ onClick={async () => {
|
|
|
this.isShow = 4
|
|
|
this.id = row.id
|
|
|
this.code = row.code
|
|
@@ -394,9 +396,9 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
<el-button
|
|
|
- size='mini'
|
|
|
- type='text'
|
|
|
- onClick={async() => {
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ onClick={async () => {
|
|
|
this.isShow = 5
|
|
|
this.id = row.id
|
|
|
this.code = row.code
|
|
@@ -411,12 +413,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'SAVE' ? (
|
|
|
<el-popconfirm
|
|
|
- onConfirm={async() => {
|
|
|
+ onConfirm={async () => {
|
|
|
this.handlesubmit(row)
|
|
|
}}
|
|
|
- title='是否确定需要提审该项内容?'
|
|
|
+ title="是否确定需要提审该项内容?"
|
|
|
>
|
|
|
- <el-button slot='reference' size='mini' type='text'>
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
提审
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
@@ -426,12 +428,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'OK' && row.status ? (
|
|
|
<el-popconfirm
|
|
|
- onConfirm={async() => {
|
|
|
+ onConfirm={async () => {
|
|
|
this.handleNullify(row)
|
|
|
}}
|
|
|
- title='是否确定需要作废该项内容?'
|
|
|
+ title="是否确定需要作废该项内容?"
|
|
|
>
|
|
|
- <el-button slot='reference' size='mini' type='text'>
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
作废
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
@@ -439,27 +441,27 @@ export default {
|
|
|
''
|
|
|
)}
|
|
|
|
|
|
- {(
|
|
|
+ {
|
|
|
<el-popconfirm
|
|
|
- onConfirm={async() => {
|
|
|
+ onConfirm={async () => {
|
|
|
this.handleClone(row)
|
|
|
}}
|
|
|
- title='是否确定需要克隆该项内容?'
|
|
|
+ title="是否确定需要克隆该项内容?"
|
|
|
>
|
|
|
- <el-button slot='reference' size='mini' type='text'>
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
克隆
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
|
- ) }
|
|
|
+ }
|
|
|
|
|
|
{row.examineStatus != 'OK' ? (
|
|
|
<el-popconfirm
|
|
|
- onConfirm={async() => {
|
|
|
+ onConfirm={async () => {
|
|
|
this.hanleDelete(row.id)
|
|
|
}}
|
|
|
- title='是否确定需要删除该项内容?'
|
|
|
+ title="是否确定需要删除该项内容?"
|
|
|
>
|
|
|
- <el-button slot='reference' size='mini' type='text'>
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
删除
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
@@ -469,12 +471,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'OK' ? (
|
|
|
<el-popconfirm
|
|
|
- onConfirm={async() => {
|
|
|
+ onConfirm={async () => {
|
|
|
this.hanleAbandon(row.id)
|
|
|
}}
|
|
|
- title='是否确定需要弃审该项内容?'
|
|
|
+ title="是否确定需要弃审该项内容?"
|
|
|
>
|
|
|
- <el-button slot='reference' size='mini' type='text'>
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
弃审
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|