liwei2496 2 years ago
parent
commit
be3f28f630

+ 6 - 10
.idea/workspace.xml

@@ -1,10 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ChangeListManager">
-    <list default="true" id="b14f9fe1-d3c3-496a-8ebb-4789fe400212" name="默认更改列表" comment="">
-      <change beforePath="$PROJECT_DIR$/pages/index/Inspectionrecord/Inspectionrecord.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/index/Inspectionrecord/Inspectionrecord.vue" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/pages/index/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/index/index.vue" afterDir="false" />
-    </list>
+    <list default="true" id="b14f9fe1-d3c3-496a-8ebb-4789fe400212" name="默认更改列表" comment="" />
     <ignored path="$PROJECT_DIR$/.tmp/" />
     <ignored path="$PROJECT_DIR$/temp/" />
     <ignored path="$PROJECT_DIR$/tmp/" />
@@ -38,7 +35,7 @@
         <entry file="file://$PROJECT_DIR$/pages/index/Inspectionrecord/Inspectionrecord.vue">
           <provider selected="true" editor-type-id="text-editor">
             <state relative-caret-position="360">
-              <caret line="222" column="61" lean-forward="true" selection-start-line="222" selection-start-column="61" selection-end-line="222" selection-end-column="61" />
+              <caret line="222" column="28" lean-forward="true" selection-start-line="222" selection-start-column="28" selection-end-line="222" selection-end-column="28" />
               <folding>
                 <element signature="n#style#0;n#view#0;n#view#1;n#view#0;n#template#0;n#!!top" expanded="true" />
                 <element signature="n#style#0;n#span#0;n#view#0;n#view#1;n#view#0;n#template#0;n#!!top" expanded="true" />
@@ -143,7 +140,7 @@
   </component>
   <component name="PropertiesComponent">
     <property name="WebServerToolWindowFactoryState" value="false" />
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/../witcarbonappold" />
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
   </component>
@@ -170,16 +167,15 @@
       <option name="presentableId" value="Default" />
       <updated>1680248385794</updated>
       <workItem from="1680248387431" duration="1978000" />
-      <workItem from="1680571981170" duration="451000" />
+      <workItem from="1680571981170" duration="1053000" />
     </task>
     <servers />
   </component>
   <component name="TimeTrackingManager">
-    <option name="totallyTimeSpent" value="2429000" />
+    <option name="totallyTimeSpent" value="3031000" />
   </component>
   <component name="ToolWindowManager">
     <frame x="1912" y="-8" width="1936" height="1056" extended-state="6" />
-    <editor active="true" />
     <layout>
       <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
@@ -234,7 +230,7 @@
     <entry file="file://$PROJECT_DIR$/pages/index/Inspectionrecord/Inspectionrecord.vue">
       <provider selected="true" editor-type-id="text-editor">
         <state relative-caret-position="360">
-          <caret line="222" column="61" lean-forward="true" selection-start-line="222" selection-start-column="61" selection-end-line="222" selection-end-column="61" />
+          <caret line="222" column="28" lean-forward="true" selection-start-line="222" selection-start-column="28" selection-end-line="222" selection-end-column="28" />
           <folding>
             <element signature="n#style#0;n#view#0;n#view#1;n#view#0;n#template#0;n#!!top" expanded="true" />
             <element signature="n#style#0;n#span#0;n#view#0;n#view#1;n#view#0;n#template#0;n#!!top" expanded="true" />

+ 89 - 37
pages/Workorder/Remotecontrol/Remotecontrol.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
-		<view class="header"></view>
-		<view class="position">
+		
+	<!-- 	<view class="position">
 			<picker mode="multiSelector" @columnchange="bindMultiPickerColumnChange"
 				@change="(val)=>confirmHandle(val,'position')" :range="positionList" style="width:100%;height: 100%;"
 				range-key="orgName">
@@ -9,7 +9,14 @@
 				<view class="uni-input inline positionName">{{name}}</view>
 				<u-icon name="arrow-rightward" class="inline" color="#fff"></u-icon>
 			</picker>
-		</view>
+		</view> -->
+		
+		<u-cell-group>
+			<u-cell :title="mytitle" value="修改" :isLink="true" @click="floorchange">
+				<u-icon slot="icon" size="40" name="map"></u-icon>
+			</u-cell>
+		</u-cell-group>
+		
 		<view class="form">
 			<view class="drawdownMenu">
 				<picker @change="(val)=>confirmHandle(val,'deviceType')" :value="deviceTypeIndex"
@@ -69,11 +76,11 @@
 				</template>
 			</view>
 		</view>
+		
+		<u-picker :show="showfloor" ref="uPicker"  @confirm="confirmfloor" @cancel='cancelfloor'
+					:columns="columns" keyName="orgName" @change="changeHandler"></u-picker>
 	</view>
-	</view>
-
-
-	</view>
+	
 </template>
 
 <script>
@@ -86,10 +93,13 @@
 	export default {
 		data() {
 			return {
+				showfloor:false,
+				showtype: false,
 				modeTypeList: [],
 				modeTypeIndex: 0,
 				temperatureList: [],
 				tempIndex: 0,
+					columns: [],
 				speedTypeList: [],
 				speedTypeIndex: 0,
 				dataForm: {
@@ -100,6 +110,7 @@
 					status: "",
 					controlCategory: "CommonLighting",
 				},
+				mytitle:'',
 				total: 0,
 				refreshing: false,
 				finished: false,
@@ -113,6 +124,7 @@
 					[],
 					[]
 				],
+				columnData:[],
 				deviceType: "AirConditioner",
 				deviceStatus: '',
 				deviceTypeList: [],
@@ -154,7 +166,7 @@
 				
 				if (getDictDataList[i].dictType == 'DeviceCategory') {
 					this.deviceTypeList = getDictDataList[i].dataList;
-					  console.log('7777',this.deviceTypeList)
+					 // console.log('7777',this.deviceTypeList)
 					
 					this.deviceTypeList.forEach((item) => {
 						item.text = item.dictLabel;
@@ -210,34 +222,74 @@
 					return list[0].dictLabel
 				}
 			},
+			
+			floorchange() {
+				this.showfloor = true;
+			},
+			confirmfloor(e) {
+				console.log('222222', e.value)
+				this.mytitle = e.value[0].orgName + e.value[1].orgName;
+				this.dataForm.buildingId = e.value[0].orgId;
+				this.dataForm.storeyId = e.value[1].orgId;
+					
+				this.showfloor = false;
+			this.dataList = []; // 清空数组
+			this.dataForm.page = 1;
+			this.getDataList()
+			},
+			cancelfloor() {
+				this.showfloor = false;
+			},
+			changeHandler(e) {
+				const {
+					columnIndex,
+					index,
+					// 微信小程序无法将picker实例传出来,只能通过ref操作
+					picker = this.$refs.uPicker
+				} = e
+				if (columnIndex === 0) {
+					this.loading = true
+					picker.setColumnValues(1, this.columnData[index])
+					this.loading = false
+				}
+			// this.dataList = []; // 清空数组
+			// this.dataForm.page = 1;
+			// this.getDataList()
+			},
 			//获取楼栋
 			getBuildList() {
-				Api.getBuildInfo().then((res) => {
-					if (res.data.code == 0) {
-						this.name = this.projectName = res.data.data[0].orgName;
-						this.positionList[0] = [];
-						let positionList = res.data.data[0].childrenList;
-						if (positionList) {
-							let json = {
-								category: "s",
-								childrenList: null,
-								orgId: "",
-								orgName: "全部",
-							};
-							for (let i = 0; i < positionList.length; i++) {
-								positionList[i].childrenList.unshift(json);
-								this.positionList[0].push(positionList[i]);
+				this.$api.get('/control/getOrgStructureTree/', {})
+					.then(res => {
+				
+						if (res.data.code == 0) {
+							this.dataForm.projectId = res.data.data[0].orgId;
+				
+							this.mytitle = res.data.data[0].orgName;
+							this.alldata = res.data.data[0].childrenList;
+							//console.log('111111111111111111',  res.data.data[0].childrenList)			
+							this.columns = [
+								res.data.data[0].childrenList,
+								res.data.data[0].childrenList[0].childrenList
+							]
+							let allfloor = [];
+							for (let i = 0; i < res.data.data[0].childrenList.length; i++) {
+								allfloor.push(res.data.data[0].childrenList[i].childrenList)
 							}
-							this.positionList[0].unshift(json);
-							this.positionList[1] = this.positionList[0][0].childrenList;
+							//  console.log('111111111111111111',allfloor)
+							this.columnData = allfloor;
+							this.dataList = []; // 清空数组
+							this.dataForm.page = 1;
+							this.getDataList()
+						} else {
+							this.showdct = true
 						}
-					}
-				});
-			},
-			bindMultiPickerColumnChange(e) {
-				this.positionList[1] = this.positionList[1] = this.positionList[0][e.detail.value].childrenList;
+					})	
 			},
 			
+			
+			
+		
+			
 			setTemperatureList() {
 				this.temperatureList = [];
 				for (let i = 16; i < 33; i++) {
@@ -247,13 +299,13 @@
 			confirmHandle(e, type, deviceId) {
 				this.dataForm.page = 1;
 				if (type == 'position') {
-					this.p1 = e.detail.value[0];
-					this.p2 = e.detail.value[1];
-					this.dataForm.buildingId = this.p1 == 0 ? '' : this.positionList[0][this.p1].orgId;
-					this.dataForm.storeyId = this.p2 == 0 ? "" : this.positionList[1][this.p2].orgId;
-					let buildName = this.p1 == 0 ? "" : '-' + this.positionList[0][this.p1].orgName;
-					let storeyName = this.p2 == 0 ? "" : '-' + this.positionList[1][this.p2].orgName;
-					this.name = this.projectName + buildName + storeyName;
+					// this.p1 = e.detail.value[0];
+					// this.p2 = e.detail.value[1];
+					// this.dataForm.buildingId = this.p1 == 0 ? '' : this.positionList[0][this.p1].orgId;
+					// this.dataForm.storeyId = this.p2 == 0 ? "" : this.positionList[1][this.p2].orgId;
+					// let buildName = this.p1 == 0 ? "" : '-' + this.positionList[0][this.p1].orgName;
+					// let storeyName = this.p2 == 0 ? "" : '-' + this.positionList[1][this.p2].orgName;
+					// this.name = this.projectName + buildName + storeyName;
 				} else {
 					let index = type + "Index";
 					this[index] = e.detail.value;

+ 1 - 1
pages/Workorder/Tenantbill/Tenantbill.vue

@@ -338,7 +338,7 @@
 					picker.setColumnValues(1, this.columnData[index])
 					this.loading = false
 				}
-				this.getalldata();
+			//	this.getalldata();
 			},
 			confirmfloor(e) {
 				console.log('222222', e.value)

+ 6 - 4
pages/Workorder/Workorder.vue

@@ -3,7 +3,8 @@
 		<view class="managelind">
 			<view class="managename" @click="Tenantbill">
 				<view class="managename1">
-					<img :src='src1' alt="">
+					<!-- <img :src='srczuhu' alt=""> -->
+					<u--image  mode="widthFix"  :src="srczuhu" width="48rpx" height="48rpx"></u--image>
 				</view>
 				<view class="managename2">
 					租户账单
@@ -11,7 +12,8 @@
 			</view>
 			<view class="managename" @click="Remotecontrol">
 				<view class="managename1">
-					<img :src='src2' alt="">
+					<!-- <img :src='srcyuanc' alt=""> -->
+						<u--image  mode="widthFix"  :src="srcyuanc" width="48rpx" height="48rpx"></u--image>
 				</view>
 				<view class="managename2">
 					远程管控
@@ -28,8 +30,8 @@
 	export default {
 		data() {
 			return {
-					src1: require('@/static/management/zd.png'),
-					src2: require('@/static/management/yc.png'),
+					srczuhu: require('@/static/management/zd.png'),
+					srcyuanc: require('@/static/management/yc.png'),
 			}
 		},
 		methods: {

+ 2 - 1
pages/index/Workordertodone/Workordertodone.vue

@@ -2,7 +2,7 @@
 	<view class="">
 		
 		<view class="subsection">
-			<u-subsection :list="list" :current="current" @change="sectionChange"></u-subsection>
+			<u-subsection :list="list" fontSize="30rpx" :current="current" @change="sectionChange"></u-subsection>
 		</view>
 		
 
@@ -130,6 +130,7 @@
 //	import { isEmpty, getDictDataList } from "@/utils/index";
 	
 	export default {
+		name:'Workordertodone',
 		data() {
 			return {
 				totalnumber:0,

+ 40 - 22
pages/index/index.vue

@@ -4,16 +4,25 @@
 			<view class="Homepage_suspension">
 				<view class="Suspension">
 					<view class="online" @click="Onlinewarranty">
-						<view><img src="@/static/index/repair-online.svg" alt="" style="margin-left: 5rpx;"></view>
-						<view style="font-size: 20rpx;">线上报修</view>
+						<view>
+							<!-- <img :src="srcxianshang1" alt="" style="margin-left: 5rpx;"> -->
+							<u--image mode="widthFix" :src="srcxianshang1" width="80rpx" height="80rpx"></u--image>
+						</view>
+						<view style="font-size: 30rpx;">线上报修</view>
 					</view>
-					<view class="record" @click="Inspectionrecord">
-						<view><img src="@/static/index/check-review.svg" alt="" style="margin-left: 5rpx;"></view>
-						<view style="font-size: 20rpx;">巡检记录</view>
+					<view class="online" @click="Inspectionrecord">
+						<view>
+							<u--image mode="widthFix" :src="srcxianshang2" width="80rpx" height="80rpx"></u--image>
+
+						</view>
+						<view style="font-size: 30rpx;">巡检记录</view>
 					</view>
-					<view class="withholding" @click="Withholdingrecord">
-						<view><img src="@/static/index/reduce-record.svg" alt="" style="margin-left: 5rpx;"></view>
-						<view style="font-size: 20rpx;">扣缴记录</view>
+					<view class="online" @click="Withholdingrecord">
+						<view>
+
+							<u--image mode="widthFix" :src="srcxianshang3" width="80rpx" height="80rpx"></u--image>
+						</view>
+						<view style="font-size: 30rpx;">扣缴记录</view>
 					</view>
 				</view>
 			</view>
@@ -130,12 +139,14 @@
 		},
 		data() {
 			return {
-				tableList: [
-				],
+				srcxianshang1: require('@/static/index/repair-online.svg'),
+				srcxianshang2: require('@/static/index/check-review.svg'),
+				srcxianshang3: require('@/static/index/reduce-record.svg'),
+				tableList: [],
 				tabbardata: 0,
 				workList: {}, //工单代办
 				deviceArr: {}, //设备异常数据
-			
+
 
 			}
 		},
@@ -151,22 +162,22 @@
 						this.workList = res.data.data.workOrder;
 						this.deviceArr = res.data.data.equip.maps;
 
-					this.tableList=	res.data.data.billPaymentList.map(item => {
+						this.tableList = res.data.data.billPaymentList.map(item => {
 							let json = {};
-							if(item.payType=='Water'){
-								item.payType='水费'
-							}else if(item.payType=='Elec'){
-								item.payType='电费'
-							}else if(item.payType=='PropertyFee'){
-								item.payType='物业费'
+							if (item.payType == 'Water') {
+								item.payType = '水费'
+							} else if (item.payType == 'Elec') {
+								item.payType = '电费'
+							} else if (item.payType == 'PropertyFee') {
+								item.payType = '物业费'
 							}
-							
+
 							json.name = item.payType;
-							json.tenant = item.arrearageNum ;
-							json.arrears = item.arrearageAmount ;
+							json.tenant = item.arrearageNum;
+							json.arrears = item.arrearageAmount;
 							return json
 						})
- 
+
 
 
 
@@ -214,6 +225,13 @@
 		text-decoration: none;
 	}
 
+	.online {
+		display: flex;
+		flex-direction: column;
+		justify-content: center;
+		align-items: center;
+	}
+
 	.Homepage_header {
 		width: 750rpx;
 		height: 200rpx;

+ 11 - 23
pages/login/login.vue

@@ -51,7 +51,7 @@
 	export default {
 		data() {
 			return {
-				isShowPassword: true,
+				isShowPassword: false,
 				account: 'admin',
 				password: 'cx868688',
 				captcha: '',
@@ -107,20 +107,8 @@
 
 							uni.setStorageSync('tokendata', res.data.data.token); //token
 							uni.setStorageSync('Userinformation', formData); //用户信息
-							//获取用户权限功能
-							// 					 this.$api.get('/sys/menu/permissions',{})
-							// 					 .then(res1=>{
-							// 					 	uni.setStorageSync('ButtonPermissions', res1.data.data);//权限列表
-							// 						uni.switchTab({
-							// 							url: '/pages/index/index',
-							// 							success:res=>{},
-							// 							fail:()=>{},
-							// 							complete:()=>{},
-							// 						})
-
-							// 					 })
-
-						
+							
+							//获取用户的信息,如组织架构,个人信息,权限等
 							Promise.all([this.getpermissions(), this.getDictList()]).then(() => {
 
 								uni.switchTab({
@@ -147,7 +135,7 @@
 			},
 
 			getpermissions() {
-				  console.log('权限功能',)
+				console.log('权限功能', )
 				//获取用户权限功能
 				// 					 this.$api.get('/sys/menu/permissions',{})
 				// 					 .then(res1=>{
@@ -156,13 +144,13 @@
 				// 					 })
 			},
 			getDictList() {
-//获取字典列表, 添加并全局变量保存
-									 this.$api.get('/all',{})
-									 .then(res=>{
-										 //  console.log('88888', res.data.data)
-									 	uni.setStorageSync('getDictDataList', res.data.data);
-										
-									 })
+				//获取字典列表, 添加并全局变量保存
+				this.$api.get('/all', {})
+					.then(res => {
+						//  console.log('88888', res.data.data)
+						uni.setStorageSync('getDictDataList', res.data.data);
+
+					})
 			},
 
 

+ 29 - 13
pages/my/Changepassword/Changepassword.vue

@@ -3,15 +3,15 @@
 		<h4>登录密码修改</h4>
 		<view class="xgmy">
 			<u--form labelPosition="left" labelWidth='180' :model="model1" :rules="rules" ref="form1">
-				<u-form-item label="旧登录密码" prop="userInfo.oldpasswoed" borderBottom ref="item1">
-					<u--input v-model="model1.userInfo.oldpasswoed" border="surround"></u--input>
+				<u-form-item label="旧登录密码" prop="userInfo.password" borderBottom ref="item1">
+					<u--input v-model="model1.userInfo.password" border="surround"></u--input>
 				</u-form-item>
-				<u-form-item label="新登录密码" prop="userInfo.mewpasswoed1" borderBottom ref="item1">
-					<u--input v-model="model1.userInfo.mewpasswoed1" border="surround"></u--input>
+				<u-form-item label="新登录密码" prop="userInfo.newPassword" borderBottom ref="item1">
+					<u--input v-model="model1.userInfo.newPassword" border="surround"></u--input>
 				</u-form-item>
 				</u-form-item>
-				<u-form-item label="请再次输入" prop="userInfo.mewpasswoed2" borderBottom ref="item1">
-					<u--input v-model="model1.userInfo.mewpasswoed2" border="surround"></u--input>
+				<u-form-item label="请再次输入" prop="userInfo.confirmPassword" borderBottom ref="item1">
+					<u--input v-model="model1.userInfo.confirmPassword" border="surround"></u--input>
 				</u-form-item>
 			
 			</u--form>
@@ -26,27 +26,33 @@
 	export default {
 		data() {
 			return {
+				 dataForm: {
+				        password: "",
+				        newPassword: "",
+				        confirmPassword: "",
+				      },
+				
 				model1: {
 					userInfo: {
-						oldpasswoed: '',
-						mewpasswoed1: '',
-						mewpasswoed2: '',
+						password: '',
+						newPassword: '',
+						confirmPassword: '',
 					},
 				},
 				rules: {
-					'userInfo.oldpasswoed': {
+					'userInfo.password': {
 						type: 'string',
 						required: true,
 						message: '请填写旧登录密码',
 						trigger: ['blur', 'change']
 					},
-					'userInfo.mewpasswoed1': {
+					'userInfo.newPassword': {
 						type: 'string',
 						required: true,
 						message: '请填写新登录密码',
 						trigger: ['blur', 'change']
 					},
-					'userInfo.mewpasswoed2': {
+					'userInfo.confirmPassword': {
 						type: 'string',
 						required: true,
 						message: '请填写新登录密码',
@@ -65,10 +71,20 @@
 		methods: {
 			submit() {
 				this.$refs.form1.validate().then(res => {
-					if(this.model1.userInfo.mewpasswoed1!=this.model1.userInfo.mewpasswoed2){
+					if(this.model1.userInfo.newPassword!=this.model1.userInfo.confirmPassword){
 						uni.$u.toast('您的新密码不一致,请重新输入')
 					}else{
 						uni.$u.toast('校验通过')
+						
+						  console.log('111111111111111111',this.model1.userInfo)
+						this.$api.get('/user/password',this.model1.userInfo)
+						.then(res=>{
+						
+						uni.navigateTo({
+							url: '/pages/login/login'
+						})
+						
+						})
 					}
 					
 				}).catch(errors => {

+ 2 - 0
pages/my/my.vue

@@ -206,9 +206,11 @@
 				switch (uni.getSystemInfoSync().platform) {
 					case 'android':
 						plus.runtime.quit();
+												
 						break;
 					case 'ios':
 						plus.ios.import('UIApplication').sharedApplication().performSelector('exit');
+						
 						break;
 				}
 			},

+ 3 - 1
uni.scss

@@ -19,7 +19,9 @@
 		background-color: #fff;
 		border-radius: 9rpx;
 	}
-
+.u-subsection--button{
+	height: 80rpx;
+}
 
 
 /* 颜色变量 */

File diff suppressed because it is too large
+ 6 - 6
unpackage/cache/wgt/__UNI__FF40C0C/app-service.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/cache/wgt/__UNI__FF40C0C/app-view.js


File diff suppressed because it is too large
+ 6 - 6
unpackage/dist/build/app-plus/app-service.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/app-plus/app-view.js