商户审核
This commit is contained in:
parent
5ffd91762a
commit
4e05aac46e
@ -12,10 +12,12 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="选择时间:">
|
||||
<el-date-picker v-model="timeVal" type="daterange" placeholder="选择日期" format="yyyy/MM/dd"
|
||||
value-format="yyyy/MM/dd" :picker-options="pickerOptions" @change="onchangeTime" style="width: 280px" />
|
||||
value-format="yyyy/MM/dd" :picker-options="pickerOptions" @change="onchangeTime"
|
||||
style="width: 280px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="商户分类:" prop="category_id">
|
||||
<el-select v-model="tableFrom.category_id" clearable placeholder="请选择" class="selWidth" @change="getList(1)">
|
||||
<el-select v-model="tableFrom.category_id" clearable placeholder="请选择" class="selWidth"
|
||||
@change="getList(1)">
|
||||
<el-option v-for="item in merCateList" :key="item.value" :label="item.label" :value="item.value"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -25,7 +27,8 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="关键字:" prop="keyword">
|
||||
<el-input v-model="tableFrom.keyword" @keyup.enter.native="getList(1)" placeholder="请输入商户名称关键字/联系电话"
|
||||
<el-input v-model="tableFrom.keyword" @keyup.enter.native="getList(1)"
|
||||
placeholder="请输入商户名称关键字/联系电话"
|
||||
class="selWidth" clearable/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -63,7 +66,8 @@
|
||||
<el-table-column label="操作" min-width="170" fixed="right" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.status == 0" type="text" size="small"
|
||||
@click="onchangeIsShow(scope.row)">审核</el-button>
|
||||
@click="onchangeIsShow(scope.row)">审核
|
||||
</el-button>
|
||||
<el-button type="text" size="small" @click="onEdit(scope.row.mer_intention_id)">备注</el-button>
|
||||
<el-button type="text" size="small" @click="handleView(scope.row)">查看</el-button>
|
||||
<el-button type="text" size="small" @click="handleDelete(scope.row.mer_intention_id)">删除</el-button>
|
||||
@ -72,14 +76,15 @@
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination background :page-size="tableFrom.limit" :current-page="tableFrom.page"
|
||||
layout="total, prev, pager, next, jumper" :total="tableData.total" @size-change="handleSizeChange"
|
||||
layout="total, prev, pager, next, jumper" :total="tableData.total"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="pageChange"/>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<!-- 审核状态 -->
|
||||
<el-dialog title="修改审核状态" :visible.sync="statusAuditVisible" width="60%">
|
||||
<el-form ref="statusAuditForm" :model="statusAuditForm" label-width="120px" @submit.native.prevent>
|
||||
<el-form ref="statusAuditForm" :model="statusAuditForm" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="审核状态:">
|
||||
@ -99,8 +104,8 @@
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24" v-if="statusAuditForm.state == 2">
|
||||
<el-form-item label="拒绝原因:" prop="fail_msg">
|
||||
<el-input type="textarea" :rows="2" placeholder="请输入拒绝原因" v-model="statusAuditForm.fail_msg">
|
||||
<el-form-item label="拒绝原因:">
|
||||
<el-input type="textarea" :rows="3" placeholder="请输入拒绝原因" v-model="statusAuditForm.fail_msg">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -184,7 +189,7 @@
|
||||
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注:">
|
||||
<el-input v-mode ="statusAuditForm.mark" />
|
||||
<el-input v-model="statusAuditForm.mark" placeholder="请输入备注"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -285,7 +290,6 @@
|
||||
<el-button type="primary" plain class="submission" size="small" @click="formShow = false">关闭</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -311,6 +315,7 @@ import {
|
||||
import {fromList, statusList} from "@/libs/constants.js";
|
||||
import {roterPre} from "@/settings";
|
||||
import timeOptions from '@/utils/timeOptions';
|
||||
|
||||
export default {
|
||||
name: "MerchantApplication",
|
||||
data() {
|
||||
@ -384,11 +389,7 @@ export default {
|
||||
this.$refs.searchForm.resetFields()
|
||||
this.getList(1)
|
||||
},
|
||||
// statusChange(tab) {
|
||||
// this.tableFrom.status = tab;
|
||||
// this.tableFrom.page = 1;
|
||||
// this.getList("");
|
||||
// },
|
||||
|
||||
// 具体日期
|
||||
onchangeTime(e) {
|
||||
this.timeVal = e;
|
||||
@ -396,6 +397,7 @@ export default {
|
||||
this.tableFrom.page = 1;
|
||||
this.getList("");
|
||||
},
|
||||
|
||||
// 商户分类;
|
||||
getMerCategory() {
|
||||
getMerCateApi().then(res => {
|
||||
@ -404,6 +406,7 @@ export default {
|
||||
this.$message.error(res.message)
|
||||
})
|
||||
},
|
||||
|
||||
/**获取店铺类型 */
|
||||
getStoreType() {
|
||||
getstoreTypeApi().then(res => {
|
||||
@ -412,25 +415,26 @@ export default {
|
||||
this.$message.error(res.message)
|
||||
})
|
||||
},
|
||||
|
||||
// 列表
|
||||
getList(num) {
|
||||
this.listLoading = true;
|
||||
this.tableFrom.page = num ? num : this.tableFrom.page;
|
||||
intentionLstApi(this.tableFrom)
|
||||
.then((res) => {
|
||||
intentionLstApi(this.tableFrom).then((res) => {
|
||||
this.tableData.data = res.data.list;
|
||||
this.tableData.total = res.data.count;
|
||||
this.listLoading = false;
|
||||
})
|
||||
.catch((res) => {
|
||||
}).catch((res) => {
|
||||
this.listLoading = false;
|
||||
this.$message.error(res.message);
|
||||
});
|
||||
},
|
||||
|
||||
pageChange(page) {
|
||||
this.tableFrom.page = page;
|
||||
this.getList("");
|
||||
},
|
||||
|
||||
handleSizeChange(val) {
|
||||
this.tableFrom.limit = val;
|
||||
this.getList(1);
|
||||
@ -439,13 +443,12 @@ export default {
|
||||
// 修改状态
|
||||
onchangeIsShow(item) {
|
||||
this.statusAuditVisible = true;
|
||||
this.statusAuditForm = Object.assign(this.statusAuditForm,item)
|
||||
this.statusAuditForm = JSON.parse(JSON.stringify(item));
|
||||
this.$set(this.statusAuditForm, 'state', 1);
|
||||
this.$set(this.statusAuditForm, 'create_mer', 1);
|
||||
this.$set(this.statusAuditForm, 'mark', '');
|
||||
},
|
||||
|
||||
// 添加
|
||||
|
||||
// 提交状态修改
|
||||
handleSubmit() {
|
||||
if (this.statusAuditForm.state == 2 && !this.statusAuditForm.fail_msg) {
|
||||
@ -455,7 +458,8 @@ export default {
|
||||
updateStatus(this.statusAuditForm.mer_intention_id, {
|
||||
status: this.statusAuditForm.state,
|
||||
create_mer: this.statusAuditForm.create_mer,
|
||||
fail_msg: this.statusAuditForm.fail_msg
|
||||
fail_msg: this.statusAuditForm.fail_msg,
|
||||
mark: this.statusAuditForm.mark
|
||||
}).then(res => {
|
||||
this.statusAuditVisible = false;
|
||||
this.$message.success(res.message);
|
||||
@ -480,17 +484,15 @@ export default {
|
||||
// 删除
|
||||
handleDelete(id) {
|
||||
this.$deleteSure().then(() => {
|
||||
intentionDelte(id)
|
||||
.then(({ message }) => {
|
||||
intentionDelte(id).then(({message}) => {
|
||||
this.$message.success(message);
|
||||
this.getList("");
|
||||
})
|
||||
.catch(({ message }) => {
|
||||
}).catch(({message}) => {
|
||||
this.$message.error(message);
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user