|
@@ -217,18 +217,18 @@ export default {
|
|
getList(p) {
|
|
getList(p) {
|
|
var pm = JSON.parse(JSON.stringify(p))
|
|
var pm = JSON.parse(JSON.stringify(p))
|
|
var specification, customerId
|
|
var specification, customerId
|
|
- for (var i = 0; i < pm.params.length; i++) {
|
|
|
|
|
|
+
|
|
|
|
+ for (let i = 0; i < pm.params.length; i++) {
|
|
if (pm.params[i].param === 'specification') {
|
|
if (pm.params[i].param === 'specification') {
|
|
specification = pm.params[i].value
|
|
specification = pm.params[i].value
|
|
- pm.params.splice(i, 1)
|
|
|
|
- continue
|
|
|
|
|
|
+ pm.params.splice(i--, 1)
|
|
}
|
|
}
|
|
if (pm.params[i].param === 'customer_id') {
|
|
if (pm.params[i].param === 'customer_id') {
|
|
customerId = pm.params[i].value
|
|
customerId = pm.params[i].value
|
|
- pm.params.splice(i, 1)
|
|
|
|
- continue
|
|
|
|
|
|
+ pm.params.splice(i--, 1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
return policyListV2({ ...pm, specification, customerId })
|
|
return policyListV2({ ...pm, specification, customerId })
|
|
},
|
|
},
|
|
// 列表导出函数
|
|
// 列表导出函数
|
|
@@ -254,12 +254,12 @@ export default {
|
|
operation() {
|
|
operation() {
|
|
return (h, { row, index, column }) => {
|
|
return (h, { row, index, column }) => {
|
|
return (
|
|
return (
|
|
- <div class="operation-btns">
|
|
|
|
|
|
+ <div class='operation-btns'>
|
|
{row.examineStatus == 'SAVE' ? (
|
|
{row.examineStatus == 'SAVE' ? (
|
|
<el-button
|
|
<el-button
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- onClick={async () => {
|
|
|
|
|
|
+ size='mini'
|
|
|
|
+ type='text'
|
|
|
|
+ onClick={async() => {
|
|
this.isShow = 3
|
|
this.isShow = 3
|
|
this.id = row.id
|
|
this.id = row.id
|
|
}}
|
|
}}
|
|
@@ -271,9 +271,9 @@ export default {
|
|
)}
|
|
)}
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- onClick={async () => {
|
|
|
|
|
|
+ size='mini'
|
|
|
|
+ type='text'
|
|
|
|
+ onClick={async() => {
|
|
this.isShow = 4
|
|
this.isShow = 4
|
|
this.id = row.id
|
|
this.id = row.id
|
|
this.code = row.code
|
|
this.code = row.code
|
|
@@ -284,9 +284,9 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
{row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
<el-button
|
|
<el-button
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- onClick={async () => {
|
|
|
|
|
|
+ size='mini'
|
|
|
|
+ type='text'
|
|
|
|
+ onClick={async() => {
|
|
this.isShow = 5
|
|
this.isShow = 5
|
|
this.id = row.id
|
|
this.id = row.id
|
|
this.code = row.code
|
|
this.code = row.code
|
|
@@ -301,12 +301,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'SAVE' ? (
|
|
{row.examineStatus == 'SAVE' ? (
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
- onOnConfirm={async () => {
|
|
|
|
|
|
+ onOnConfirm={async() => {
|
|
this.handlesubmit(row)
|
|
this.handlesubmit(row)
|
|
}}
|
|
}}
|
|
- title="是否确定需要提审该项内容?"
|
|
|
|
|
|
+ title='是否确定需要提审该项内容?'
|
|
>
|
|
>
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
提审
|
|
提审
|
|
</el-button>
|
|
</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
@@ -316,12 +316,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'OK' && row.status ? (
|
|
{row.examineStatus == 'OK' && row.status ? (
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
- onOnConfirm={async () => {
|
|
|
|
|
|
+ onOnConfirm={async() => {
|
|
this.handleNullify(row)
|
|
this.handleNullify(row)
|
|
}}
|
|
}}
|
|
- title="是否确定需要作废该项内容?"
|
|
|
|
|
|
+ title='是否确定需要作废该项内容?'
|
|
>
|
|
>
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
作废
|
|
作废
|
|
</el-button>
|
|
</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
@@ -331,12 +331,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'OK' ? (
|
|
{row.examineStatus == 'OK' ? (
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
- onOnConfirm={async () => {
|
|
|
|
|
|
+ onOnConfirm={async() => {
|
|
this.handleClone(row)
|
|
this.handleClone(row)
|
|
}}
|
|
}}
|
|
- title="是否确定需要克隆该项内容?"
|
|
|
|
|
|
+ title='是否确定需要克隆该项内容?'
|
|
>
|
|
>
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
克隆
|
|
克隆
|
|
</el-button>
|
|
</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
@@ -346,12 +346,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus != 'OK' ? (
|
|
{row.examineStatus != 'OK' ? (
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
- onOnConfirm={async () => {
|
|
|
|
|
|
+ onOnConfirm={async() => {
|
|
this.hanleDelete(row.id)
|
|
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-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
@@ -361,12 +361,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'OK' ? (
|
|
{row.examineStatus == 'OK' ? (
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
- onOnConfirm={async () => {
|
|
|
|
|
|
+ onOnConfirm={async() => {
|
|
this.hanleAbandon(row.id)
|
|
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-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|