Commit 3bfa2736 by 王昆

'审核页面调整'

parent b209ddfc
......@@ -54,7 +54,7 @@ class BmuserbizDao extends Dao{
let sql = [];
sql.push("SELECT");
sql.push("t1.*, ");
sql.push("t1.merchantId, t2.companyId, t2.orderNo, t2.audit_status");
sql.push("t1.merchantId, t2.companyId, t2.orderNo, t2.audit_status, t2.reject_reason");
sql.push("FROM bm_user_biz t1");
sql.push("INNER JOIN bm_order t2 ON t1.orderId = t2.id");
sql.push("WHERE 1 = 1 ");
......
......@@ -345,16 +345,18 @@ class xggApplet extends AppletBase {
}
}
async toAuditOrders(gobj, pobj, req) {
async auditPage(gobj, pobj, req) {
pobj = pobj.search || {};
try {
let params = {
pageSize: pobj.pageSize || 10,
currentPage: pobj.currentPage || 1,
audit_status: 0,
merchantId: this.merchantId,
legalName: this.trim(pobj.legalName)
};
if(pobj.auditStatus !== "") {
params.audit_status = Number(pobj.auditStatus);
}
//0待审核 1审核通过
let page = await this.bmuserbizSve.pageByCondition(params);
let result = {code : 1, data: page};
......
......@@ -202,9 +202,21 @@
<el-card style="background-color: #FFFFFF;padding:10px 10px 30px 10px;margin-top: 20px;">
<div style="width:100%;line-height: 40px;">
<div style="float:left;width: 300px;">
<span style="font-size: 14px;color: 2F2F2F;" >姓名: </span>
<span style="font-size: 14px;color: 2F2F2F;" >法人姓名: </span>
<el-input v-model="search.legalName" placeholder="姓名" maxlength="100" clearable style="max-width:200px;height: 36px;" ></el-input>
</div>
<div style="float:left;width: 300px;">
<span style="font-size: 14px;color: 2F2F2F;" >审核状态: </span>
<el-select v-model="search.auditStatus" style="max-width:200px;height: 36px;" clearable>
<el-option
v-for="item in auditStatusList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
<div style="float:left;margin-top:5px;">
<el-button @click="resetSearch()" style="float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;" >重置</el-button>
......@@ -231,9 +243,12 @@
<el-table-column prop="legal_name" label="姓名" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column prop="legal_mobile" label="手机号" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column prop="idcard" label="身份证" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column prop="audit_status_name" label="审核状态" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column prop="reject_reason" label="审核备注" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column label="操作" align="center" >
<template slot-scope="scope">
<a href="javascript:;" @click="openAudit(scope.row)" style="text-decoration: none;color:#59C1A6;font-size: 14px;">审核</a>
<a v-if="scope.row.audit_status == 0" href="javascript:;" @click="openAudit(scope.row, 'edit')" style="text-decoration: none;color:#59C1A6;font-size: 14px;">审核</a>
<a v-if="scope.row.audit_status != 0" href="javascript:;" @click="openAudit(scope.row, 'view')" style="text-decoration: none;font-size: 14px;">详情</a>
</template>
</el-table-column>
</el-table>
......@@ -262,12 +277,13 @@
<div style="font-size:13px;margin-left: 40px;margin-top: 10px;">订单编号: {{auditItem.orderNo}}</div>
<div style="font-size:13px;margin-left: 40px;margin-top: 5px;">订单状态: {{auditItem.audit_status_name}}</div>
<div style="font-size:13px;margin-left: 40px;margin-top: 5px;">创建时间: {{auditItem.created_at}}</div>
<div v-if="auditItem.audit_status == 2" style="font-size:13px;margin-left: 40px;margin-top: 5px;color: red;">驳回原因: {{auditItem.reject_reason}}</div>
</el-card>
<el-card style="line-height: 15px;margin-top: 15px;">
<span style="font-size:15px;color: #333333;font-weight:bold;margin-left: 7px;">公司信息</span>
<!-- <div style="font-size:13px;margin-left: 40px;margin-top: 10px;">公司名称: {{auditItem.companyName}}(恒昌)</div>-->
<div style="font-size:13px;margin-left: 40px;margin-top: 10px;">个体户申请名称: {{auditItem.companyNames}}</div>
<div style="font-size:13px;margin-left: 40px;margin-top: 10px;">所属公司: {{auditItem.companyName}}(恒昌)</div>
<div style="font-size:13px;margin-left: 40px;margin-top: 10px;">申请名称: {{auditItem.companyNames}}</div>
</el-card>
<el-card style="line-height: 15px;margin-top: 15px;">
<span style="font-size:15px;color: #333333;font-weight:bold;margin-left: 7px;">法人信息</span>
......@@ -308,7 +324,7 @@
</div>
</el-card>
<el-card style="line-height: 15px;margin-top: 15px;">
<el-card v-if="showTag == 'edit'" style="line-height: 15px;margin-top: 15px;">
<span style="font-size:15px;color: #333333;font-weight:bold;margin-left: 7px;">审核结果</span>
<el-input
type="textarea"
......
......@@ -5,6 +5,7 @@ var app = new Vue({
btnloading: false,
uploadLoading: null,
showAudit: false,
showTag : "view",
auditLoading: false,
search: {
list: [],
......@@ -12,9 +13,15 @@ var app = new Vue({
pageSize: 20,
total : 0,
legalName:'',
auditStatus:'',
},
auditItem: {},
auditReason: "",
auditStatusList: [
{value:"0", label:"待审核"},
{value:"1", label:"审核通过"},
{value:"2", label:"审核驳回"},
]
}
},
created: function () {
......@@ -41,6 +48,7 @@ var app = new Vue({
pageSize: 20,
total : 0,
legalName:'',
auditStatus: ''
}
},
getParams() {
......@@ -61,28 +69,31 @@ var app = new Vue({
getList() {
var self = this;
var params = this.getParams();
this.$root.postReq("/applet/xggApplet/toAuditOrders", {
this.$root.postReq("/applet/xggApplet/auditPage", {
search: params
}).then(function (d) {
if (d.code == 1) {
self.search.list = d.data.rows || [];
self.search.total = d.data.count || 0;
for(let item of self.search.list) {
if (item.audit_status == 0) {
item.audit_status_name = "待审核";
} else if (item.audit_status == 1) {
item.audit_status_name = "审核通过";
} else {
item.audit_status_name = "审核驳回";
}
}
} else {
}
});
},
btnclick (pfm, code) {
},
openAudit(item) {
openAudit(item, tag) {
console.log(item);
this.showTag = tag;
this.auditItem = item;
if (item.audit_status == 0) {
item.audit_status_name = "待审核";
} else if (item.audit_status == 1) {
item.audit_status_name = "审核通过";
} else {
item.audit_status_name = "审核驳回";
}
if (item.companyId == 1) {
item.companyName = "汇财"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment