Parcourir la source

3期部分改版

zhnghongrui il y a 1 an
Parent
commit
73bc2614bb

+ 3 - 3
components/bottomSheet/bottomSheet.vue

@@ -32,12 +32,12 @@
 									<view class="tit-text">施工时间:</view>{{value.createTime}}
 								</view>
 							</view>
-							<view v-if="title=='立杠'||title=='表后管'||title=='挂表'||title=='阀管'||title=='报警器切断阀'">
+							<view v-if="title=='立杠'||title=='表后管'||title=='挂表'||title=='阀管'||title=='报警器'||title=='切断阀'">
 								<view class="uni-media-list-text-top" v-show="title=='阀管'">
 									<view class="tit-text">上门类型:</view>{{value.zEngineeringMaterialBo[0].visitType}}
 								</view>
 								<view class="uni-media-list-text-top" v-show="title=='阀管'">
-									<view class="tit-text">自闭阀类型:</view>
+									<view class="tit-text">自闭阀厂家:</view>
 									{{value.zEngineeringMaterialBo[0].selfClosingValveType}}
 								</view>
 								<view class="uni-media-list-text-top" v-show="title=='立杠'||title=='表后管'||title=='阀管'">
@@ -51,7 +51,7 @@
 								<view class="uni-media-list-text-top" v-show="title=='挂表'">
 									<view class="tit-text">品牌:</view>{{value.zEngineeringMaterialBo[0].brand}}
 								</view>
-								<view class="uni-media-list-text-top" v-show="title=='报警器切断阀'">
+								<view class="uni-media-list-text-top" v-show="title=='报警器'||title=='切断阀'">
 									<view class="tit-text">厂家:</view>{{value.zEngineeringMaterialBo[0].brand}}
 								</view>
 								<view class="uni-media-list-text-top" v-show="title=='立杠'||title=='表后管'||title=='阀管'">

+ 2 - 2
config.js

@@ -1,10 +1,10 @@
 // 应用全局配置
 module.exports = {
 
-	baseUrl: 'https://www.xcx.cczdsz.cn/prod-api',
+	//baseUrl: 'https://www.xcx.cczdsz.cn/prod-api',
 	// baseUrl: 'http://192.168.4.6:8080',
 	// baseUrl: 'http://192.168.4.20:8080',
-	//baseUrl: 'http://192.168.4.11:8080',
+	baseUrl: 'http://192.168.4.11:8080',
 	// baseUrl: 'http://192.168.4.14:8089',
 	baseIconUrl: 'https://www.xcx.cczdsz.cn/app/images/',
 	// 应用信息

+ 19 - 17
pages/login.vue

@@ -23,13 +23,13 @@
 				</view>
 				<input v-model="loginForm.password" type="password" class="input" placeholder="密码" maxlength="20" />
 			</view>
-			<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
+		<!-- 	<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
 				<view class="iconfont icon-code icon"></view>
 				<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
 				<view class="login-code">
 					<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
 				</view>
-			</view>
+			</view> -->
 			<view class="action-btn">
 				<button @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">登录</button>
 			</view>
@@ -53,8 +53,8 @@
 				register: false,
 				globalConfig: getApp().globalData.config,
 				loginForm: {
-					username: "",
-					password: "",
+					username: "admin",
+					password: "admin123",
 					code: "",
 					uuid: '',
 					type: 'app'
@@ -62,29 +62,31 @@
 			}
 		},
 		created() {
-			this.getCode()
+			//this.getCode()
 		},
 		methods: {
 
 			// 获取图形验证码
-			getCode() {
-				getCodeImg().then(res => {
-					this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled
-					if (this.captchaEnabled) {
-						this.codeUrl = 'data:image/gif;base64,' + res.data.img
-						this.loginForm.uuid = res.data.uuid
-					}
-				})
-			},
+			// getCode() {
+			// 	getCodeImg().then(res => {
+			// 		this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled
+			// 		if (this.captchaEnabled) {
+			// 			this.codeUrl = 'data:image/gif;base64,' + res.data.img
+			// 			this.loginForm.uuid = res.data.uuid
+			// 		}
+			// 	})
+			// },
 			// 登录方法
 			async handleLogin() {
 				if (this.loginForm.username === "") {
 					this.$modal.msgError("请输入您的账号")
 				} else if (this.loginForm.password === "") {
 					this.$modal.msgError("请输入您的密码")
-				} else if (this.loginForm.code === "" && this.captchaEnabled) {
-					this.$modal.msgError("请输入验证码")
-				} else {
+				} 
+				// else if (this.loginForm.code === "" && this.captchaEnabled) {
+				// 	this.$modal.msgError("请输入验证码")
+				// } 
+				else {
 					this.$modal.loading("登录中,请耐心等待...")
 					this.pwdLogin()
 				}

+ 38 - 6
pages/oldrenovation/courtyard/courtyard.vue

@@ -128,11 +128,13 @@
 								<text>米 数</text>
 								<!-- style="margin-left: 10px;text-align: right;" -->
 								<view style="display: flex; justify-content: right; width: 70%;">
-								<input class="uni-input" type="number" v-model="a.sl.inputIntegerNumberValue" maxlength="6"
-									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
-								<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
-								<input class="uni-input" type="number" v-model="a.sl.inputDecimalNumberValue" maxlength="1"
-									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+									<input class="uni-input" type="number" v-model="a.sl.inputIntegerNumberValue"
+										maxlength="6"
+										style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+									<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
+									<input class="uni-input" type="number" v-model="a.sl.inputDecimalNumberValue"
+										maxlength="1"
+										style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
 								</view>
 							</view>
 							<button v-if="index!=0" @click="this.czggslList.splice(index,1)" class="sc-btn">删除</button>
@@ -143,7 +145,30 @@
 						}})" class="tj-btn">添加</button>
 
 					</view>
-
+					<view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
+						<view class="container" style="color: #b2b2b2;">*请上传管道施工记录照片</view>
+						<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
+							<image :src="loadImgSrc('updateimg.png')" mode=""
+								style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('gdsgjl')"
+								v-show="reviewStatus!='1'"></image>
+							<view v-for="(item,index) in imgPipelineArr" :key="index" style="position: relative;">
+								<view
+									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
+									<image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
+										@click="showPhoto(index,'gdsgjl')">
+									</image>
+								</view>
+								<view v-else>
+									<video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
+								</view>
+								<view @click="remove(index,'gdsgjl')"
+									style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+									<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
+									</image>
+								</view>
+							</view>
+						</view>
+					</view>
 					<view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
 						<view class="container" style="color: #b2b2b2;">*请上传管上皮深度测量照片</view>
 						<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
@@ -283,6 +308,7 @@
 					dictOptions: [],
 					imgArr: [],
 					imgGuanArr: [],
+					imgPipelineArr: [],
 					videoArr: [],
 					XQValue: {},
 					XZQValue: {},
@@ -396,6 +422,8 @@
 					let typeArr = [];
 					if (type == 'gspsdcl') {
 						typeArr = this.imgGuanArr;
+					} else if (type == 'gdsgjl') {
+						typeArr = this.imgPipelineArr;
 					} else {
 						typeArr = this.imgArr;
 					}
@@ -424,6 +452,8 @@
 									this.imgGuanArr.splice(index, 1)
 								} else if (type == 'ggyj') {
 									this.imgArr.splice(index, 1)
+								} else if (type == 'gdsgjl') {
+									this.imgPipelineArr.slice(index, 1)
 								}
 
 
@@ -466,6 +496,8 @@
 													_this.imgArr.push(data.data.url)
 												} else if (e == 'gspsdcl') {
 													_this.imgGuanArr.push(data.data.url)
+												} else if (e == 'gdsgjl') {
+													_this.imgPipelineArr.push(data.data.url)
 												}
 
 												_this.$modal.msg('上传成功!')

+ 158 - 45
pages/oldrenovation/indoor/indoor.vue

@@ -83,29 +83,99 @@
 							<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
 						</view>
 					</view>
+
+
+					<view v-for="(user,index) in currentResidentsPhoe" :key="index" class="num-style">
+
+
+
+
+						<view class="container" style="border-bottom: 1px solid #f8f8f8;">
+							<spane>现住人电话</spane>
+							<view style="display: flex; justify-content: flex-end; ">
+								<input class="uni-input" type="tel" v-model="user.phone" maxlength="11"
+									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
+
+							</view>
+						</view>
+						<button v-if="index!=0" @click="this.currentResidentsPhoe.splice(index,1)"
+							class="sc-btn">删除</button>
+					</view>
+					<button @click="this.currentResidentsPhoe.push({phone:''})" class="tj-btn">添加</button>
+
 				</view>
-				<!-- <view class="container" style="">
+			</view>
+
+
+			<SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
+				subtitleKey="id" v-model="name"></SelectPicker>
+
+
+			<SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
+				titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
+			</view>
+
+			<view class="background">
 
-					<view class="title">是否按照施工图纸施工</view>
-					<span style="color: black;">{{this.form}}</span>
-					<switch style="transform: scale(0.6,0.6);" @change="switchChange" checked="isChick" />
 
-				</view> -->
+				<view>
 
-				<SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
-					subtitleKey="id" v-model="name"></SelectPicker>
+					<view
+						style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
+						户主信息
 
+						<image v-if="change==false" src="../../../static/images/icon_open.png" @click='change1'
+							style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
+						</image>
+						<image v-if="change==true" src="../../../static/images/icon_close.png" @click='change1'
+							style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
+						</image>
+					</view>
+				</view>
+				<view v-show="change">
+					<view class="uni-list">
+						<view class="container" style="border-bottom: 1px solid #f8f8f8;">
+							<view class="uni-list-cell-left">
+								户主姓名
+							</view>
+							<view class="uni-list-cell-db" style="margin-top: 10;">
+								<span style="color: darkgray;" v-model="houseHeadName">{{houseHeadName}}</span>
+							</view>
+
+						</view>
+					</view>
+					<view class="uni-list">
+						<view class="container" style="border-bottom: 1px solid #f8f8f8;">
+							<view class="uni-list-cell-left">
+								户主电话
+							</view>
+							<view class="uni-list-cell-db" style="margin-top: 10;">
+								<span style="color: darkgray;" v-model="houseHeadPhone">{{houseHeadPhone}}</span>
+							</view>
+
+						</view>
+					</view>
+					<view class="uni-list">
+						<view class="container" style="border-bottom: 1px solid #f8f8f8;">
+							<view class="uni-list-cell-left">
+								户主身份证号码
+							</view>
+							<view class="uni-list-cell-db" style="margin-top: 10;">
+								<span style="color: darkgray;"
+									v-model="houseHeadIDcardNumber">{{houseHeadIDcardNumber}}</span>
+							</view>
 
-				<SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
-					titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
+						</view>
+					</view>
+				</view>
 			</view>
 			<!--报警器切断阀-->
 			<view class="background">
-				<view v-if="objValue.enginClassValue=='报警器切断阀'">
+				<view v-if="objValue.enginClassValue=='报警器'||objValue.enginClassValue=='切断阀'">
 					<view class="uni-list">
 						<view
 							style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
-							报警器切断阀
+							{{objValue.enginClassValue}}
 
 							<span
 								style="color: blue;font-size: 14px;  display: flex;justify-content:flex-end; margin-right: 10px;"
@@ -231,11 +301,11 @@
 							<text>米 数</text>
 							<!-- style="margin-left: 10px;text-align: right;" -->
 							<view style="display: flex; justify-content: right; width: 70%;">
-							<input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
-								style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
-							<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
-							<input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
-								style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+								<input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
+									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+								<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
+								<input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
+									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
 							</view>
 						</view>
 					</view>
@@ -315,13 +385,13 @@
 							<text>米 数</text>
 							<!-- style="margin-left: 10px;text-align: right;" -->
 							<view style="display: flex; justify-content: right; width: 70%;">
-							<input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
-								style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
-							<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
-							<input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
-								style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+								<input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
+									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+								<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
+								<input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
+									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
 							</view>
-								
+
 						</view>
 					</view>
 				</view>
@@ -354,11 +424,11 @@
 						<view class="container" style="border-bottom: 1px solid #f8f8f8;">
 
 							<view>
-								自闭阀类型
+								自闭阀厂家
 							</view>
 							<view v-if="this.isEmpty(this.SelfClosValve.dictValue)" style="margin-top: 10;"
 								@click="pickerShow('zbf')">
-								<span style="color: darkgray;">请选择自闭阀类型</span>
+								<span style="color: darkgray;">请选择自闭阀厂家</span>
 								<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
 							</view>
 							<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('zbf')">
@@ -369,11 +439,11 @@
 						<view class="container" style="border-bottom: 1px solid #f8f8f8;">
 
 							<view>
-								材 质
+								灶具管厂家
 							</view>
 							<view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;"
 								@click="pickerShow('cz')">
-								<span style="color: darkgray;">请选择材质</span>
+								<span style="color: darkgray;">请选择灶具管厂家</span>
 								<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
 							</view>
 							<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
@@ -396,17 +466,16 @@
 								<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
 							</view>
 						</view>
-						<view class="container" style="border-bottom: 1px solid #f8f8f8;">
+						<!-- 	<view class="container" style="border-bottom: 1px solid #f8f8f8;">
 							<text>米 数</text>
-							<!-- style="margin-left: 10px;text-align: right;" -->
 							<view style="display: flex; justify-content: right; width: 70%;">
-							<input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
-								style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
-							<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
-							<input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
-								style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+								<input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
+									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+								<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
+								<input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
+									style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
 							</view>
-						</view>
+						</view> -->
 					</view>
 				</view>
 				<view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
@@ -481,7 +550,11 @@
 					headers: {
 						Authorization: "Bearer " + getToken()
 					},
+					houseHeadName: '',
+					houseHeadPhone: '',
+					houseHeadIDcardNumber: '',
 					type: '',
+					change: false,
 					open: false,
 					reviewStatus: '', //是否可以点击
 					objValue: '', //上一页面传过来的值  新增接口用
@@ -494,6 +567,9 @@
 					projectValue: {
 						'dictValue': '0'
 					},
+					currentResidentsPhoe: [{
+						phone: ''
+					}],
 					LevelValue: {},
 					LDValue: {},
 					DYValue: {},
@@ -552,6 +628,10 @@
 
 				},
 
+				change1() {
+					this.change = !this.change
+				},
+
 				// 显示历史弹窗
 				handleShowSheet() {
 					this.shareState = true;
@@ -729,8 +809,11 @@
 
 					} else if (e == 'gg') { //规格
 						if (this.isEmpty(this.materialValue.id)) {
-							this.$modal.msg('请选择材质')
-
+							if (this.objValue.enginClassValue == '阀管') {
+								this.$modal.msg('请选择灶具管厂家')
+							} else {
+								this.$modal.msg('请选择材质')
+							}
 						} else {
 							this.open = true;
 							this.selectList = this.materialList;
@@ -802,6 +885,7 @@
 
 						} else {
 							this.open = true;
+
 							this.selectList = this.FJList;
 						}
 					}
@@ -861,6 +945,9 @@
 						})
 					} else if (this.type == 'gg') {
 						this.specificationValue = item;
+						var onlyNumbers = item.name.replace(/[^\d.]/g, '');
+
+						console.log(onlyNumbers); // 输出: "123456"
 
 					} else if (this.type == 'xq') {
 						this.XQValue = item;
@@ -888,7 +975,9 @@
 						})
 					} else if (this.type == 'fj') {
 						this.FJValue = item;
-
+						this.houseHeadName = 'dda';
+						this.houseHeadPhone = '125';
+						this.houseHeadIDcardNumber = '335';
 						if (!this.isEmpty(this.projectValue.dictValue)) {
 
 							//房间选完 判断 工程周期
@@ -951,17 +1040,40 @@
 
 					if (this.isEmpty(this.projectValue.dictValue)) {
 						this.$modal.msg("请选择工程周期")
-					} else if (this.isEmpty(this.XZQValue.dictValue)) {
+						return
+					}
+					if (this.isEmpty(this.XZQValue.dictValue)) {
 						this.$modal.msg("请选择行政区")
-					} else if (this.isEmpty(this.XQValue.id)) {
+						return
+					}
+					if (this.isEmpty(this.XQValue.id)) {
 						this.$modal.msg("请选择小区")
-					} else if (this.isEmpty(this.LDValue.id)) {
+						return
+					}
+					if (this.isEmpty(this.LDValue.id)) {
 						this.$modal.msg("请选择楼栋")
-					} else if (this.isEmpty(this.DYValue.id)) {
+						return
+					}
+					if (this.isEmpty(this.DYValue.id)) {
 						this.$modal.msg("请选择单元")
-					} else if (this.isEmpty(this.FJValue.id)) {
+						return
+					}
+					if (this.isEmpty(this.FJValue.id)) {
 						this.$modal.msg("请选择房间")
-					} else if (this.objValue.enginClassValue == '报警器切断阀') {
+						return
+					}
+
+					try {
+						this.currentResidentsPhoe.forEach((list) => {
+							if (this.isEmpty(list.phone)) {
+								this.$modal.msg('现住人电话不能为空')
+								throw new Error('End Loop')
+							}
+						})
+					} catch (e) {
+						if (e.message === 'End Loop') throw e
+					}
+					if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue == '切断阀') {
 						if (this.isEmpty(this.brandValue.dictValue)) {
 							this.$modal.msg("请选择厂家")
 						} else {
@@ -1079,7 +1191,7 @@
 						if (this.isEmpty(this.doorValue.dictValue)) {
 							this.$modal.msg("请选择上门类型")
 						} else if (this.isEmpty(this.SelfClosValve.dictValue)) {
-							this.$modal.msg("请选择自闭阀类型")
+							this.$modal.msg("请选择自闭阀厂家")
 						} else if (this.isEmpty(this.materialValue.id)) {
 							this.$modal.msg("请选择材质")
 						} else if (this.isEmpty(this.specificationValue.id)) {
@@ -1134,7 +1246,8 @@
 
 							}
 							//this.onsubmit(param)
-						} else if (this.objValue.enginClassValue == '报警器切断阀') { //报警器切断阀
+						} else if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue ==
+							'切断阀') { //报警器切断阀
 							param = {
 								district: this.XZQValue.dictValue,
 								areaId: this.XQValue.id,

BIN
static/images/icon_close.png


BIN
static/images/icon_open.png