|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
- <div class="app-container" v-if="isShow == 1">
|
|
|
|
|
|
+ <div v-if="isShow === 1" class="app-container">
|
|
<div class="screen-container">
|
|
<div class="screen-container">
|
|
- <el-form :model="screenForm" ref="screenForm" :inline="false">
|
|
|
|
|
|
+ <el-form ref="screenForm" :model="screenForm" :inline="false">
|
|
<el-row>
|
|
<el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :ms="6" :lg="6">
|
|
<el-col :xs="24" :ms="6" :lg="6">
|
|
@@ -10,7 +10,7 @@
|
|
v-model="screenForm.code"
|
|
v-model="screenForm.code"
|
|
placeholder="销售政策编号"
|
|
placeholder="销售政策编号"
|
|
size="small"
|
|
size="small"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -20,7 +20,7 @@
|
|
v-model="screenForm.title"
|
|
v-model="screenForm.title"
|
|
placeholder="销售政策说明"
|
|
placeholder="销售政策说明"
|
|
size="small"
|
|
size="small"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -30,7 +30,7 @@
|
|
v-model="screenForm.remark"
|
|
v-model="screenForm.remark"
|
|
placeholder="表头备注"
|
|
placeholder="表头备注"
|
|
size="small"
|
|
size="small"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -42,8 +42,7 @@
|
|
size="small"
|
|
size="small"
|
|
placeholder="生效日期"
|
|
placeholder="生效日期"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -56,8 +55,7 @@
|
|
size="small"
|
|
size="small"
|
|
placeholder="结束日期"
|
|
placeholder="结束日期"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -69,8 +67,7 @@
|
|
size="small"
|
|
size="small"
|
|
placeholder="制表日期"
|
|
placeholder="制表日期"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -80,7 +77,7 @@
|
|
v-model="screenForm.createBy"
|
|
v-model="screenForm.createBy"
|
|
placeholder="制表人"
|
|
placeholder="制表人"
|
|
size="small"
|
|
size="small"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -90,7 +87,7 @@
|
|
v-model="screenForm.examineBy"
|
|
v-model="screenForm.examineBy"
|
|
placeholder="审核人"
|
|
placeholder="审核人"
|
|
size="small"
|
|
size="small"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -98,8 +95,8 @@
|
|
<el-col :xs="24" :ms="6" :lg="6">
|
|
<el-col :xs="24" :ms="6" :lg="6">
|
|
<el-form-item label="" prop="status">
|
|
<el-form-item label="" prop="status">
|
|
<el-select
|
|
<el-select
|
|
- size="small"
|
|
|
|
v-model="screenForm.status"
|
|
v-model="screenForm.status"
|
|
|
|
+ size="small"
|
|
placeholder="状态"
|
|
placeholder="状态"
|
|
class="select_height"
|
|
class="select_height"
|
|
>
|
|
>
|
|
@@ -108,8 +105,7 @@
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
:value="item.value"
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -117,8 +113,8 @@
|
|
<el-col :xs="24" :ms="6" :lg="6">
|
|
<el-col :xs="24" :ms="6" :lg="6">
|
|
<el-form-item label="" prop="type">
|
|
<el-form-item label="" prop="type">
|
|
<el-select
|
|
<el-select
|
|
- size="small"
|
|
|
|
v-model="screenForm.type"
|
|
v-model="screenForm.type"
|
|
|
|
+ size="small"
|
|
placeholder="销售政策类型"
|
|
placeholder="销售政策类型"
|
|
class="select_height"
|
|
class="select_height"
|
|
>
|
|
>
|
|
@@ -127,20 +123,22 @@
|
|
:key="item.value"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
:value="item.value"
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xs="24" :ms="6" :lg="6"> </el-col>
|
|
|
|
|
|
+ <el-col :xs="24" :ms="6" :lg="6" />
|
|
<el-col :xs="24" :ms="6" :lg="12" class="tr">
|
|
<el-col :xs="24" :ms="6" :lg="12" class="tr">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button type="primary" size="small" @click="submitScreenForm"
|
|
|
|
- >查询</el-button
|
|
|
|
- >
|
|
|
|
- <el-button size="small" @click="resetScreenForm"
|
|
|
|
- >重置</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="submitScreenForm"
|
|
|
|
+ >查询</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ @click="resetScreenForm"
|
|
|
|
+ >重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -150,13 +148,12 @@
|
|
<div class="btn-group">
|
|
<div class="btn-group">
|
|
<el-row type="flex">
|
|
<el-row type="flex">
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="$checkBtnRole('add', $route.meta.roles)"
|
|
size="small"
|
|
size="small"
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
@click="hanlenewInfo"
|
|
@click="hanlenewInfo"
|
|
- v-if="$checkBtnRole('add', $route.meta.roles)"
|
|
|
|
- >新增</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >新增</el-button>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
@@ -169,36 +166,33 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="scope.row.examineStatus == 'SAVE'"
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
- v-if="scope.row.examineStatus == 'SAVE'"
|
|
|
|
@click="(isShow = 5), (id = scope.row.id)"
|
|
@click="(isShow = 5), (id = scope.row.id)"
|
|
- >编辑</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >编辑</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
@click="
|
|
@click="
|
|
(isShow = 4), (id = scope.row.id), (code = scope.row.code)
|
|
(isShow = 4), (id = scope.row.id), (code = scope.row.code)
|
|
"
|
|
"
|
|
- >详情</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >详情</el-button>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
- type="text"
|
|
|
|
v-if="
|
|
v-if="
|
|
scope.row.examineStatus == 'WAIT' &&
|
|
scope.row.examineStatus == 'WAIT' &&
|
|
- $checkBtnRole('examine', $route.meta.roles)
|
|
|
|
|
|
+ $checkBtnRole('examine', $route.meta.roles)
|
|
"
|
|
"
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
@click="
|
|
@click="
|
|
(isShow = 8),
|
|
(isShow = 8),
|
|
- (id = scope.row.id),
|
|
|
|
- (policyId = scope.row.policyId),
|
|
|
|
- (code = scope.row.code)
|
|
|
|
|
|
+ (id = scope.row.id),
|
|
|
|
+ (policyId = scope.row.policyId),
|
|
|
|
+ (code = scope.row.code)
|
|
"
|
|
"
|
|
- size="small"
|
|
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- </el-popconfirm> -->
|
|
<!-- </el-popconfirm> -->
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
v-if="scope.row.examineStatus == 'SAVE'"
|
|
v-if="scope.row.examineStatus == 'SAVE'"
|
|
@@ -206,30 +200,36 @@
|
|
title="提审?"
|
|
title="提审?"
|
|
@onConfirm="handlesubmit(scope.row)"
|
|
@onConfirm="handlesubmit(scope.row)"
|
|
>
|
|
>
|
|
- <el-button type="text" size="small" slot="reference"
|
|
|
|
- >提审</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ slot="reference"
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ >提审</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
- <el-popconfirm
|
|
|
|
|
|
+ <el-popconfirm
|
|
v-if="scope.row.endTime || (scope.row.endTime && scope.row.startTime)"
|
|
v-if="scope.row.endTime || (scope.row.endTime && scope.row.startTime)"
|
|
style="margin-left: 10px"
|
|
style="margin-left: 10px"
|
|
title="作废?"
|
|
title="作废?"
|
|
@onConfirm="handleNullify(scope.row)"
|
|
@onConfirm="handleNullify(scope.row)"
|
|
>
|
|
>
|
|
- <el-button type="text" size="small" slot="reference"
|
|
|
|
- >作废</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ slot="reference"
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ >作废</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
- <el-popconfirm
|
|
|
|
|
|
+ <el-popconfirm
|
|
v-if="$checkBtnRole('examine', $route.meta.roles)"
|
|
v-if="$checkBtnRole('examine', $route.meta.roles)"
|
|
style="margin-left: 10px"
|
|
style="margin-left: 10px"
|
|
title="克隆?"
|
|
title="克隆?"
|
|
@onConfirm="handleClone(scope.row)"
|
|
@onConfirm="handleClone(scope.row)"
|
|
>
|
|
>
|
|
- <!-- -->
|
|
|
|
- <el-button type="text" size="small" slot="reference"
|
|
|
|
- >克隆</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <!-- -->
|
|
|
|
+ <el-button
|
|
|
|
+ slot="reference"
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ >克隆</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
v-if="scope.row.examineStatus != 'OK' "
|
|
v-if="scope.row.examineStatus != 'OK' "
|
|
@@ -237,9 +237,11 @@
|
|
title="删除吗?"
|
|
title="删除吗?"
|
|
@onConfirm="hanleDelete(scope.row.id)"
|
|
@onConfirm="hanleDelete(scope.row.id)"
|
|
>
|
|
>
|
|
- <el-button type="text" slot="reference" size="small"
|
|
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ slot="reference"
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ >删除</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -252,8 +254,9 @@
|
|
<el-table-column label="审核状态" width="120" align="center">
|
|
<el-table-column label="审核状态" width="120" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-tag v-if="scope.row.examineStatus == 'SAVE'">保存</el-tag>
|
|
<el-tag v-if="scope.row.examineStatus == 'SAVE'">保存</el-tag>
|
|
- <el-tag v-else-if="scope.row.examineStatus == 'WAIT'"
|
|
|
|
- >待审核
|
|
|
|
|
|
+ <el-tag
|
|
|
|
+ v-else-if="scope.row.examineStatus == 'WAIT'"
|
|
|
|
+ >待审核
|
|
</el-tag>
|
|
</el-tag>
|
|
<el-tag v-else-if="scope.row.examineStatus == 'OK'">通过 </el-tag>
|
|
<el-tag v-else-if="scope.row.examineStatus == 'OK'">通过 </el-tag>
|
|
<el-tag v-else>不通过 </el-tag>
|
|
<el-tag v-else>不通过 </el-tag>
|
|
@@ -264,15 +267,13 @@
|
|
label="销售政策编号"
|
|
label="销售政策编号"
|
|
width="120"
|
|
width="120"
|
|
align="center"
|
|
align="center"
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="title"
|
|
prop="title"
|
|
label="销售政策说明"
|
|
label="销售政策说明"
|
|
width="120"
|
|
width="120"
|
|
align="center"
|
|
align="center"
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ />
|
|
<!-- <el-table-column
|
|
<!-- <el-table-column
|
|
prop="mainName"
|
|
prop="mainName"
|
|
label="产品品类"
|
|
label="产品品类"
|
|
@@ -283,156 +284,152 @@
|
|
label="表头备注"
|
|
label="表头备注"
|
|
width="120"
|
|
width="120"
|
|
align="center"
|
|
align="center"
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="startTime" label="生效日期" align="center">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="endTime" label="结束日期" align="center">
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ />
|
|
|
|
+ <el-table-column prop="startTime" label="生效日期" align="center" />
|
|
|
|
+ <el-table-column prop="endTime" label="结束日期" align="center" />
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="createBy"
|
|
prop="createBy"
|
|
label="制表人"
|
|
label="制表人"
|
|
width="120"
|
|
width="120"
|
|
align="center"
|
|
align="center"
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="createTime"
|
|
prop="createTime"
|
|
label="制表日期"
|
|
label="制表日期"
|
|
width="120"
|
|
width="120"
|
|
align="center"
|
|
align="center"
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="examineBy"
|
|
prop="examineBy"
|
|
label="审核人"
|
|
label="审核人"
|
|
width="120"
|
|
width="120"
|
|
align="center"
|
|
align="center"
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ />
|
|
</el-table>
|
|
</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 class="fr">
|
|
|
|
- <el-pagination
|
|
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
- :current-page="currentPage"
|
|
|
|
- :page-sizes="[10, 20, 30, 50]"
|
|
|
|
- :page-size="10"
|
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
- :total="listTotal"
|
|
|
|
- >
|
|
|
|
- </el-pagination>
|
|
|
|
- </div>
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
- <AddPolicy v-else-if="isShow == 2" />
|
|
|
|
- <AddCondition v-else-if="isShow == 10" :id="id" :policyId="policyId" />
|
|
|
|
|
|
+ <AddPolicy v-else-if="isShow === 2" />
|
|
|
|
+ <AddCondition v-else-if="isShow === 10" :id="id" :policy-id="policyId" />
|
|
|
|
+ <EditPolicy v-else-if="isShow===5" />
|
|
<Examine v-else />
|
|
<Examine v-else />
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- getId,
|
|
|
|
- getList,
|
|
|
|
- getTypeList,
|
|
|
|
cancelPolicy,
|
|
cancelPolicy,
|
|
|
|
+ cloneList,
|
|
deletePolicy,
|
|
deletePolicy,
|
|
|
|
+ getId,
|
|
|
|
+ getList,
|
|
getpolicySubmit,
|
|
getpolicySubmit,
|
|
- toExamine,
|
|
|
|
- cloneList
|
|
|
|
-} from "@/api/policy_list";
|
|
|
|
-import Minxin from "@/mixin";
|
|
|
|
-import { downloadFiles, handleImport } from "@/utils/util";
|
|
|
|
-import AddPolicy from "./components/AddPolicy";
|
|
|
|
-import AddModel from "./components/AddModel";
|
|
|
|
-import Pagination from "./components/Pagination";
|
|
|
|
-import AddCondition from "./components/AddCondition";
|
|
|
|
-import Examine from "./components/Examine";
|
|
|
|
-import { mapState } from "vuex";
|
|
|
|
|
|
+ getTypeList,
|
|
|
|
+ toExamine
|
|
|
|
+} from '@/api/policy_list'
|
|
|
|
+import Minxin from '@/mixin'
|
|
|
|
+import { downloadFiles, handleImport } from '@/utils/util'
|
|
|
|
+import AddPolicy from './components/AddPolicy'
|
|
|
|
+import EditPolicy from './components/editPolicy'
|
|
|
|
+import AddModel from './components/AddModel'
|
|
|
|
+import Pagination from './components/Pagination'
|
|
|
|
+import AddCondition from './components/AddCondition'
|
|
|
|
+import Examine from './components/Examine'
|
|
|
|
+import { mapState } from 'vuex'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
mixins: [Minxin],
|
|
mixins: [Minxin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- id: "",
|
|
|
|
- code: "",
|
|
|
|
- codeId: "",
|
|
|
|
|
|
+ id: '',
|
|
|
|
+ code: '',
|
|
|
|
+ codeId: '',
|
|
listLoading: false,
|
|
listLoading: false,
|
|
- policyId: "",
|
|
|
|
|
|
+ policyId: '',
|
|
|
|
|
|
isShow: 1,
|
|
isShow: 1,
|
|
dataList: [],
|
|
dataList: [],
|
|
screenForm: {
|
|
screenForm: {
|
|
- code: "",
|
|
|
|
- createBy: "",
|
|
|
|
- endCreateTime: "",
|
|
|
|
- endTime1: "",
|
|
|
|
- endTime2: "",
|
|
|
|
- examineBy: "",
|
|
|
|
- remark: "",
|
|
|
|
- startCreateTime: "",
|
|
|
|
- startTime1: "",
|
|
|
|
- startTime2: "",
|
|
|
|
- status: "",
|
|
|
|
- title: "",
|
|
|
|
- type: "",
|
|
|
|
|
|
+ code: '',
|
|
|
|
+ createBy: '',
|
|
|
|
+ endCreateTime: '',
|
|
|
|
+ endTime1: '',
|
|
|
|
+ endTime2: '',
|
|
|
|
+ examineBy: '',
|
|
|
|
+ remark: '',
|
|
|
|
+ startCreateTime: '',
|
|
|
|
+ startTime1: '',
|
|
|
|
+ startTime2: '',
|
|
|
|
+ status: '',
|
|
|
|
+ title: '',
|
|
|
|
+ type: ''
|
|
},
|
|
},
|
|
fileList: [],
|
|
fileList: [],
|
|
statusOptions: [
|
|
statusOptions: [
|
|
{
|
|
{
|
|
- vlaue: "",
|
|
|
|
- label: "全部",
|
|
|
|
|
|
+ vlaue: '',
|
|
|
|
+ label: '全部'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: true,
|
|
value: true,
|
|
- label: "已生效",
|
|
|
|
|
|
+ label: '已生效'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: false,
|
|
value: false,
|
|
- label: "未生效",
|
|
|
|
- },
|
|
|
|
|
|
+ label: '未生效'
|
|
|
|
+ }
|
|
],
|
|
],
|
|
typeOptions: [
|
|
typeOptions: [
|
|
{
|
|
{
|
|
- vlaue: "",
|
|
|
|
- label: "全部",
|
|
|
|
|
|
+ vlaue: '',
|
|
|
|
+ label: '全部'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- vlaue: "PROVISION",
|
|
|
|
- label: "配提",
|
|
|
|
|
|
+ vlaue: 'PROVISION',
|
|
|
|
+ label: '配提'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- value: "LIMIT",
|
|
|
|
- label: "限量",
|
|
|
|
- },
|
|
|
|
|
|
+ value: 'LIMIT',
|
|
|
|
+ label: '限量'
|
|
|
|
+ }
|
|
],
|
|
],
|
|
typeList: [],
|
|
typeList: [],
|
|
- value: "",
|
|
|
|
- imageUrl: "",
|
|
|
|
- baseURL: "",
|
|
|
|
- isFlag: "",
|
|
|
|
- };
|
|
|
|
|
|
+ value: '',
|
|
|
|
+ imageUrl: '',
|
|
|
|
+ baseURL: '',
|
|
|
|
+ isFlag: ''
|
|
|
|
+ }
|
|
},
|
|
},
|
|
computed: mapState({
|
|
computed: mapState({
|
|
- comCode: (state) => state.sales.code,
|
|
|
|
|
|
+ comCode: (state) => state.sales.code
|
|
}),
|
|
}),
|
|
methods: {
|
|
methods: {
|
|
hanlenewInfo() {
|
|
hanlenewInfo() {
|
|
- console.log();
|
|
|
|
|
|
+ console.log()
|
|
getId().then((res) => {
|
|
getId().then((res) => {
|
|
- this.$store.commit("sales/setId", res.data);
|
|
|
|
- this.isShow = 2;
|
|
|
|
- });
|
|
|
|
|
|
+ this.$store.commit('sales/setId', res.data)
|
|
|
|
+ this.isShow = 2
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- handleClone(row){
|
|
|
|
- cloneList({policyId:row.id}).then(res=>{
|
|
|
|
|
|
+ handleClone(row) {
|
|
|
|
+ cloneList({ policyId: row.id }).then(res => {
|
|
this.$successMsg('克隆成功')
|
|
this.$successMsg('克隆成功')
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
- this.listLoading = true;
|
|
|
|
|
|
+ this.listLoading = true
|
|
const params = {
|
|
const params = {
|
|
pageNum: this.currentPage,
|
|
pageNum: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
@@ -448,100 +445,101 @@ export default {
|
|
startTime1: this.screenForm.startTime1,
|
|
startTime1: this.screenForm.startTime1,
|
|
startTime2: this.screenForm.startTime2,
|
|
startTime2: this.screenForm.startTime2,
|
|
status: this.screenForm.status,
|
|
status: this.screenForm.status,
|
|
- title: this.screenForm.title,
|
|
|
|
- };
|
|
|
|
|
|
+ title: this.screenForm.title
|
|
|
|
+ }
|
|
getList(params).then((res) => {
|
|
getList(params).then((res) => {
|
|
- this.dataList = res.data.records;
|
|
|
|
- console.log(this.dataList);
|
|
|
|
- this.listTotal = res.data.total;
|
|
|
|
- this.listLoading = false;
|
|
|
|
- });
|
|
|
|
|
|
+ this.dataList = res.data.records
|
|
|
|
+ console.log(this.dataList)
|
|
|
|
+ this.listTotal = res.data.total
|
|
|
|
+ this.listLoading = false
|
|
|
|
+ })
|
|
const paramsType = {
|
|
const paramsType = {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
- saleCdoe: "",
|
|
|
|
- saleName: "",
|
|
|
|
- stauts: "",
|
|
|
|
- };
|
|
|
|
|
|
+ saleCdoe: '',
|
|
|
|
+ saleName: '',
|
|
|
|
+ stauts: ''
|
|
|
|
+ }
|
|
getTypeList(paramsType).then((res) => {
|
|
getTypeList(paramsType).then((res) => {
|
|
- this.typeList = res.data.records;
|
|
|
|
- });
|
|
|
|
|
|
+ this.typeList = res.data.records
|
|
|
|
+ })
|
|
},
|
|
},
|
|
hanleDelete(id) {
|
|
hanleDelete(id) {
|
|
this.hanleDeleteAllPromise(id).then((ids) => {
|
|
this.hanleDeleteAllPromise(id).then((ids) => {
|
|
deletePolicy({
|
|
deletePolicy({
|
|
- id: ids[0],
|
|
|
|
|
|
+ id: ids[0]
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.$successMsg("删除成功");
|
|
|
|
- this.getList();
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
|
|
+ this.$successMsg('删除成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 作废
|
|
// 作废
|
|
- handleNullify(row){
|
|
|
|
- cancelPolicy({id:row.id}).then(res=>{
|
|
|
|
|
|
+ handleNullify(row) {
|
|
|
|
+ cancelPolicy({ id: row.id }).then(res => {
|
|
this.$successMsg('已作废')
|
|
this.$successMsg('已作废')
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 导出文档
|
|
// 导出文档
|
|
handleExport() {
|
|
handleExport() {
|
|
- let screenData = {
|
|
|
|
|
|
+ const screenData = {
|
|
customerTel: this.diaLogForm.customerTel,
|
|
customerTel: this.diaLogForm.customerTel,
|
|
- logisticsCompany: this.diaLogForm.logisticsCompany,
|
|
|
|
- };
|
|
|
|
- downloadFiles("/policy/export", screenData);
|
|
|
|
|
|
+ logisticsCompany: this.diaLogForm.logisticsCompany
|
|
|
|
+ }
|
|
|
|
+ downloadFiles('/policy/export', screenData)
|
|
},
|
|
},
|
|
|
|
|
|
// 导入
|
|
// 导入
|
|
async handleImport(param) {
|
|
async handleImport(param) {
|
|
- this.importLoading = true;
|
|
|
|
- const file = param.file;
|
|
|
|
- console.log(file, 123);
|
|
|
|
- const formData = new FormData();
|
|
|
|
- formData.append("file", file);
|
|
|
|
- let result = await handleImport("/policy/material/import", formData);
|
|
|
|
- this.importLoading = false;
|
|
|
|
- this.importFileList = [];
|
|
|
|
|
|
+ this.importLoading = true
|
|
|
|
+ const file = param.file
|
|
|
|
+ console.log(file, 123)
|
|
|
|
+ const formData = new FormData()
|
|
|
|
+ formData.append('file', file)
|
|
|
|
+ const result = await handleImport('/policy/material/import', formData)
|
|
|
|
+ this.importLoading = false
|
|
|
|
+ this.importFileList = []
|
|
if (result.code == 200) {
|
|
if (result.code == 200) {
|
|
- this.$alert('导入成功', "导入成功", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- });
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ this.$alert('导入成功', '导入成功', {
|
|
|
|
+ confirmButtonText: '确定'
|
|
|
|
+ })
|
|
|
|
+ this.getList()
|
|
} else {
|
|
} else {
|
|
- this.$alert('导入失败', "导入失败", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- });
|
|
|
|
|
|
+ this.$alert('导入失败', '导入失败', {
|
|
|
|
+ confirmButtonText: '确定'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handlesubmit(e) {
|
|
handlesubmit(e) {
|
|
getpolicySubmit({ policyId: e.id }).then((res) => {
|
|
getpolicySubmit({ policyId: e.id }).then((res) => {
|
|
- this.$successMsg("已提交");
|
|
|
|
- this.getList();
|
|
|
|
- });
|
|
|
|
|
|
+ this.$successMsg('已提交')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
},
|
|
},
|
|
hanleExamine(e) {
|
|
hanleExamine(e) {
|
|
- if (e.examineStatus == "WAIT") {
|
|
|
|
|
|
+ if (e.examineStatus == 'WAIT') {
|
|
toExamine({
|
|
toExamine({
|
|
examineRemark: e.id,
|
|
examineRemark: e.id,
|
|
- examineStatus: "WAIT",
|
|
|
|
- policyId: e.id,
|
|
|
|
|
|
+ examineStatus: 'WAIT',
|
|
|
|
+ policyId: e.id
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.$successMsg("已提交");
|
|
|
|
- });
|
|
|
|
|
|
+ this.$successMsg('已提交')
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
- this.$errorMsg("未满足条件");
|
|
|
|
|
|
+ this.$errorMsg('未满足条件')
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
Examine,
|
|
Examine,
|
|
AddModel,
|
|
AddModel,
|
|
AddPolicy,
|
|
AddPolicy,
|
|
|
|
+ EditPolicy,
|
|
Pagination,
|
|
Pagination,
|
|
- AddCondition,
|
|
|
|
- },
|
|
|
|
-};
|
|
|
|
|
|
+ AddCondition
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -567,4 +565,7 @@ export default {
|
|
height: 50px;
|
|
height: 50px;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
+.fr{
|
|
|
|
+ margin: 20px 0;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|