|
@@ -44,7 +44,9 @@
|
|
|
</template>
|
|
|
<template slot-scope="{type,size, row, index }" slot="menu">
|
|
|
<!-- <el-button :size="size" :type="type" :disabled="!row.enableOrNot" @click="editOpen(row, 2)">编辑</el-button> -->
|
|
|
- <el-button :size="size" :type="type" :disabled="row.enableOrNot" @click.stop="rowDel(row)">删除</el-button>
|
|
|
+ <el-button v-if="row.checkStatus == '提交'" :size="size" :type="type" :disabled="row.enableOrNot" @click.stop="passThrough(row,'通过')">通过</el-button>
|
|
|
+ <el-button v-if="row.checkStatus == '提交'" :size="size" :type="type" :disabled="row.enableOrNot" @click.stop="passThrough(row,'驳回')">驳回</el-button>
|
|
|
+ <el-button :size="size" :type="type" :disabled="row.enableOrNot" @click.stop="rowDel(row)">删除</el-button>
|
|
|
</template>
|
|
|
<!-- <template slot="deliveryWarehouseName">
|
|
|
<el-select v-model="search.deliveryWarehouseName" filterable clearable size="small" :disabled="disabled">
|
|
@@ -97,7 +99,8 @@ import {
|
|
|
getCorpType,
|
|
|
pageStatistics,
|
|
|
remove,
|
|
|
- customerList
|
|
|
+ customerList,
|
|
|
+ submit
|
|
|
} from "@/api/tirePartsMall/basicData/customerInformation";
|
|
|
import corpType from './components/index.vue'
|
|
|
import { getToken } from "@/util/auth";
|
|
@@ -461,6 +464,23 @@ export default {
|
|
|
this.page.currentPage = 1;
|
|
|
this.page.pageSize = val;
|
|
|
},
|
|
|
+ // 通过驳回方法
|
|
|
+ passThrough(row,type){
|
|
|
+ this.$confirm(`确定${type}数据?`, {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(()=>{
|
|
|
+ row.checkStatus = type
|
|
|
+ submit(row).then(res=>{
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: `${type}成功!`
|
|
|
+ });
|
|
|
+ this.onLoad(this.page, this.search);
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
rowDel(row, index, done) {
|
|
|
this.$confirm("确定删除数据?", {
|
|
|
confirmButtonText: "确定",
|