| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 | <!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">				<!-- ------------- 检索参数 ------------- -->				<el-form ref="form" :model='p' @submit.native.prevent>					<sa-item type="text" name="企业名称" v-model="p.name" :need="false"></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">						<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"></sa-td>					<sa-td name="营业执照" prop="businessLicense" type="img-list"></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="danger" v-if="scope.row.judgeStatus==2">审核驳回</el-tag>						</template>					</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" br></sa-item>					<sa-item type="enum" name="审核结果" v-model="modal.form.judgeStatus" :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: { // 查询参数						id: '', //						name: '', // 名称						nationality: '', // 国别						judgeList: 1,						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-do-judge.html?id=' + data.id, '850px', '80%');					},					// 修改					update: function(data) {						sa.showIframe('修改数据', 'tb-purchaser-add.html?id=' + data.id, '1000px', '90%');					},				},				created: function() {					this.f5();					sa.onInputEnter();				}			})		</script>	</body></html>
 |