|
@@ -1,36 +1,36 @@
|
|
|
<template>
|
|
|
<template-page
|
|
|
ref="pageRef"
|
|
|
- :getList="getList"
|
|
|
+ :get-list="getList"
|
|
|
:operation="operation()"
|
|
|
- :optionsEvensGroup="optionsEvensGroup"
|
|
|
- :exportList="exportList"
|
|
|
- :columnParsing="columnParsing"
|
|
|
- :tableAttributes="tableAttributes"
|
|
|
- :tableEvents="tableEvents"
|
|
|
- :replaceOrNotMap="false"
|
|
|
- :operationColumnWidth="200"
|
|
|
- :fieldBeansHook="fieldBeansHook"
|
|
|
+ :options-evens-group="optionsEvensGroup"
|
|
|
+ :export-list="exportList"
|
|
|
+ :column-parsing="columnParsing"
|
|
|
+ :table-attributes="tableAttributes"
|
|
|
+ :table-events="tableEvents"
|
|
|
+ :replace-or-not-map="false"
|
|
|
+ :operation-column-width="200"
|
|
|
+ :field-beans-hook="fieldBeansHook"
|
|
|
>
|
|
|
<Popu v-if="isShow !== 1">
|
|
|
<el-page-header slot="head" :content="content" @back="handleClose" />
|
|
|
<AddPolicy
|
|
|
v-if="isShow === 2"
|
|
|
+ :is-show="isShow"
|
|
|
+ :is-flag="isFlag"
|
|
|
@close="handleClose"
|
|
|
@upDataIsFlag="upDataIsFlag"
|
|
|
- :isShow="isShow"
|
|
|
- :isFlag="isFlag"
|
|
|
/>
|
|
|
<EditPolicy
|
|
|
v-if="isShow === 3"
|
|
|
:id="id"
|
|
|
+ :is-show="isShow"
|
|
|
+ :is-flag="isFlag"
|
|
|
@close="handleClose"
|
|
|
@upDataIsFlag="upDataIsFlag"
|
|
|
- :isShow="isShow"
|
|
|
- :isFlag="isFlag"
|
|
|
/>
|
|
|
- <Details v-if="isShow === 4" @close="handleClose" :id="id" :isShow="isShow" />
|
|
|
- <Examine v-if="isShow === 5" @close="handleClose" :id="id" :isShow="isShow" />
|
|
|
+ <Details v-if="isShow === 4" :id="id" :is-show="isShow" @close="handleClose" />
|
|
|
+ <Examine v-if="isShow === 5" :id="id" :is-show="isShow" @close="handleClose" />
|
|
|
</Popu>
|
|
|
</template-page>
|
|
|
</template>
|
|
@@ -191,21 +191,45 @@ export default {
|
|
|
tbName: '',
|
|
|
type: 'input',
|
|
|
noUse: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ adminUserId: null,
|
|
|
+ colName: 'customer_id',
|
|
|
+ enumMap: '{}',
|
|
|
+ frontCode: 'CUSTOMER',
|
|
|
+ hide: false,
|
|
|
+ isCopy: false,
|
|
|
+ isQuery: true,
|
|
|
+ isShow: false,
|
|
|
+ isTotal: false,
|
|
|
+ jname: 'customerId',
|
|
|
+ label: '经销商',
|
|
|
+ multiple: false,
|
|
|
+ pk: false,
|
|
|
+ sortNum: 0,
|
|
|
+ tbName: '',
|
|
|
+ type: 'select',
|
|
|
+ noUse: true
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
// 列表请求函数
|
|
|
getList(p) {
|
|
|
var pm = JSON.parse(JSON.stringify(p))
|
|
|
- var specification
|
|
|
- for (var i = 0; i < pm.params.length; i++) {
|
|
|
+ var specification, customerId
|
|
|
+
|
|
|
+ for (let i = 0; i < pm.params.length; i++) {
|
|
|
if (pm.params[i].param === 'specification') {
|
|
|
specification = pm.params[i].value
|
|
|
- pm.params.splice(i, 1)
|
|
|
- break
|
|
|
+ pm.params.splice(i--, 1)
|
|
|
+ }
|
|
|
+ if (pm.params[i].param === 'customer_id') {
|
|
|
+ customerId = pm.params[i].value
|
|
|
+ pm.params.splice(i--, 1)
|
|
|
}
|
|
|
}
|
|
|
- return policyListV2({ ...pm, specification })
|
|
|
+
|
|
|
+ return policyListV2({ ...pm, specification, customerId })
|
|
|
},
|
|
|
// 列表导出函数
|
|
|
exportList: policyListV2Export,
|
|
@@ -230,12 +254,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
|
|
|
}}
|
|
@@ -247,9 +271,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
|
|
@@ -260,9 +284,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
|
|
@@ -277,12 +301,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'SAVE' ? (
|
|
|
<el-popconfirm
|
|
|
- onOnConfirm={async () => {
|
|
|
+ onOnConfirm={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>
|
|
@@ -292,12 +316,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'OK' && row.status ? (
|
|
|
<el-popconfirm
|
|
|
- onOnConfirm={async () => {
|
|
|
+ onOnConfirm={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>
|
|
@@ -307,12 +331,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'OK' ? (
|
|
|
<el-popconfirm
|
|
|
- onOnConfirm={async () => {
|
|
|
+ onOnConfirm={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>
|
|
@@ -322,12 +346,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus != 'OK' ? (
|
|
|
<el-popconfirm
|
|
|
- onOnConfirm={async () => {
|
|
|
+ onOnConfirm={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>
|
|
@@ -337,12 +361,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == 'OK' ? (
|
|
|
<el-popconfirm
|
|
|
- onOnConfirm={async () => {
|
|
|
+ onOnConfirm={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>
|