From 579b26ee84fb489a26d8a9b3aaeb819fde7900d4 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 28 May 2021 18:02:39 +0800
Subject: [PATCH] 风险上报,拜访记录修改

---
 pages/infoRegistration/infoCheck.vue        |   16 +-
 pages/infoRegistration/infoRegistration.vue |  180 ++++++++++++++++-------------
 pages/riskReporting/riskReporting.vue       |   82 +++++++++++--
 manifest.json                               |    2 
 pages/visitRecord/visitRecord.vue           |   72 +++++++++--
 5 files changed, 230 insertions(+), 122 deletions(-)

diff --git a/manifest.json b/manifest.json
index 0cc74f8..06207de 100644
--- a/manifest.json
+++ b/manifest.json
@@ -50,7 +50,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wx739eb6d9c0fbc711",
+        "appid" : "wx8d8a6035fb1fb858",
         "setting" : {
             "urlCheck" : false,
             "minified" : true,
diff --git a/pages/infoRegistration/infoCheck.vue b/pages/infoRegistration/infoCheck.vue
index a10a0bd..7402ecb 100644
--- a/pages/infoRegistration/infoCheck.vue
+++ b/pages/infoRegistration/infoCheck.vue
@@ -137,13 +137,13 @@
 					url: 'https://web.byisf.com/api/blade-system/tenant/submit',
 					method:'POST',
 					data:{
-						"id":this.id,
-						"tenantName":this.tenantName,
-						"linkman":this.linkman,
-						"contactNumber":this.contactNumber,
-						"address":this.address,
-						"type":this.type,
-						"domain":this.domain,
+							"id":this.id,
+							"tenantName":this.tenantName,
+							"linkman":this.linkman,
+							"contactNumber":this.contactNumber,
+							"address":this.address,
+							"type":this.type,
+							"domain":this.domain
 					},
 					success: (res) => {
 						if(res.data.code==200){
@@ -219,7 +219,7 @@
 		width: 180rpx;
 		height: 180rpx;
 		border-radius: 100rpx;
-		line-height:200rpx;
+		line-height:180rpx;
 		color: #FFFFFF;
 		letter-spacing: 2rpx;
 	}
diff --git a/pages/infoRegistration/infoRegistration.vue b/pages/infoRegistration/infoRegistration.vue
index 87e6ba9..5e1bb8a 100644
--- a/pages/infoRegistration/infoRegistration.vue
+++ b/pages/infoRegistration/infoRegistration.vue
@@ -1,102 +1,118 @@
 <template>
 	<view class="content">
-	        <view class="row regis-info">
-				<text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text>
-	            <input class="input" type="text"  v-model="tenantName" placeholder="请输入客户名称" placeholder-class="placeholder" />
-			</view>
-			<view class="row regis-info-linkman">
-				<text class="info-title"><!-- <span style="color: red;">* --></span>联系人: </text>
-			    <input class="input" type="text"  v-model="linkman" placeholder="请输入联系人名称" placeholder-class="placeholder" />
-			</view>
-			<view class="row regis-info">
-				<text class="info-title"><!-- <span style="color: red;">* --></span>联系电话: </text>
-			    <input class="input" type="text"  v-model="contactNumber" placeholder="请输入联系电话" placeholder-class="placeholder" />
-			</view>
-			<view class="row regis-info">
-				<text class="info-title"><!-- <span style="color: red;">* --></span>客户地址: </text>
-			    <input class="input" type="text"  v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" />
-			</view>
-			<view class="row regis-info">
-				<text class="info-title"><!-- <span style="color: red;">* --></span>客户类型: </text>
-				<picker @change="typeSelect" :range="typeArray" class="type-select">
-					  <label class="" v-model="typeArrayType">{{ typeArrayType }}</label>
-				</picker>
-			    <!-- <input class="input" type="text"  v-model="type" placeholder="请输入客户类型" placeholder-class="placeholder" /> -->
-			</view>
-			<view class="row regis-info-desc">
-				<text class="info-title"><!-- <span style="color: red;">* --></span>域名地址: </text>
-			    <input class="input" type="text"  v-model="domain" placeholder="请输入域名地址" placeholder-class="placeholder" />
-			</view>
-			
-			<button class="btn" @click="confirm">上传</button>
+		<view class="row regis-info">
+			<text class="info-title">
+				<!-- <span style="color: red;">* --></span>客户名称:
+			</text>
+			<input class="input" type="text" v-model="tenantName" placeholder="请输入客户名称"
+				placeholder-class="placeholder" />
 		</view>
+		<view class="row regis-info-linkman">
+			<text class="info-title">
+				<!-- <span style="color: red;">* --></span>联系人:
+			</text>
+			<input class="input" type="text" v-model="linkman" placeholder="请输入联系人名称" placeholder-class="placeholder" />
+		</view>
+		<view class="row regis-info">
+			<text class="info-title">
+				<!-- <span style="color: red;">* --></span>联系电话:
+			</text>
+			<input class="input" type="text" v-model="contactNumber" placeholder="请输入联系电话"
+				placeholder-class="placeholder" />
+		</view>
+		<view class="row regis-info">
+			<text class="info-title">
+				<!-- <span style="color: red;">* --></span>客户地址:
+			</text>
+			<input class="input" type="text" v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" />
+		</view>
+		<view class="row regis-info">
+			<text class="info-title">
+				<!-- <span style="color: red;">* --></span>客户类型:
+			</text>
+			<picker @change="typeSelect" :range="typeArray" class="type-select">
+				<label class="" v-model="typeArrayType">{{ typeArrayType }}</label>
+			</picker>
+			<!-- <input class="input" type="text"  v-model="type" placeholder="请输入客户类型" placeholder-class="placeholder" /> -->
+		</view>
+		<view class="row regis-info-desc">
+			<text class="info-title">
+				<!-- <span style="color: red;">* --></span>域名地址:
+			</text>
+			<input class="input" type="text" v-model="domain" placeholder="请输入域名地址" placeholder-class="placeholder" />
+		</view>
+
+		<button class="btn" @click="confirm">上传</button>
+	</view>
 	</view>
 </template>
 
 <script>
-	export default{
-		data () {
+	export default {
+		data() {
 			return {
-				tenantName:"",
-				linkman:"",
-				contactNumber:"",
-				address:"",
-				type:null,
-				domain:"",
-				display:'none',
-				display1:'none',
-				display2:'none',
-				display3:'none',
-				typeArray:["学校","医院","小区"],
-				typeArrayIndex:0,
-				typeArrayType:'---请选择---'
+				tenantName: "",
+				linkman: "",
+				contactNumber: "",
+				address: "",
+				type: null,
+				domain: "",
+				display: 'none',
+				display1: 'none',
+				display2: 'none',
+				display3: 'none',
+				typeArray: ["学校", "医院", "小区"],
+				typeArrayIndex: 0,
+				typeArrayType: '---请选择---',
+				pathUrl:"https://web.byisf.com/api/blade-system"
+				// pathUrl: "http://localhost:8106"
 			}
 		},
 		onLoad() {
-			
+
 		},
 		methods: {
 			//客户类型下拉改变事件
-			typeSelect(e){
+			typeSelect(e) {
 				var that = this;
 				this.typeArrayIndex = e.target.value;
-				this.typeArrayType=this.typeArray[this.typeArrayIndex];
-				if(that.typeArrayType == '学校'){
+				this.typeArrayType = this.typeArray[this.typeArrayIndex];
+				if (that.typeArrayType == '学校') {
 					that.type = 1;
 				}
-				if(that.typeArrayType =='医院'){
+				if (that.typeArrayType == '医院') {
 					that.type = 2;
 				}
-				if(that.typeArrayType =='小区'){
+				if (that.typeArrayType == '小区') {
 					that.type = 3;
 				}
 			},
-			
+
 			//提交信息
-			confirm(){
+			confirm() {
+				var that = this;
 				uni.request({
-					// url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。
-					url: 'https://web.byisf.com/api/blade-system/tenant/submit', //仅为示例,并非真实接口地址。
-					method:'POST',
-					data:{
-						"tenantName":this.tenantName,
-						"linkman":this.linkman,
-						"contactNumber":this.contactNumber,
-						"address":this.address,
-						"type":this.type,
-						"domain":this.domain,
+					url: that.pathUrl + "/tenant/submit",
+					method: 'POST',
+					data: {
+							"id":this.id,
+							"tenantName":this.tenantName,
+							"linkman":this.linkman,
+							"contactNumber":this.contactNumber,
+							"address":this.address,
+							"type":this.type,
+							"domain":this.domain
 					},
 					success: (res) => {
-						if(res.data.code==200){
+						if (res.data.code == 200) {
 							uni.showToast({
-							    title: '提交成功!',
-							    duration: 2000
+								title: '提交成功!',
+								duration: 2000
 							});
 						}
 					}
 				});
 			}
-					
 		}
 	}
 </script>
@@ -109,63 +125,63 @@
 		left: 20rpx;
 		border-bottom: 0.05px solid #B4BCCC;
 	}
-	
+
 	.regis-info-desc {
 		width: 100%;
 		height: 100rpx;
 		position: relative;
 		left: 20rpx;
 	}
-	
-	.regis-info-desc input{
+
+	.regis-info-desc input {
 		position: relative;
 		left: 40rpx;
 		top: 27rpx;
 		letter-spacing: 1rpx;
 	}
-	
-	.regis-info-linkman{
+
+	.regis-info-linkman {
 		width: 100%;
 		height: 100rpx;
 		position: relative;
 		left: 20rpx;
 		border-bottom: 0.05px solid #B4BCCC;
 	}
-	
-	.regis-info-linkman input{
+
+	.regis-info-linkman input {
 		position: relative;
 		left: 70rpx;
 		top: 27rpx;
 		letter-spacing: 1rpx;
 	}
-	
-	.info-title{
+
+	.info-title {
 		letter-spacing: 1rpx;
 		float: left;
 		line-height: 100rpx;
 		font-weight: 530;
 	}
-	
-	.regis-info input{
+
+	.regis-info input {
 		position: relative;
 		left: 40rpx;
 		top: 27rpx;
 		letter-spacing: 1rpx;
 	}
-	
-	.btn{
+
+	.btn {
 		position: relative;
 		top: 40rpx;
 		background-color: #007AFF;
 		width: 180rpx;
 		height: 180rpx;
 		border-radius: 100rpx;
-		line-height:200rpx;
+		line-height: 180rpx;
 		color: #FFFFFF;
 		letter-spacing: 2rpx;
 	}
-	
-	.type-select{
+
+	.type-select {
 		position: relative;
 		left: 45rpx;
 		top: 28rpx;
diff --git a/pages/riskReporting/riskReporting.vue b/pages/riskReporting/riskReporting.vue
index 356e845..fa08dbd 100644
--- a/pages/riskReporting/riskReporting.vue
+++ b/pages/riskReporting/riskReporting.vue
@@ -2,27 +2,30 @@
 	<view class="content">
 			<view class="row regis-info">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>上报时间: </text>
-				<input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择上报时间" placeholder-class="placeholder" />
+				<input class="input" type="text" v-model="riskTime" placeholder="请选择上报时间" placeholder-class="placeholder" />
 			</view>
 			<view class="row regis-info">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text>
-				<input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择客户" placeholder-class="placeholder" />
+				<input class="input" type="text" v-model="tenantName" placeholder="请选择客户" placeholder-class="placeholder" />
 			</view>
 	        <view class="row regis-info">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>风险等级: </text>
-	            <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择风险等级" placeholder-class="placeholder" />
+				<picker @change="riskClassSelect" :range="riskClassArray" class="riskClass-select">
+					  <label class="" v-model="riskClassArrayType">{{ riskClassArrayType }}</label>
+				</picker>
+	            <!-- <input class="input" type="text" v-model="riskClass" placeholder="请选择风险等级" placeholder-class="placeholder" /> -->
 			</view>
 			<view class="row regis-info">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>风险描述: </text>
-			    <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入风险描述" placeholder-class="placeholder" />
+			    <input class="input" type="text" v-model="riskDescribe" placeholder="请输入风险描述" placeholder-class="placeholder" />
 			</view>
 			<view class="row regis-info-addr">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>地址: </text>
-			    <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入地址" placeholder-class="placeholder" />
+			    <input class="input" type="text" v-model="address" placeholder="请输入地址" placeholder-class="placeholder" />
 			</view>
 			<view class="row regis-info-desc">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>备注: </text>
-			    <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入备注" placeholder-class="placeholder" />
+			    <input class="input" type="text" v-model="descInfo" placeholder="请输入备注" placeholder-class="placeholder" />
 			</view>
 			<button class="btn" @click="confirm">上传</button>
 		</view>
@@ -33,17 +36,21 @@
 	export default{
 		data () {
 			return {
-				deviceNumber:"",
-				serialNumber:"",
-				contacts:"",
-				calls:"",
-				paddress:"",
-				deploymenttime:"",
-				deviceName:"",
+				riskTime:"",
+				tenantName:"",
+				riskClass:"",
+				riskDescribe:"",
+				address:"",
+				descInfo:"",
 				display:'none',
 				display1:'none',
 				display2:'none',
-				display3:'none'
+				display3:'none',
+				pathUrl:"https://web.byisf.com/api/blade-jfpts",
+				// pathUrl: "http://localhost:89",
+				riskClassArray:["一级","二级","三级","四级"],
+				riskClassArrayIndex:0,
+				riskClassArrayType:'---请选择---'
 			}
 		},
 		onLoad() {
@@ -51,6 +58,47 @@
 		},
 		methods: {
 			
+			//风险等级下拉改变事件
+			riskClassSelect(e){
+				var that = this;
+				this.riskClassArrayIndex = e.target.value;
+				this.riskClassArrayType=this.riskClassArray[this.riskClassArrayIndex];
+				// if(that.typeArrayType == '学校'){
+				// 	that.type = 1;
+				// }
+				// if(that.typeArrayType =='医院'){
+				// 	that.type = 2;
+				// }
+				// if(that.typeArrayType =='小区'){
+				// 	that.type = 3;
+				// }
+			},
+			
+			
+			//提交修改
+			confirm(){
+				uni.request({
+					url: this.pathUrl + '/riskReporting/save',
+					method:'POST',
+					data:{
+							"riskTime":this.riskTime,
+							"riskNumber":this.$store.state.puserID,
+							"tenantName":this.tenantName,
+							"riskClass":this.riskClass,
+							"riskDescribe":this.riskDescribe,
+							"address":this.address,
+							"descInfo":this.descInfo
+					},
+					success: (res) => {
+						if(res.data.code==200){
+							uni.showToast({
+							    title: '提交成功!',
+							    duration: 2000
+							});
+						}
+					}
+				});
+			}
 		}
 	}
 </script>
@@ -118,4 +166,10 @@
 		color: #FFFFFF;
 		letter-spacing: 2rpx;
 	}
+	
+	.riskClass-select{
+		position: relative;
+		left: 45rpx;
+		top: 28rpx;
+	}
 </style>
diff --git a/pages/visitRecord/visitRecord.vue b/pages/visitRecord/visitRecord.vue
index 11ba148..c40a158 100644
--- a/pages/visitRecord/visitRecord.vue
+++ b/pages/visitRecord/visitRecord.vue
@@ -2,26 +2,34 @@
 	<view class="content">
 	        <view class="row regis-info">
 				<text class="info-title">拜访日期: </text>
-				<view class="regis-info-date">
-					<uni-datetime-picker></uni-datetime-picker>
-				</view>
-	            <!-- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择拜访日期" placeholder-class="placeholder" /> -->
+				<!-- <view class="regis-info-date">
+					<uni-datetime-picker v-model="vistime"></uni-datetime-picker>
+				</view> -->
+	            <input class="input" type="text"  v-model="vistime" placeholder="请选择拜访日期" placeholder-class="placeholder" />
 			</view>
 			<view class="row regis-info">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text>
-			    <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输客户主名称" placeholder-class="placeholder" />
+			    <input class="input" type="text"  v-model="yname" placeholder="请输客户名称" placeholder-class="placeholder" />
+			</view>
+			<view class="row regis-info">
+				<text class="info-title"><!-- <span style="color: red;">* --></span>客户类型: </text>
+			    <input class="input" type="text"  v-model="type" placeholder="请输客户类型" placeholder-class="placeholder" />
+			</view>
+			<view class="row regis-info">
+				<text class="info-title"><!-- <span style="color: red;">* --></span>联系电话: </text>
+			    <input class="input" type="text"  v-model="phone" placeholder="请输联系电话" placeholder-class="placeholder" />
 			</view>
 			<view class="row regis-info">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>客户地址: </text>
-			    <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户地址" placeholder-class="placeholder" />
+			    <input class="input" type="text" v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" />
 			</view>
 			<view class="row regis-info">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>营业信息: </text>
-			    <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入营业信息" placeholder-class="placeholder" />
+			    <input class="input" type="text"  v-model="information" placeholder="请输入营业信息" placeholder-class="placeholder" />
 			</view>
 			<view class="row regis-info-desc">
 				<text class="info-title"><!-- <span style="color: red;">* --></span>备注: </text>
-			    <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入备注" placeholder-class="placeholder" />
+			    <input class="input" type="text"  v-model="remark" placeholder="请输入备注" placeholder-class="placeholder" />
 			</view>
 			<button class="btn" @click="confirm">上传</button>
 		</view>
@@ -32,17 +40,19 @@
 	export default{
 		data () {
 			return {
-				deviceNumber:"",
-				serialNumber:"",
-				contacts:"",
-				calls:"",
-				paddress:"",
-				deploymenttime:"",
-				deviceName:"",
+				vistime:"",
+				yname:"",
+				type:"",
+				phone:"",
+				address:"",
+				information:"",
+				remark:"",
 				display:'none',
 				display1:'none',
 				display2:'none',
-				display3:'none'
+				display3:'none',
+				pathUrl:"https://web.byisf.com/api/blade-jfpts",
+				// pathUrl: "http://localhost:89"
 			}
 		},
 		onLoad() {
@@ -53,6 +63,34 @@
 			//查询客户信息
 			getTenantInfo(){
 				
+			},
+			//提交修改
+			confirm(){
+				uni.request({
+					url: this.pathUrl + '/visitrecord/visitrecord/save',
+					method:'POST',
+					data:{
+						// "visitrecord":
+						// {
+							"vistime":this.vistime,
+							"snumber":this.$store.state.puserID,
+							"yname":this.yname,
+							"type":this.type,
+							"phone":this.phone,
+							"address":this.address,
+							"information":this.information,
+							"remark":this.remark,
+						// }
+					},
+					success: (res) => {
+						if(res.data.code==200){
+							uni.showToast({
+							    title: '提交成功!',
+							    duration: 2000
+							});
+						}
+					}
+				});
 			}
 		}
 	}
@@ -102,7 +140,7 @@
 		width: 180rpx;
 		height: 180rpx;
 		border-radius: 100rpx;
-		line-height:200rpx;
+		line-height:180rpx;
 		color: #FFFFFF;
 		letter-spacing: 2rpx;
 	}

--
Gitblit v1.9.3