miaofuhao 2 anni fa
parent
commit
75b90d1ab6

+ 2 - 2
CallCenterWeb.UI/RMYYAPP/pages/login/login.vue

@@ -116,8 +116,8 @@
116 116
 			},
117 117
 			saveDept(){
118 118
 				pageData.getDet((res, data) => {
119
-					window.localStorage.setItem('deptTreeData',JSON.stringify(res))
120
-					window.localStorage.setItem('deptAllList',JSON.stringify(data))
119
+					uni.setStorageSync('deptTreeData',JSON.stringify(res))
120
+					uni.setStorageSync('deptAllList',JSON.stringify(data))
121 121
 				})
122 122
 			}
123 123
 			

+ 3 - 1
CallCenterWeb.UI/RMYYAPP/pages/myTask/comDispatch/comDispatchDetail/comDispatchDetail.vue

@@ -295,7 +295,9 @@
295 295
 			// 	console.log(data)
296 296
 			// 	this.departList = data
297 297
 			// })
298
-			this.departList = JSON.parse(window.localStorage.getItem('deptAllList'))
298
+			this.departList = JSON.parse(uni.getStorageSync('deptTreeData'))
299
+			
300
+			
299 301
 			pageData.getApplicant('', (res) => {
300 302
 				this.userCodeList = res
301 303
 			})

+ 2 - 2
CallCenterWeb.UI/RMYYAPP/pages/myTask/myTask.vue

@@ -104,8 +104,8 @@
104 104
 			},
105 105
 			saveDept(){
106 106
 				pageData.getDet((res, data) => {
107
-					window.localStorage.setItem('deptTreeData',JSON.stringify(res))
108
-					window.localStorage.setItem('deptAllList',JSON.stringify(data))
107
+					uni.setStorageSync('deptTreeData',JSON.stringify(res))
108
+					uni.setStorageSync('deptAllList',JSON.stringify(data))
109 109
 				})
110 110
 			},
111 111
 			changeStore() {

+ 2 - 1
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/repairDetail/cooperationDetail/cooperationDetail.vue

@@ -100,7 +100,8 @@
100 100
 			// pageData.getDet((res,data) => {
101 101
 			// 	this.deptDataTree = res
102 102
 			// })
103
-			this.departList = JSON.parse(window.localStorage.getItem('deptTreeData'))
103
+			this.departList = JSON.parse(uni.getStorageSync('deptTreeData'))
104
+			
104 105
 			pageData.getGongDanType(3000,(res,data) => {
105 106
 				this.dataOrderType = res
106 107
 			})

+ 0 - 1
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/repairDetail/tranferDetail/tranferDetail.vue

@@ -46,7 +46,6 @@
46 46
 		onLoad(option) {
47 47
 			this.getHosptallist() // 院区
48 48
 			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
49
-			// this.tranformDepartList = JSON.parse(window.localStorage.getItem('deptTreeData'))
50 49
 			pageData.getDet((res,list) => {
51 50
 				this.tranformDepartList = res
52 51
 				//默认-清空

+ 1 - 7
CallCenterWeb.UI/RMYYAPP/pages/myTask/vehicleSchedulList/applicantsList/addVehicle/addVehicle.vue

@@ -43,7 +43,7 @@
43 43
 				<uni-forms-item label="出车地点" name="dispatch">
44 44
 					<uni-data-select v-model="valiFormData.dispatch" field="T_Woname as value, T_Woname as text" :localdata="dispatchTypeData" />
45 45
 				</uni-forms-item>
46
-				<uni-forms-item label="发车时间" required name="usertime">
46
+				<uni-forms-item label="发车时间">
47 47
 					<uni-datetime-picker v-model="valiFormData.usertime" />
48 48
 				</uni-forms-item>
49 49
 				<uni-forms-item label="是否新生儿转运" required name="birth" v-if="typeName.indexOf('新生儿')>=0">
@@ -195,12 +195,6 @@
195 195
 							errorMessage: '请输入送达地点'
196 196
 						}]
197 197
 					},
198
-					usertime: {
199
-						rules: [{
200
-							required: true,
201
-							errorMessage: '请选择发车时间'
202
-						}]
203
-					},
204 198
 					birth: {
205 199
 						rules: [{
206 200
 							required: true,

+ 4 - 4
CallCenterWeb.UI/RMYYAPP/pages/myTask/vehicleSchedulList/components/vehiccleDetail/vehiccleDetail.vue

@@ -136,12 +136,12 @@
136 136
 				orderTypeList: [], // 工单状态
137 137
 			}
138 138
 		},
139
-		async onLoad(optioin) {
139
+		onLoad(optioin) {
140 140
 			// pageData.getDet((res, data) => {
141 141
 			// 	this.departList = data
142
-			// })
143
-			this.departList = JSON.parse(window.localStorage.getItem('deptAllList'))
144
-			await this.getGongDanType()
142
+			// }) 
143
+			this.departList = JSON.parse(uni.getStorageSync('deptTreeData'))
144
+			this.getGongDanType()
145 145
 			this.getFontSizeValue = uni.getStorageSync('fontSizeValue') + 'rem'
146 146
 			this.workorderid = optioin.wid
147 147
 			if (optioin.orderId) {

+ 1 - 1
CallCenterWeb.UI/RMYYAPP/pages/myTask/workOrderDetail/workOrderDetail.vue

@@ -361,7 +361,7 @@
361 361
 			// pageData.getDet((res, data) => {
362 362
 			// 	this.departList = data
363 363
 			// })
364
-			this.departList = JSON.parse(window.localStorage.getItem('deptAllList'))
364
+			this.departList = JSON.parse(uni.getStorageSync('deptTreeData'))
365 365
 			pageData.getApplicant('', (res) => {
366 366
 				this.userCodeList = res
367 367
 			})