zhaomin 3 yıl önce
ebeveyn
işleme
61a16bc4d6

+ 56 - 0
CallCenterWeb.UI/RMYYAPP/config/buttons.config.js

220
 		text: "编辑",
220
 		text: "编辑",
221
 		annotation:	"编辑",
221
 		annotation:	"编辑",
222
 		eventName: "dispatchEditBtn"
222
 		eventName: "dispatchEditBtn"
223
+	},
224
+	'ywzx_cuidan': {
225
+		id: 28,
226
+		text: "催办",
227
+		annotation:	"催办",
228
+		eventName: "urgeMyBtn"
229
+	},
230
+	'zhdd_cuidan': {
231
+		id: 29,
232
+		text: "催办",
233
+		annotation:	"催办",
234
+		eventName: "urgeMyBtn"
235
+	},
236
+	'gzbx_cuidan': {
237
+		id: 30,
238
+		text: "催办",
239
+		annotation:	"催办",
240
+		eventName: "urgeMyBtn"
241
+	},
242
+	'cldu_cuidan': {
243
+		id: 31,
244
+		text: "催办",
245
+		annotation:	"催办",
246
+		eventName: "urgeMyBtn"
247
+	},
248
+	
249
+	'ywzx_cuidanOL': {
250
+		id: 32,
251
+		text: "催办",
252
+		annotation:	"催办",
253
+		eventName: "urgeOLBtn"
254
+	},
255
+	'zhdd_cuidanOL': {
256
+		id: 33,
257
+		text: "催办",
258
+		annotation:	"催办",
259
+		eventName: "urgeOLBtn"
260
+	},
261
+	'gzbx_cuidanOL': {
262
+		id: 34,
263
+		text: "催办",
264
+		annotation:	"催办",
265
+		eventName: "urgeOLBtn"
266
+	},
267
+	'cldu_cuidanOL': {
268
+		id: 35,
269
+		text: "催办",
270
+		annotation:	"催办",
271
+		eventName: "urgeOLBtn"
272
+	},
273
+	'yw_shanchu': {
274
+		id: 36,
275
+		text: "删除",
276
+		annotation:	"删除",
277
+		eventName: "delYWBtn"
278
+		
223
 	}
279
 	}
224
 }
280
 }

+ 1 - 63
CallCenterWeb.UI/RMYYAPP/config/constData.config.js

120
 				text: "申请人列表", //WorkOrder/GetLDDealList
120
 				text: "申请人列表", //WorkOrder/GetLDDealList
121
 				navigateToUrl: "/pages/myTask/vehicleSchedulList/vehicleSchedulList?segmenter=1",
121
 				navigateToUrl: "/pages/myTask/vehicleSchedulList/vehicleSchedulList?segmenter=1",
122
 			}
122
 			}
123
-			// {
124
-			// 	id: "2",
125
-			// 	imagePath: "../../static/icon_leasing.png",
126
-			// 	imageBg: "#ff7451",
127
-			// 	text: "设备租赁", //WorkOrder/GetDWDealList
128
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=2&tab=7&state=&stingText=局委延时审核",
129
-			// },
130
-			// {
131
-			// 	id: "3",
132
-			// 	imagePath: "../../static/material_transfer.png",
133
-			// 	imageBg: "#1ccd8d",
134
-			// 	text: "物资转移", //WorkOrder/GetLDDealList
135
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=3&tab=0&state=6&segmenter=0&db=0&tobereply=1&stingText=已办待审核",
136
-			// },
137
-			// {
138
-			// 	id: "4",
139
-			// 	imagePath: "../../static/icon_bedTranshipment.png",
140
-			// 	imageBg: "#1ccd8d",
141
-			// 	text: "病床转移", //WorkOrder/GetLDDealList
142
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=1&tab=11&state=6&segmenter=0&db=0&tobereply=1&stingText=退回重办审核",
143
-			// },
144
-			// {
145
-			// 	id: "5",
146
-			// 	imagePath: "../../static/icon_prescription.png",
147
-			// 	imageBg: "#7068e2",
148
-			// 	text: "红处方配送", //WorkOrder/GetZXDealList
149
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=3&tab=0&state=7&tobereply=1&db=0&segmenter=0&stingText=已办待回访",
150
-			// },
151
-			// {
152
-			// 	id: "6",
153
-			// 	imagePath: "../../static/icon_else.png",
154
-			// 	imageBg: "#f26564",
155
-			// 	text: "其他配送", //WorkOrder/GetLDDealList
156
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=1&tab=1&state=&displayCallContent=1&stingText=正在办理",
157
-			// },
158
-			// {
159
-			// 	id: "7",
160
-			// 	imagePath: "../../static/icon_specimens.png",
161
-			// 	imageBg: "#1ccd8d",
162
-			// 	text: "急诊标本配送", //WorkOrder/GetList
163
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=0&tab=&stingText=工单查询",
164
-			// },
165
-			// {
166
-			// 	id: "8",
167
-			// 	imagePath: "../../static/icon_blood.png",
168
-			// 	imageBg: "#f26564",
169
-			// 	text: "血液制品配送", //WorkOrder/GetList
170
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=0&tab=&state=6&segmenter=1&isproresult=1&stingText=已办未果",
171
-			// },
172
-			// {
173
-			// 	id: "9",
174
-			// 	imagePath: "../../static/icon_serve.png",
175
-			// 	imageBg: "#f26564",
176
-			// 	text: "陪检服务", //WorkOrder/GetList
177
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=0&tab=&state=6&segmenter=1&isproresult=1&stingText=已办未果",
178
-			// },
179
-			// {
180
-			// 	id: "10",
181
-			// 	imagePath: "../../static/icon_takeBlood.png",
182
-			// 	imageBg: "#1ccd8d",
183
-			// 	text: "血站取血", //WorkOrder/GetLDDealList
184
-			// 	navigateToUrl: "/pages/workOrderList/workOrderList?workOrderListType=1&tab=5&state=&stingText=已办结",
185
-			// },
123
+			
186
 			
124
 			
187
 		],
125
 		],
188
 		// 维修员
126
 		// 维修员

+ 3 - 4
CallCenterWeb.UI/RMYYAPP/manifest.json

20
         "modules" : {
20
         "modules" : {
21
             "LivePusher" : {},
21
             "LivePusher" : {},
22
             "VideoPlayer" : {},
22
             "VideoPlayer" : {},
23
-            "Messaging" : {}
23
+            "Messaging" : {},
24
+            "Push" : {}
24
         },
25
         },
25
         /* 应用发布信息 */
26
         /* 应用发布信息 */
26
         "distribute" : {
27
         "distribute" : {
58
             /* SDK配置 */
59
             /* SDK配置 */
59
             "sdkConfigs" : {
60
             "sdkConfigs" : {
60
                 "ad" : {},
61
                 "ad" : {},
61
-                "push" : {
62
-                    "unipush" : {}
63
-                }
62
+                "push" : {}
64
             },
63
             },
65
             "icons" : {
64
             "icons" : {
66
                 "android" : {
65
                 "android" : {

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

77
 						
77
 						
78
 						console.log(uni.getStorageSync("deptName"))
78
 						console.log(uni.getStorageSync("deptName"))
79
 						const code = uni.getStorageSync("roleCode");
79
 						const code = uni.getStorageSync("roleCode");
80
-						if(code == 'GLY' || code == 'WXY' || code == 'BXY' || code == 'DDZX' || code == 'CK_GLY'  || code == 'GQY' || code == 'SJ') {
80
+						if(code == 'GLY' || code == 'WXY' || code == 'BXY' || code == 'DDZX' || code == 'jcgn'  || code == 'GQY' || code == 'SJ') {
81
 							uni.switchTab({
81
 							uni.switchTab({
82
 								url: '/pages/myTask/myTask'
82
 								url: '/pages/myTask/myTask'
83
 							});
83
 							});

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

28
 						<uni-icons type="plus" size="30" color="#007aff" @click="plusClck()"></uni-icons>
28
 						<uni-icons type="plus" size="30" color="#007aff" @click="plusClck()"></uni-icons>
29
 						<uni-icons type="minus" size="30" color="#007aff" @click="minusClck()"></uni-icons>
29
 						<uni-icons type="minus" size="30" color="#007aff" @click="minusClck()"></uni-icons>
30
 					</view>
30
 					</view>
31
-					<view style="width: 100%;" v-for="(item, index) in dicList">
31
+					<view style="width: 100%;height: 50px;" v-for="(item, index) in dicList">
32
 						<view class="dicSelect">
32
 						<view class="dicSelect">
33
 							<dictionaries-select :flag="flag[flaginfo]" :valInfo="index" :val="item.F_DicId + ','+ item.F_DicName"
33
 							<dictionaries-select :flag="flag[flaginfo]" :valInfo="index" :val="item.F_DicId + ','+ item.F_DicName"
34
 								@post-select-dic="postSelectDic"></dictionaries-select>
34
 								@post-select-dic="postSelectDic"></dictionaries-select>
168
 			if(this.workorderid) {
168
 			if(this.workorderid) {
169
 				this.getDetail()
169
 				this.getDetail()
170
 			}
170
 			}
171
+			window.scrollTo(0,0)
171
 		},
172
 		},
172
 		methods: {
173
 		methods: {
173
 			// 工单类别
174
 			// 工单类别
183
 				}else{
184
 				}else{
184
 					this.dicList = []
185
 					this.dicList = []
185
 				}
186
 				}
186
-				
187
 			},
187
 			},
188
 			// 综合调度信息
188
 			// 综合调度信息
189
 			postSelectDic(e, index) {
189
 			postSelectDic(e, index) {

+ 1 - 0
CallCenterWeb.UI/RMYYAPP/pages/myTask/comDispatch/applicantList/applicantList.vue

33
 								<view class="uni-note">申请时间:{{item.F_CreateTime}}</view>
33
 								<view class="uni-note">申请时间:{{item.F_CreateTime}}</view>
34
 							</view>
34
 							</view>
35
 							<view class="textState">{{ item.StateName}}</view>
35
 							<view class="textState">{{ item.StateName}}</view>
36
+							<view class="textState" style="right: 75px;" v-show="item.F_UrgeCount>0">催办 {{item.F_UrgeCount}}</view>
36
 						</view>
37
 						</view>
37
 					</template>
38
 					</template>
38
 				</uni-list-item>
39
 				</uni-list-item>

+ 30 - 6
CallCenterWeb.UI/RMYYAPP/pages/myTask/comDispatch/comDispatchDetail/comDispatchDetail.vue

146
 				active: 1,
146
 				active: 1,
147
 				current: 0,
147
 				current: 0,
148
 				workorderid: "", // 工单id
148
 				workorderid: "", // 工单id
149
+				sms_id: '', // 消息id
149
 				tap: '', //工单切换
150
 				tap: '', //工单切换
150
 				roleCode: "", //角色
151
 				roleCode: "", //角色
151
 				departList: [], //部门数据
152
 				departList: [], //部门数据
177
 		},
178
 		},
178
 		onLoad(optioin) {
179
 		onLoad(optioin) {
179
 			this.workorderid = optioin.wid
180
 			this.workorderid = optioin.wid
181
+			this.sms_id = optioin.sms_id
180
 			this.getGongDanType()
182
 			this.getGongDanType()
181
 			this.getDetail(0)
183
 			this.getDetail(0)
182
 			this.getDetail(1)
184
 			this.getDetail(1)
183
-			JSON.parse(optioin.buttons).forEach(v => {
184
-				let btn = this.$mButtonConfig[v.key];
185
-				if (btn != undefined) {
186
-					this.orderButtonData.push(btn);
187
-				}
188
-			})
185
+			if(this.sms_id) {
186
+				this.getButtons()
187
+			}else if(optioin.buttons) {
188
+				JSON.parse(optioin.buttons).forEach(v => {
189
+					let btn = this.$mButtonConfig[v.key];
190
+					if (btn != undefined) {
191
+						this.orderButtonData.push(btn);
192
+					}
193
+				})
194
+			}
189
 			pageData.getDet((res, data) => {
195
 			pageData.getDet((res, data) => {
190
 				console.log(data)
196
 				console.log(data)
191
 				this.departList = data
197
 				this.departList = data
199
 			this.roleCode = uni.getStorageSync("roleCode")
205
 			this.roleCode = uni.getStorageSync("roleCode")
200
 		},
206
 		},
201
 		methods: {
207
 		methods: {
208
+			getButtons() {
209
+				this.orderButtonData = []
210
+				const params = {
211
+					SMS_Id: this.sms_id
212
+				}
213
+				this.$http.get("InternalMessages/GetButtons",params).then((res)=>{
214
+					if(res.state.toLowerCase() ==="success"){
215
+						res.rows[0].Buttons.forEach(v => {
216
+							this.orderButtonData.push({
217
+								annotation: v.value,
218
+								eventName: v.key,
219
+								id: v.id,
220
+								text: v.value
221
+							})
222
+						})
223
+					}
224
+				})
225
+			},
202
 			getGongDanType(){
226
 			getGongDanType(){
203
 				let dataOrderType = []
227
 				let dataOrderType = []
204
 				const params = {
228
 				const params = {

+ 9 - 3
CallCenterWeb.UI/RMYYAPP/pages/myTask/consultList/consultDetail/consultDetail.vue

172
 			}
172
 			}
173
 		},
173
 		},
174
 		onLoad(optioin) {
174
 		onLoad(optioin) {
175
-			console.log(optioin)
176
 			this.workorderid = optioin.wid
175
 			this.workorderid = optioin.wid
177
 			this.sms_id = optioin.sms_id
176
 			this.sms_id = optioin.sms_id
178
 			this.getGongDanType()
177
 			this.getGongDanType()
198
 			this.segmenter.type = 0
197
 			this.segmenter.type = 0
199
 			this.segmenter.items = segmenterData[0]
198
 			this.segmenter.items = segmenterData[0]
200
 			this.roleCode = uni.getStorageSync("roleCode")
199
 			this.roleCode = uni.getStorageSync("roleCode")
201
-			this.getButtons()
202
 		},
200
 		},
203
 		methods: {
201
 		methods: {
204
 			getButtons() {
202
 			getButtons() {
203
+				this.orderButtonData = []
205
 				const params = {
204
 				const params = {
206
 					SMS_Id: this.sms_id
205
 					SMS_Id: this.sms_id
207
 				}
206
 				}
208
 				this.$http.get("InternalMessages/GetButtons",params).then((res)=>{
207
 				this.$http.get("InternalMessages/GetButtons",params).then((res)=>{
209
 					if(res.state.toLowerCase() ==="success"){
208
 					if(res.state.toLowerCase() ==="success"){
210
-						this.orderButtonData = res.rows[0].Buttons
209
+						res.rows[0].Buttons.forEach(v => {
210
+							this.orderButtonData.push({
211
+								annotation: v.value,
212
+								eventName: v.key,
213
+								id: v.id,
214
+								text: v.value
215
+							})
216
+						})
211
 					}
217
 					}
212
 				})
218
 				})
213
 			},
219
 			},

+ 16 - 14
CallCenterWeb.UI/RMYYAPP/pages/myTask/consultList/consultList.vue

33
 								<!-- <view class="uni-note">上报地点:{{item.F_PlaceOfRepair}}</view> -->
33
 								<!-- <view class="uni-note">上报地点:{{item.F_PlaceOfRepair}}</view> -->
34
 							</view>
34
 							</view>
35
 							<view class="textState">{{ item.StateName}}</view>
35
 							<view class="textState">{{ item.StateName}}</view>
36
+							<view class="textState" style="right: 75px;" v-show="item.F_UrgeCount>0">催办 {{item.F_UrgeCount}}</view>
36
 						</view>
37
 						</view>
37
 					</template>
38
 					</template>
38
 				</uni-list-item>
39
 				</uni-list-item>
119
 				})
120
 				})
120
 			},
121
 			},
121
 			getList(optioin) {
122
 			getList(optioin) {
122
-				const params = {
123
-					page: optioin.page,
124
-					pagesize: optioin.pagesize,
125
-					type:1000,
126
-					state: optioin.state == undefined ? "" : optioin.state,
127
-					workordercode: optioin.workordercode == undefined ? "" : optioin.workordercode
128
-				}
129
-				this.$http.get('WorkCommon/GetSubmitList', params).then((response) => {
130
-					if (response.state.toLowerCase() === "success") {
131
-						this.listData = response.rows
132
-						this.loadMoreState = 'no-more'
123
+				this.$mHelper.getOrderId('1000', (id) => {
124
+					const params = {
125
+						page: optioin.page,
126
+						pagesize: optioin.pagesize,
127
+						type:id,
128
+						state: optioin.state == undefined ? "" : optioin.state,
129
+						workordercode: optioin.workordercode == undefined ? "" : optioin.workordercode
133
 					}
130
 					}
134
-				}).catch((e) => {
135
-					console.log(e);
131
+					this.$http.get('WorkCommon/GetSubmitList', params).then((response) => {
132
+						if (response.state.toLowerCase() === "success") {
133
+							this.listData = response.rows
134
+							this.loadMoreState = 'no-more'
135
+						}
136
+					}).catch((e) => {
137
+						console.log(e);
138
+					})
136
 				})
139
 				})
137
-
138
 			},
140
 			},
139
 			searchList(e) {
141
 			searchList(e) {
140
 				this.resetListData()
142
 				this.resetListData()

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

156
 				}else if(code === "SJ" ){
156
 				}else if(code === "SJ" ){
157
 					this.orderListData = this.$mConstDataConfig.roleListData.driverList
157
 					this.orderListData = this.$mConstDataConfig.roleListData.driverList
158
 				}else {
158
 				}else {
159
-					this.orderListData = this.$mConstDataConfig.roleListData.administratorList 
159
+					this.orderListData = this.$mConstDataConfig.roleListData.applyRepairList 
160
 				} 
160
 				} 
161
 			},
161
 			},
162
 		},
162
 		},

+ 17 - 15
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/myRepairOrderList/myRepairOrderList.vue

33
 								<!-- <view class="uni-note">上报地点:{{item.F_PlaceOfRepair}}</view> -->
33
 								<!-- <view class="uni-note">上报地点:{{item.F_PlaceOfRepair}}</view> -->
34
 							</view>
34
 							</view>
35
 							<view class="textState">{{ item.StateName}}</view>
35
 							<view class="textState">{{ item.StateName}}</view>
36
+							<view class="textState" style="right: 75px;" v-show="item.F_UrgeCount>0">催办 {{item.F_UrgeCount}}</view>
36
 						</view>
37
 						</view>
37
 					</template>
38
 					</template>
38
 				</uni-list-item>
39
 				</uni-list-item>
115
 				})
116
 				})
116
 			},
117
 			},
117
 			getList(optioin) {
118
 			getList(optioin) {
118
-				const params = {
119
-					page: optioin.page,
120
-					pagesize: optioin.pagesize,
121
-					type: 3000,
122
-					state: optioin.state == undefined ? "" : optioin.state,
123
-					workordercode: optioin.workordercode == undefined ? "" : optioin.workordercode
124
-				}
125
-				let url = urlData[this.urlIndex]
126
-				this.$http.get(url, params).then((response) => {
127
-					if (response.state.toLowerCase() === "success") {
128
-						this.listData = response.rows
129
-						this.loadMoreState = 'no-more'
119
+				this.$mHelper.getOrderId('3000', (id) => {
120
+					const params = {
121
+						page: optioin.page,
122
+						pagesize: optioin.pagesize,
123
+						type: id,
124
+						state: optioin.state == undefined ? "" : optioin.state,
125
+						workordercode: optioin.workordercode == undefined ? "" : optioin.workordercode
130
 					}
126
 					}
131
-				}).catch((e) => {
132
-					console.log(e);
127
+					let url = urlData[this.urlIndex]
128
+					this.$http.get(url, params).then((response) => {
129
+						if (response.state.toLowerCase() === "success") {
130
+							this.listData = response.rows
131
+							this.loadMoreState = 'no-more'
132
+						}
133
+					}).catch((e) => {
134
+						console.log(e);
135
+					})
133
 				})
136
 				})
134
-
135
 			},
137
 			},
136
 			searchList(e) {
138
 			searchList(e) {
137
 				this.resetListData()
139
 				this.resetListData()

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

33
 								<view class="uni-note">上报地点:{{item.F_PlaceOfRepair}}</view>
33
 								<view class="uni-note">上报地点:{{item.F_PlaceOfRepair}}</view>
34
 							</view>
34
 							</view>
35
 							<view class="textState">{{ item.StateName}}</view>
35
 							<view class="textState">{{ item.StateName}}</view>
36
+							<view class="textState" style="right: 75px;" v-show="item.F_UrgeCount>0">催办 {{item.F_UrgeCount}}</view>
36
 						</view>
37
 						</view>
37
 					</template>
38
 					</template>
38
 				</uni-list-item>
39
 				</uni-list-item>

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

21
 							<view class="uni-note">申请时间:{{item.F_CreateTime}}</view>
21
 							<view class="uni-note">申请时间:{{item.F_CreateTime}}</view>
22
 						</view>
22
 						</view>
23
 						<view class="textState">{{item.StateName}}</view>
23
 						<view class="textState">{{item.StateName}}</view>
24
+						<view class="textState" style="right: 75px;" v-show="item.F_UrgeCount>0">催办 {{item.F_UrgeCount}}</view>
24
 					</view>
25
 					</view>
25
 				</template>
26
 				</template>
26
 			</uni-list-item>
27
 			</uni-list-item>

+ 1 - 0
CallCenterWeb.UI/RMYYAPP/pages/myTask/vehicleSchedulList/driverList/driverList.vue

25
 							<view class="uni-note">时间:{{item.F_CreateTime}}</view>
25
 							<view class="uni-note">时间:{{item.F_CreateTime}}</view>
26
 						</view>
26
 						</view>
27
 						<view class="textState">{{item.StateName}}</view>
27
 						<view class="textState">{{item.StateName}}</view>
28
+						<view class="textState" style="right: 75px;" v-show="item.F_UrgeCount>0">催办 {{item.F_UrgeCount}}</view>
28
 					</view>
29
 					</view>
29
 				</template>
30
 				</template>
30
 			</uni-list-item>
31
 			</uni-list-item>

+ 48 - 5
CallCenterWeb.UI/RMYYAPP/pages/myTask/workOrderDetail/button/button.vue

93
 			},
93
 			},
94
 			// 工单撤回
94
 			// 工单撤回
95
 			orderReuturnBtn() {
95
 			orderReuturnBtn() {
96
-				this.confirmationAPI("FaultRepair/Retract", "信息", "是否要撤回工单", "取消了撤回")
96
+				this.title = '撤回'
97
+				this.cbreason = ''
98
+				this.auditPlaceholder = '请输入要撤回原因'
99
+				this.$refs.inputDialog.open()
97
 			},
100
 			},
98
 			// 工单退回
101
 			// 工单退回
99
 			orderBackBtn() {
102
 			orderBackBtn() {
100
-				this.confirmationAPI("FaultRepair/ReBack", "信息", "是否要退回工单", "取消了退回")
103
+				this.title = '退回'
104
+				this.cbreason = ''
105
+				this.auditPlaceholder = '请输入要退回原因'
106
+				this.$refs.inputDialog.open()
101
 			},
107
 			},
102
 			// 工单编辑
108
 			// 工单编辑
103
 			editBtn() {
109
 			editBtn() {
110
 				this.confirmationAPI("FaultRepair/DeleteWorkOrder", "删除", "是否要删除", "取消了删除")
116
 				this.confirmationAPI("FaultRepair/DeleteWorkOrder", "删除", "是否要删除", "取消了删除")
111
 			},
117
 			},
112
 			debtn() {
118
 			debtn() {
113
-				this.confirmationAPI("FaultRepair/DeleteWorkOrder", "删除", "是否要删除", "取消了删除")
119
+				this.confirmationAPI("Scheduling/DeleteSchedulingWorkOrder", "删除", "是否要删除", "取消了删除")
114
 			},
120
 			},
115
 			/**
121
 			/**
116
 			* 我的提交(工单)(按钮)
122
 			* 我的提交(工单)(按钮)
138
 			},
144
 			},
139
 			// 撤回
145
 			// 撤回
140
 			returnBtn() {
146
 			returnBtn() {
141
-				this.confirmationAPI("FaultRepair/MyRetract", "信息", "是否要撤回", "取消了撤回")
147
+				this.title = '撤回'
148
+				this.cbreason = ''
149
+				this.auditPlaceholder = '请输入撤回原因'
150
+				this.$refs.inputDialog.open()
142
 			},
151
 			},
143
 			// 编辑撤回
152
 			// 编辑撤回
144
 			returnEditBtn() {
153
 			returnEditBtn() {
299
 			destinationBtn(){
308
 			destinationBtn(){
300
 				this.confirmationAPI("T_Car_WorkOrder/EndCar", "信息", "是否抵达目的地", "取消了")
309
 				this.confirmationAPI("T_Car_WorkOrder/EndCar", "信息", "是否抵达目的地", "取消了")
301
 			},
310
 			},
311
+			// 催办调度中心
312
+			urgeMyBtn() {
313
+				this.cbreason = ''
314
+				this.auditPlaceholder = '请输入催办原因'
315
+				this.$refs.inputDialog.open()
316
+			},
317
+			// 催办申请人
318
+			urgeOLBtn() {
319
+				this.cbreason = ''
320
+				this.auditPlaceholder = '请输入要催办原因'
321
+				this.$refs.inputDialog.open()
322
+			},
302
 			// 车辆调度 ( 按钮结束 )
323
 			// 车辆调度 ( 按钮结束 )
303
 			// 审核通过确认框
324
 			// 审核通过确认框
304
 			dialogInputConfirm() {
325
 			dialogInputConfirm() {
326
 				}else if(this.auditPlaceholder === '请输入返工原因') {
347
 				}else if(this.auditPlaceholder === '请输入返工原因') {
327
 					const addParams = {ReturnReason: this.cbreason,WorkOrderCode: this.wid}
348
 					const addParams = {ReturnReason: this.cbreason,WorkOrderCode: this.wid}
328
 					this.workOrderContent("FaultRepair/ReturnWorkOrder ",addParams)
349
 					this.workOrderContent("FaultRepair/ReturnWorkOrder ",addParams)
350
+				}else if(this.auditPlaceholder === '请输入要退回原因') {
351
+					// 调度中心
352
+					const addParams = {BackReason: this.cbreason,WorkOrderCode: this.wid}
353
+					this.workOrderContent("FaultRepair/ReBack",addParams)
354
+				}else if(this.auditPlaceholder === '请输入要撤回原因') {
355
+					// 调度中心
356
+					const addParams = {BackReason: this.cbreason,workordercode: this.wid}
357
+					this.workOrderContent("FaultRepair/Retract",addParams)
358
+				}
359
+				else if(this.auditPlaceholder === '请输入撤回原因') {
360
+					// 申请人
361
+					const addParams = {BackReason: this.cbreason,workordercode: this.wid}
362
+					this.workOrderContent("FaultRepair/MyRetract",addParams)
363
+				}
364
+				else if(this.auditPlaceholder === '请输入催办原因') {
365
+					// 调度中心
366
+					const addParams = {reason: this.cbreason,workordercode: this.wid,urgetype:2}
367
+					this.workOrderContent("WorkCommon/UrgeWorkOrder",addParams)
368
+				}
369
+				else if(this.auditPlaceholder === '请输入要催办原因') {
370
+					// 申请人
371
+					const addParams = {reason: this.cbreason,workordercode: this.wid,urgetype:1}
372
+					this.workOrderContent("WorkCommon/UrgeWorkOrder",addParams)
329
 				}
373
 				}
330
 				this.$refs.inputDialog.close()
374
 				this.$refs.inputDialog.close()
331
 			},
375
 			},
354
 							} else{
398
 							} else{
355
 								params.workordercode = this.wid
399
 								params.workordercode = this.wid
356
 							}
400
 							}
357
-							
358
 							this.$mHelper.httpPost(url,params,1,res=>this.disabledButton=res)
401
 							this.$mHelper.httpPost(url,params,1,res=>this.disabledButton=res)
359
 						} else if (res.cancel) {
402
 						} else if (res.cancel) {
360
 							this.disabledButton = false
403
 							this.disabledButton = false

+ 30 - 7
CallCenterWeb.UI/RMYYAPP/pages/myTask/workOrderDetail/workOrderDetail.vue

243
 				active: 1,
243
 				active: 1,
244
 				current: 0,
244
 				current: 0,
245
 				workorderid: "", // 工单id
245
 				workorderid: "", // 工单id
246
+				sms_id: '', // 消息id
246
 				tap: '', //工单切换
247
 				tap: '', //工单切换
247
 				roleCode: "", //角色
248
 				roleCode: "", //角色
248
 				departList: [], //部门数据
249
 				departList: [], //部门数据
278
 		},
279
 		},
279
 		onLoad(optioin) {
280
 		onLoad(optioin) {
280
 			this.workorderid = optioin.wid
281
 			this.workorderid = optioin.wid
282
+			this.sms_id = optioin.sms_id
281
 			this.getDetail(0)
283
 			this.getDetail(0)
282
 			this.getDetail(3)
284
 			this.getDetail(3)
283
 			this.getDetail(1)
285
 			this.getDetail(1)
284
 			this.getDetail(4)
286
 			this.getDetail(4)
285
-			console.log(this.$mHelper.stateComm(3))
286
-			JSON.parse(optioin.buttons).forEach(v => {
287
-				let btn = this.$mButtonConfig[v.key];
288
-				if (btn != undefined) {
289
-					this.orderButtonData.push(btn);
290
-				}
291
-			})
287
+			if(this.sms_id) {
288
+				this.getButtons()
289
+			}else if(optioin.buttons) {
290
+				JSON.parse(optioin.buttons).forEach(v => {
291
+					let btn = this.$mButtonConfig[v.key];
292
+					if (btn != undefined) {
293
+						this.orderButtonData.push(btn);
294
+					}
295
+				})
296
+			}
292
 			pageData.getDet((res, data) => {
297
 			pageData.getDet((res, data) => {
293
 				this.departList = data
298
 				this.departList = data
294
 			})
299
 			})
306
 			this.roleCode = uni.getStorageSync("roleCode")
311
 			this.roleCode = uni.getStorageSync("roleCode")
307
 		},
312
 		},
308
 		methods: {
313
 		methods: {
314
+			getButtons() {
315
+				this.orderButtonData = []
316
+				const params = {
317
+					SMS_Id: this.sms_id
318
+				}
319
+				this.$http.get("InternalMessages/GetButtons",params).then((res)=>{
320
+					if(res.state.toLowerCase() ==="success"){
321
+						res.rows[0].Buttons.forEach(v => {
322
+							this.orderButtonData.push({
323
+								annotation: v.value,
324
+								eventName: v.key,
325
+								id: v.id,
326
+								text: v.value
327
+							})
328
+						})
329
+					}
330
+				})
331
+			},
309
 			getFileData(fileData) {
332
 			getFileData(fileData) {
310
 				let newFile = []
333
 				let newFile = []
311
 				if (fileData && fileData.length > 0) {
334
 				if (fileData && fileData.length > 0) {

+ 16 - 0
CallCenterWeb.UI/RMYYAPP/utils/helper.js

32
 		}
32
 		}
33
 		return state[type]
33
 		return state[type]
34
 	},
34
 	},
35
+	// 通过工单标识获取到工单id
36
+	getOrderId(id,fn) {
37
+		const params = {
38
+			pid:0,
39
+			flag:1
40
+		}
41
+		http.get("GongDanType/GetList",params).then((res)=>{
42
+			if(res.state.toLowerCase() ==="success"){
43
+				res.data.forEach(v => {
44
+					if(v.identification == id) {
45
+						fn(v.id)
46
+					}
47
+				})
48
+			}
49
+		})
50
+	},
35
 	httpPost(url, params, delta,fn) {
51
 	httpPost(url, params, delta,fn) {
36
 		
52
 		
37
 		uni.showLoading({title: '加载中'})
53
 		uni.showLoading({title: '加载中'})