zhaomin лет назад: 3
Родитель
Сommit
c24f2009c8

+ 2 - 2
CallCenterWeb.UI/RMYYAPP/config/constData.config.js

@@ -26,7 +26,7 @@ export default {
26 26
 				imagePath: "../../static/icon_repair.png",
27 27
 				imageBg: "#fe940a",
28 28
 				text: "维修工单", //WorkOrder/GetLDDealList
29
-				navigateToUrl: "/pages/myTask/repairList/repairList?segmenter=0&urlIndex=0",
29
+				navigateToUrl: "/pages/myTask/repairList/repairList?segmenter=0",
30 30
 			},
31 31
 			{
32 32
 				id: "13",
@@ -112,7 +112,7 @@ export default {
112 112
 				imagePath: "../../static/icon_repair.png",
113 113
 				imageBg: "#fe940a",
114 114
 				text: "维修工单", //WorkOrder/GetLDDealList
115
-				navigateToUrl: "/pages/myTask/repairList/repairList?segmenter=0&urlIndex=0",
115
+				navigateToUrl: "/pages/myTask/repairList/repairList?segmenter=0",
116 116
 			},
117 117
 			{
118 118
 					id: "13",

+ 1 - 1
CallCenterWeb.UI/RMYYAPP/pages.json

@@ -129,7 +129,7 @@
129 129
             "path" : "pages/myTask/repairList/myRepairOrderList/myRepairOrderList",
130 130
             "style" :                                                                                    
131 131
             {
132
-                "navigationBarTitleText": "我的工单",
132
+                "navigationBarTitleText": "工单列表",
133 133
                 "enablePullDownRefresh": false
134 134
             }
135 135
             

+ 6 - 7
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/addRepair/addRepair.vue

@@ -161,20 +161,19 @@
161 161
 		methods: {
162 162
 			// 工单类别
163 163
 			postSelectData(e) {
164
-				console.log(e)
165 164
 				this.valiFormData.WorkOrderCategory = e
166 165
 			},
167 166
 			// 申请部门
168 167
 			deptNodeclick(e) {
169 168
 				if(e) {
170 169
 					this.departRepair = e.value
170
+					pageData.getApplicant(e.value, (res,data) => {
171
+						this.ApplicantData = res
172
+						this.orderApplicantData = data
173
+					})
174
+					this.valiFormData.Applicantsphone = ''
175
+					this.valiFormData.Phone = ''
171 176
 				}
172
-				pageData.getApplicant(e.value, (res,data) => {
173
-					this.ApplicantData = res
174
-					this.orderApplicantData = data
175
-				})
176
-				this.valiFormData.Applicantsphone = ''
177
-				this.valiFormData.Phone = ''
178 177
 			},
179 178
 			deptclosed() {
180 179
 				this.valiFormData.ApplicationDept = this.departRepair

+ 1 - 13
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/myRepairOrderList/myRepairOrderList.vue

@@ -47,8 +47,7 @@
47 47
 <script>
48 48
 	import pageData from "@/pages/myTask/repairList/addRepair/pageData.js"
49 49
 	const segmenterData = {
50
-		0: ['待处理', '已处理'],
51
-		1: ['待处理', '已处理']
50
+		0: ['待处理', '已处理']
52 51
 	}
53 52
 	const urlData = [
54 53
 		"WorkCommon/GetSubmitList",
@@ -73,17 +72,6 @@
73 72
 				},
74 73
 			}
75 74
 		},
76
-		filters: {
77
-			// 工单状态过滤
78
-			workOrderState(value, options) {
79
-				var resultData = ""
80
-				switch (value + "") {
81
-					case "0":
82
-						break
83
-				}
84
-				return resultData
85
-			},
86
-		},
87 75
 		onLoad(optioin) {
88 76
 			this.urlIndex = optioin.urlIndex
89 77
 			this.init(optioin)

+ 3 - 31
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/repairList.vue

@@ -49,14 +49,10 @@
49 49
 	const segmenterData = {
50 50
 		0: ["待接单", "待完成", "已完成"], // 已办待回访
51 51
 	}
52
-	const urlData = [
53
-		"FaultRepair/MaintenancerList"
54
-	]
55 52
 	export default {
56 53
 		data() {
57 54
 			return {
58 55
 				that: this,
59
-				urlIndex: 0,
60 56
 				departList: [],
61 57
 				listData: [],
62 58
 				paramsData: {},
@@ -71,19 +67,7 @@
71 67
 				},
72 68
 			}
73 69
 		},
74
-		filters: {
75
-			// 工单状态过滤
76
-			workOrderState(value, options) {
77
-				var resultData = ""
78
-				switch (value + "") {
79
-					case "0":
80
-						break
81
-				}
82
-				return resultData
83
-			},
84
-		},
85 70
 		onLoad(optioin) {
86
-			this.urlIndex = optioin.urlIndex
87 71
 			this.init(optioin)
88 72
 			pageData.getDet((res, data) => {
89 73
 				this.departList = data
@@ -101,7 +85,6 @@
101 85
 			init(optioin) {
102 86
 				optioin.page = 1 // 页码
103 87
 				optioin.pagesize = 10 // 条数
104
-				console.log(optioin.segmenter)
105 88
 				if (optioin.segmenter == 0) {
106 89
 					optioin.state = 1
107 90
 				} 
@@ -134,15 +117,13 @@
134 117
 					state: optioin.state == undefined ? "" : optioin.state,
135 118
 					workordercode: optioin.workordercode == undefined ? "" : optioin.workordercode
136 119
 				}
137
-				let url = urlData[this.urlIndex]
138
-				this.$http.get(url, params).then((response) => {
120
+				this.$http.get("FaultRepair/MaintenancerList", params).then((response) => {
139 121
 					if (response.state.toLowerCase() === "success") {
140 122
 						this.listData = response.rows
141 123
 					}
142 124
 				}).catch((e) => {
143 125
 					console.log(e);
144 126
 				})
145
-
146 127
 			},
147 128
 			searchList(e) {
148 129
 				this.resetListData()
@@ -157,21 +138,12 @@
157 138
 
158 139
 			onClickSegmentedControl(e) {
159 140
 				this.resetListData()
160
-				console.log(e.currentIndex)
161 141
 				switch (String(e.currentIndex)) {
162 142
 					case "0":
163
-						if (this.segmenter.type == 1) {
164
-							this.paramsData.state = 2
165
-						} else if (this.segmenter.type == 0) {
166
-							this.paramsData.state = 1
167
-						}
143
+						this.paramsData.state = 1
168 144
 						break
169 145
 					case "1":
170
-						if (this.segmenter.type == 1) {
171
-							this.paramsData.state = 3
172
-						} else if (this.segmenter.type == 0) {
173
-							this.paramsData.state = 2
174
-						}
146
+						this.paramsData.state = 2
175 147
 						break
176 148
 					case "2":
177 149
 						this.paramsData.state = 3