Browse Source

开栓改版 以及历史修改

zhanghongrui 6 months ago
parent
commit
17072b9b64
4 changed files with 613 additions and 415 deletions
  1. 4 2
      api/common.js
  2. 1 1
      config.js
  3. 35 4
      pages/oldrenovation/indoor/indoor.vue
  4. 573 408
      pages/open_bolt/open_bolt.vue

+ 4 - 2
api/common.js

@@ -233,10 +233,12 @@ export function openBolt(param) {
 	})
 }
 //  修改房间信息
-export function putRoomDetails(id, newPhone) {
+export function putRoomDetails(id, newPhone, newAddres) {
 	const data = {
 		id,
-		newPhone
+		newPhone,
+		newAddres
+
 
 	}
 	return request({

+ 1 - 1
config.js

@@ -2,7 +2,7 @@
 module.exports = {
 
 	baseUrl: 'https://www.xcx.cczdsz.cn/prod-api',
-	//baseUrl: 'http://192.168.4.88:8080',
+	//baseUrl: 'http://192.168.4.88:28080',
 	//baseUrl: 'http://192.168.4.23:8080',
 	//baseUrl: 'http://192.168.4.20:8080',
 	// baseUrl: 'http://192.168.4.6:8080',

+ 35 - 4
pages/oldrenovation/indoor/indoor.vue

@@ -92,6 +92,20 @@
 						</view>
 
 
+						<view class="num-style">
+							<view class="container" style="border-bottom: 1px solid #f8f8f8;">
+								<spane>现住地址</spane>
+								<view style="display: flex; justify-content: flex-end;" v-if="!this.isEmpty(this.XQValue.name)">
+									{{XQValue.name}}
+								</view>
+							</view>
+
+							<view class="container" style="display: flex; justify-content: flex-end; ">
+								<input class="uni-input" type="text" v-model="BuildingName" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input><span style="padding-left: 10rpx;padding-right: 10rpx;">栋</span>
+								<input class="uni-input" type="text" v-model="UnintName" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input><span style="padding-left: 10rpx;padding-right: 10rpx;width:60px;">单元</span>
+								<input class="uni-input" type="text" v-model="RoomName" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input><span style="padding-left: 10rpx;padding-right: 10rpx;">号</span>
+							</view>
+						</view>
 						<view v-for="(user,index) in currentResidentsPhoe" :key="index" class="num-style">
 
 
@@ -570,6 +584,9 @@
 					imgArr: [],
 					idCard: '',
 					XQValue: {},
+					BuildingName: '',
+					UnintName: '',
+					RoomName: '',
 					XZQValue: {},
 					projectValue: {
 						'dictValue': '0'
@@ -1222,7 +1239,18 @@
 						this.$modal.msg("请选择房间")
 						return
 					}
-
+					if (this.isEmpty(this.BuildingName)) {
+						this.$modal.msg('请输入现住楼栋')
+						return
+					}
+					if (this.isEmpty(this.UnintName)) {
+						this.$modal.msg('请输入现住单元')
+						return
+					}
+					if (this.isEmpty(this.RoomName)) {
+						this.$modal.msg('请输入现住号')
+						return
+					}
 					if (this.currentResidentsPhoe.length <= 0) {
 						this.$modal.msg('现住人电话不能为空');
 						return
@@ -1398,7 +1426,10 @@
 						phoneArr.push(list.phone)
 					})
 
-					putRoomDetails(this.FJValue.id, phoneArr.join())
+
+
+					let AddressStr = this.XQValue.name + this.BuildingName + '栋' + this.UnintName + '单元' + this.RoomName + '号';
+					putRoomDetails(this.FJValue.id, phoneArr.join(),AddressStr)
 						.then(res => {
 
 							if (res.code == '200') {
@@ -1424,8 +1455,8 @@
 						phoneArr.push(list.phone)
 					})
 
-					putRoomDetails(this.FJValue.id, phoneArr
-							.join())
+					let AddressStr = this.XQValue.name + this.BuildingName + '栋' + this.UnintName + '单元' + this.RoomName + '号';
+					putRoomDetails(this.FJValue.id, phoneArr.join(),AddressStr)
 						.then(res => {
 
 							if (res.code == '200') {

File diff suppressed because it is too large
+ 573 - 408
pages/open_bolt/open_bolt.vue