Browse Source

新增个人采购商

linbl 2 months ago
parent
commit
e419edfd89

+ 35 - 2
sa-frame/menu-list-sp.js

@@ -317,7 +317,7 @@ window.menuList.unshift({
 			{
 				id: 'tb-purchaser-judge',
 				icon: 'el-icon-s-check',
-				name: '收购商审核',
+				name: '企业收购商审核',
 				url: 'sa-view/tb-purchaser/tb-purchaser-judge.html',
 				childList: [{
 					id: 'tb-purchaser-judge',
@@ -328,7 +328,7 @@ window.menuList.unshift({
 			{
 				id: 'tb-purchaser',
 				icon: 'el-icon-film',
-				name: '收购商列表',
+				name: '企业收购商',
 				url: 'sa-view/tb-purchaser/tb-purchaser-list.html',
 				childList: [{
 						id: 'tb-purchaser-add',
@@ -347,6 +347,39 @@ window.menuList.unshift({
 					},
 				]
 			},
+			{
+				id: 'tb-purchaser-personal-judge',
+				icon: 'el-icon-s-check',
+				name: '个人收购商审核',
+				url: 'sa-view/tb-purchaser-personal/tb-purchaser-personal-judge.html',
+				childList: [{
+					id: 'tb-purchaser-judge',
+					name: '收购商审核',
+					isShow: false
+				}, ]
+			},
+			{
+				id: 'tb-purchaser-personal',
+				icon: 'el-icon-film',
+				name: '个人收购商',
+				url: 'sa-view/tb-purchaser-personal/tb-purchaser-personal-list.html',
+				childList: [{
+					id: 'tb-purchaser-add',
+					name: '收购商添加',
+					isShow: false
+				},
+					{
+						id: 'tb-purchaser-edit',
+						name: '收购商更新',
+						isShow: false
+					},
+					{
+						id: 'tb-purchaser-del',
+						name: '收购商删除',
+						isShow: false
+					},
+				]
+			},
 
 			{
 				id: 'tb-cooperative',

+ 204 - 0
sa-view/tb-purchaser-personal/tb-purchaser-personal-add.html

@@ -0,0 +1,204 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<title>个人收购商-添加/修改</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<meta name="viewport"
+			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
+		<!-- 所有的 css js 资源 -->
+		<link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
+		<link rel="stylesheet" href="../../static/sa.css">
+		<script src="../../static/kj/vue.min.js"></script>
+		<script src="../../static/kj/element-ui/index.js"></script>
+		<script src="../../static/kj/httpVueLoader.js"></script>
+		<script src="../../static/kj/jquery.min.js"></script>
+		<script src="../../static/kj/layer/layer.js"></script>
+		<script src="../../static/sa.js"></script>
+		<script src="../../static/kj/upload-util.js"></script>
+		<style type="text/css">
+			.c-panel .el-form .c-label {
+				width: 7em !important;
+			}
+
+			.c-panel .el-form .el-input,
+			.c-panel .el-form .el-textarea__inner {
+				width: 250px;
+			}
+
+			table {
+				font-family: arial, sans-serif;
+				border-collapse: collapse;
+				width: 90%;
+				margin-top: 22px;
+				margin-left: auto;
+				margin-right: auto;
+			}
+
+			th {
+				border: 1px solid darkgray;
+				text-align: left;
+				height: 22px;
+				padding: 8px;
+				background-color: #dddddd;
+			}
+
+			td {
+				border: 1px solid darkgray;
+				text-align: left;
+				padding: 8px;
+			}
+		</style>
+	</head>
+	<body>
+		<div class="vue-box" :class="{sbot: id}" style="display: none;" :style="'display: block;'">
+			<!-- ------- 内容部分 ------- -->
+			<div class="s-body">
+				<div class="c-panel">
+					<div class="c-title" v-if="id == 0">数据添加</div>
+					<div class="c-title" v-else>数据修改</div>
+					<el-form v-if="m">
+						<table>
+							<tr>
+								<th>姓名</th>
+								<td>
+									<el-input type="text" v-model="m.name" placeholder="请输入姓名"></el-input>
+								</td>
+								<th>邮箱</th>
+								<td>
+									<el-input type="text" v-model="m.email" placeholder="请输入邮箱"></el-input>
+								</td>
+							</tr>
+							<tr>
+								<th>联系电话</th>
+								<td>
+									<el-input type="text" v-model="m.contact" placeholder="请输入联系电话"></el-input>
+								</td>
+								<th>身份证号</th>
+								<td>
+									<el-input type="text" v-model="m.idCard" placeholder="请输入身份证号"></el-input>
+								</td>
+							</tr>
+							<tr>
+								<th>银行名称</th>
+								<td>
+									<el-select v-model="m.bankNo" placeholder="请选择" filterable size="mini">
+										<el-option label="请选择" :value="0" disabled></el-option>
+										<el-option v-for="(item,index) in bankList" :key="index" :label="item.bankName" :value="item.bankCode"></el-option>
+									</el-select>
+								</td>
+								<th>银行账号</th>
+								<td>
+									<el-input type="text" v-model="m.bankAccount" placeholder="请输入银行账号"></el-input>
+								</td>
+							</tr>
+							<tr>
+								<th>地址</th>
+								<td colspan="3">
+									<el-input type="text" v-model="m.address"  placeholder="请输入地址" style="width: 90%"></el-input>
+								</td>
+							</tr>
+						</table>
+						<sa-item name="" class="s-ok" br>
+							<el-button type="primary" icon="el-icon-plus" @click="ok()">保存</el-button>
+						</sa-item>
+					</el-form>
+				</div>
+			</div>
+			<!-- ------- 底部按钮 ------- -->
+			<div class="s-foot">
+				<el-button type="primary" @click="ok()">确定</el-button>
+				<el-button @click="sa.closeCurrIframe()">取消</el-button>
+			</div>
+		</div>
+		<script>
+			var app = new Vue({
+				components: {
+					"sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue')
+				},
+				el: '.vue-box',
+				data: {
+					bankList: [],
+					id: sa.p('id', 0), // 获取超链接中的id参数(0=添加,非0=修改)
+					m: null, // 实体对象
+				},
+				methods: {
+					getBankList() {
+						sa.ajax('/sp-admin/TbBank/getAll', function(resp) {
+							this.bankList = resp.data;
+						}.bind(this));
+					},
+					// 创建一个 默认Model
+					createModel: function() {
+						return {
+							name: '', 		// 姓名
+							email: '',		// 邮箱
+							idCard: '', 	// 身份证号
+							contact: '',	// 手机号码
+							bankNo: '', 	// 银行编号
+							bankName: '', 	// 银行名称
+							bankAccount: '', // 银行账号
+							address: '', 	 // 地址
+							// judgeStatus: '',			// 审核状态(0=未通过,1=已通过)
+							// judgeContent: '',		// 审核意见
+							// judgeTime: '',			// 上次审核时间
+							// personId: '', 			// 人脸编号
+							// deleteStatus: '',		// 删除状态(0=禁用,1=启用)
+						}
+					},
+					// 提交数据
+					ok: function() {
+						// 表单校验
+						let m = this.m;
+						sa.checkNull(m.name, '请输入 [姓名]');
+						sa.checkNull(m.idCard, '请输入 [身份证号]');
+						let contact = m.contact;
+						if (!sa.isPhone(contact)) {
+							sa.error('手机号不正确');
+							return;
+						}
+						let bankNo = m.bankNo;
+						sa.checkNull(bankNo, '请选择 [银行]');
+						sa.checkNull(m.bankAccount, '请输入 [银行账号]');
+						let bankList = this.bankList;
+						let bank = bankList.filter(bank => bank.bankCode === bankNo)[0];
+						this.m.bankName = bank.bankName;
+						m.type = 2; // 类型:个人收购商
+						// 开始增加或修改
+						if (this.id <= 0) { // 添加
+							sa.ajax('/level-two-server/TbPurchaser/add', m, function(res) {
+								sa.alert('增加成功', this.clean);
+							}.bind(this));
+						} else { // 修改
+							sa.ajax('/level-two-server/TbPurchaser/update', m, function(res) {
+								sa.alert('修改成功', this.clean);
+							}.bind(this));
+						}
+					},
+					// 添加/修改 完成后的动作
+					clean: function() {
+						if (this.id == 0) {
+							this.m = this.createModel();
+						} else {
+							parent.app.f5(); // 刷新父页面列表
+							sa.closeCurrIframe(); // 关闭本页
+						}
+					}
+				},
+				mounted: function() {
+					this.getBankList();
+					// 初始化数据
+					if (this.id <= 0) {
+						this.m = this.createModel();
+					} else {
+						sa.ajax('/level-two-server/TbPurchaser/getById?id=' + this.id, function(res) {
+							this.m = res.data;
+							if (res.data == null) {
+								sa.alert('未能查找到 id=' + this.id + " 详细数据");
+							}
+						}.bind(this))
+					}
+				}
+			})
+		</script>
+	</body>
+</html>

+ 150 - 0
sa-view/tb-purchaser-personal/tb-purchaser-personal-do-judge.html

@@ -0,0 +1,150 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<title>个体收购商-详情</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<meta name="viewport"
+			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
+		<!-- 所有的 css js 资源 -->
+		<link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
+		<link rel="stylesheet" href="../../static/sa.css">
+		<script src="../../static/kj/vue.min.js"></script>
+		<script src="../../static/kj/element-ui/index.js"></script>
+		<script src="../../static/kj/httpVueLoader.js"></script>
+		<script src="../../static/kj/jquery.min.js"></script>
+		<script src="../../static/kj/layer/layer.js"></script>
+		<script src="../../static/sa.js"></script>
+		<script src="../../static/kj/upload-util.js"></script>
+		<style type="text/css">
+			.c-panel .c-label {
+				width: 8em;
+			}
+			.c-item .image-box-2 {
+				height: 90px;
+			}
+			.el-row{
+				border-bottom: 1px solid #eeeeee;
+			}
+			table {
+			  font-family: arial, sans-serif;
+			  border-collapse: collapse;
+			  width: 90%;
+			  margin-top: 22px ;
+			  margin-left: auto;
+			  margin-right: auto;
+			}
+			th {
+			  border: 1px solid darkgray;
+			  text-align: left;
+			  height: 22px;
+			  padding: 8px;
+			  background-color: #dddddd;
+			}
+			td {
+			  border: 1px solid darkgray;
+			  text-align: left;
+			  padding: 8px;
+			}
+		</style>
+	</head>
+	<body>
+		<div class="vue-box sbot" style="display: none;" :style="'display: block;'">
+			<!-- ------- 内容部分 ------- -->
+			<div class="s-body">
+				<div class="c-panel">
+					<el-form v-if="m">
+						<el-alert show-icon title="审核驳回" :description="m.judgeContent" type="error" v-if="m.judgeStatus==2"></el-alert>
+						<table>
+							<tr>
+								<th>姓名</th>
+								<td>{{m.name}}</td>
+								<th>邮箱</th>
+								<td>{{m.email}}</td>
+							</tr>
+							<tr>
+								<th>联系电话</th>
+								<td>{{m.contact}}</td>
+								<!--<td>{{maskPhone(m.contact)}}</td>-->
+								<th>身份证号</th>
+								<td>{{m.idCard}}</td>
+								<!--<td>{{maskId(m.idCard)}}</td>-->
+							</tr>
+							<tr>
+								<th>银行名称</th>
+								<td>{{m.bankName}}</td>
+								<th>银行编号</th>
+								<td>{{m.bankNo}}</td>
+							</tr>
+							<tr>
+								<th>银行账号</th>
+								<td>{{m.bankAccount}}</td>
+								<th>地址</th>
+								<td>{{m.address}}</td>
+							</tr>
+						</table>
+					</el-form>
+				</div>
+			</div>
+			<!-- ------- 底部按钮 ------- -->
+			<div class="s-foot" v-if="sa.isAuth('tb-purchaser-judge')">
+				<el-button type="warning" @click="judgeBack">审核驳回</el-button>
+				<el-button type="success" @click="judgePass">审核通过</el-button>
+				<el-button @click="sa.closeCurrIframe()">取消</el-button>
+			</div>
+		</div>
+		<script>
+			var app = new Vue({
+				components: {
+					"sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
+				},
+				el: '.vue-box',
+				data: {
+					id: sa.p('id', 0), // 获取数据ID
+					m: null
+				},
+				methods: {
+					judgeBack() {
+						let id = this.m.id;
+						layer.prompt({
+							title: '输入审核意见'
+						}, function(content, index) {
+							layer.close(index);
+							sa.ajax('/level-two-server/TbPurchaser/audit', {
+								id: id,
+								judgeContent: content,
+								judgeStatus: 2
+							}, function(res) {
+								layer.msg('审核已驳回');
+								setTimeout(() => {
+									parent.app.f5(); // 刷新父页面列表
+									sa.closeCurrIframe(); // 关闭本页
+								}, 800)
+							})
+						});
+					},
+					judgePass() {
+						sa.ajax('/level-two-server/TbPurchaser/audit', {
+							id: this.m.id,
+							judgeContent: '审核通过',
+							judgeStatus: 1
+						}, function(res) {
+							layer.msg('审核通过');
+							setTimeout(() => {
+								parent.app.f5(); // 刷新父页面列表
+								sa.closeCurrIframe(); // 关闭本页
+							}, 800)
+						})
+					},
+				},
+				mounted: function() {
+					sa.ajax('/level-two-server/TbPurchaser/getById?id=' + this.id, function(res) {
+						this.m = res.data;
+						if (res.data == null) {
+							sa.alert('未能查找到 id=' + this.id + " 详细数据");
+						}
+					}.bind(this))
+				}
+			})
+		</script>
+	</body>
+</html>

+ 125 - 0
sa-view/tb-purchaser-personal/tb-purchaser-personal-info.html

@@ -0,0 +1,125 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<title>个人收购商-详情</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
+		<!-- 所有的 css js 资源 -->
+		<link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
+		<link rel="stylesheet" href="../../static/sa.css">
+		<script src="../../static/kj/vue.min.js"></script>
+		<script src="../../static/kj/element-ui/index.js"></script>
+		<script src="../../static/kj/httpVueLoader.js"></script>
+		<script src="../../static/kj/jquery.min.js"></script>
+		<script src="../../static/kj/layer/layer.js"></script>
+		<script src="../../static/sa.js"></script>
+		<script src="../../static/kj/upload-util.js"></script>
+		<style type="text/css">
+			.c-panel .c-label{width: 8em;}
+			.c-item .image-box-2{height: 90px;}
+			table {
+			  font-family: arial, sans-serif;
+			  border-collapse: collapse;
+			  width: 90%;
+			  margin-top: 22px ;
+			  margin-left: auto;
+			  margin-right: auto;
+			}
+			th {
+			  border: 1px solid darkgray;
+			  text-align: left;
+			  height: 22px;
+			  padding: 8px;
+			  background-color: #dddddd;
+			}
+			td {
+			  border: 1px solid darkgray;
+			  text-align: left;
+			  padding: 8px;
+			}
+		</style>
+	</head>
+	<body>
+		<div class="vue-box sbot" style="display: none;" :style="'display: block;'">
+			<!-- ------- 内容部分 ------- -->
+			<div class="s-body">
+				<div class="c-panel">
+					<el-form v-if="m">
+						<table>
+							<tr>
+								<th>姓名</th>
+								<td>{{m.name}}</td>
+								<th>邮箱</th>
+								<td>{{m.email}}</td>
+							</tr>
+							<tr>
+								<th>联系电话</th>
+								<td>{{m.contact}}</td>
+								<!--<td>{{maskPhone(m.contact)}}</td>-->
+								<th>身份证号</th>
+								<td>{{m.idCard}}</td>
+								<!--<td>{{maskId(m.idCard)}}</td>-->
+							</tr>
+							<tr>
+								<th>银行名称</th>
+								<td>{{m.bankName}}</td>
+								<th>银行编号</th>
+								<td>{{m.bankNo}}</td>
+							</tr>
+							<tr>
+								<th>银行账号</th>
+								<td>{{m.bankAccount}}</td>
+								<th>地址</th>
+								<td>{{m.address}}</td>
+							</tr>
+							<tr>
+								<th>审核状态</th>
+								<td>
+									<b v-if="m.judgeStatus == 0">未审核</b>
+									<b v-if="m.judgeStatus == 1">审核通过</b>
+									<b v-if="m.judgeStatus == 2">审核驳回</b>
+								</td>
+								<th>审核时间</th>
+								<td>{{sa.forDate(m.judgeTime)}}</td>
+							</tr>
+						</table>
+					</el-form>
+				</div>
+			</div>
+			<!-- ------- 底部按钮 ------- -->
+			<div class="s-foot">
+				<el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
+				<el-button @click="sa.closeCurrIframe()">取消</el-button>
+			</div>
+		</div>
+		<script>
+			var app = new Vue({
+				components: {
+					"sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
+				},
+				el: '.vue-box',
+				data: {
+					id: sa.p('id', 0),	// 获取数据ID
+					m: null
+				},
+				methods: {
+					maskId:function (id) {
+					    return id.replace(/^(.{6})(.*)(.{4})$/,'$1********$3');
+					},
+					maskPhone:function (phone) {
+					    return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
+					},
+				},
+				mounted: function() {
+					sa.ajax('/level-two-server/TbPurchaser/getById?id=' + this.id, function(res) {
+						this.m = res.data;
+						if(res.data == null) {
+							sa.alert('未能查找到 id=' + this.id + " 详细数据");
+						}
+					}.bind(this))
+				}
+			})
+
+		</script>
+	</body>
+</html>

+ 141 - 0
sa-view/tb-purchaser-personal/tb-purchaser-personal-judge.html

@@ -0,0 +1,141 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<title>个体收购商-列表</title>
+		<meta charset="utf-8">
+		<meta name="viewport"
+			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
+		<!-- 所有的 css & js 资源 -->
+		<link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
+		<link rel="stylesheet" href="../../static/sa.css">
+		<script src="../../static/kj/vue.min.js"></script>
+		<script src="../../static/kj/element-ui/index.js"></script>
+		<script src="../../static/kj/httpVueLoader.js"></script>
+		<script src="../../static/kj/jquery.min.js"></script>
+		<script src="../../static/kj/layer/layer.js"></script>
+		<script src="../../static/sa.js"></script>
+		<script src="../../static/kj/upload-util.js"></script>
+	</head>
+	<body>
+		<div class="vue-box" style="display: none;" :style="'display: block;'">
+			<div class="c-panel">
+				<!-- ------------- 检索参数 ------------- -->
+				<div class="c-title">检索参数</div>
+				<el-form ref="form" :model='p' @submit.native.prevent>
+					<sa-item type="text" name="姓名" v-model="p.name"></sa-item>
+					<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
+					<el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
+					<el-button v-if="sa.isAuth('tb-purchaser-judge')" class="c-btn" type="success"
+						icon="el-icon-s-check" @click="judgeBySelect">批量审核</el-button>
+				</el-form>
+				<!-- ------------- 数据列表 ------------- -->
+				<el-table class="data-table" ref="data-table" :data="dataList">
+					<sa-td type="selection" name="序号"></sa-td>
+					<sa-td name="姓名" prop="name" ></sa-td>
+					<sa-td name="联系电话" prop="contact" type="phone"></sa-td>
+					<sa-td name="身份证号" prop="idCard" type="idCard"></sa-td>
+					<sa-td name="邮箱" prop="email" ></sa-td>
+					<sa-td name="地址" prop="address" ></sa-td>
+					<sa-td name="审核状态" prop="judgeStatus">
+						<template slot-scope="scope">
+							<el-tag type="danger" v-if="scope.row.judgeStatus==0">未审核</el-tag>
+							<el-tag type="primary" v-if="scope.row.judgeStatus==1">审核通过</el-tag>
+							<el-tag type="danger" v-if="scope.row.judgeStatus==2">审核驳回</el-tag>
+						</template>
+					</sa-td>
+					<sa-td name="审核时间" width="160px" prop="judgeTime"></sa-td>
+					<sa-td name="提交时间" width="160px" prop="createTime"></sa-td>
+					<el-table-column label="操作" fixed="right" width="100px">
+						<template slot-scope="s">
+							<el-button v-if="sa.isAuth('tb-purchaser-judge')" class="c-btn" type="success"
+								icon="el-icon-s-check" @click="get(s.row)">审核</el-button>
+						</template>
+					</el-table-column>
+				</el-table>
+				<!-- ------------- 分页 ------------- -->
+				<sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount"
+					@change="f5()"></sa-item>
+			</div>
+			<el-dialog title="批量审核" :visible.sync="modal.visible" width="400px">
+				<el-form>
+					<sa-item type="text" name="审核意见" v-model="modal.form.judgeContent" width="80px" br></sa-item>
+					<sa-item type="enum" name="审核结果" v-model="modal.form.judgeStatus" width="80px" :jv="{1: '通过', 2: '驳回'}" jtype="3" br></sa-item>
+				</el-form>
+				<span slot="footer" class="dialog-footer">
+					<el-button @click="modal.visible = false">取 消</el-button>
+					<el-button type="primary" @click="doJudge">确 定</el-button>
+				</span>
+			</el-dialog>
+		</div>
+		<script>
+			var app = new Vue({
+				components: {
+					"sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
+					"sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
+				},
+				el: '.vue-box',
+				data: {
+					modal: {
+						visible: false,
+						form: {
+							ids: '',
+							judgeStatus: 1,
+							judgeContent: '',
+						}
+					},
+					p: { // 查询参数
+						type: 2,		// 类型:个人收购商
+						name: '',		// 姓名
+						pageNo: 1, 		// 当前页
+						pageSize: 20, 	// 页大小
+						sortType: 0 	// 排序方式
+					},
+					dataCount: 0,
+					dataList: [], // 数据集合
+				},
+				methods: {
+					doJudge() {
+						let form = this.modal.form;
+						if (!form.judgeContent) {
+							return sa.msg('请输入审核意见');
+						}
+						sa.ajax('/level-two-server/TbPurchaser/auditBatch', form, function(res) {
+							sa.alert('审核成功');
+							this.modal.visible = false;
+							this.f5()
+						}.bind(this));
+					},
+					// 刷新
+					f5: function() {
+						sa.ajax('/level-two-server/TbPurchaser/getList', sa.removeNull(this.p), function(res) {
+							this.dataList = res.data; // 数据
+							this.dataCount = res.dataCount; // 数据总数
+							sa.f5TableHeight(); // 刷新表格高度
+						}.bind(this));
+					},
+					judgeBySelect: function(data) {
+						var selection = this.$refs['data-table'].selection;
+						if (selection.length == 0) {
+							return sa.msg('请选择一条数据')
+						}
+						this.modal.form.ids = selection.map(obj => obj.id).join(',');
+						this.modal.visible = true;
+					},
+					// 查看
+					get: function(data) {
+						sa.showIframe('个体商户资料审核', 'tb-purchaser-personal-do-judge.html?id=' + data.id, '950px', '80%');
+					},
+					// 修改
+					update: function(data) {
+						sa.showIframe('修改数据', 'tb-purchaser-personal-add.html?id=' + data.id, '1000px', '90%');
+					},
+
+				},
+				created: function() {
+					this.f5();
+					sa.onInputEnter();
+				}
+			})
+		</script>
+	</body>
+</html>

+ 146 - 0
sa-view/tb-purchaser-personal/tb-purchaser-personal-list.html

@@ -0,0 +1,146 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<title>个人收购商-列表</title>
+		<meta charset="utf-8">
+		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
+		<!-- 所有的 css & js 资源 -->
+		<link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
+		<link rel="stylesheet" href="../../static/sa.css">
+		<script src="../../static/kj/vue.min.js"></script>
+		<script src="../../static/kj/element-ui/index.js"></script>
+		<script src="../../static/kj/httpVueLoader.js"></script>
+		<script src="../../static/kj/jquery.min.js"></script>
+		<script src="../../static/kj/layer/layer.js"></script>
+		<script src="../../static/sa.js"></script>
+		<script src="../../static/kj/upload-util.js"></script>
+	</head>
+	<body>
+		<div class="vue-box" style="display: none;" :style="'display: block;'">
+			<div class="c-panel">
+				<!-- ------------- 检索参数 ------------- -->
+				<div class="c-title">检索参数</div>
+				<el-form ref="form" :model='p' @submit.native.prevent>
+					<sa-item type="text" name="姓名" v-model="p.name"></sa-item>
+					<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
+					<el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
+					<el-button v-if="sa.isAuth('tb-purchaser-add')" size="mini" type="primary" @click="add()">新增</el-button>
+				</el-form>
+				<!-- ------------- 数据列表 ------------- -->
+				<el-table class="data-table" ref="data-table" :data="dataList" >
+					<sa-td type="selection"></sa-td>
+					<sa-td name="姓名" prop="name" ></sa-td>
+					<sa-td name="联系电话" prop="contact" type="phone"></sa-td>
+					<sa-td name="身份证号" prop="idCard" type="idCard"></sa-td>
+					<sa-td name="邮箱" prop="email" ></sa-td>
+					<sa-td name="地址" prop="address" ></sa-td>
+					<sa-td name="审核状态" prop="judgeStatus">
+						<template slot-scope="scope">
+							<el-tag type="danger" v-if="scope.row.judgeStatus==0">未审核</el-tag>
+							<el-tag type="primary" v-if="scope.row.judgeStatus==1">审核通过</el-tag>
+							<el-tag type="danger" v-if="scope.row.judgeStatus==2">审核驳回</el-tag>
+						</template>
+					</sa-td>
+					<el-table-column label="操作" fixed="right"  width="240px">
+						<template slot-scope="s">
+							<el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看</el-button>
+							<el-button v-if="sa.isAuth('tb-purchaser-edit') && s.row.judgeStatus!=1" class="c-btn" type="primary" icon="el-icon-edit" @click="update(s.row)">修改</el-button>
+							<el-button v-if="sa.isAuth('tb-purchaser-del')" class="c-btn" type="danger" icon="el-icon-delete" @click="del(s.row)">删除</el-button>
+						</template>
+					</el-table-column>
+				</el-table>
+				<!-- ------------- 分页 ------------- -->
+				<sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
+			</div>
+		</div>
+		<script>
+			var app = new Vue({
+				components: {
+					"sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
+					"sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
+				},
+				el: '.vue-box',
+				data: {
+					p: { // 查询参数
+						type: 2,		// 类型:个人收购商
+						name: '',		// 姓名
+						pageNo: 1,		// 当前页
+						pageSize: 10,	// 页大小
+						sortType: 0		// 排序方式
+					},
+					dataCount: 0,
+					dataList: [], // 数据集合
+				},
+				methods: {
+					// 刷新
+					f5: function() {
+						sa.ajax('/level-two-server/TbPurchaser/getList', sa.removeNull(this.p), function(res) {
+							this.dataList = res.data; // 数据
+							this.dataCount = res.dataCount; // 数据总数
+							sa.f5TableHeight();		// 刷新表格高度
+						}.bind(this));
+					},
+					// 查看
+					get: function(data) {
+						sa.showIframe('数据详情', 'tb-purchaser-personal-info.html?id=' + data.id, '1050px', '90%');
+					},
+					// 修改
+					update: function(data) {
+						sa.showIframe('修改数据', 'tb-purchaser-personal-add.html?id=' + data.id, '1000px', '90%');
+					},
+					// 新增
+					add: function(data) {
+						sa.showIframe('新增数据', 'tb-purchaser-personal-add.html?id=-1', '1000px', '90%');
+					},
+					// 删除
+					del: function(data) {
+						sa.confirm('是否删除,此操作不可撤销', function() {
+							sa.ajax('/level-two-server/TbPurchaser/delete?id=' + data.id, function(res) {
+								sa.arrayDelete(this.dataList, data);
+								sa.ok('删除成功');
+								sa.f5TableHeight();		// 刷新表格高度
+							}.bind(this))
+						}.bind(this));
+					},
+					// 批量删除
+					deleteByIds: function() {
+						// 获取选中元素的id列表
+						let selection = this.$refs['data-table'].selection;
+						let ids = sa.getArrayField(selection, 'id');
+						if(selection.length == 0) {
+							return sa.msg('请至少选择一条数据')
+						}
+						// 提交删除
+						sa.confirm('是否批量删除选中数据?此操作不可撤销', function() {
+							sa.ajax('/level-two-server/TbPurchaser/deleteByIds', {ids: ids.join(',')}, function(res) {
+								sa.arrayDelete(this.dataList, selection);
+								sa.ok('删除成功');
+								sa.f5TableHeight();		// 刷新表格高度
+							}.bind(this))
+						}.bind(this));
+					},
+					// 改 - 删除状态(0=禁用,1=启用)
+					updateDeleteStatus: function(data) {
+						// 声明变量记录是否成功
+						var isOk = false;
+						var oldValue = data.deleteStatus;
+						var ajax = sa.ajax('/level-two-server/TbPurchaser/updateDeleteStatus', {id: data.id, value: data.deleteStatus}, function(res) {
+							isOk = true;
+							sa.msg('修改成功');
+						}.bind(this));
+						// 如果未能修改成功, 则回滚
+						$.when(ajax).done(function() {
+							if(isOk == false) {
+								data.status = oldValue;
+							}
+						})
+					},
+				},
+				created: function() {
+					this.f5();
+					sa.onInputEnter();
+				}
+			})
+		</script>
+	</body>
+</html>

+ 61 - 44
sa-view/tb-purchaser/tb-purchaser-add.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 	<head>
-		<title>收购商-添加/修改</title>
+		<title>企业收购商-添加/修改</title>
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 		<meta name="viewport"
 			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
@@ -61,53 +61,61 @@
 							<tr>
 								<th>企业名称</th>
 								<td>
-									<el-input type="text" v-model="m.name" placeholder="请输入企业名称"></el-input>
+									<el-input type="text" v-model="m.businessName" placeholder="请输入企业名称"></el-input>
 								</td>
-								<th>法人</th>
+								<th>企业法人</th>
 								<td>
-									<el-input type="text" v-model="m.legalPerson" placeholder="请输入法人"></el-input>
+									<el-input type="text" v-model="m.legalPerson" placeholder="请输入企业法人"></el-input>
 								</td>
 							</tr>
 							<tr>
-								<th>身份证号</th>
+								<th>统一社会信用代码</th>
 								<td>
-									<el-input type="text" v-model="m.idCard" placeholder="请输入身份证号"></el-input>
+									<el-input type="text" v-model="m.dutyParagraph" placeholder="请输入统一社会信用代码"></el-input>
 								</td>
-								<th>手机号码</th>
+								<th>营业执照</th>
 								<td>
-									<el-input type="text" v-model="m.contact" placeholder="请输入手机号码"></el-input>
+									<sa-item type="img-list" v-model="m.businessLicense" br></sa-item>
 								</td>
 							</tr>
 							<tr>
-								<th>税号</th>
+								<th>联系人</th>
 								<td>
-									<el-input type="text" v-model="m.dutyParagraph" placeholder="请输入税号"></el-input>
+									<el-input type="text" v-model="m.name" placeholder="请输入联系人"></el-input>
 								</td>
-								<th>营业执照</th>
+								<th>邮箱</th>
 								<td>
-									<sa-item type="img-list" v-model="m.businessLicense" br></sa-item>
+									<el-input type="text" v-model="m.email" placeholder="请输入邮箱"></el-input>
+								</td>
+							</tr>
+							<tr>
+								<th>联系电话</th>
+								<td>
+									<el-input type="text" v-model="m.contact" placeholder="请输入联系电话"></el-input>
+								</td>
+								<th>身份证号</th>
+								<td>
+									<el-input type="text" v-model="m.idCard" placeholder="请输入身份证号"></el-input>
 								</td>
 							</tr>
 							<tr>
 								<th>银行名称</th>
 								<td>
-									<el-select v-model="m.bankName" placeholder="请选择" filterable size="mini">
-										<el-option v-for="(item,index) in banckList" :key="index" :label="item.name"
-											:value="item.value"> </el-option>
+									<el-select v-model="m.bankNo" placeholder="请选择" filterable size="mini">
+										<el-option label="请选择" :value="0" disabled></el-option>
+										<el-option v-for="(item,index) in bankList" :key="index" :label="item.bankName" :value="item.bankCode"></el-option>
 									</el-select>
 								</td>
 								<th>银行账号</th>
 								<td>
 									<el-input type="text" v-model="m.bankAccount" placeholder="请输入银行账号"></el-input>
 								</td>
-
 							</tr>
 							<tr>
-								<th>地址</th>
+								<th>企业地址</th>
 								<td colspan="3">
-									<el-input type="text" v-model="m.address"  placeholder="请输入地址"></el-input>
+									<el-input type="text" v-model="m.address"  placeholder="请输入企业地址" style="width: 90%"></el-input>
 								</td>
-						
 							</tr>
 						</table>
 						<sa-item name="" class="s-ok" br>
@@ -129,52 +137,60 @@
 				},
 				el: '.vue-box',
 				data: {
-					banckList: [{
-						name: '麻栗坡农商银行',
-						value: '麻栗坡农商银行'
-					}],
+					bankList: [],
 					id: sa.p('id', 0), // 获取超链接中的id参数(0=添加,非0=修改)
 					m: null, // 实体对象
 				},
 				methods: {
-
+					getBankList() {
+						sa.ajax('/sp-admin/TbBank/getAll', function(resp) {
+							this.bankList = resp.data;
+						}.bind(this));
+					},
 					// 创建一个 默认Model
 					createModel: function() {
 						return {
-							name: '', // 名称
-							legalPerson: '', // 法人
-							idCard: '', // 身份证号
-							contact: '', // 手机号码
-							businessLicense: '', // 营业执照
-							bankNo: '', // 银行编号
-							bankName: '麻栗坡农商银行', // 银行名称
-							bankAccount: '', // 银行账号
-							dutyParagraph: '', // 税号
-							addressIds: '', // 地址编号
-							address: '', // 地址
+							businessName: '',		// 企业名称
+							legalPerson: '', 		// 企业法人
+							dutyParagraph: '', 		// 统一社会信用代码
+							businessLicense: '', 	// 营业执照
+							name: '', 				// 联系人
+							email: '', 				// 邮箱
+							contact: '', 			// 手机号码
+							idCard: '', 			// 身份证号
+							bankNo: '', 			// 银行编号
+							bankName: '', 			// 银行名称
+							bankAccount: '', 		// 银行账号
+							address: '', 			// 企业地址
 							// judgeStatus: '',		// 审核状态(0=未通过,1=已通过)
-							// judgeContent: '',		// 审核意见
+							// judgeContent: '',	// 审核意见
 							// judgeTime: '',		// 上次审核时间
-							personId: '', // 人脸编号
-							// deleteStatus: '',		// 删除状态(0=禁用,1=启用)
+							// personId: '', 		// 人脸编号
+							// deleteStatus: '',	// 删除状态(0=禁用,1=启用)
 						}
 					},
 					// 提交数据
 					ok: function() {
 						// 表单校验
 						let m = this.m;
-						sa.checkNull(m.name, '请输入 [名称]');
-						sa.checkNull(m.legalPerson, '请输入 [法人]');
+						sa.checkNull(m.businessName, '请输入 [企业名称]');
+						sa.checkNull(m.legalPerson, '请输入 [企业法人]');
+						sa.checkNull(m.dutyParagraph, '请输入 [统一社会信用代码]');
+						sa.checkNull(m.businessLicense, '请上传 [营业执照]');
+						sa.checkNull(m.name, '请输入 [联系人]');
 						sa.checkNull(m.idCard, '请输入 [身份证号]');
 						let contact = m.contact;
 						if (!sa.isPhone(contact)) {
 							sa.error('手机号不正确');
 							return;
 						}
-						sa.checkNull(m.businessLicense, '请上传 [营业执照]');
-						sa.checkNull(m.bankName, '请输入 [银行名称]');
+						let bankNo = m.bankNo;
+						sa.checkNull(bankNo, '请选择 [银行]');
 						sa.checkNull(m.bankAccount, '请输入 [银行账号]');
-						sa.checkNull(m.dutyParagraph, '请输入 [税号]');
+						let bankList = this.bankList;
+						let bank = bankList.filter(bank => bank.bankCode === bankNo)[0];
+						this.m.bankName = bank.bankName;
+						m.type = 1; // 类型:企业收购商
 						// 开始增加或修改
 						if (this.id <= 0) { // 添加
 							sa.ajax('/level-two-server/TbPurchaser/add', m, function(res) {
@@ -197,6 +213,7 @@
 					}
 				},
 				mounted: function() {
+					this.getBankList();
 					// 初始化数据
 					if (this.id <= 0) {
 						this.m = this.createModel();
@@ -212,4 +229,4 @@
 			})
 		</script>
 	</body>
-</html>
+</html>

+ 21 - 15
sa-view/tb-purchaser/tb-purchaser-do-judge.html

@@ -57,18 +57,12 @@
 						<table>
 							<tr>
 								<th>企业名称</th>
-								<td>{{m.name}}</td>
-								<th>法人</th>
+								<td>{{m.businessName}}</td>
+								<th>企业法人</th>
 								<td>{{m.legalPerson}}</td>
 							</tr>
 							<tr>
-								<th>身份证号</th>
-								<td>{{m.idCard}}</td>
-								<th>手机号码</th>
-								<td>{{m.contact}}</td>
-							</tr>
-							<tr>
-								<th>税号</th>
+								<th>统一社会信用代码</th>
 								<td>{{m.dutyParagraph}}</td>
 								<th>营业执照</th>
 								<td>
@@ -76,16 +70,28 @@
 								</td>
 							</tr>
 							<tr>
-								<th>银行账号</th>
-								<td>{{m.bankAccount}}</td>
+								<th>联系人</th>
+								<td>{{m.name}}</td>
+								<th>邮箱</th>
+								<td>{{m.email}}</td>
+							</tr>
+							<tr>
+								<th>联系电话</th>
+								<td>{{m.contact}}</td>
+								<th>身份证号</th>
+								<td>{{m.idCard}}</td>
+							</tr>
+							<tr>
 								<th>银行名称</th>
 								<td>{{m.bankName}}</td>
+								<th>银行编号</th>
+								<td>{{m.bankNo}}</td>
 							</tr>
 							<tr>
-								<th>地址</th>
+								<th>银行账号</th>
+								<td>{{m.bankAccount}}</td>
+								<th>企业地址</th>
 								<td>{{m.address}}</td>
-								<th>提交时间</th>
-								<td>{{sa.forDate(m.createTime, 2)}}</td>
 							</tr>
 						</table>
 					</el-form>
@@ -153,4 +159,4 @@
 			})
 		</script>
 	</body>
-</html>
+</html>

+ 20 - 14
sa-view/tb-purchaser/tb-purchaser-info.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 	<head>
-		<title>收购商-详情</title>
+		<title>企业收购商-详情</title>
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
 		<!-- 所有的 css js 资源 -->
@@ -47,19 +47,13 @@
 					<el-form v-if="m">
 						<table>
 							<tr>
-								<th>名称</th>
-								<td>{{m.name}}</td>
-								<th>法人</th>
+								<th>企业名称</th>
+								<td>{{m.businessName}}</td>
+								<th>企业法人</th>
 								<td>{{m.legalPerson}}</td>
 							</tr>
 							<tr>
-								<th>身份证号</th>
-								<td>{{maskId(m.idCard)}}</td>
-								<th>手机号码</th>
-								<td>{{maskPhone(m.contact)}}</td>
-							</tr>
-							<tr>
-								<th>税号</th>
+								<th>统一社会信用代码</th>
 								<td>{{m.dutyParagraph}}</td>
 								<th>营业执照</th>
 								<td>
@@ -67,15 +61,27 @@
 								</td>
 							</tr>
 							<tr>
-								<th>银行编号</th>
-								<td>{{m.bankNo}}</td>
+								<th>联系人</th>
+								<td>{{m.name}}</td>
+								<th>邮箱</th>
+								<td>{{m.email}}</td>
+							</tr>
+							<tr>
+								<th>联系电话</th>
+								<td>{{m.contact}}</td>
+								<th>身份证号</th>
+								<td>{{m.idCard}}</td>
+							</tr>
+							<tr>
 								<th>银行名称</th>
 								<td>{{m.bankName}}</td>
+								<th>银行编号</th>
+								<td>{{m.bankNo}}</td>
 							</tr>
 							<tr>
 								<th>银行账号</th>
 								<td>{{m.bankAccount}}</td>
-								<th>地址</th>
+								<th>企业地址</th>
 								<td>{{m.address}}</td>
 							</tr>
 							<tr>

+ 14 - 17
sa-view/tb-purchaser/tb-purchaser-judge.html

@@ -22,7 +22,8 @@
 				<!-- ------------- 检索参数 ------------- -->
 				<div class="c-title">检索参数</div>
 				<el-form ref="form" :model='p' @submit.native.prevent>
-					<sa-item type="text" name="企业名称" v-model="p.name" :need="false" width="100px"></sa-item>
+					<sa-item type="text" name="企业名称" v-model="p.businessName" width="100px"></sa-item>
+					<sa-item type="text" name="企业法人" v-model="p.legalPerson" width="100px"></sa-item>
 					<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
 					<el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
 					<el-button v-if="sa.isAuth('tb-purchaser-judge')" class="c-btn" type="success"
@@ -31,15 +32,12 @@
 				<!-- ------------- 数据列表 ------------- -->
 				<el-table class="data-table" ref="data-table" :data="dataList">
 					<sa-td type="selection" name="序号"></sa-td>
-					<sa-td name="企业名称" prop="name">
-						<template slot-scope="scope">
-							<div class="omit">{{scope.row.name}}</div>
-						</template>
-					</sa-td>
-					<sa-td name="税号" prop="dutyParagraph"></sa-td>
-					<sa-td name="法人姓名" prop="legalPerson"></sa-td>
-					<sa-td name="手机号码" width="100px" prop="contact" type="phone"></sa-td>
+					<sa-td name="企业名称" prop="businessName"></sa-td>
+					<sa-td name="企业法人" prop="legalPerson"></sa-td>
+					<sa-td name="统一社会信用代码" prop="dutyParagraph"></sa-td>
 					<sa-td name="营业执照" prop="businessLicense" type="img-list"></sa-td>
+					<sa-td name="联系人" prop="name" ></sa-td>
+					<sa-td name="邮箱" prop="email" ></sa-td>
 					<sa-td name="审核状态" prop="judgeStatus">
 						<template slot-scope="scope">
 							<el-tag type="danger" v-if="scope.row.judgeStatus==0">未审核</el-tag>
@@ -88,13 +86,12 @@
 						}
 					},
 					p: { // 查询参数
-						id: '', //
-						name: '', // 名称
-						nationality: '', // 国别
-						judgeList: 1,
-						pageNo: 1, // 当前页
-						pageSize: 20, // 页大小
-						sortType: 0 // 排序方式
+						type: 1,			// 类型:企业收购商
+						businessName: '',	// 企业名称
+						legalPerson: '',	// 企业法人
+						pageNo: 1, 			// 当前页
+						pageSize: 20, 		// 页大小
+						sortType: 0 		// 排序方式
 					},
 					dataCount: 0,
 					dataList: [], // 数据集合
@@ -129,7 +126,7 @@
 					},
 					// 查看
 					get: function(data) {
-						sa.showIframe('商户资料审核', 'tb-purchaser-do-judge.html?id=' + data.id, '950px', '80%');
+						sa.showIframe('企业商户资料审核', 'tb-purchaser-do-judge.html?id=' + data.id, '950px', '80%');
 					},
 					// 修改
 					update: function(data) {

+ 14 - 22
sa-view/tb-purchaser/tb-purchaser-list.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 	<head>
-		<title>收购商-列表</title>
+		<title>企业收购商-列表</title>
 		<meta charset="utf-8">
 		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
 		<!-- 所有的 css & js 资源 -->
@@ -22,8 +22,8 @@
 				<!-- ------------- 检索参数 ------------- -->
 				<div class="c-title">检索参数</div>
 				<el-form ref="form" :model='p' @submit.native.prevent>
-					<sa-item type="text" name="名称" v-model="p.name"></sa-item>
-					<sa-item type="text" name="法人" v-model="p.legalPerson"></sa-item>
+					<sa-item type="text" name="企业名称" v-model="p.businessName" width="100px"></sa-item>
+					<sa-item type="text" name="企业法人" v-model="p.legalPerson" width="100px"></sa-item>
 					<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
 					<el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
 					<el-button v-if="sa.isAuth('tb-purchaser-add')" size="mini" type="primary" @click="add()">新增</el-button>
@@ -31,12 +31,12 @@
 				<!-- ------------- 数据列表 ------------- -->
 				<el-table class="data-table" ref="data-table" :data="dataList" >
 					<sa-td type="selection"></sa-td>
-					<sa-td name="名称" prop="name" ></sa-td>
-					<sa-td name="法人" prop="legalPerson" ></sa-td>
-					<sa-td name="身份证号" prop="idCard" type="idCard"></sa-td>
-					<sa-td name="手机号码" prop="contact" type="phone"></sa-td>
+					<sa-td name="企业名称" prop="businessName" ></sa-td>
+					<sa-td name="企业法人" prop="legalPerson" ></sa-td>
+					<sa-td name="统一社会信用代码" prop="dutyParagraph" ></sa-td>
 					<sa-td name="营业执照" prop="businessLicense" type="img-list"></sa-td>
-					<sa-td name="税号" prop="dutyParagraph" ></sa-td>
+					<sa-td name="联系人" prop="name" ></sa-td>
+					<sa-td name="邮箱" prop="email" ></sa-td>
 					<sa-td name="审核状态" prop="judgeStatus">
 						<template slot-scope="scope">
 							<el-tag type="danger" v-if="scope.row.judgeStatus==0">未审核</el-tag>
@@ -65,20 +65,12 @@
 				el: '.vue-box',
 				data: {
 					p: { // 查询参数
-						name: '',		// 名称
-						legalPerson: '',		// 法人
-						idCard: '',		// 身份证号
-						contact: '',		// 手机号码
-						bankNo: '',		// 银行编号
-						bankName: '',		// 银行名称
-						bankAccount: '',		// 银行账号
-						dutyParagraph: '',		// 税号
-						addressIds: '',		// 地址编号
-						address: '',		// 地址
-						personId: '',		// 人脸编号
-						pageNo: 1,		// 当前页
-						pageSize: 10,	// 页大小
-						sortType: 0		// 排序方式
+						type: 1,			// 类型:企业收购商
+						businessName: '',	// 企业名称
+						legalPerson: '',	// 企业法人
+						pageNo: 1,			// 当前页
+						pageSize: 10,		// 页大小
+						sortType: 0 		// 排序方式
 					},
 					dataCount: 0,
 					dataList: [], // 数据集合