Browse Source

事件详情流程样式修改

maotao 11 months ago
parent
commit
f9e090b4ac

+ 1 - 1
components/repositoryFilter.vue

@@ -99,7 +99,7 @@
99
     if(loginUserStore.loginUser.user.duty){
99
     if(loginUserStore.loginUser.user.duty){
100
       postData.incidentcategory.duty = loginUserStore.loginUser.user.duty.id;
100
       postData.incidentcategory.duty = loginUserStore.loginUser.user.duty.id;
101
     }else if(loginUserStore.loginUser.user.branch){
101
     }else if(loginUserStore.loginUser.user.branch){
102
-      postData.incidentcategory.selectType = 'one';
102
+      postData.incidentcategory.branch = loginUserStore.loginUser.user.branch.id;
103
     }
103
     }
104
     
104
     
105
     api_incidentcategory(postData).then(res => {
105
     api_incidentcategory(postData).then(res => {

+ 2 - 2
manifest.json

@@ -62,8 +62,8 @@
62
         "devServer" : {
62
         "devServer" : {
63
             "proxy" : {
63
             "proxy" : {
64
                 "/service" : {
64
                 "/service" : {
65
-                    // "target" : "http://192.168.3.111", //请求的目标域名
66
-										"target" : "http://192.168.4.163", //宋程玉本地
65
+                    "target" : "http://192.168.3.111", //请求的目标域名
66
+										// "target" : "http://192.168.4.163", //宋程玉本地
67
                     "changeOrigin" : true, //是否跨域
67
                     "changeOrigin" : true, //是否跨域
68
                     "secure" : false
68
                     "secure" : false
69
                 },
69
                 },

+ 1 - 1
pages/categoryThree/categoryThree.vue

@@ -106,7 +106,7 @@
106
 
106
 
107
     let postData = {
107
     let postData = {
108
       idx: dataInfo.idx,
108
       idx: dataInfo.idx,
109
-      sum: 20,
109
+      sum: 9999,
110
       incidentcategory: {
110
       incidentcategory: {
111
         parent: {
111
         parent: {
112
           id: dataInfo.parentId,
112
           id: dataInfo.parentId,

+ 1 - 1
pages/categoryTwo/categoryTwo.vue

@@ -64,7 +64,7 @@
64
 
64
 
65
     let postData = {
65
     let postData = {
66
       idx: dataInfo.idx,
66
       idx: dataInfo.idx,
67
-      sum: 20,
67
+      sum: 9999,
68
       incidentcategory: {
68
       incidentcategory: {
69
         parent: {
69
         parent: {
70
           id: dataInfo.parentId,
70
           id: dataInfo.parentId,

+ 16 - 10
pages/handler/handler.vue

@@ -85,7 +85,7 @@
85
 					</view>
85
 					</view>
86
           <uni-easyinput id="scheme" class="value" type="textarea" v-model="dataInfo.handleDescription" placeholder="请输入解决方案" :class="{formRed: isSubmit && !dataInfo.handleDescription.trim()}" />
86
           <uni-easyinput id="scheme" class="value" type="textarea" v-model="dataInfo.handleDescription" placeholder="请输入解决方案" :class="{formRed: isSubmit && !dataInfo.handleDescription.trim()}" />
87
         </view>
87
         </view>
88
-				<view class="form_item" v-if="dataInfo.provideBackupMachine==1">
88
+				<view class="form_item" v-if="newProvideBackupMachine==1">
89
 				  <view class="title"><text class="required newicon newicon-bitian"></text>是否归还备用机:</view>
89
 				  <view class="title"><text class="required newicon newicon-bitian"></text>是否归还备用机:</view>
90
 					<uni-data-checkbox v-model="dataInfo.returnBackupMachine" :localdata="machineData"></uni-data-checkbox>
90
 					<uni-data-checkbox v-model="dataInfo.returnBackupMachine" :localdata="machineData"></uni-data-checkbox>
91
 				</view>
91
 				</view>
@@ -243,6 +243,9 @@
243
 		returnBackupMachine:null//是否归还备用机
243
 		returnBackupMachine:null//是否归还备用机
244
   })
244
   })
245
   
245
   
246
+	// 故障处理用是否提供备用机
247
+	const newProvideBackupMachine = ref(0)
248
+	
246
 	// 知识库id
249
 	// 知识库id
247
 	const solutionId = ref(null)
250
 	const solutionId = ref(null)
248
 	
251
 	
@@ -520,6 +523,7 @@
520
     reset();
523
     reset();
521
     dataInfo.category = dataInfo.incidentData.category || {};
524
     dataInfo.category = dataInfo.incidentData.category || {};
522
     dataInfo.synergetic = dataInfo.incidentData.synergetic || [];
525
     dataInfo.synergetic = dataInfo.incidentData.synergetic || [];
526
+		newProvideBackupMachine.value = dataInfo.incidentData.provideBackupMachine
523
     initForm();
527
     initForm();
524
   }
528
   }
525
   
529
   
@@ -534,9 +538,7 @@
534
       uni.hideLoading();
538
       uni.hideLoading();
535
       if(res.status == 200){
539
       if(res.status == 200){
536
         dataInfo.incidentData = res.data || {};
540
         dataInfo.incidentData = res.data || {};
537
-				if(res.data.provideBackupMachine){
538
-					dataInfo.provideBackupMachine = res.data.provideBackupMachine
539
-				}
541
+				newProvideBackupMachine.value = dataInfo.incidentData.provideBackupMachine
540
         if(dataInfo.isSummaryNext){
542
         if(dataInfo.isSummaryNext){
541
           // 汇总单-下一步
543
           // 汇总单-下一步
542
           dataInfo.incidentData.duty.addSummary = 0;
544
           dataInfo.incidentData.duty.addSummary = 0;
@@ -549,7 +551,6 @@
549
 					if(dataInfo.handleDescription){
551
 					if(dataInfo.handleDescription){
550
 						dataInfo.handleDescription = getHtml(dataInfo.handleDescription);
552
 						dataInfo.handleDescription = getHtml(dataInfo.handleDescription);
551
 					}
553
 					}
552
-          console.log(dataInfo)
553
           handlerStore.clearHandlerData();
554
           handlerStore.clearHandlerData();
554
         }else{
555
         }else{
555
           handlerStore.clearHandlerData();
556
           handlerStore.clearHandlerData();
@@ -578,7 +579,6 @@
578
           
579
           
579
           dataInfo.tabActiveValue = dataInfo.tabs[0].value;
580
           dataInfo.tabActiveValue = dataInfo.tabs[0].value;
580
         }
581
         }
581
-        
582
         initForm()
582
         initForm()
583
       }else{
583
       }else{
584
         uni.showToast({
584
         uni.showToast({
@@ -753,7 +753,15 @@
753
       });
753
       });
754
       return;
754
       return;
755
     }
755
     }
756
-    
756
+		
757
+		if(newProvideBackupMachine.value==1 && dataInfo.returnBackupMachine==null){
758
+		  uni.showToast({
759
+		  	icon: 'none',
760
+		    title: '请选择是否归还备用机'
761
+		  });
762
+		  return;
763
+		}
764
+		
757
     if(!dataInfo.category.id && dataInfo.category.hasSimple != 1){
765
     if(!dataInfo.category.id && dataInfo.category.hasSimple != 1){
758
       uni.showToast({
766
       uni.showToast({
759
       	icon: 'none',
767
       	icon: 'none',
@@ -844,9 +852,7 @@
844
       title: "加载中",
852
       title: "加载中",
845
       mask: true,
853
       mask: true,
846
     });
854
     });
847
-    if(dataInfo.provideBackupMachine){
848
-    	dataInfo.incidentData.provideBackupMachine = dataInfo.provideBackupMachine
849
-    }
855
+    dataInfo.incidentData.provideBackupMachine = dataInfo.provideBackupMachine
850
     let postData = {
856
     let postData = {
851
       incident: dataInfo.incidentData,
857
       incident: dataInfo.incidentData,
852
     }
858
     }

+ 5 - 4
pages/incidentDetail/incidentDetail.vue

@@ -114,7 +114,7 @@
114
 					  <text class="name">引用知识库:</text>
114
 					  <text class="name">引用知识库:</text>
115
 					  <text class="value">{{dataInfo.incidentData.solutionNo?dataInfo.incidentData.solutionNo:'未引用'}}</text>
115
 					  <text class="value">{{dataInfo.incidentData.solutionNo?dataInfo.incidentData.solutionNo:'未引用'}}</text>
116
 					</view>
116
 					</view>
117
-					<view class="deital_item">
117
+					<view class="deital_item" v-if="dataInfo.incidentData.provideBackupMachine && dataInfo.incidentData.provideBackupMachine==1">
118
 					  <text class="name">是否归还备用机:</text>
118
 					  <text class="name">是否归还备用机:</text>
119
 					  <text class="value">{{dataInfo.incidentData.returnBackupMachine==1?'是':'否'}}</text>
119
 					  <text class="value">{{dataInfo.incidentData.returnBackupMachine==1?'是':'否'}}</text>
120
 					</view>
120
 					</view>
@@ -159,8 +159,8 @@
159
         <view class="process_item_wrap">
159
         <view class="process_item_wrap">
160
           <view class="process_item" v-for="item in dataInfo.incidentLogList" :key="item.id">
160
           <view class="process_item" v-for="item in dataInfo.incidentLogList" :key="item.id">
161
             <view class="process_item_top">
161
             <view class="process_item_top">
162
-              <text class="name">{{item.logType ? item.logType.name : ''}}</text>
163
-              <text class="value ellipsis" v-if="item.remark">({{item.remark}})</text>
162
+              <view class="name">{{item.logType ? item.logType.name : ''}}</view>
163
+              <view class="value" v-if="item.remark">({{item.remark}})</view>
164
             </view>
164
             </view>
165
             <view class="process_item_bottom">
165
             <view class="process_item_bottom">
166
               <text class="name">{{formatDate(item.startTime, 'yyyy-MM-dd HH:mm:ss')}}</text>
166
               <text class="name">{{formatDate(item.startTime, 'yyyy-MM-dd HH:mm:ss')}}</text>
@@ -627,8 +627,9 @@
627
           }
627
           }
628
           .value{
628
           .value{
629
             margin-left: 20rpx;
629
             margin-left: 20rpx;
630
-            font-size: 24rpx;
630
+            font-size: 22rpx;
631
             color: #A1A1A1;
631
             color: #A1A1A1;
632
+						flex: 1;
632
           }
633
           }
633
         }
634
         }
634
         .process_item_bottom{
635
         .process_item_bottom{

+ 5 - 2
pages/my/my.vue

@@ -61,12 +61,14 @@
61
   import { useMakePhoneCall } from '@/share/useMakePhoneCall.js'
61
   import { useMakePhoneCall } from '@/share/useMakePhoneCall.js'
62
   import { useLoginUserStore } from '@/stores/loginUser'
62
   import { useLoginUserStore } from '@/stores/loginUser'
63
   import { useIncidentNumStore } from '@/stores/incidentNum'
63
   import { useIncidentNumStore } from '@/stores/incidentNum'
64
-  
64
+  import { repositoryListSearchStore } from '@/stores/repositorySearch'
65
+	
65
   useSetTitle();
66
   useSetTitle();
66
   const loginUserStore = useLoginUserStore();
67
   const loginUserStore = useLoginUserStore();
67
   const incidentNumStore = useIncidentNumStore();
68
   const incidentNumStore = useIncidentNumStore();
68
   const { makePhoneCall }  = useMakePhoneCall();
69
   const { makePhoneCall }  = useMakePhoneCall();
69
-  
70
+  const repositorySearchStore = repositoryListSearchStore();
71
+	
70
   // 主题颜色
72
   // 主题颜色
71
   const primaryColor = ref(defaultColor)
73
   const primaryColor = ref(defaultColor)
72
   
74
   
@@ -124,6 +126,7 @@
124
   
126
   
125
 	// 知识库
127
 	// 知识库
126
 	function repository(){
128
 	function repository(){
129
+		repositorySearchStore.clearRepositoryListSearchData()
127
 		uni.navigateTo({
130
 		uni.navigateTo({
128
 		  url: `/pages/repository/repository?type=view`
131
 		  url: `/pages/repository/repository?type=view`
129
 		})
132
 		})

+ 17 - 3
pages/repository/repository.vue

@@ -26,7 +26,10 @@
26
     <view class="zanwu" v-else>
26
     <view class="zanwu" v-else>
27
       <text class="newicon newicon-zanwu"></text>
27
       <text class="newicon newicon-zanwu"></text>
28
     </view>
28
     </view>
29
-		<view v-if="dataInfo.list.length==0" class="foot_common_btns">
29
+		<view class="back-style" @click="goBack" v-if="entrance == 'view'">
30
+			<text class="newicon newicon-fanhui1"></text>
31
+		</view>
32
+		<view v-if="dataInfo.list.length==0 && entrance!='view'" class="foot_common_btns">
30
 			<button @click="goBack" type="default" class="primaryButton btn">返回</button>
33
 			<button @click="goBack" type="default" class="primaryButton btn">返回</button>
31
 		</view>
34
 		</view>
32
 		<repositoryFilter v-if="isFilter" @cancelEmit="cancelFilter" 
35
 		<repositoryFilter v-if="isFilter" @cancelEmit="cancelFilter" 
@@ -42,8 +45,9 @@
42
   import { useGoBack } from '@/share/useGoBack.js'
45
   import { useGoBack } from '@/share/useGoBack.js'
43
   import { useHandlerStore } from '@/stores/handler'
46
   import { useHandlerStore } from '@/stores/handler'
44
 	import repositoryFilter from '@/components/repositoryFilter.vue';
47
 	import repositoryFilter from '@/components/repositoryFilter.vue';
48
+	import { useLoginUserStore } from '@/stores/loginUser'
45
   useSetTitle();
49
   useSetTitle();
46
-	
50
+	const loginUserStore = useLoginUserStore();
47
 	const handlerStore = useHandlerStore();
51
 	const handlerStore = useHandlerStore();
48
 	
52
 	
49
   const { goBack }  = useGoBack();
53
   const { goBack }  = useGoBack();
@@ -75,7 +79,7 @@
75
   function toCategoryTwo(data){
79
   function toCategoryTwo(data){
76
     uni.navigateTo({
80
     uni.navigateTo({
77
       url: `/pages/repositoryDetails/repositoryDetails?incidentId=${dataInfo.incidentId}
81
       url: `/pages/repositoryDetails/repositoryDetails?incidentId=${dataInfo.incidentId}
78
-			&solutionnumber=${data.solutionnumber}`
82
+			&solutionnumber=${data.solutionnumber}&editType=${entrance.value}`
79
     })
83
     })
80
   }
84
   }
81
 	
85
 	
@@ -150,6 +154,15 @@
150
 		}else{
154
 		}else{
151
 			delete postData.solution.title
155
 			delete postData.solution.title
152
 		}
156
 		}
157
+		if(loginUserStore.loginUser.user.duty){
158
+		  postData.solution.dutyId = loginUserStore.loginUser.user.duty.id;
159
+		}else if(loginUserStore.loginUser.user.branch){
160
+		  postData.solution.branch = loginUserStore.loginUser.user.branch.id;
161
+		}
162
+		if(entrance.value=='view'){
163
+			postData.solution.selectType = "keySearch"
164
+			postData.solution.tabType = "publish"
165
+		}
153
     api_getSolution(postData).then(res => {
166
     api_getSolution(postData).then(res => {
154
       uni.hideLoading();
167
       uni.hideLoading();
155
       // uni.stopPullDownRefresh();
168
       // uni.stopPullDownRefresh();
@@ -203,6 +216,7 @@
203
 		position: fixed;
216
 		position: fixed;
204
 		height: 80rpx;
217
 		height: 80rpx;
205
 		background: #fff;
218
 		background: #fff;
219
+		border-bottom: 0.25rem solid #DEDEDE;
206
 	  .newicon-shaixuan{
220
 	  .newicon-shaixuan{
207
 			margin-right: 40rpx;
221
 			margin-right: 40rpx;
208
 	    font-size: 36rpx;
222
 	    font-size: 36rpx;

+ 7 - 1
pages/repositoryDetails/repositoryDetails.vue

@@ -14,7 +14,7 @@
14
 		</view>
14
 		</view>
15
 		<view class="foot_common_btns btn-style">
15
 		<view class="foot_common_btns btn-style">
16
 			<button @click="goBack" type="default" class="cancelButton btn">返回</button>
16
 			<button @click="goBack" type="default" class="cancelButton btn">返回</button>
17
-			<button @click="importData" type="default" class="primaryButton btn">引入</button>
17
+			<button v-if="editType != 'view'" @click="importData" type="default" class="primaryButton btn">引入</button>
18
 		</view>
18
 		</view>
19
 		<uni-popup ref="popup" type="center">
19
 		<uni-popup ref="popup" type="center">
20
 			<img :src="fileUrl" alt="" class="view-img">
20
 			<img :src="fileUrl" alt="" class="view-img">
@@ -46,6 +46,9 @@
46
 	// tab类型
46
 	// tab类型
47
 	const tabType = ref('null')
47
 	const tabType = ref('null')
48
 	
48
 	
49
+	// tab类型
50
+	const editType = ref(null)
51
+	
49
 	// 附件图片预览
52
 	// 附件图片预览
50
 	const fileUrl = ref('null')
53
 	const fileUrl = ref('null')
51
 	
54
 	
@@ -149,6 +152,9 @@
149
 		if(option.tabType){
152
 		if(option.tabType){
150
 			tabType.value = option.tabType;
153
 			tabType.value = option.tabType;
151
 		}
154
 		}
155
+		if(option.editType){
156
+			editType.value = option.editType
157
+		}
152
     getList();
158
     getList();
153
   })
159
   })
154
 
160