|
@@ -1,296 +1,11 @@
|
|
<template>
|
|
<template>
|
|
- <div v-if="isShow === 1" class="app-container">
|
|
|
|
- <div class="screen-container">
|
|
|
|
- <Collapse :screen-form="screenForm">
|
|
|
|
- <template #right_btn>
|
|
|
|
- <el-button size="mini" @click="resetScreenForm">清空</el-button>
|
|
|
|
- <el-button type="primary" size="mini" @click="submitScreenForm">搜索</el-button>
|
|
|
|
- </template>
|
|
|
|
- <template #search>
|
|
|
|
- <el-form
|
|
|
|
- ref="screenForm"
|
|
|
|
- size="mini"
|
|
|
|
- :model="screenForm"
|
|
|
|
- :inline="false"
|
|
|
|
- label-width="120px"
|
|
|
|
- label-position="left"
|
|
|
|
- >
|
|
|
|
- <el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="销售政策编号" prop="code">
|
|
|
|
- <el-input v-model="screenForm.code" placeholder="销售政策编号" size="mini" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="销售政策说明" prop="title">
|
|
|
|
- <el-input v-model="screenForm.title" placeholder="销售政策说明" size="mini" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="表头备注" prop="remark">
|
|
|
|
- <el-input v-model="screenForm.remark" placeholder="表头备注" size="mini" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="生效日期" prop="startTime1">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="screenForm.startTime1"
|
|
|
|
- type="datetime"
|
|
|
|
- size="mini"
|
|
|
|
- placeholder="生效日期"
|
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="结束日期" prop="endTime1">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="screenForm.endTime1"
|
|
|
|
- type="datetime"
|
|
|
|
- size="mini"
|
|
|
|
- placeholder="结束日期"
|
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="制表日期" prop="startCreateTime">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="screenForm.startCreateTime"
|
|
|
|
- type="datetime"
|
|
|
|
- size="mini"
|
|
|
|
- placeholder="制表日期"
|
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="制表人" prop="createBy">
|
|
|
|
- <el-input v-model="screenForm.createBy" placeholder="制表人" size="mini" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="审核人" prop="examineBy">
|
|
|
|
- <el-input v-model="screenForm.examineBy" placeholder="审核人" size="mini" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="状态" prop="status">
|
|
|
|
- <el-select
|
|
|
|
- v-model="screenForm.status"
|
|
|
|
- clearable
|
|
|
|
- size="mini"
|
|
|
|
- placeholder="状态"
|
|
|
|
- class="select_height"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in statusOptions"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="销售政策类型" prop="type">
|
|
|
|
- <el-select
|
|
|
|
- v-model="screenForm.type"
|
|
|
|
- size="mini"
|
|
|
|
- clearable
|
|
|
|
- placeholder="销售政策类型"
|
|
|
|
- class="select_height"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in typeOptions"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="经销商名称" prop="customerId">
|
|
|
|
- <el-select
|
|
|
|
- v-model="screenForm.customerId"
|
|
|
|
- size="mini"
|
|
|
|
- filterable
|
|
|
|
- clearable
|
|
|
|
- placeholder="经销商名称"
|
|
|
|
- class="select_height"
|
|
|
|
- >
|
|
|
|
- <el-option v-for="item in CrList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="经销商编码" prop="customerNumber">
|
|
|
|
- <el-select
|
|
|
|
- v-model="screenForm.customerNumber"
|
|
|
|
- size="mini"
|
|
|
|
- filterable
|
|
|
|
- clearable
|
|
|
|
- placeholder="经销商编码"
|
|
|
|
- class="select_height"
|
|
|
|
- >
|
|
|
|
- <el-option v-for="item in CrList" :key="item.id" :label="item.number" :value="item.number" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :xs="24" :ms="6" :lg="6">
|
|
|
|
- <el-form-item label="机型" prop="specification">
|
|
|
|
- <el-input v-model="screenForm.specification" placeholder="机型" size="mini" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </el-row>
|
|
|
|
- </el-form>
|
|
|
|
- </template>
|
|
|
|
- </Collapse>
|
|
|
|
- </div>
|
|
|
|
- <div class="btn-group">
|
|
|
|
- <el-row type="flex">
|
|
|
|
- <el-button
|
|
|
|
- v-if="$checkBtnRole('add', $route.meta.roles)"
|
|
|
|
- size="mini"
|
|
|
|
- type="primary"
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
- @click="hanlenewInfo"
|
|
|
|
- >新增</el-button
|
|
|
|
- >
|
|
|
|
- </el-row>
|
|
|
|
- </div>
|
|
|
|
- <div class="mymain-container">
|
|
|
|
- <div class="table">
|
|
|
|
- <el-table :data="dataList" :row-class-name="tableRowClassName" border style="width: 100%">
|
|
|
|
- <el-table-column fixed="left" label="操作" min-width="250" align="center">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-button
|
|
|
|
- v-if="scope.row.examineStatus == 'SAVE'"
|
|
|
|
- type="text"
|
|
|
|
- size="mini"
|
|
|
|
- @click=";(isShow = 5), (id = scope.row.id)"
|
|
|
|
- >编辑</el-button
|
|
|
|
- >
|
|
|
|
- <el-button type="text" size="mini" @click=";(isShow = 4), (id = scope.row.id), (code = scope.row.code)"
|
|
|
|
- >详情</el-button
|
|
|
|
- >
|
|
|
|
-
|
|
|
|
- <el-button
|
|
|
|
- v-if="scope.row.examineStatus == 'WAIT' && $checkBtnRole('examine', $route.meta.roles)"
|
|
|
|
- type="text"
|
|
|
|
- size="mini"
|
|
|
|
- @click=";(isShow = 8), (id = scope.row.id), (policyId = scope.row.policyId), (code = scope.row.code)"
|
|
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
- <!-- </el-popconfirm> -->
|
|
|
|
- <el-popconfirm
|
|
|
|
- v-if="scope.row.examineStatus == 'SAVE'"
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
- title="提审?"
|
|
|
|
- @onConfirm="handlesubmit(scope.row)"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" type="text" size="mini">提审</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-popconfirm
|
|
|
|
- v-if="scope.row.examineStatus === 'OK' && scope.row.status"
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
- title="作废?"
|
|
|
|
- @onConfirm="handleNullify(scope.row)"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" type="text" size="mini">作废</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-popconfirm
|
|
|
|
- v-if="scope.row.examineStatus === 'OK'"
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
- title="克隆?"
|
|
|
|
- @onConfirm="handleClone(scope.row)"
|
|
|
|
- >
|
|
|
|
- <!-- -->
|
|
|
|
- <el-button slot="reference" type="text" size="mini">克隆</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-popconfirm
|
|
|
|
- v-if="scope.row.examineStatus != 'OK'"
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
- title="删除吗?"
|
|
|
|
- @onConfirm="hanleDelete(scope.row.id)"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" type="text" size="mini">删除</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-popconfirm
|
|
|
|
- v-if="scope.row.examineStatus == 'OK'"
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
- title="弃审吗?"
|
|
|
|
- @onConfirm="hanleAbandon(scope.row.id)"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" type="text" size="mini">弃审</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="状态" width="120" align="left">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-tag size="mini" type="success" v-if="scope.row.status == '1'">已生效</el-tag>
|
|
|
|
- <el-tag size="mini" type="danger" v-else-if="scope.row.status == '0'">未生效 </el-tag>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="审核状态" width="120" align="left">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-tag size="mini" v-if="scope.row.examineStatus == 'SAVE'">保存</el-tag>
|
|
|
|
- <el-tag size="mini" type="warning" v-else-if="scope.row.examineStatus == 'WAIT'">待审核 </el-tag>
|
|
|
|
- <el-tag size="mini" type="success" v-else-if="scope.row.examineStatus == 'OK'">通过 </el-tag>
|
|
|
|
- <el-tag size="mini" type="danger" v-else>不通过 </el-tag>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="code" label="销售政策编号" show-overflow-tooltip min-width="200" align="left" />
|
|
|
|
- <el-table-column show-overflow-tooltip prop="title" label="销售政策名称" min-width="150" align="left" />
|
|
|
|
- <!-- <el-table-column
|
|
|
|
- prop="mainName"
|
|
|
|
- label="产品类别"
|
|
|
|
- align="left"
|
|
|
|
- ></el-table-column> -->
|
|
|
|
- <el-table-column show-overflow-tooltip prop="remark" label="销售政策说明" min-width="150" align="left" />
|
|
|
|
- <el-table-column min-width="200" show-overflow-tooltip prop="startTime" label="生效日期" align="left" />
|
|
|
|
- <el-table-column min-width="200" show-overflow-tooltip prop="endTime" label="结束日期" align="left" />
|
|
|
|
- <el-table-column show-overflow-tooltip prop="createBy" label="制表人" min-width="200" align="left" />
|
|
|
|
- <el-table-column show-overflow-tooltip prop="createTime" label="制表日期" min-width="200" align="left" />
|
|
|
|
- <el-table-column show-overflow-tooltip prop="examineBy" label="审核人" min-width="200" align="left" />
|
|
|
|
- </el-table>
|
|
|
|
- <!-- 分页 -->
|
|
|
|
- <div class="fr">
|
|
|
|
- <el-pagination
|
|
|
|
- :current-page="currentPage"
|
|
|
|
- :page-sizes="[10, 20, 30, 50]"
|
|
|
|
- :page-size="10"
|
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
- :total="listTotal"
|
|
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
- />
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <AddPolicy v-else-if="isShow === 2" />
|
|
|
|
|
|
+ <!-- <AddPolicy v-else-if="isShow === 2" />
|
|
<AddCondition v-else-if="isShow === 10 || isShow === 12" :id="id" :policy-id="policyId" />
|
|
<AddCondition v-else-if="isShow === 10 || isShow === 12" :id="id" :policy-id="policyId" />
|
|
<EditPolicy v-else-if="isShow === 5" />
|
|
<EditPolicy v-else-if="isShow === 5" />
|
|
<Details v-else-if="isShow === 4" />
|
|
<Details v-else-if="isShow === 4" />
|
|
- <Examine v-else />
|
|
|
|
|
|
+ <Examine v-else /> -->
|
|
|
|
|
|
- <!-- <template-page
|
|
|
|
|
|
+ <template-page
|
|
ref="pageRef"
|
|
ref="pageRef"
|
|
:getList="getList"
|
|
:getList="getList"
|
|
:operation="operation()"
|
|
:operation="operation()"
|
|
@@ -300,8 +15,15 @@
|
|
:tableAttributes="tableAttributes"
|
|
:tableAttributes="tableAttributes"
|
|
:tableEvents="tableEvents"
|
|
:tableEvents="tableEvents"
|
|
>
|
|
>
|
|
-
|
|
|
|
- </template-page> -->
|
|
|
|
|
|
+ <Popu v-if="isShow !== 1">
|
|
|
|
+ <el-page-header slot="head" :content="content" @back="handleClose" />
|
|
|
|
+ <AddPolicy v-if="isShow === 2" />
|
|
|
|
+ <AddCondition v-if="isShow === 10 || isShow === 12" :id="id" :policy-id="policyId" />
|
|
|
|
+ <EditPolicy v-if="isShow === 5" :id="id" />
|
|
|
|
+ <Details v-if="isShow === 4" />
|
|
|
|
+ <Examine v-if="isShow === 8" />
|
|
|
|
+ </Popu>
|
|
|
|
+ </template-page>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -319,7 +41,9 @@ import {
|
|
getpolicySubmit,
|
|
getpolicySubmit,
|
|
getTypeList,
|
|
getTypeList,
|
|
toExamine,
|
|
toExamine,
|
|
- setAbandon
|
|
|
|
|
|
+ setAbandon,
|
|
|
|
+ policyListV2,
|
|
|
|
+ policyListV2Export
|
|
} from '@/api/policy_list'
|
|
} from '@/api/policy_list'
|
|
import Minxin from '@/mixin'
|
|
import Minxin from '@/mixin'
|
|
import { downloadFiles, handleImport } from '@/utils/util'
|
|
import { downloadFiles, handleImport } from '@/utils/util'
|
|
@@ -336,13 +60,29 @@ export default {
|
|
mixins: [Minxin, add_callback_mixin],
|
|
mixins: [Minxin, add_callback_mixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ showPage: true,
|
|
|
|
+ content: '商用工程信息单',
|
|
|
|
+ // 关闭新增弹窗
|
|
|
|
+ handleClose: this.addOff(() => {
|
|
|
|
+ if (this.isShow === 2 || this.isShow === 5) {
|
|
|
|
+ this.isShow = 1
|
|
|
|
+ }
|
|
|
|
+ if (this.isShow === 8) {
|
|
|
|
+ this.isShow = 1
|
|
|
|
+ this.id = ''
|
|
|
|
+ }
|
|
|
|
+ this.showPage = true
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ }),
|
|
// 事件组合
|
|
// 事件组合
|
|
optionsEvensGroup: [
|
|
optionsEvensGroup: [
|
|
[
|
|
[
|
|
[
|
|
[
|
|
{
|
|
{
|
|
name: '新增',
|
|
name: '新增',
|
|
- click: this.addOn(() => {})
|
|
|
|
|
|
+ click: this.addOn(() => {
|
|
|
|
+ this.hanlenewInfo()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
]
|
|
]
|
|
]
|
|
]
|
|
@@ -350,7 +90,7 @@ export default {
|
|
// 表格属性
|
|
// 表格属性
|
|
tableAttributes: {
|
|
tableAttributes: {
|
|
// 启用勾选列
|
|
// 启用勾选列
|
|
- selectColumn: true
|
|
|
|
|
|
+ selectColumn: false
|
|
},
|
|
},
|
|
// 表格事件
|
|
// 表格事件
|
|
tableEvents: {
|
|
tableEvents: {
|
|
@@ -431,9 +171,9 @@ export default {
|
|
}),
|
|
}),
|
|
methods: {
|
|
methods: {
|
|
// 列表请求函数
|
|
// 列表请求函数
|
|
- // getList: levelList,
|
|
|
|
|
|
+ getList: policyListV2,
|
|
// 列表导出函数
|
|
// 列表导出函数
|
|
- // exportList: exportLevelList,
|
|
|
|
|
|
+ exportList: policyListV2Export,
|
|
// 表格列解析渲染数据更改
|
|
// 表格列解析渲染数据更改
|
|
columnParsing(item, defaultData) {
|
|
columnParsing(item, defaultData) {
|
|
return defaultData
|
|
return defaultData
|
|
@@ -446,42 +186,126 @@ export default {
|
|
return (h, { row, index, column }) => {
|
|
return (h, { row, index, column }) => {
|
|
return (
|
|
return (
|
|
<div class="operation-btns">
|
|
<div class="operation-btns">
|
|
- <el-button size="mini" type="text" onClick={async () => {}}>
|
|
|
|
- 详情
|
|
|
|
- </el-button>
|
|
|
|
- <el-popconfirm
|
|
|
|
- onConfirm={async () => {
|
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
|
- this.$message.success('作废成功')
|
|
|
|
- }}
|
|
|
|
- title="是否确定需要作废该项内容?"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
- 作废
|
|
|
|
- </el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-popconfirm
|
|
|
|
- onConfirm={async () => {
|
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
|
- this.$message.success('克隆成功')
|
|
|
|
- }}
|
|
|
|
- title="是否确定需要克隆该项内容?"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
- 克隆
|
|
|
|
|
|
+ {row.examineStatus == '保存' ? (
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ onClick={async () => {
|
|
|
|
+ this.isShow = 5
|
|
|
|
+ this.id = row.id
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ 编辑
|
|
</el-button>
|
|
</el-button>
|
|
- </el-popconfirm>
|
|
|
|
- <el-popconfirm
|
|
|
|
- onConfirm={async () => {
|
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
|
- this.$message.success('弃审成功')
|
|
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ onClick={async () => {
|
|
|
|
+ this.isShow = 4
|
|
|
|
+ this.id = row.id
|
|
|
|
+ this.code = row.code
|
|
}}
|
|
}}
|
|
- title="是否确定需要弃审该项内容?"
|
|
|
|
>
|
|
>
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
- 弃审
|
|
|
|
|
|
+ 详情
|
|
|
|
+ </el-button>
|
|
|
|
+
|
|
|
|
+ {row.examineStatus == '待审核' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ onClick={async () => {
|
|
|
|
+ this.isShow = 8
|
|
|
|
+ this.id = row.id
|
|
|
|
+ this.code = row.code
|
|
|
|
+ this.policyId = row.policyId
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ 审核
|
|
</el-button>
|
|
</el-button>
|
|
- </el-popconfirm>
|
|
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
+
|
|
|
|
+ {row.examineStatus == '保存' ? (
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async () => {
|
|
|
|
+ this.handlesubmit(row)
|
|
|
|
+ }}
|
|
|
|
+ title="是否确定需要提审该项内容?"
|
|
|
|
+ >
|
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
|
+ 提审
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
+
|
|
|
|
+ {row.examineStatus == '审核通过' && row.status ? (
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async () => {
|
|
|
|
+ this.handleNullify(row)
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ this.$message.success('作废成功')
|
|
|
|
+ }}
|
|
|
|
+ title="是否确定需要作废该项内容?"
|
|
|
|
+ >
|
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
|
+ 作废
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
+
|
|
|
|
+ {row.examineStatus == '审核通过' ? (
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async () => {
|
|
|
|
+ this.handleClone(row)
|
|
|
|
+ }}
|
|
|
|
+ title="是否确定需要克隆该项内容?"
|
|
|
|
+ >
|
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
|
+ 克隆
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
+
|
|
|
|
+ {row.examineStatus != '审核通过' ? (
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async () => {
|
|
|
|
+ this.hanleDelete(row.id)
|
|
|
|
+ }}
|
|
|
|
+ title="是否确定需要删除该项内容?"
|
|
|
|
+ >
|
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
|
+ 删除
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
+
|
|
|
|
+ {row.examineStatus == '审核通过' ? (
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async () => {
|
|
|
|
+ this.hanleAbandon(row.id)
|
|
|
|
+ }}
|
|
|
|
+ title="是否确定需要弃审该项内容?"
|
|
|
|
+ >
|
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
|
+ 弃审
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|
|
}
|
|
}
|
|
@@ -503,54 +327,54 @@ export default {
|
|
},
|
|
},
|
|
handleClone(row) {
|
|
handleClone(row) {
|
|
cloneList({ policyId: row.id }).then(res => {
|
|
cloneList({ policyId: row.id }).then(res => {
|
|
- this.$successMsg('克隆成功')
|
|
|
|
- this.getList()
|
|
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ this.$message.success('克隆成功')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getList() {
|
|
|
|
- this.listLoading = true
|
|
|
|
- const params = {
|
|
|
|
- pageNum: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- code: this.screenForm.code,
|
|
|
|
- type: this.screenForm.type,
|
|
|
|
- createBy: this.screenForm.createBy,
|
|
|
|
- endCreateTime: this.screenForm.endCreateTime,
|
|
|
|
- endTime1: this.screenForm.endTime1,
|
|
|
|
- endTime2: this.screenForm.endTime2,
|
|
|
|
- examineBy: this.screenForm.examineBy,
|
|
|
|
- remark: this.screenForm.remark,
|
|
|
|
- startCreateTime: this.screenForm.startCreateTime,
|
|
|
|
- startTime1: this.screenForm.startTime1,
|
|
|
|
- startTime2: this.screenForm.startTime2,
|
|
|
|
- status: this.screenForm.status,
|
|
|
|
- title: this.screenForm.title,
|
|
|
|
- customerId: this.screenForm.customerId,
|
|
|
|
- customerNumber: this.screenForm.customerNumber,
|
|
|
|
- specification: this.screenForm.specification
|
|
|
|
- }
|
|
|
|
- getList(params).then(res => {
|
|
|
|
- this.dataList = res.data.records
|
|
|
|
- console.log(this.dataList)
|
|
|
|
- this.listTotal = res.data.total
|
|
|
|
- this.listLoading = false
|
|
|
|
- })
|
|
|
|
- // 产品类型
|
|
|
|
- // const paramsType = {
|
|
|
|
- // pageNum: 1,
|
|
|
|
- // pageSize: 10,
|
|
|
|
- // saleCdoe: '',
|
|
|
|
- // saleName: '',
|
|
|
|
- // stauts: ''
|
|
|
|
- // }
|
|
|
|
- // getTypeList(paramsType).then(res => {
|
|
|
|
- // this.typeList = res.data.records
|
|
|
|
- // })
|
|
|
|
- },
|
|
|
|
|
|
+ // getList() {
|
|
|
|
+ // this.listLoading = true
|
|
|
|
+ // const params = {
|
|
|
|
+ // pageNum: this.currentPage,
|
|
|
|
+ // pageSize: this.pageSize,
|
|
|
|
+ // code: this.screenForm.code,
|
|
|
|
+ // type: this.screenForm.type,
|
|
|
|
+ // createBy: this.screenForm.createBy,
|
|
|
|
+ // endCreateTime: this.screenForm.endCreateTime,
|
|
|
|
+ // endTime1: this.screenForm.endTime1,
|
|
|
|
+ // endTime2: this.screenForm.endTime2,
|
|
|
|
+ // examineBy: this.screenForm.examineBy,
|
|
|
|
+ // remark: this.screenForm.remark,
|
|
|
|
+ // startCreateTime: this.screenForm.startCreateTime,
|
|
|
|
+ // startTime1: this.screenForm.startTime1,
|
|
|
|
+ // startTime2: this.screenForm.startTime2,
|
|
|
|
+ // status: this.screenForm.status,
|
|
|
|
+ // title: this.screenForm.title,
|
|
|
|
+ // customerId: this.screenForm.customerId,
|
|
|
|
+ // customerNumber: this.screenForm.customerNumber,
|
|
|
|
+ // specification: this.screenForm.specification
|
|
|
|
+ // }
|
|
|
|
+ // getList(params).then(res => {
|
|
|
|
+ // this.dataList = res.data.records
|
|
|
|
+ // console.log(this.dataList)
|
|
|
|
+ // this.listTotal = res.data.total
|
|
|
|
+ // this.listLoading = false
|
|
|
|
+ // })
|
|
|
|
+ // // 产品类型
|
|
|
|
+ // // const paramsType = {
|
|
|
|
+ // // pageNum: 1,
|
|
|
|
+ // // pageSize: 10,
|
|
|
|
+ // // saleCdoe: '',
|
|
|
|
+ // // saleName: '',
|
|
|
|
+ // // stauts: ''
|
|
|
|
+ // // }
|
|
|
|
+ // // getTypeList(paramsType).then(res => {
|
|
|
|
+ // // this.typeList = res.data.records
|
|
|
|
+ // // })
|
|
|
|
+ // },
|
|
hanleAbandon(id) {
|
|
hanleAbandon(id) {
|
|
setAbandon({ policyId: id }).then(res => {
|
|
setAbandon({ policyId: id }).then(res => {
|
|
- this.$successMsg('弃审成功')
|
|
|
|
- this.getList()
|
|
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ this.$message.success('弃审成功')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
hanleDelete(id) {
|
|
hanleDelete(id) {
|
|
@@ -558,8 +382,8 @@ export default {
|
|
deletePolicy({
|
|
deletePolicy({
|
|
id: ids[0]
|
|
id: ids[0]
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- this.$successMsg('删除成功')
|
|
|
|
- this.getList()
|
|
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ this.$message.success('删除成功')
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -602,8 +426,8 @@ export default {
|
|
},
|
|
},
|
|
handlesubmit(e) {
|
|
handlesubmit(e) {
|
|
getpolicySubmit({ policyId: e.id }).then(res => {
|
|
getpolicySubmit({ policyId: e.id }).then(res => {
|
|
- this.$successMsg('已提交')
|
|
|
|
- this.getList()
|
|
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ this.$message.success('提审成功')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
hanleExamine(e) {
|
|
hanleExamine(e) {
|