|
@@ -186,7 +186,7 @@
|
186
|
186
|
</template>
|
187
|
187
|
<template v-else>
|
188
|
188
|
<button @click="previous" type="default" class="primaryButton btn" v-if="dataInfo.tabActiveValue === 'supplement'">上一步</button>
|
189
|
|
- <button @click="goBack" type="default" class="cancelButton btn" v-else>返回</button>
|
|
189
|
+ <button @click="goBackView" type="default" class="cancelButton btn" v-else>返回</button>
|
190
|
190
|
<button @click="submit" type="default" class="primaryButton btn">提交</button>
|
191
|
191
|
</template>
|
192
|
192
|
</view>
|
|
@@ -197,7 +197,7 @@
|
197
|
197
|
import { ref, reactive, computed } from 'vue'
|
198
|
198
|
import { onLoad } from '@dcloudio/uni-app'
|
199
|
199
|
import { generateNumberArray } from '@/utils/index.js'
|
200
|
|
- import { api_group, api_incidentDetail, api_user, api_incidentTask, api_branch, api_dutyDepartment, api_getDictionary, api_querySummaryDoc, api_addSummaryDoc, api_systemConfiguration, api_sj } from "@/http/api.js"
|
|
200
|
+ import { api_group, api_incidentDetail, api_getSolution, api_user, api_incidentTask, api_branch, api_dutyDepartment, api_getDictionary, api_querySummaryDoc, api_addSummaryDoc, api_systemConfiguration, api_sj } from "@/http/api.js"
|
201
|
201
|
import { defaultColor } from '@/static/js/theme.js'
|
202
|
202
|
import { useSetTitle } from '@/share/useSetTitle.js'
|
203
|
203
|
import { useMakePhoneCall } from '@/share/useMakePhoneCall.js'
|
|
@@ -263,7 +263,7 @@
|
263
|
263
|
responseHandleTime: undefined,//补单-接单时间
|
264
|
264
|
handleTime: undefined,//补单-解决时间
|
265
|
265
|
handlingPersonnelUserId: undefined,//补单-处理人
|
266
|
|
- introduceCount :0 //引入次数
|
|
266
|
+ // introduceCount :0 //引入次数
|
267
|
267
|
})
|
268
|
268
|
|
269
|
269
|
// 是否提交
|
|
@@ -299,6 +299,12 @@
|
299
|
299
|
})
|
300
|
300
|
}
|
301
|
301
|
|
|
302
|
+ // 返回引用知识库
|
|
303
|
+ function goBackView(){
|
|
304
|
+ handlerStore.setHandlerData(dataInfo, 'assign', 'assign');
|
|
305
|
+ goBack()
|
|
306
|
+ }
|
|
307
|
+
|
302
|
308
|
// 上传处理图片成功
|
303
|
309
|
function handlerImgSuccess(e){
|
304
|
310
|
dataInfo.handlerImgList.forEach(v => {
|
|
@@ -509,7 +515,6 @@
|
509
|
515
|
dataInfo.selectType = {};//选择的对象类型
|
510
|
516
|
dataInfo.handleDescription = '';//解决方案
|
511
|
517
|
solutionId.value = null;//引用知识库id
|
512
|
|
- dataInfo.introduceCount = 0;//引用知识库次数
|
513
|
518
|
dataInfo.handleCategory = undefined;//处理方式
|
514
|
519
|
dataInfo.handleCategoryList = [];//处理方式列表
|
515
|
520
|
dataInfo.closecode = undefined;//处理结果
|
|
@@ -1199,6 +1204,36 @@
|
1199
|
1204
|
}
|
1200
|
1205
|
}
|
1201
|
1206
|
|
|
1207
|
+ // 获取知识库数量
|
|
1208
|
+ function getIntroduceCount(categoryId){
|
|
1209
|
+ uni.showLoading({
|
|
1210
|
+ title: "加载中",
|
|
1211
|
+ mask: true,
|
|
1212
|
+ });
|
|
1213
|
+ let postData = {
|
|
1214
|
+ idx: 0,
|
|
1215
|
+ sum: 9999,
|
|
1216
|
+ solution: {
|
|
1217
|
+ category:{
|
|
1218
|
+ id:categoryId,
|
|
1219
|
+ },
|
|
1220
|
+ status:{id:72},
|
|
1221
|
+ }
|
|
1222
|
+ }
|
|
1223
|
+
|
|
1224
|
+ api_getSolution(postData).then(res => {
|
|
1225
|
+ uni.hideLoading();
|
|
1226
|
+ if(res.status == 200){
|
|
1227
|
+ dataInfo.introduceCount = res.totalNum
|
|
1228
|
+ }else{
|
|
1229
|
+ uni.showToast({
|
|
1230
|
+ icon: 'none',
|
|
1231
|
+ title: res.msg || '请求数据失败!'
|
|
1232
|
+ });
|
|
1233
|
+ }
|
|
1234
|
+ })
|
|
1235
|
+ }
|
|
1236
|
+
|
1202
|
1237
|
// 获取文本内容
|
1203
|
1238
|
function getHtml(html) {
|
1204
|
1239
|
const tempDiv = document.createElement('div');
|
|
@@ -1237,7 +1272,8 @@
|
1237
|
1272
|
|
1238
|
1273
|
if(dataInfo.category){
|
1239
|
1274
|
dataInfo.incidentData.category = dataInfo.category;
|
1240
|
|
-
|
|
1275
|
+ console.log(111)
|
|
1276
|
+ getIntroduceCount(dataInfo.category.id)
|
1241
|
1277
|
// 处理责任科室
|
1242
|
1278
|
if(dataInfo.category.branchType == 1){
|
1243
|
1279
|
// 分院区
|
|
@@ -1257,11 +1293,12 @@
|
1257
|
1293
|
}
|
1258
|
1294
|
}
|
1259
|
1295
|
}else if(incidentBuildStore.incidentBuild.data){
|
|
1296
|
+ console.log(222)
|
1260
|
1297
|
// 初始化
|
1261
|
1298
|
Object.assign(dataInfo.incidentData, incidentBuildStore.incidentBuild.data);
|
1262
|
1299
|
if(dataInfo.incidentData.category){
|
1263
|
1300
|
dataInfo.category = dataInfo.incidentData.category;
|
1264
|
|
-
|
|
1301
|
+ getIntroduceCount(dataInfo.category.id)
|
1265
|
1302
|
// 处理责任科室
|
1266
|
1303
|
if(dataInfo.category.branchType == 1){
|
1267
|
1304
|
// 分院区
|