zhongtianhaoyuan 2 年之前
父节点
当前提交
958495fb48
共有 6 个文件被更改,包括 560 次插入36 次删除
  1. 14 0
      pages.json
  2. 148 0
      pages/erpbusiness/customerAudit.vue
  3. 331 0
      pages/erpbusiness/customerSee.vue
  4. 11 9
      pages/erpbusiness/index.vue
  5. 56 27
      pages/user/setUp.vue
  6. 二进制
      static/img/erp/customerAudit.png

+ 14 - 0
pages.json

@@ -1264,7 +1264,21 @@
 				"enablePullDownRefresh": false
 			}
 
+		},{
+			"path": "pages/erpbusiness/customerAudit",
+			"style": {
+				"navigationBarTitleText": "客户审核",
+				"enablePullDownRefresh": false
+			}
+
 		}, {
+			"path": "pages/erpbusiness/customerSee",
+			"style": {
+				"navigationBarTitleText": "客户详情",
+				"enablePullDownRefresh": false
+			}
+
+		},{
 			"path": "pages/user/depotAcquisition/depotAcquisition",
 			"style": {
 				"navigationBarTitleText": "库点收购",

+ 148 - 0
pages/erpbusiness/customerAudit.vue

@@ -0,0 +1,148 @@
+<template>
+	<view class="content">
+		<view class="datalist" v-for="(item,index) in dataList">
+			<view class="item">
+				<view class="item_top">
+					<view class="item_name">{{item.customerName}}</view>
+					<view class="item_audit" ><span @click="auditSubmit(item)">审核</span></view>
+				</view>
+				<view class="item_lower">
+					<view class="item_phone">{{item.customerPhone}}</view>
+					<view class="item_date">{{item.updateDate}}</view>
+				</view>
+			</view>
+		</view>
+		<view v-show="isLoadMore">
+			<uni-load-more :status="loadStatus"></uni-load-more>
+		</view>
+	</view>
+</template>
+
+<script>
+	import {
+		mapState
+	} from 'vuex';
+	export default {
+		data() {
+			return {
+				dataList: [],
+				currentPage:1,
+				pageSize:10,
+				isLoadMore: false, //是否加载中
+				loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
+			}
+		},
+		onShow() {
+			this.getList()
+		},
+		onLoad() {},
+		computed: {
+			...mapState(['hasLogin', 'userInfo']),
+		},
+		//下拉刷新
+		onPullDownRefresh() {
+			this.currentPage = 1
+			this.pageSize = 10
+			this.isLoadMore = false
+			this.loadStatus = 'loading'
+			this.getList()
+			setTimeout(function() {
+				uni.stopPullDownRefresh();
+			}, 1000);
+		},
+		onReachBottom() { //上拉触底函数
+			if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
+				this.isLoadMore = true
+				this.currentPage += 1
+				this.getList()
+			}
+		},
+		methods: {
+			getList() {
+				uni.showLoading({
+					title: '加载中',
+					mask: true
+				})
+				this.$api.doRequest('get', '/identityAuthenticationInfo/selectIdentityAuthenticationInfoPc', {
+					currentPage: this.currentPage,
+					pageSize: this.pageSize,
+					searchType: 1, //searchType:1待审核
+					compId: uni.getStorageSync('pcUserInfo').compId,
+					searchKeyWord: "个人"
+				}).then(res1 => {
+					uni.hideLoading()
+					if (res1.data.code == 200) {
+						if (res1.data.data.records.length > 0) {
+							this.isLoadMore = false
+							this.loadStatus = 'loading'
+						} else {
+							this.isLoadMore = true
+							this.loadStatus = 'nomore'
+						}
+						if (this.currentPage == 1) {
+							this.dataList = res1.data.data.records
+						} else {
+							this.dataList = this.dataList.concat(res1.data.data.records)
+						}
+					}
+				})
+			},
+			auditSubmit(val) {
+				let obj = JSON.stringify(val)
+				uni.navigateTo({
+					url: '/pages/erpbusiness/customerSee?data=' + obj
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.content {
+		padding: 30rpx 20rpx;
+	}
+
+	.datalist {
+		.item {
+			margin-bottom: 20rpx;
+			background-color: #ffffff;
+			padding: 30rpx 20rpx;
+			border-radius: 10rpx;
+			height: 200rpx;
+			padding: 40rpx 40rpx;
+		}
+
+		.item_top,
+		.item_lower {
+			display: flex;
+		}
+		.item_lower{
+			margin-top: 30rpx;
+		}
+
+		.item_name,
+		.item_phone,
+		.item_date,
+		.item_audit {
+			width: 50%;
+		}
+		.item_name{
+			font-size: 36rpx;
+			font-weight: 600;
+		}
+		.item_audit{
+			font-size: 36rpx;
+			font-weight: 600;
+			color: #5C76DF ;
+		}
+		.item_phone,.item_date{
+			color: #878C9C;
+			font-size: 28rpx;
+		}
+
+		.item_date,
+		.item_audit {
+			text-align: right;
+		}
+	}
+</style>

+ 331 - 0
pages/erpbusiness/customerSee.vue

@@ -0,0 +1,331 @@
+<template>
+	<view class="content">
+		<view class="data_css">
+			<view class="wrap">
+				<view class="c-row">
+					<view class="title">客户姓名</view>
+					<view class="con-list">
+						{{dataInfo.customerName}}
+					</view>
+				</view>
+				<view class="c-row" v-show="dataInfo.customerPhone">
+					<view class="title">手机号</view>
+					<view class="con-list">
+						{{dataInfo.customerPhone}}
+					</view>
+				</view>
+				<view class="c-row" v-show="dataInfo.compAddress">
+					<view class="title">联系地址</view>
+					<view class="con-list">
+						{{dataInfo.compAddress}}
+					</view>
+				</view>
+				<view class="c-row">
+					<view class="title">身份证号</view>
+					<view class="con-list">
+						{{dataInfo.customerNumberCard}}
+					</view>
+				</view>
+			</view>
+			<view class="wrap">
+				<view class="tips">身份证照片</view>
+				<view class="img" v-if="dataInfo.cardAddressUrl.length > 0">
+					<u-swiper :list="dataInfo.cardAddressUrl" @change="e => currentNum = e.current" radius="10"
+						indicatorMode="dot" height="360" img-mode="true" :autoplay="true" @click="openDocument1">
+					</u-swiper>
+				</view>
+			</view>
+			<view class="wrap">
+				<view class="c-row ">
+					<view class="title">银行卡号</view>
+					<view class="con-list">
+						{{dataInfo.bankCard}}
+					</view>
+				</view>
+				<view class="c-row ">
+					<view class="title">开户行</view>
+					<view class="con-list">
+						{{dataInfo.bankDeposit}}
+					</view>
+				</view>
+				<view class="c-row ">
+					<view class="title">开户支行</view>
+					<view class="con-list">
+						{{dataInfo.bankDepositBranch}}
+					</view>
+				</view>
+			</view>
+			<view class="wrap">
+				<view class="tips">银行卡照片</view>
+				<view class="img" v-if="dataInfo.payeeAddressUrl.length > 0">
+					<u-swiper :list="dataInfo.payeeAddressUrl" @change="e => currentNum = e.current" radius="10"
+						indicatorMode="dot" height="360" img-mode="true" :autoplay="true" @click="openDocument2">
+					</u-swiper>
+				</view>
+			</view>
+			<view class="wrap">
+				<view class="c-row ">
+					<view class="title">供应商</view>
+					<view class="con-list">
+						{{dataInfo.supplier?dataInfo.supplier:"暂无"}}
+					</view>
+				</view>
+				<view class="c-row ">
+					<view class="title">供应商电话</view>
+					<view class="con-list">
+						{{dataInfo.supplierPhone?dataInfo.supplierPhone:"暂无"}}
+					</view>
+				</view>
+			</view>
+		</view>
+		<view class="btn">
+			<view class="btn_left">
+				<view class="noway" @click="submit(1)">
+					驳回
+				</view>
+			</view>
+			<view class="btn_right">
+				<view class="sure" @click="submit(2)">
+					通过
+				</view>
+			</view>
+		</view>
+		<u-modal v-model="auditShow" confirm-color='#22C572' confirm-text='确定' title='提示' showCancelButton='false'
+			:content="content" @confirm="next" @cancel="cancel"></u-modal>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				dataInfo: {},
+				auditShow: false,
+				title: "提示",
+				content: "",
+				tips: "",
+				currentNum: "",
+				list3: [
+					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
+					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
+					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
+				],
+			}
+		},
+		onShow() {
+
+		},
+		onLoad(options) {
+			if (options.data) {
+				this.dataInfo = JSON.parse(options.data)
+				if (this.dataInfo.cardAddressUrl) {
+					this.dataInfo.cardAddressUrl = this.dataInfo.cardAddressUrl.split(",")
+				}
+				if (this.dataInfo.payeeAddressUrl) {
+					this.dataInfo.payeeAddressUrl = this.dataInfo.payeeAddressUrl.split(",")
+				}
+			}
+		},
+		methods: {
+			cancel() {
+				this.auditShow = false
+			},
+			next() {
+				if (this.tips == 1) {
+					this.reject()
+				} else if (this.tips == 2) {
+					this.adopt()
+				}
+			},
+			openDocument1(e) {
+				let imgUrl = this.dataInfo.cardAddressUrl[e]
+				uni.downloadFile({
+					url: imgUrl,
+					success: function(res) {
+						var filePath = res.tempFilePath;
+						uni.openDocument({
+							filePath: filePath,
+							showMenu: true,
+							success: function(res) {
+								console.log('打开文档成功');
+							}
+						});
+					}
+				});
+			},
+			openDocument2(e) {
+				let imgUrl = this.dataInfo.payeeAddressUrl[e]
+				uni.downloadFile({
+					url: imgUrl,
+					success: function(res) {
+						var filePath = res.tempFilePath;
+						uni.openDocument({
+							filePath: filePath,
+							showMenu: true,
+							success: function(res) {
+								console.log('打开文档成功');
+							}
+						});
+					}
+				});
+			},
+			submit(num) {
+				if (num == 1) {
+					this.tips = 1
+					this.content = "确定驳回客户信息?"
+				} else {
+					this.tips = 2
+					this.content = "确定通过客户信息?"
+				}
+				this.auditShow = true
+			},
+			reject() {
+				uni.showLoading({
+					title: '加载中',
+					mask: true
+				})
+				this.$api.doRequest('post', '/identityAuthenticationInfo/api/examine', {
+					id: this.dataInfo.id,
+					flag: 2,
+					examiner: uni.getStorageSync('userInfo').userName
+				}).then(res1 => {
+					uni.hideLoading()
+					this.$api.msg('驳回成功!')
+					setTimeout(function() {
+						uni.navigateBack({
+							delta: 1
+						});
+					}, 2000);
+				})
+			},
+			adopt() {
+				uni.showLoading({
+					title: '加载中',
+					mask: true
+				})
+				this.$api.doRequest('post', '/identityAuthenticationInfo/api/examine', {
+					id: this.dataInfo.id,
+					flag: 1,
+					examiner: uni.getStorageSync('userInfo').userName
+				}).then(res1 => {
+					uni.hideLoading()
+					this.$api.msg('通过成功!')
+
+					setTimeout(function() {
+						uni.navigateBack({
+							delta: 1
+						});
+					}, 2000);
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.data_css {
+		margin-bottom: 220rpx;
+	}
+
+	.wrap {
+		padding-bottom: 10px;
+		font-size: 14px;
+		background: #fff;
+		margin: 10px;
+		border-radius: 10px;
+		padding: 30rpx 30rpx;
+
+		input {
+			font-size: 14px;
+		}
+
+		.title {
+			font-size: 28rpx;
+		}
+
+		.tips {
+			font-size: 34rpx;
+			font-weight: 600;
+			border-bottom: 1px solid #EEEEEE;
+			padding-bottom: 30rpx;
+		}
+
+		.c-row {
+			display: -webkit-box;
+			display: -webkit-flex;
+			display: flex;
+			-webkit-box-align: center;
+			-webkit-align-items: center;
+			align-items: center;
+			padding: 40rpx 0;
+			position: relative;
+			border-bottom: 1px solid #EEEEEE;
+		}
+
+		.con-list {
+			-webkit-box-flex: 1;
+			-webkit-flex: 1;
+			flex: 1;
+			display: -webkit-box;
+			display: -webkit-flex;
+			display: flex;
+			-webkit-box-orient: vertical;
+			-webkit-box-direction: normal;
+			-webkit-flex-direction: column;
+			flex-direction: column;
+			color: #AFB3BF;
+			line-height: 40rpx;
+			text-align: right;
+			padding-right: 20rpx;
+		}
+	}
+
+	.btn {
+		width: 100%;
+		height: 200rpx;
+		background-color: #ffffff;
+		position: fixed;
+		bottom: 0px;
+		display: flex;
+		padding-top: 40rpx;
+
+		.btn_left,
+		.btn_right {
+			width: 50%;
+			text-align: center;
+			// line-height: 160rpx;
+			margin: 0 auto;
+		}
+
+		.noway,
+		.sure {
+			width: 80%;
+			height: 90rpx;
+			line-height: 90rpx;
+			margin: 0 auto;
+			border-radius: 45rpx;
+			font-size: 32rpx;
+		}
+
+		.sure {
+			background-color: #5C76DF;
+			color: #ffffff;
+		}
+
+		.noway {
+			background-color: #F7F8FA;
+			color: #AFB3BF;
+		}
+	}
+
+	.img {
+		width: 100%;
+		margin: 20rpx auto;
+		text-align: center;
+
+		// .img_css {
+		// 	width: 96%;
+		// 	height: 440rpx;
+		// }
+	}
+</style>

+ 11 - 9
pages/erpbusiness/index.vue

@@ -99,9 +99,7 @@
 						tips: 0,
 						url: '/pages/erpbusiness/quality_testing?managementType=1',
 						show: true
-					},
-
-					{
+					},{
 						num: 2,
 						// name: '入库检斤',
 						name: '收购检斤',
@@ -110,10 +108,7 @@
 						tips: 0,
 						url: '/pages/erpbusiness/acquisitionInspection/acquisitionInspection',
 						show: true
-					}
-,
-
-					{
+					},{
 						num: 3,
 						name: '收购信息',
 						// icon: 'cuIcon-copy',
@@ -121,6 +116,14 @@
 						tips: 0,
 						url: '/pages/erpbusiness/acquisitionInformation',
 						show: true
+					},{
+						num: 4,
+						name: '客户审核',
+						// icon: 'cuIcon-copy',
+						src: '../../static/img/erp/customerAudit.png',
+						tips: 0,
+						url: '/pages/erpbusiness/customerAudit',
+						show: true
 					}
 					// {
 					// 	num: 5,
@@ -327,8 +330,7 @@
 						this.gridList[i].show = this.getRoles('acquisitionQuality.view')
 					} else if (i == 2) {
 						this.gridList[i].show = this.getRoles('acquisitionWeight.view')
-					}
-					else if (i == 3) {
+					} else if (i == 3) {
 						this.gridList[i].show = this.utils.getRoles('acquisitionInfor.view')
 					}
 				}

+ 56 - 27
pages/user/setUp.vue

@@ -63,6 +63,16 @@
 				</view>
 			</view>
 		</view>
+		<view class="agreement">
+			<view class="text">
+				<navigator
+					url="/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/userAgreement.html"
+					class="path" hover-class="navigator-hover">《服务协议》</navigator>和<navigator
+					url="/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/screctAgreement.html"
+					class="path" hover-class="navigator-hover">《隐私政策》</navigator>
+			</view>
+
+		</view>
 		<view class='exitloginwrap'>
 			<button @click='logout()' class='exitlogin'>退出登录</button>
 		</view>
@@ -99,7 +109,7 @@
 					url: '',
 					show: true
 				}, ],
-				version:"1.1.0"
+				version: "1.1.0"
 			}
 		},
 		computed: {
@@ -109,7 +119,7 @@
 			this.getList()
 			// #ifdef APP-PLUS
 			this.version = plus.runtime.version
-			console.log("当前版本为:",plus.runtime.version)
+			console.log("当前版本为:", plus.runtime.version)
 			this.checkVersion()
 			// #endif
 		},
@@ -162,7 +172,7 @@
 								plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
 									let client_version = wgtinfo.version
 									var flag_update = client_version.split(".").splice(0, 2).join(
-										".") != res.data.data.version.split(".").splice(0, 2)
+											".") != res.data.data.version.split(".").splice(0, 2)
 										.join(".")
 									var flag_hot = (Number(client_version.split(".")[2]) < Number(res
 										.data.data.version.split(".")[2])) & !flag_update
@@ -182,21 +192,22 @@
 													console.log(res.data.data.url, )
 													var dtask = plus.downloader
 														.createDownload(res.data.data
-														.url, {
-															method: 'GET',
-															filename: '_doc/update/'
-														}, function(d, status) {
-															if (status == 200) {
-																var path = d
-																.filename; //下载apk
-																plus.runtime.install(
-																	path); // 自动安装apk文件
-															} else {
-																plus.nativeUI.alert(
-																	'版本更新失败:' +
-																	status);
-															}
-														});
+															.url, {
+																method: 'GET',
+																filename: '_doc/update/'
+															},
+															function(d, status) {
+																if (status == 200) {
+																	var path = d
+																		.filename; //下载apk
+																	plus.runtime.install(
+																		path); // 自动安装apk文件
+																} else {
+																	plus.nativeUI.alert(
+																		'版本更新失败:' +
+																		status);
+																}
+															});
 													dtask.start();
 												}
 											}
@@ -204,7 +215,7 @@
 									} else if (flag_hot) {
 										console.log("热更新")
 										uni.showLoading({
-											title:'正在热更新'
+											title: '正在热更新'
 										})
 										uni.downloadFile({
 											url: res.data.data.wgtUrl,
@@ -213,7 +224,7 @@
 												if (downloadResult.statusCode === 200) {
 													plus.nativeUI.toast(
 														`正在热更新!${res.data.data.versionCode}`
-														);
+													);
 													plus.runtime.install(downloadResult
 														.tempFilePath, {
 															force: false
@@ -233,19 +244,19 @@
 																		that.$store
 																			.commit(
 																				'logout'
-																				)
+																			)
 																		that.$api
 																			.logout()
 																		plus.nativeUI
 																			.toast(
 																				"登出成功"
-																				);
+																			);
 																		plus.runtime
 																			.restart();
 																		plus.nativeUI
 																			.toast(
 																				"重启成功"
-																				);
+																			);
 																	}
 																})
 															plus.runtime.restart();
@@ -255,7 +266,7 @@
 															console.log(e)
 															plus.nativeUI.toast(
 																`热更新失败:${e.message}`
-																);
+															);
 														});
 												}
 											}
@@ -337,8 +348,8 @@
 					url: `/pages/user/fankui`
 				})
 			},
-			unsubscribe(){
-				var that=this
+			unsubscribe() {
+				var that = this
 				uni.clearStorage({
 					success: function(res) {
 						console.log('success');
@@ -347,7 +358,7 @@
 						})
 						that.$api.doRequest('post', '/auth/api/logout').then(res => {
 							if (res.data.data) {
-						
+
 							}
 						})
 						that.$store.commit('logout')
@@ -468,10 +479,28 @@
 	.exitlogin:after {
 		border: none;
 	}
+
 	.version_css {
 		// margin-right: 10rpx;
 		color: #9D9D9D;
 		font-size: 32rpx;
 		text-align: center;
 	}
+
+	.agreement {
+		display: flex;
+		margin: 0 auto;
+		text-align: center;
+
+		.text {
+			margin: 0 auto;
+			text-align: center;
+			display: flex;
+		}
+
+		.path {
+			color: #22C572;
+			text-align: center;
+		}
+	}
 </style>

二进制
static/img/erp/customerAudit.png