Browse Source

新生成的代码

mao_ym 1 year ago
parent
commit
4143a6460b

+ 32 - 1
sa-frame/menu-list-sp.js

@@ -345,5 +345,36 @@ window.menuList.unshift({
 			]
 		},
 	]
-}
+},
+{
+	id: 'tb-purchaser-address',
+	name: '收购商个人地址管理表',
+	icon: 'el-icon-folder-opened',
+	parent:true,
+	info: '收购商个人地址管理表表数据的维护',
+	childList: [
+		{id: 'tb-purchaser-address-list', name: '收购商个人地址管理表-列表', url: 'sa-view/tb-purchaser-address/tb-purchaser-address-list.html',
+		childList:[
+		{id:'tb-purchaser-address-add',name:'收购商个人地址管理表添加',isShow:false},
+		{id:'tb-purchaser-address-edit',name:'收购商个人地址管理表更新',isShow:false},
+		{id:'tb-purchaser-address-del',name:'收购商个人地址管理表删除',isShow:false},
+		]
+		},
+	]
+},{
+	id: 'tb-order-after-sale',
+	name: '售后申请表,并关联一级市场订单',
+	icon: 'el-icon-folder-opened',
+	parent:true,
+	info: '售后申请表,并关联一级市场订单表数据的维护',
+	childList: [
+		{id: 'tb-order-after-sale-list', name: '售后申请表,并关联一级市场订单-列表', url: 'sa-view/tb-order-after-sale/tb-order-after-sale-list.html',
+		childList:[
+		{id:'tb-order-after-sale-add',name:'售后申请表,并关联一级市场订单添加',isShow:false},
+		{id:'tb-order-after-sale-edit',name:'售后申请表,并关联一级市场订单更新',isShow:false},
+		{id:'tb-order-after-sale-del',name:'售后申请表,并关联一级市场订单删除',isShow:false},
+		]
+		},
+	]
+},
 );

+ 134 - 0
sa-view/tb-order-after-sale/tb-order-after-sale-add.html

@@ -0,0 +1,134 @@
+<!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="../../static/kj/element-ui/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>
+		<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;}
+		</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">
+						<sa-item type="text" name="售后申请表主键id" v-model="m.id" br></sa-item>
+						<sa-item type="text" name="订单表主键" v-model="m.orderId" br></sa-item>
+						<sa-item type="text" name="发起售后人的ID" v-model="m.userId" br></sa-item>
+						<sa-item type="text" name="售后发起人电话" v-model="m.userPhone" br></sa-item>
+						<sa-item type="text" name="发起售后时间" v-model="m.time" br></sa-item>
+						<sa-item type="text" name="申请类型" v-model="m.applyType" br></sa-item>
+						<sa-item type="text" name="发起售后原因" v-model="m.remark" br></sa-item>
+						<sa-item type="text" name="售后状态" v-model="m.afterSaleStatus" br></sa-item>
+						<sa-item type="text" name="货物图片" v-model="m.goodsImg" br></sa-item>
+						<sa-item type="text" name="货物名称" v-model="m.goodsName" br></sa-item>
+						<sa-item type="text" name="货物数量" v-model="m.goodsNum" br></sa-item>
+						<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: {
+					id: sa.p('id', 0),		// 获取超链接中的id参数(0=添加,非0=修改) 
+					m: null,		// 实体对象 
+				},
+				methods: {
+					// 创建一个 默认Model 
+					createModel: function() {
+						return {
+							id: '',		// 售后申请表主键id 
+							orderId: '',		// 订单表主键 
+							userId: '',		// 发起售后人的ID 
+							userPhone: '',		// 售后发起人电话 
+							time: '',		// 发起售后时间 
+							applyType: '',		// 申请类型 
+							remark: '',		// 发起售后原因 
+							afterSaleStatus: '',		// 售后状态 
+							goodsImg: '',		// 货物图片 
+							goodsName: '',		// 货物名称 
+							goodsNum: '',		// 货物数量 
+						}
+					},
+					// 提交数据 
+					ok: function(){
+						// 表单校验 
+						let m = this.m;
+						sa.checkNull(m.id, '请输入 [售后申请表主键id]');
+						sa.checkNull(m.orderId, '请输入 [订单表主键]');
+						sa.checkNull(m.userId, '请输入 [发起售后人的ID]');
+						sa.checkNull(m.userPhone, '请输入 [售后发起人电话]');
+						sa.checkNull(m.time, '请输入 [发起售后时间]');
+						sa.checkNull(m.applyType, '请输入 [申请类型]');
+						sa.checkNull(m.remark, '请输入 [发起售后原因]');
+						sa.checkNull(m.afterSaleStatus, '请输入 [售后状态]');
+						sa.checkNull(m.goodsImg, '请输入 [货物图片]');
+						sa.checkNull(m.goodsName, '请输入 [货物名称]');
+						sa.checkNull(m.goodsNum, '请输入 [货物数量]');
+				
+						// 开始增加或修改
+						if(this.id <= 0) {	// 添加
+							sa.ajax('/TbOrderAfterSale/add', m, function(res){
+								sa.alert('增加成功', this.clean); 
+							}.bind(this));
+						} else {	// 修改
+							sa.ajax('/TbOrderAfterSale/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(){
+					// 初始化数据 
+					if(this.id <= 0) {	
+						this.m = this.createModel();
+					} else {	
+						sa.ajax('/TbOrderAfterSale/getById?id=' + this.id, function(res) {
+							this.m = res.data;
+							if(res.data == null) {
+								sa.alert('未能查找到 id=' + this.id + " 详细数据");
+							}
+						}.bind(this))
+					}
+				}
+			})
+			
+		</script>
+	</body>
+</html>

+ 67 - 0
sa-view/tb-order-after-sale/tb-order-after-sale-info.html

@@ -0,0 +1,67 @@
+<!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="../../static/kj/element-ui/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>
+		<style type="text/css">
+			.c-panel .c-label{width: 8em;}
+		</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">
+						<sa-info name="售后发起人电话" br>{{m.userPhone}}</sa-info>
+						<sa-info name="发起售后时间" br>{{m.time}}</sa-info>
+						<sa-info name="申请类型" br>{{m.applyType}}</sa-info>
+						<sa-info name="发起售后原因" br>{{m.remark}}</sa-info>
+						<sa-info name="售后状态" br>{{m.afterSaleStatus}}</sa-info>
+						<sa-info name="货物图片" br>{{m.goodsImg}}</sa-info>
+						<sa-info name="货物名称" br>{{m.goodsName}}</sa-info>
+						<sa-info name="货物数量" br>{{m.goodsNum}}</sa-info>
+					</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: {
+				},
+				mounted: function() {
+					sa.ajax('/TbOrderAfterSale/getById?id=' + this.id, function(res) {
+						this.m = res.data;
+						if(res.data == null) {
+							sa.alert('未能查找到 id=' + this.id + " 详细数据");
+						}
+					}.bind(this))
+				}
+			})
+			
+		</script>
+	</body>
+</html>

+ 147 - 0
sa-view/tb-order-after-sale/tb-order-after-sale-list.html

@@ -0,0 +1,147 @@
+<!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="../../static/kj/element-ui/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>
+	</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.applyType"></sa-item>
+					<sa-item type="text" name="货物名称" v-model="p.goodsName"></sa-item>
+					<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
+					<el-button icon="el-icon-refresh" type="info" @click="sa.f5()">重置</el-button>
+				</el-form>
+				<div class="fast-btn">
+					<el-button v-if="sa.isAuth('tb-order-after-sale-add')" size="mini" type="primary" @click="add()">新增</el-button>
+					<el-button size="mini" type="success" @click="getBySelect()">查看</el-button>
+				
+				</div>
+				<!-- ------------- 数据列表 ------------- -->
+				<el-table class="data-table" ref="data-table" :data="dataList" >
+					<sa-td type="selection"></sa-td>
+					<sa-td name="售后发起人电话" prop="userPhone" ></sa-td>
+					<sa-td name="发起售后时间" prop="time" ></sa-td>
+					<sa-td name="申请类型" prop="applyType" ></sa-td>
+					<sa-td name="发起售后原因" prop="remark" ></sa-td>
+					<sa-td name="售后状态" prop="afterSaleStatus" ></sa-td>
+					<sa-td name="货物图片" prop="goodsImg" ></sa-td>
+					<sa-td name="货物名称" prop="goodsName" ></sa-td>
+					<sa-td name="货物数量" prop="goodsNum" ></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-order-after-sale-edit')" class="c-btn" type="primary" icon="el-icon-edit" @click="update(s.row)">修改</el-button>
+							<el-button v-if="sa.isAuth('tb-order-after-sale-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: { // 查询参数  
+						id: '',		// 售后申请表主键id 
+						orderId: '',		// 订单表主键 
+						userId: '',		// 发起售后人的ID 
+						userPhone: '',		// 售后发起人电话 
+						time: '',		// 发起售后时间 
+						applyType: '',		// 申请类型 
+						remark: '',		// 发起售后原因 
+						afterSaleStatus: '',		// 售后状态 
+						goodsImg: '',		// 货物图片 
+						goodsName: '',		// 货物名称 
+						goodsNum: '',		// 货物数量 
+						pageNo: 1,		// 当前页 
+						pageSize: 10,	// 页大小 
+						sortType: 0		// 排序方式 
+					},
+					dataCount: 0,
+					dataList: [], // 数据集合 
+				},
+				methods: {
+					// 刷新
+					f5: function() {
+						sa.ajax('/TbOrderAfterSale/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-order-after-sale-info.html?id=' + data.id, '1050px', '90%');
+					},
+					// 查看 - 根据选中的
+					getBySelect: function(data) {
+						var selection = this.$refs['data-table'].selection;
+						if(selection.length == 0) {
+							return sa.msg('请选择一条数据')
+						}
+						this.get(selection[0]);
+					},
+					// 修改
+					update: function(data) {
+						sa.showIframe('修改数据', 'tb-order-after-sale-add.html?id=' + data.id, '1000px', '90%');
+					},
+					// 新增
+					add: function(data) {
+						sa.showIframe('新增数据', 'tb-order-after-sale-add.html?id=-1', '1000px', '90%');
+					},
+					// 删除
+					del: function(data) {
+						sa.confirm('是否删除,此操作不可撤销', function() {
+							sa.ajax('/TbOrderAfterSale/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('/TbOrderAfterSale/deleteByIds', {ids: ids.join(',')}, function(res) {
+								sa.arrayDelete(this.dataList, selection);
+								sa.ok('删除成功');
+								sa.f5TableHeight();		// 刷新表格高度 
+							}.bind(this))
+						}.bind(this));
+					},
+				},
+				created: function() {
+					this.f5();
+					sa.onInputEnter();
+				}
+			})
+		</script>
+	</body>
+</html>

+ 128 - 0
sa-view/tb-purchaser-address/tb-purchaser-address-add.html

@@ -0,0 +1,128 @@
+<!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="../../static/kj/element-ui/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>
+		<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;}
+		</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">
+						<sa-item type="text" name="收购商地址表主键ID" v-model="m.id" br></sa-item>
+						<sa-item type="text" name="该地址拥有者主键" v-model="m.owner" br></sa-item>
+						<sa-item type="text" name="省" v-model="m.province" br></sa-item>
+						<sa-item type="text" name="市" v-model="m.city" br></sa-item>
+						<sa-item type="text" name="镇/区" v-model="m.town" br></sa-item>
+						<sa-item type="text" name="街道" v-model="m.street" br></sa-item>
+						<sa-item type="text" name="楼号" v-model="m.buildingNo" br></sa-item>
+						<sa-item type="text" name="地址全称" v-model="m.addressName" br></sa-item>
+						<sa-item type="text" name="邮编" v-model="m.postNum" br></sa-item>
+						<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: {
+					id: sa.p('id', 0),		// 获取超链接中的id参数(0=添加,非0=修改) 
+					m: null,		// 实体对象 
+				},
+				methods: {
+					// 创建一个 默认Model 
+					createModel: function() {
+						return {
+							id: '',		// 收购商地址表主键ID 
+							owner: '',		// 该地址拥有者主键 
+							province: '',		// 省 
+							city: '',		// 市 
+							town: '',		// 镇/区 
+							street: '',		// 街道 
+							buildingNo: '',		// 楼号 
+							addressName: '',		// 地址全称 
+							postNum: '',		// 邮编 
+						}
+					},
+					// 提交数据 
+					ok: function(){
+						// 表单校验 
+						let m = this.m;
+						sa.checkNull(m.id, '请输入 [收购商地址表主键ID]');
+						sa.checkNull(m.owner, '请输入 [该地址拥有者主键]');
+						sa.checkNull(m.province, '请输入 [省]');
+						sa.checkNull(m.city, '请输入 [市]');
+						sa.checkNull(m.town, '请输入 [镇/区]');
+						sa.checkNull(m.street, '请输入 [街道]');
+						sa.checkNull(m.buildingNo, '请输入 [楼号]');
+						sa.checkNull(m.addressName, '请输入 [地址全称]');
+						sa.checkNull(m.postNum, '请输入 [邮编]');
+				
+						// 开始增加或修改
+						if(this.id <= 0) {	// 添加
+							sa.ajax('/TbPurchaserAddress/add', m, function(res){
+								sa.alert('增加成功', this.clean); 
+							}.bind(this));
+						} else {	// 修改
+							sa.ajax('/TbPurchaserAddress/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(){
+					// 初始化数据 
+					if(this.id <= 0) {	
+						this.m = this.createModel();
+					} else {	
+						sa.ajax('/TbPurchaserAddress/getById?id=' + this.id, function(res) {
+							this.m = res.data;
+							if(res.data == null) {
+								sa.alert('未能查找到 id=' + this.id + " 详细数据");
+							}
+						}.bind(this))
+					}
+				}
+			})
+			
+		</script>
+	</body>
+</html>

+ 68 - 0
sa-view/tb-purchaser-address/tb-purchaser-address-info.html

@@ -0,0 +1,68 @@
+<!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="../../static/kj/element-ui/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>
+		<style type="text/css">
+			.c-panel .c-label{width: 8em;}
+		</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">
+						<sa-info name="收购商地址表主键ID" br>{{m.id}}</sa-info>
+						<sa-info name="该地址拥有者主键" br>{{m.owner}}</sa-info>
+						<sa-info name="省" br>{{m.province}}</sa-info>
+						<sa-info name="市" br>{{m.city}}</sa-info>
+						<sa-info name="镇/区" br>{{m.town}}</sa-info>
+						<sa-info name="街道" br>{{m.street}}</sa-info>
+						<sa-info name="楼号" br>{{m.buildingNo}}</sa-info>
+						<sa-info name="地址全称" br>{{m.addressName}}</sa-info>
+						<sa-info name="邮编" br>{{m.postNum}}</sa-info>
+					</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: {
+				},
+				mounted: function() {
+					sa.ajax('/TbPurchaserAddress/getById?id=' + this.id, function(res) {
+						this.m = res.data;
+						if(res.data == null) {
+							sa.alert('未能查找到 id=' + this.id + " 详细数据");
+						}
+					}.bind(this))
+				}
+			})
+			
+		</script>
+	</body>
+</html>

+ 152 - 0
sa-view/tb-purchaser-address/tb-purchaser-address-list.html

@@ -0,0 +1,152 @@
+<!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="../../static/kj/element-ui/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>
+	</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="收购商地址表主键ID" v-model="p.id"></sa-item>
+					<sa-item type="text" name="该地址拥有者主键" v-model="p.owner"></sa-item>
+					<sa-item type="text" name="省" v-model="p.province"></sa-item>
+					<sa-item type="text" name="市" v-model="p.city"></sa-item>
+					<sa-item type="text" name="镇/区" v-model="p.town"></sa-item>
+					<sa-item type="text" name="街道" v-model="p.street"></sa-item>
+					<sa-item type="text" name="楼号" v-model="p.buildingNo"></sa-item>
+					<sa-item type="text" name="地址全称" v-model="p.addressName"></sa-item>
+					<sa-item type="text" name="邮编" v-model="p.postNum"></sa-item>
+					<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
+				</el-form>
+				<div class="fast-btn">
+					<el-button v-if="sa.isAuth('tb-purchaser-address-add')" size="mini" type="primary" @click="add()">新增</el-button>
+					<el-button size="mini" type="success" @click="getBySelect()">查看</el-button>
+					<el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
+				</div>
+				<!-- ------------- 数据列表 ------------- -->
+				<el-table class="data-table" ref="data-table" :data="dataList" >
+					<sa-td type="selection"></sa-td>
+					<sa-td name="收购商地址表主键ID" prop="id" ></sa-td>
+					<sa-td name="该地址拥有者主键" prop="owner" ></sa-td>
+					<sa-td name="省" prop="province" ></sa-td>
+					<sa-td name="市" prop="city" ></sa-td>
+					<sa-td name="镇/区" prop="town" ></sa-td>
+					<sa-td name="街道" prop="street" ></sa-td>
+					<sa-td name="楼号" prop="buildingNo" ></sa-td>
+					<sa-td name="地址全称" prop="addressName" ></sa-td>
+					<sa-td name="邮编" prop="postNum" ></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-address-edit')" class="c-btn" type="primary" icon="el-icon-edit" @click="update(s.row)">修改</el-button>
+							<el-button v-if="sa.isAuth('tb-purchaser-address-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: { // 查询参数  
+						id: '',		// 收购商地址表主键ID 
+						owner: '',		// 该地址拥有者主键 
+						province: '',		// 省 
+						city: '',		// 市 
+						town: '',		// 镇/区 
+						street: '',		// 街道 
+						buildingNo: '',		// 楼号 
+						addressName: '',		// 地址全称 
+						postNum: '',		// 邮编 
+						pageNo: 1,		// 当前页 
+						pageSize: 10,	// 页大小 
+						sortType: 0		// 排序方式 
+					},
+					dataCount: 0,
+					dataList: [], // 数据集合 
+				},
+				methods: {
+					// 刷新
+					f5: function() {
+						sa.ajax('/TbPurchaserAddress/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-address-info.html?id=' + data.id, '1050px', '90%');
+					},
+					// 查看 - 根据选中的
+					getBySelect: function(data) {
+						var selection = this.$refs['data-table'].selection;
+						if(selection.length == 0) {
+							return sa.msg('请选择一条数据')
+						}
+						this.get(selection[0]);
+					},
+					// 修改
+					update: function(data) {
+						sa.showIframe('修改数据', 'tb-purchaser-address-add.html?id=' + data.id, '1000px', '90%');
+					},
+					// 新增
+					add: function(data) {
+						sa.showIframe('新增数据', 'tb-purchaser-address-add.html?id=-1', '1000px', '90%');
+					},
+					// 删除
+					del: function(data) {
+						sa.confirm('是否删除,此操作不可撤销', function() {
+							sa.ajax('/TbPurchaserAddress/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('/TbPurchaserAddress/deleteByIds', {ids: ids.join(',')}, function(res) {
+								sa.arrayDelete(this.dataList, selection);
+								sa.ok('删除成功');
+								sa.f5TableHeight();		// 刷新表格高度 
+							}.bind(this))
+						}.bind(this));
+					},
+				},
+				created: function() {
+					this.f5();
+					sa.onInputEnter();
+				}
+			})
+		</script>
+	</body>
+</html>