fix(policyMoneyDetails): 政策币弹窗移除会员名称搜索项 bug-86
This commit is contained in:
parent
e2a776478b
commit
19d5e82978
|
@ -1,125 +1,117 @@
|
|||
<template>
|
||||
|
||||
<el-dialog :title="'政策币业务'"
|
||||
:visible.sync="isPolicy"
|
||||
width="80%"
|
||||
:before-close="handleClose"
|
||||
center>
|
||||
<div class="">
|
||||
<el-dialog
|
||||
:title="'政策币业务'"
|
||||
:visible.sync="isPolicy"
|
||||
width="80%"
|
||||
:before-close="handleClose"
|
||||
center
|
||||
>
|
||||
<div class="">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="select"
|
||||
label-width="auto"
|
||||
>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4">
|
||||
<el-form-item
|
||||
:label="'操作类型'"
|
||||
prop="status"
|
||||
>
|
||||
<el-select
|
||||
v-model="selects1"
|
||||
clearable
|
||||
<div class="">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="select"
|
||||
label-width="auto"
|
||||
>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4">
|
||||
<el-form-item
|
||||
:label="'操作类型'"
|
||||
prop="status"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in batchList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4" v-if="selects1 == 2">
|
||||
<div class="searchbox" style="margin: 0px 0 20px 0">
|
||||
<el-button
|
||||
type="warning"
|
||||
style="background: #FF6723"
|
||||
@click="handleImport"
|
||||
> {{ '导入' }}</el-button>
|
||||
<el-button
|
||||
style="background: #009B58"
|
||||
type="success"
|
||||
@click="importTemplate"
|
||||
> {{ '下载模板' }}</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4" v-if="selects1 == 1">
|
||||
<el-form-item
|
||||
label="业务范围"
|
||||
>
|
||||
<el-select
|
||||
v-model="businessScope"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in getScopeList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
</el-form>
|
||||
<div class="kuang">
|
||||
<div style="padding: 0 0 10px 20px">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="select"
|
||||
label-width="auto"
|
||||
>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4">
|
||||
<el-form-item :label="'会员编号'">
|
||||
<el-input
|
||||
v-model="select.memberCode"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4" style="margin-left: 20px">
|
||||
<el-form-item
|
||||
:label="'会员姓名'"
|
||||
prop="teamCode"
|
||||
<el-select
|
||||
v-model="selects1"
|
||||
clearable
|
||||
>
|
||||
<el-input
|
||||
v-model="select.memberName"
|
||||
clearable
|
||||
<el-option
|
||||
v-for="item in batchList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col
|
||||
:span="4"
|
||||
style="margin-left: 30px"
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col v-if="selects1 == 2" :span="4">
|
||||
<div class="searchbox" style="margin: 0px 0 20px 0">
|
||||
<el-button
|
||||
type="warning"
|
||||
style="background: #FF6723"
|
||||
@click="handleImport"
|
||||
> {{ '导入' }}</el-button>
|
||||
<el-button
|
||||
style="background: #009B58"
|
||||
type="success"
|
||||
@click="importTemplate"
|
||||
> {{ '下载模板' }}</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col v-if="selects1 == 1" :span="4">
|
||||
<el-form-item
|
||||
label="业务范围"
|
||||
>
|
||||
<div class="searchbox">
|
||||
<el-button
|
||||
class="searchbtn"
|
||||
@click="getData"
|
||||
> {{ '搜索' }}</el-button>
|
||||
<el-button @click="reset"> {{ '重置' }}</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-select
|
||||
v-model="businessScope"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in getScopeList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
</el-row>
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="plList">
|
||||
<div class="pl_i widht-s" style="font-weight: 600;margin-left: 18px">{{ '批量处理' }}</div>
|
||||
<div class="pl_i"></div>
|
||||
<div class="width-s"></div>
|
||||
</el-form>
|
||||
<div class="kuang">
|
||||
<div style="padding: 0 0 10px 20px">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="select"
|
||||
label-width="auto"
|
||||
>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4">
|
||||
<el-form-item :label="'会员编号'">
|
||||
<el-input
|
||||
v-model="select.memberCode"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col
|
||||
:span="4"
|
||||
style="margin-left: 30px"
|
||||
>
|
||||
<div class="searchbox">
|
||||
<el-button
|
||||
class="searchbtn"
|
||||
@click="getData"
|
||||
> {{ '搜索' }}</el-button>
|
||||
<el-button @click="reset"> {{ '重置' }}</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="plList">
|
||||
<div class="pl_i widht-s" style="font-weight: 600;margin-left: 18px">{{ '批量处理' }}</div>
|
||||
<div class="pl_i" />
|
||||
<div class="width-s" />
|
||||
<div class="pl_i lefts">
|
||||
<el-select
|
||||
style="width: 150px"
|
||||
v-model="plSet.enableStatus"
|
||||
style="width: 150px"
|
||||
placeholder="政策币启用"
|
||||
clearable
|
||||
@change="getMenuItem"
|
||||
|
@ -132,15 +124,15 @@
|
|||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="width-s" style="width: 100px"></div>
|
||||
<div class="width-s" style="width: 100px" />
|
||||
<div class="pl_i left-s rights">
|
||||
<el-input v-model="plSet.deductMoney" style="width: 150px" placeholder="政策币扣除比例" clearable />
|
||||
</div>
|
||||
<div class="width-s" style="width:100px"></div>
|
||||
<div class="pl_i left-s">
|
||||
<div class="width-s" style="width:100px" />
|
||||
<div class="pl_i left-s">
|
||||
<el-select
|
||||
style="width: 150px"
|
||||
v-model="plSet.transfer"
|
||||
style="width: 150px"
|
||||
placeholder="政策币转账"
|
||||
clearable
|
||||
@change="getMenuItem"
|
||||
|
@ -153,232 +145,238 @@
|
|||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="pl_ii" style="margin-left: 60px">
|
||||
<div class="pl_ii" style="margin-left: 60px">
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="plSetObj"
|
||||
>{{ '批量操作' }}</el-button>
|
||||
<el-button @click="reset1"> {{ '重置' }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
:data="tableData"
|
||||
style="width: 100%"
|
||||
:header-cell-style="{ background: '#EEEEEE' }"
|
||||
:row-class-name="tableRowClassName"
|
||||
>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="memberCode"
|
||||
:label="'会员编号'"
|
||||
width="240"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="memberName"
|
||||
:label="'会员姓名'"
|
||||
width="240"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="240"
|
||||
prop="enableStatus"
|
||||
label="政策币启用"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.enableStatus" style="width: 150px" clearable>
|
||||
<el-option
|
||||
v-for="item in getStatusList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="240"
|
||||
prop="deductMoney"
|
||||
label="政策币扣除比例"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<div style="width: 150px;position: relative;margin: 0 auto">
|
||||
<el-input v-model="scope.row.deductMoney" style="width: 150px;position: relative" clearable />
|
||||
<div class="unit">%</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="240"
|
||||
prop="transfer"
|
||||
label="政策币转账"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.transfer" style="width: 150px" clearable>
|
||||
<el-option
|
||||
v-for="item in agreeList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="140"
|
||||
prop="pkAccountKeyVal"
|
||||
:label="'扣款币种'"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="140"
|
||||
prop="cost"
|
||||
:label="'单笔扣款金额'+'(¥)'"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="150"
|
||||
prop=""
|
||||
:label="'操作'"
|
||||
fixed="right"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
class="button-s"
|
||||
style="color: #C8161D"
|
||||
@click="delRole(scope.row)"
|
||||
>
|
||||
{{ '删除' }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getData"
|
||||
/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div style="margin: 0 auto">
|
||||
<el-button
|
||||
v-for="(item, index) in processTypeList"
|
||||
:key="index"
|
||||
:class="`thebtn${item.value}`"
|
||||
@click="saveDate(item.value)"
|
||||
>{{ item.label }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-dialog
|
||||
:title="upload.title"
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="upload.open"
|
||||
width="30%"
|
||||
append-to-body
|
||||
>
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
accept=".xlsx, .xls"
|
||||
:headers="upload.headers"
|
||||
action=""
|
||||
:http-request="httpRequest"
|
||||
:disabled="upload.isUploading"
|
||||
:on-progress="handleFileUploadProgress"
|
||||
:on-success="handleFileSuccess"
|
||||
:on-exceed="handleExceed"
|
||||
:auto-upload="false"
|
||||
drag
|
||||
>
|
||||
<i class="el-icon-upload" />
|
||||
<div class="el-upload__text">
|
||||
{{ '将文件拖到此处,或' }}
|
||||
<em>{{ '点击上传' }}</em>
|
||||
</div>
|
||||
<!-- <div-->
|
||||
<!-- slot="tip"-->
|
||||
<!-- class="el-upload__tip"-->
|
||||
<!-- >-->
|
||||
<!-- <el-link-->
|
||||
<!-- type="info"-->
|
||||
<!-- style="font-size: 12px"-->
|
||||
<!-- @click="importTemplate"-->
|
||||
<!-- > {{ '下载模板' }}</el-link>-->
|
||||
<!-- </div>-->
|
||||
<div
|
||||
slot="tip"
|
||||
class="el-upload__tip"
|
||||
style="color: red"
|
||||
>
|
||||
{{ '提示:仅允许导入“xls”或“xlsx”格式文件!' }}
|
||||
</div>
|
||||
</el-upload>
|
||||
<div
|
||||
slot="footer"
|
||||
class="dialog-footer"
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="submitFileForm"
|
||||
>{{ '确认' }}</el-button>
|
||||
<el-button @click="upload.open = false">{{ '取消' }}</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
:title="'会员信息错误'"
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="errorShow"
|
||||
width="600px"
|
||||
append-to-body
|
||||
>
|
||||
<div>
|
||||
<el-table
|
||||
:data="errorData"
|
||||
height="400px"
|
||||
style="width: 100%"
|
||||
:header-cell-style="{ background: '#EEEEEE' }"
|
||||
:row-class-name="tableRowClassName"
|
||||
>
|
||||
<el-table-column align="center" prop="memberCode" :label="'会员编号'" />
|
||||
<el-table-column align="center" prop="errorMsg" :label="'报错信息'" />
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="footer" style="text-align: center">
|
||||
<div style="margin: 0 auto">
|
||||
<el-button class="thebtn" @click="errorShow = false"> {{ '取消' }}</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="plSetObj"
|
||||
>{{'批量操作'}}</el-button>
|
||||
<el-button @click="reset1"> {{ '重置' }}</el-button>
|
||||
class="thebtn"
|
||||
@click="errorShow = false"
|
||||
> {{ '确认' }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
:data="tableData"
|
||||
style="width: 100%"
|
||||
:header-cell-style="{ background: '#EEEEEE' }"
|
||||
:row-class-name="tableRowClassName"
|
||||
>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="memberCode"
|
||||
:label="'会员编号'"
|
||||
width="240"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="memberName"
|
||||
:label="'会员姓名'"
|
||||
width="240"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="240"
|
||||
prop="enableStatus"
|
||||
label="政策币启用"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.enableStatus" style="width: 150px" clearable>
|
||||
<el-option
|
||||
v-for="item in getStatusList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="240"
|
||||
prop="deductMoney"
|
||||
label="政策币扣除比例"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<div style="width: 150px;position: relative;margin: 0 auto">
|
||||
<el-input v-model="scope.row.deductMoney" style="width: 150px;position: relative" clearable />
|
||||
<div class="unit">%</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="240"
|
||||
prop="transfer"
|
||||
label="政策币转账"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.transfer" style="width: 150px" clearable>
|
||||
<el-option
|
||||
v-for="item in agreeList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="140"
|
||||
prop="pkAccountKeyVal"
|
||||
:label="'扣款币种'"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="140"
|
||||
prop="cost"
|
||||
:label="'单笔扣款金额'+'(¥)'"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="150"
|
||||
prop=""
|
||||
:label="'操作'"
|
||||
fixed="right"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
class="button-s"
|
||||
style="color: #C8161D"
|
||||
@click="delRole(scope.row)"
|
||||
>
|
||||
{{'删除'}}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getData"
|
||||
/>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div style="margin: 0 auto">
|
||||
<el-button
|
||||
v-for="(item, index) in processTypeList"
|
||||
:key="index"
|
||||
:class="`thebtn${item.value}`"
|
||||
@click="saveDate(item.value)"
|
||||
>{{ item.label }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-dialog
|
||||
:title="upload.title"
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="upload.open"
|
||||
width="30%"
|
||||
append-to-body
|
||||
>
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
accept=".xlsx, .xls"
|
||||
:headers="upload.headers"
|
||||
action=""
|
||||
:http-request="httpRequest"
|
||||
:disabled="upload.isUploading"
|
||||
:on-progress="handleFileUploadProgress"
|
||||
:on-success="handleFileSuccess"
|
||||
:on-exceed="handleExceed"
|
||||
:auto-upload="false"
|
||||
drag
|
||||
>
|
||||
<i class="el-icon-upload" />
|
||||
<div class="el-upload__text">
|
||||
{{'将文件拖到此处,或'}}
|
||||
<em>{{'点击上传'}}</em>
|
||||
</div>
|
||||
<!-- <div-->
|
||||
<!-- slot="tip"-->
|
||||
<!-- class="el-upload__tip"-->
|
||||
<!-- >-->
|
||||
<!-- <el-link-->
|
||||
<!-- type="info"-->
|
||||
<!-- style="font-size: 12px"-->
|
||||
<!-- @click="importTemplate"-->
|
||||
<!-- > {{ '下载模板' }}</el-link>-->
|
||||
<!-- </div>-->
|
||||
<div
|
||||
slot="tip"
|
||||
class="el-upload__tip"
|
||||
style="color: red"
|
||||
>
|
||||
{{'提示:仅允许导入“xls”或“xlsx”格式文件!'}}
|
||||
</div>
|
||||
</el-upload>
|
||||
<div
|
||||
slot="footer"
|
||||
class="dialog-footer"
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="submitFileForm"
|
||||
>{{'确认'}}</el-button>
|
||||
<el-button @click="upload.open = false">{{'取消'}}</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
:title="'会员信息错误'"
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="errorShow"
|
||||
width="600px"
|
||||
append-to-body
|
||||
>
|
||||
<div>
|
||||
<el-table
|
||||
:data="errorData"
|
||||
height="400px"
|
||||
style="width: 100%"
|
||||
:header-cell-style="{ background: '#EEEEEE' }"
|
||||
:row-class-name="tableRowClassName"
|
||||
>
|
||||
<el-table-column align="center" prop="memberCode" :label="'会员编号'">
|
||||
</el-table-column>
|
||||
<el-table-column align="center" prop="errorMsg" :label="'报错信息'">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="footer" style="text-align: center">
|
||||
<div style="margin: 0 auto">
|
||||
<el-button class="thebtn" @click="errorShow = false"> {{ '取消' }}</el-button>
|
||||
<el-button type="primary" class="thebtn" @click="errorShow = false"
|
||||
> {{ '确认' }}</el-button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
</el-dialog>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as api from '@/api/specialBusiness'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import {getPubEnumsProcessTyepe, upPolicyCurrency} from '@/api/business.js'
|
||||
import { getPubEnumsProcessTyepe, upPolicyCurrency } from '@/api/business.js'
|
||||
import { getEYesNoList, getEnableStatus } from '@/api/configManage'
|
||||
import { policyImportData, policyList, policySelted } from '@/api/specialBusiness'
|
||||
import { Message } from 'element-ui'
|
||||
import {noticePopup} from "@/api/notice";
|
||||
import { noticePopup } from '@/api/notice'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
isPolicy: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
errorData: [],
|
||||
|
@ -398,7 +396,7 @@ export default {
|
|||
deductMoney: '',
|
||||
transfer: ''
|
||||
},
|
||||
businessScope:1,
|
||||
businessScope: 1,
|
||||
menuList: [
|
||||
{
|
||||
id: 0,
|
||||
|
@ -437,11 +435,11 @@ export default {
|
|||
key: 'divvyExamAwards'
|
||||
}
|
||||
],
|
||||
selects1:1,
|
||||
selects1: 1,
|
||||
processTypeList: [],
|
||||
getStatusList: [],
|
||||
agreeList: [], // 是否允许
|
||||
getScopeList:[],
|
||||
getScopeList: [],
|
||||
upload: {
|
||||
// 是否显示弹出层(物流导入)
|
||||
open: false,
|
||||
|
@ -460,12 +458,6 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
props: {
|
||||
isPolicy: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// this.select.addAwards = this.$route.query.addAwards
|
||||
// if (this.select.addAwards == 1 || this.select.addAwards == 2) {
|
||||
|
@ -478,7 +470,7 @@ export default {
|
|||
this.getBusinessScope()
|
||||
},
|
||||
methods: {
|
||||
handleClose(){
|
||||
handleClose() {
|
||||
this.$emit('handleClose')
|
||||
},
|
||||
getEnable_status() {
|
||||
|
@ -535,7 +527,7 @@ export default {
|
|||
// this.$router.go(-1)
|
||||
this.handleClose()
|
||||
}
|
||||
if (index !=0) {
|
||||
if (index != 0) {
|
||||
if (this.tableData.length == 0) {
|
||||
Message({
|
||||
message: '内容不能为空',
|
||||
|
@ -543,33 +535,32 @@ export default {
|
|||
})
|
||||
return
|
||||
}
|
||||
let list= {
|
||||
processType:index,
|
||||
const list = {
|
||||
processType: index,
|
||||
plculist: [],
|
||||
businessScope:this.businessScope
|
||||
businessScope: this.businessScope
|
||||
}
|
||||
this.tableData.forEach((item)=>{
|
||||
this.tableData.forEach((item) => {
|
||||
list.plculist.push(item)
|
||||
})
|
||||
upPolicyCurrency(list).then((res)=>{
|
||||
if(res.code==200){
|
||||
if(index==1 || index==3){
|
||||
upPolicyCurrency(list).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (index == 1 || index == 3) {
|
||||
// this.getData()
|
||||
this.isPolicy = false
|
||||
|
||||
setTimeout(()=>{
|
||||
setTimeout(() => {
|
||||
this.$emit('getMemberList')
|
||||
},100)
|
||||
|
||||
}, 100)
|
||||
}
|
||||
Message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
})
|
||||
if(index==2 || index==4){
|
||||
this.tableData.forEach((item)=>{
|
||||
item.enableStatusVal = item.enableStatus==0?'已启用':'已禁用'
|
||||
item.transferVal = item.transfer==1?'允许':'禁止'
|
||||
if (index == 2 || index == 4) {
|
||||
this.tableData.forEach((item) => {
|
||||
item.enableStatusVal = item.enableStatus == 0 ? '已启用' : '已禁用'
|
||||
item.transferVal = item.transfer == 1 ? '允许' : '禁止'
|
||||
})
|
||||
this.$router.push({
|
||||
name: 'PolicyQc',
|
||||
|
@ -577,16 +568,15 @@ export default {
|
|||
data: JSON.stringify(this.tableData),
|
||||
businessType: 125,
|
||||
index: index,
|
||||
businessScope:this.businessScope
|
||||
businessScope: this.businessScope
|
||||
}
|
||||
})
|
||||
}
|
||||
}else if (res.code == 504 && res.data) {
|
||||
this.errorShow = true;
|
||||
this.errorData = res.data;
|
||||
} else if (res.code == 504 && res.data) {
|
||||
this.errorShow = true
|
||||
this.errorData = res.data
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
reset() {
|
||||
|
|
Loading…
Reference in New Issue