Explorar el Código

事件详情流程样式修改

maotao hace 10 meses
padre
commit
f9e090b4ac

+ 1 - 1
components/repositoryFilter.vue

@@ -99,7 +99,7 @@
99 99
     if(loginUserStore.loginUser.user.duty){
100 100
       postData.incidentcategory.duty = loginUserStore.loginUser.user.duty.id;
101 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 105
     api_incidentcategory(postData).then(res => {

+ 2 - 2
manifest.json

@@ -62,8 +62,8 @@
62 62
         "devServer" : {
63 63
             "proxy" : {
64 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 67
                     "changeOrigin" : true, //是否跨域
68 68
                     "secure" : false
69 69
                 },

+ 1 - 1
pages/categoryThree/categoryThree.vue

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

+ 1 - 1
pages/categoryTwo/categoryTwo.vue

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

+ 16 - 10
pages/handler/handler.vue

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

+ 5 - 4
pages/incidentDetail/incidentDetail.vue

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

+ 5 - 2
pages/my/my.vue

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

+ 17 - 3
pages/repository/repository.vue

@@ -26,7 +26,10 @@
26 26
     <view class="zanwu" v-else>
27 27
       <text class="newicon newicon-zanwu"></text>
28 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 33
 			<button @click="goBack" type="default" class="primaryButton btn">返回</button>
31 34
 		</view>
32 35
 		<repositoryFilter v-if="isFilter" @cancelEmit="cancelFilter" 
@@ -42,8 +45,9 @@
42 45
   import { useGoBack } from '@/share/useGoBack.js'
43 46
   import { useHandlerStore } from '@/stores/handler'
44 47
 	import repositoryFilter from '@/components/repositoryFilter.vue';
48
+	import { useLoginUserStore } from '@/stores/loginUser'
45 49
   useSetTitle();
46
-	
50
+	const loginUserStore = useLoginUserStore();
47 51
 	const handlerStore = useHandlerStore();
48 52
 	
49 53
   const { goBack }  = useGoBack();
@@ -75,7 +79,7 @@
75 79
   function toCategoryTwo(data){
76 80
     uni.navigateTo({
77 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 154
 		}else{
151 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 166
     api_getSolution(postData).then(res => {
154 167
       uni.hideLoading();
155 168
       // uni.stopPullDownRefresh();
@@ -203,6 +216,7 @@
203 216
 		position: fixed;
204 217
 		height: 80rpx;
205 218
 		background: #fff;
219
+		border-bottom: 0.25rem solid #DEDEDE;
206 220
 	  .newicon-shaixuan{
207 221
 			margin-right: 40rpx;
208 222
 	    font-size: 36rpx;

+ 7 - 1
pages/repositoryDetails/repositoryDetails.vue

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