liuzhihui 2 vuotta sitten
vanhempi
commit
cbf90033b8

+ 3 - 3
CallCenterWeb.UI/RMYY/src/components/button/orderList.vue

@@ -94,7 +94,7 @@
94 94
         </el-form-item>
95 95
         <el-row>
96 96
           <el-form-item label="维修人" prop="tousercode">
97
-            <el-select v-model="transferForm.tousercode" filterable placeholder="请选择维修人" style="width: 68%"
97
+            <el-select v-model="transferForm.tousercode" clearable filterable placeholder="请选择维修人" style="width: 68%"
98 98
               @change="changeRepairman">
99 99
               <el-option v-for="item in repairman" :key="item.usercode" :label="item.username+'('+item.count+')'"
100 100
                 :value="item.usercode" />
@@ -116,7 +116,7 @@
116 116
         </el-form-item>
117 117
         <el-row>
118 118
           <el-form-item label="指派人">
119
-            <el-select v-model="zhddtransferForm.DealMan" filterable placeholder="请选择指派人" style="width: 68%"
119
+            <el-select v-model="zhddtransferForm.DealMan" clearable filterable placeholder="请选择指派人" style="width: 68%"
120 120
               @change="changezhddRepairman">
121 121
               <el-option v-for="item in zhddrepairman" :key="item.usercode" :label="item.username+'('+item.count+')'"
122 122
                 :value="item.usercode" />
@@ -411,7 +411,7 @@
411 411
         </el-form-item>
412 412
         <el-row>
413 413
           <el-form-item label="指派人">
414
-            <el-select v-model="dispatchtransferForm.DealMan" filterable placeholder="请选择指派人" style="width: 68%"
414
+            <el-select v-model="dispatchtransferForm.DealMan" clearable filterable placeholder="请选择指派人" style="width: 68%"
415 415
               @change="changedispatchRepairman">
416 416
               <el-option v-for="item in dispatchrepairman" :key="item.usercode" :label="item.username+'('+item.count+')'"
417 417
                 :value="item.usercode" />

+ 1 - 1
CallCenterWeb.UI/RMYY/src/components/workOrder/dispatching/addOrEditDispatch.vue

@@ -575,11 +575,11 @@
575 575
           const data = res.data
576 576
           this.ruleForm.ApplicationDept = data.F_DeptId
577 577
           this.deptidArr = this.$store.getters.deptmap[parseInt(data.F_DeptId)].ids
578
-          this.getAuto()
579 578
           this.getRepairman(data.F_DeptId, 0)
580 579
           this.ruleForm.Applicant = data.F_UserCode
581 580
           this.ruleForm.phone = data.F_Telephone
582 581
           this.ruleForm.position = data.F_Location
582
+          this.getAuto()
583 583
           // this.ruleForm.toplace = data.F_Location
584 584
         })      
585 585
       },

+ 6 - 6
CallCenterWeb.UI/RMYY/src/components/workOrder/repairbase/addRepairbase.vue

@@ -232,11 +232,11 @@
232 232
             message: '请输入报修内容',
233 233
             trigger: 'blur'
234 234
           }],
235
-          F_DeviceEncode: [{
236
-            required: true,
237
-            message: '请输入设备资产编码',
238
-            trigger: 'blur'
239
-          }],
235
+          // F_DeviceEncode: [{
236
+          //   required: true,
237
+          //   message: '请输入设备资产编码',
238
+          //   trigger: 'blur'
239
+          // }],
240 240
           repairAddress: [{
241 241
             required: true,
242 242
             message: '请输入报修地点',
@@ -371,12 +371,12 @@
371 371
           const data = res.data
372 372
           this.ruleForm.repairDeptid = data.F_DeptId
373 373
           this.deptidArr = this.$store.getters.deptmap[parseInt(data.F_DeptId)].ids
374
-          this.getAuto()
375 374
           this.getRepairman(data.F_DeptId, 0)
376 375
           this.ruleForm.repairmanid = data.F_UserCode
377 376
           this.ruleForm.repairmanphone = data.F_Telephone
378 377
           this.ruleForm.repairmanCallNumber = data.F_Telephone
379 378
           this.ruleForm.repairAddress = data.F_Location
379
+          this.getAuto()
380 380
         })
381 381
       },
382 382
       // 部门

+ 5 - 5
CallCenterWeb.UI/RMYY/src/views/faultRepairManagement/addRepairbase/index.vue

@@ -200,11 +200,11 @@
200 200
             message: '请输入报修地点',
201 201
             trigger: 'blur'
202 202
           }],
203
-          F_DeviceEncode: [{
204
-            required: true,
205
-            message: '请输入设备资产编码',
206
-            trigger: 'blur'
207
-          }]
203
+          // F_DeviceEncode: [{
204
+          //   required: true,
205
+          //   message: '请输入设备资产编码',
206
+          //   trigger: 'blur'
207
+          // }]
208 208
         }
209 209
       }
210 210
     },

+ 21 - 1
CallCenterWeb.UI/RMYY/src/views/faultRepairManagement/repairList/index.vue

@@ -798,7 +798,7 @@
798 798
             <el-radio label="0">否</el-radio>
799 799
             <el-radio label="1">是</el-radio>
800 800
           </el-radio-group>
801
-          <el-select
801
+          <!-- <el-select
802 802
             v-if="doneForm.IsInvolvedEquip == '1'"
803 803
             filterable
804 804
             v-model="equilist"
@@ -816,6 +816,26 @@
816 816
               :label="item.F_EquipName + '(' + item.F_EquipNumber + ')'"
817 817
               :value="item.F_EquipID"
818 818
             />
819
+          </el-select> -->
820
+        </el-form-item>
821
+        <el-form-item v-if="doneForm.IsInvolvedEquip == '1'" label="耗材信息">
822
+          <el-select
823
+            filterable
824
+            v-model="equilist"
825
+            placeholder="请选择耗材"
826
+            size="medium"
827
+            multiple
828
+            collapse-tags
829
+            clearable
830
+            style="width: 100%"
831
+            @change="equiChange"
832
+          >
833
+            <el-option
834
+              v-for="(item, index) in equiArr"
835
+              :key="index"
836
+              :label="item.F_EquipName + '(' + item.F_EquipNumber + ')'"
837
+              :value="item.F_EquipID"
838
+            />
819 839
           </el-select>
820 840
         </el-form-item>
821 841
         <el-form-item v-if="doneForm.type == '0' && equilist.length > 0">

+ 1 - 1
CallCenterWeb.UI/RMYY/src/views/orderManage/components/orderDetail.vue

@@ -65,7 +65,7 @@
65 65
               </tr>
66 66
               <tr>
67 67
                 <th>挂起时间:</th>
68
-                <td>{{ orderDetailData.F_ExceptFinishTime }}</td>
68
+                <td colspan="5">{{ orderDetailData.F_ExceptFinishTime }}</td>
69 69
               </tr>
70 70
               <tr v-if="shebeibm == true">
71 71
                 <th>设备资产编码:</th>

+ 9 - 8
CallCenterWeb.UI/RMYYAPP/pages/components/orderSelect/orderSelect.vue

@@ -60,14 +60,15 @@
60 60
 				this.identification = this.$mHelper.getIdentification(this.orderList,data.value)
61 61
 				// console.log(this.identification )
62 62
 				// console.log(data, 'data')
63
-				this.$http.get("GongDanType/GetModule", {mId:data.value}).then((response) => {
64
-					if (response.state.toLowerCase() === "success") {
65
-						if(response.data.autodept!=''){
66
-							this.autoData = JSON.parse(response.data.autodept)
67
-				            this.$emit('post-select-data',data.value,data.id,data.orderType,this.identification, data.text,this.autoData)
68
-						}
69
-					}
70
-				})
63
+				this.$emit('post-select-data',data.value,data.id,data.orderType,this.identification, data.text)
64
+				// this.$http.get("GongDanType/GetModule", {mId:data.value}).then((response) => {
65
+				// 	if (response.state.toLowerCase() === "success") {
66
+				// 		if(response.data.autodept!=''){
67
+				// 			this.autoData = JSON.parse(response.data.autodept)
68
+				//             this.$emit('post-select-data',data.value,data.id,data.orderType,identification, data.text,this.autoData)
69
+				// 		}
70
+				// 	}
71
+				// })
71 72
 			},
72 73
 			popupclosed() {
73 74
 				this.WorkOrderCategory = this.order

+ 0 - 3
CallCenterWeb.UI/RMYYAPP/pages/login/login.vue

@@ -116,9 +116,6 @@
116 116
 			},
117 117
 			saveDept(){
118 118
 				pageData.getDet((res, data) => {
119
-					// this.departList = data
120
-					// this.deptDataTree = res
121
-					// this.assignedDepartData = res
122 119
 					window.localStorage.setItem('deptTreeData',JSON.stringify(res))
123 120
 					window.localStorage.setItem('deptAllList',JSON.stringify(data))
124 121
 				})

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

@@ -44,6 +44,7 @@
44 44
 	import { mapGetters } from "vuex"
45 45
 	import store from '@/store';
46 46
 	import { getToken } from '@/utils/auth'
47
+	import pageData from '../myTask/repairList/addRepair/pageData.js'
47 48
 	export default {
48 49
 		data() {
49 50
 			return {
@@ -63,6 +64,7 @@
63 64
 		},
64 65
 		onLoad() {
65 66
 			this.init()
67
+			this.saveDept()
66 68
 			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
67 69
 			// this.getFontSizeValue = '1.5rem'
68 70
 			if(uni.getStorageSync("roleCode") === "APRY"){
@@ -100,7 +102,12 @@
100 102
 				// 	//this.noticListData = this.$mConstDataConfig.noticListData
101 103
 				// }
102 104
 			},
103
-			
105
+			saveDept(){
106
+				pageData.getDet((res, data) => {
107
+					window.localStorage.setItem('deptTreeData',JSON.stringify(res))
108
+					window.localStorage.setItem('deptAllList',JSON.stringify(data))
109
+				})
110
+			},
104 111
 			changeStore() {
105 112
 				this.$mStore.dispatch("STATE", 3)
106 113
 			},

+ 34 - 33
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/addRepair/addRepair.vue

@@ -8,7 +8,7 @@
8 8
 					<order-select :orderType="valiFormData.WorkOrderCategory" @post-select-data="postSelectData"
9 9
 						:typeid="3000"></order-select>
10 10
 				</uni-forms-item>
11
-				<uni-forms-item label="设备资产编码" required name="epCode" v-show="showsb==true">
11
+				<uni-forms-item label="设备资产编码" name="epCode" v-show="showsb==true">
12 12
 					<uni-easyinput v-model="valiFormData.epCode" placeholder="请输入设备资产编码" />
13 13
 				</uni-forms-item>
14 14
 				<uni-forms-item label="报修内容" required name="Content">
@@ -196,23 +196,23 @@
196 196
 				this.isShowIsEnd = true
197 197
 				if (uni.getStorageSync("roleCode") == 'WXY') {
198 198
 					this.readonly = true
199
-					// this.valiFormData.MaintenanceDept = uni.getStorageSync("deptId")
200
-					// pageData.getPersonByDeptId(uni.getStorageSync("deptId"), (res, data, candidates) => {
201
-						// this.candidates = candidates
202
-						// this.candidatesDesignate = candidates
203
-						// this.MaintenancerData = res
204
-						// this.ApplicantData = res
205
-						// this.orderApplicantData = data
206
-						// this.valiFormData.Applicant = uni.getStorageSync("userCode")
207
-						// this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData, uni.getStorageSync("userCode"))
208
-						// const user = this.orderApplicantData.find((o) => {
209
-						// 	return o.usercode === this.valiFormData.Applicant.toString()
210
-						// })
211
-						// if (user) {
212
-						// 	this.valiFormData.Phone = user.usertelphone
213
-						// }
214
-						// this.getLocation(this.valiFormData.Applicant)
215
-					// })
199
+					this.valiFormData.MaintenanceDept = uni.getStorageSync("deptId")
200
+					pageData.getPersonByDeptId(uni.getStorageSync("deptId"), (res, data, candidates) => {
201
+						this.candidates = candidates
202
+						this.candidatesDesignate = candidates
203
+						this.MaintenancerData = res
204
+						this.ApplicantData = res
205
+						this.orderApplicantData = data
206
+						this.valiFormData.Applicant = uni.getStorageSync("userCode")
207
+						this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData, uni.getStorageSync("userCode"))
208
+						const user = this.orderApplicantData.find((o) => {
209
+							return o.usercode === this.valiFormData.Applicant.toString()
210
+						})
211
+						if (user) {
212
+							this.valiFormData.Phone = user.usertelphone
213
+						}
214
+						this.getLocation(this.valiFormData.Applicant)
215
+					})
216 216
 				}
217 217
 			}
218 218
 			this.workorderid = option.wid
@@ -231,8 +231,8 @@
231 231
 				console.log(this.$mHelper.findParents(this.departList, this.valiFormData.ApplicationDept))
232 232
 				this.valiFormData.ApplicationDept = this.$mHelper.findParents(this.departList, this.valiFormData
233 233
 					.ApplicationDept).split('/').length + '_' + this.valiFormData.ApplicationDept
234
-				// this.valiFormData.MaintenanceDept = this.$mHelper.findParents(this.departList, this.valiFormData
235
-				// 	.MaintenanceDept).split('/').length + '_' + this.valiFormData.MaintenanceDept
234
+				this.valiFormData.MaintenanceDept = this.$mHelper.findParents(this.departList, this.valiFormData
235
+					.MaintenanceDept).split('/').length + '_' + this.valiFormData.MaintenanceDept
236 236
 			}
237 237
 		},
238 238
 		methods: {
@@ -259,14 +259,14 @@
259 259
 				return id
260 260
 			},
261 261
 			// 工单类别
262
-			postSelectData(e, inf, orderType, biaoshi, text, auto) {
263
-				this.valiFormData.MaintenanceDept = ''
264
-				this.candidatesDesignate = []
265
-				this.MaintenancerData = []
266
-				this.valiFormData.Maintenancer = ''
267
-				this.valiFormData.MaintenancerName = ''
268
-				this.auto = auto
269
-				console.log(this.auto,'88888888899999999')
262
+			postSelectData(e, inf, orderType, biaoshi, text) {
263
+				// this.valiFormData.MaintenanceDept = ''
264
+				// this.candidatesDesignate = []
265
+				// this.MaintenancerData = []
266
+				// this.valiFormData.Maintenancer = ''
267
+				// this.valiFormData.MaintenancerName = ''
268
+				// this.auto = auto
269
+				console.log(e, inf, orderType, biaoshi, text)
270 270
 				if (biaoshi.indexOf('gzbx_sb') >= 0) {
271 271
 					this.showsb = true
272 272
 				} else {
@@ -276,9 +276,9 @@
276 276
 					this.orderInf = inf
277 277
 				}
278 278
 				this.valiFormData.WorkOrderCategory = e
279
-				if(this.auto){					
280
-				    this.getAuto()
281
-				}
279
+				// if(this.auto){					
280
+				//     this.getAuto()
281
+				// }
282 282
 			},
283 283
 			getAuto(){
284 284
 				//清空
@@ -342,7 +342,7 @@
342 342
 					this.valiFormData.ApplicantName = ''
343 343
 					this.valiFormData.Phone = ''
344 344
 					this.getDeptLocation(e.value.split('_')[1])
345
-					this.getAuto()
345
+					// this.getAuto()
346 346
 				}
347 347
 			},
348 348
 			//科室位置
@@ -392,7 +392,8 @@
392 392
 			handleZP(res) {
393 393
 				console.log(res)
394 394
 				this.valiFormData.MaintenancerName = res
395
-				this.valiFormData.Maintenancer = this.$mHelper.getValueByText(res, this.MaintenancerData)
395
+				// this.valiFormData.Maintenancer = this.$mHelper.getValueByText(res, this.MaintenancerData)
396
+				this.valiFormData.Maintenancer = this.$mHelper.getValueByText(res, this.ApplicantData)
396 397
 				console.log(this.valiFormData.Maintenancer)
397 398
 			},
398 399
 			// 工单提交

+ 5 - 5
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/repairDetail/finishDetail/finishDetail.vue

@@ -13,21 +13,21 @@
13 13
 					<uni-data-select v-model="valiFormData.exceptionType" :localdata="exceptionTypeList">
14 14
 					</uni-data-select>
15 15
 				</uni-forms-item>
16
-				<uni-forms-item label="是否涉及设备" name="isEquipment" v-show="valiFormData.finishType == 0">
16
+				<uni-forms-item label="是否涉及耗材" name="isEquipment" v-show="valiFormData.finishType == 0">
17 17
 					<uni-data-checkbox v-model="valiFormData.isEquipment" :localdata="equipments" />
18 18
 				</uni-forms-item>
19
-				<uni-forms-item label="设备信息" name="equipmentid" v-show="valiFormData.isEquipment == 1 && valiFormData.finishType == 0">
19
+				<uni-forms-item label="耗材信息" name="equipmentid" v-show="valiFormData.isEquipment == 1 && valiFormData.finishType == 0">
20 20
 					<luyj-select-lay :value="valiFormData.equipmentid" lay-omit name="name" :options="equipmentList" :zindex="1" slabel='text' @selectitem="selectitem">
21 21
 					</luyj-select-lay>
22 22
 				</uni-forms-item>
23 23
 				<table class="equipmentInfo" v-show="equipmentCon.length>0 && valiFormData.finishType == 0">
24 24
 					<thead style="background-color: #fafafa;">
25 25
 						<tr class="trCon">
26
-							<td class="tdCon">设备</td>
27
-							<td class="tdCon">型号</td>
26
+							<td class="tdCon">耗材名称</td>
27
+							<td class="tdCon">规格型号</td>
28 28
 							<td class="tdCon">单价</td>
29 29
 							<td class="tdCon">数量</td>
30
-							<td class="tdCon">价</td>
30
+							<td class="tdCon">价</td>
31 31
 						</tr>
32 32
 					</thead>
33 33
 					<tbody>