|
@@ -5,7 +5,7 @@
|
5
|
5
|
{{tab.name}}<text v-if="tab.num !== ''">({{tab.num}})</text>
|
6
|
6
|
</view>
|
7
|
7
|
</view>
|
8
|
|
- <scroll-view scroll-y class="body">
|
|
8
|
+ <scroll-view scroll-y class="body" :class="{ page_padding: !(dataInfo.tabActiveValue === 'doing' && isInSummaryOrder), bg: (dataInfo.tabActiveValue === 'doing' && isInSummaryOrder) }">
|
9
|
9
|
<!-- 汇总单 -->
|
10
|
10
|
<template v-if="dataInfo.tabActiveValue === 'doing' && isInSummaryOrder">
|
11
|
11
|
<!-- 耗材 -->
|
|
@@ -73,26 +73,44 @@
|
73
|
73
|
</template>
|
74
|
74
|
|
75
|
75
|
<!-- 故障处理 -->
|
76
|
|
- <template v-if="dataInfo.tabActiveValue === 'doing' && !isInSummaryOrder">故障处理
|
77
|
|
- <view class="form_item">
|
78
|
|
- <view class="title select"><text class="required newicon newicon-bitian"></text>院区:</view>
|
79
|
|
- <uni-data-select class="value" v-model="dataInfo.branchId" :localdata="dataInfo.branchList" :clear="false" placeholder="请选择院区" @change="changeBranch" :class="{formRed: isSubmmit && !dataInfo.branchId}"></uni-data-select>
|
|
76
|
+ <template v-if="dataInfo.tabActiveValue === 'doing' && !isInSummaryOrder">
|
|
77
|
+ <view class="form_item column" v-if="dataInfo.category.hasSimple != 1">
|
|
78
|
+ <view class="title"><text class="required newicon newicon-bitian"></text>解决方案:</view>
|
|
79
|
+ <uni-easyinput class="value" type="textarea" v-model="dataInfo.handleDescription" placeholder="请输入解决方案" :class="{formRed: isSubmit && !dataInfo.handleDescription.trim()}" />
|
80
|
80
|
</view>
|
81
|
|
- <view class="form_item">
|
82
|
|
- <view class="title select"><text class="required newicon newicon-bitian"></text>责任科室:</view>
|
83
|
|
- <uni-data-select class="value" v-model="dataInfo.dutyId" :localdata="dataInfo.dutyList" :clear="false" placeholder="请选择责任科室" @change="changeDuty" :class="{formRed: isSubmmit && !dataInfo.dutyId}"></uni-data-select>
|
|
81
|
+ <view class="form_item" v-if="dataInfo.category.hasSimple != 1">
|
|
82
|
+ <view class="title"><text class="required newicon newicon-bitian"></text>故障现象:</view>
|
|
83
|
+ <view class="value category" @click="selectCategory">
|
|
84
|
+ <text class="categoryName ellipsis-multiline">{{dataInfo.category.mutiCategory}}</text>
|
|
85
|
+ <text class="newicon newicon-weibiaoti2010104"></text>
|
|
86
|
+ </view>
|
84
|
87
|
</view>
|
85
|
88
|
<view class="form_item">
|
86
|
|
- <view class="title select"><text class="required newicon newicon-bitian"></text>工作组:</view>
|
87
|
|
- <uni-data-select class="value" v-model="dataInfo.groupId" :localdata="dataInfo.groupList" :clear="false" placeholder="请选择工作组" @change="changeGroup" :class="{formRed: isSubmmit && !dataInfo.groupId}"></uni-data-select>
|
|
89
|
+ <view class="title select"><text class="required newicon newicon-bitian"></text>处理方式:</view>
|
|
90
|
+ <uni-data-select class="value" v-model="dataInfo.handleCategory" :localdata="dataInfo.handleCategoryList" :clear="false" placeholder="请选择处理方式" :class="{formRed: isSubmit && !dataInfo.handleCategory}"></uni-data-select>
|
|
91
|
+ </view>
|
|
92
|
+ <view class="form_item" v-if="dataInfo.category.hasSimple != 1">
|
|
93
|
+ <view class="title select"><text class="required newicon newicon-bitian"></text>关闭代码:</view>
|
|
94
|
+ <uni-data-select class="value" v-model="dataInfo.closecode" :localdata="dataInfo.closecodeList" :clear="false" placeholder="请选择关闭代码" :class="{formRed: isSubmit && !dataInfo.closecode}"></uni-data-select>
|
88
|
95
|
</view>
|
89
|
96
|
<view class="form_item">
|
90
|
|
- <view class="title radio"><text class="required newicon newicon-bitian"></text>是否指派到人:</view>
|
91
|
|
- <uni-data-checkbox class="value" v-model="dataInfo.isAssignUser" :localdata="dataInfo.isAssignUserList" @change="changeIsAssignUser" />
|
|
97
|
+ <view class="title"><text class="required newicon newicon-bitian transparent"></text>协同人员:</view>
|
|
98
|
+ <text class="synergeticNames ellipsis">{{dataInfo.synergetic.map(v => v.name).join(',')}}</text>
|
|
99
|
+ <button type="primary" plain size="mini" class="primaryPlainButton synergeticAdd" @click="synergeticAdd">+立即添加</button>
|
92
|
100
|
</view>
|
93
|
|
- <view class="form_item" v-if="dataInfo.isAssignUser === 1">
|
94
|
|
- <view class="title select"><text class="required newicon newicon-bitian"></text>指派对象:</view>
|
95
|
|
- <uni-data-select class="value" v-model="dataInfo.userId" :localdata="dataInfo.userList" :clear="false" placeholder="请选择指派对象" :class="{formRed: isSubmmit && dataInfo.groupId && dataInfo.isAssignUser == 1 && !dataInfo.userId}"></uni-data-select>
|
|
101
|
+ <view class="form_item_column">
|
|
102
|
+ <view class="form_item">
|
|
103
|
+ <view class="title"><text class="required newicon newicon-bitian transparent"></text>处理图片:</view>
|
|
104
|
+ <view class="value">
|
|
105
|
+ <uni-file-picker ref="handlerImgRef" v-model="dataInfo.handlerImgList" limit="3" @success="handlerImgSuccess" @fail="handlerImgFail" @select="handlerImgSelect" @delete="handlerImgDelete"></uni-file-picker>
|
|
106
|
+ </view>
|
|
107
|
+ </view>
|
|
108
|
+ <view class="form_item">
|
|
109
|
+ <view class="title transparent"><text class="required newicon newicon-bitian transparent"></text>处理图片:</view>
|
|
110
|
+ <view class="value">
|
|
111
|
+ <text class="imgTips ellipsis">(支持JPG/PNG格式图片,单张大小10M以内)</text>
|
|
112
|
+ </view>
|
|
113
|
+ </view>
|
96
|
114
|
</view>
|
97
|
115
|
</template>
|
98
|
116
|
|
|
@@ -100,21 +118,21 @@
|
100
|
118
|
<template v-if="dataInfo.tabActiveValue === 'overtime'">
|
101
|
119
|
<view class="form_item">
|
102
|
120
|
<view class="title select"><text class="required newicon newicon-bitian"></text>延期原因:</view>
|
103
|
|
- <uni-data-select class="value" v-model="dataInfo.repairTypeId" :localdata="dataInfo.repairTypeList" :clear="false" placeholder="请选择延期原因" :class="{formRed: isSubmmit && !dataInfo.repairTypeId}"></uni-data-select>
|
|
121
|
+ <uni-data-select class="value" v-model="dataInfo.repairTypeId" :localdata="dataInfo.repairTypeList" :clear="false" placeholder="请选择延期原因" :class="{formRed: isSubmit && !dataInfo.repairTypeId}"></uni-data-select>
|
104
|
122
|
</view>
|
105
|
123
|
<view class="form_item column">
|
106
|
124
|
<view class="title"><text class="required newicon newicon-bitian"></text>延期说明:</view>
|
107
|
|
- <uni-easyinput class="value" type="textarea" v-model="dataInfo.deferralRemark" placeholder="请输入延期说明" :class="{formRed: isSubmmit && !dataInfo.deferralRemark.trim()}" />
|
|
125
|
+ <uni-easyinput class="value" type="textarea" v-model="dataInfo.deferralRemark" placeholder="请输入延期说明" :class="{formRed: isSubmit && !dataInfo.deferralRemark.trim()}" />
|
108
|
126
|
</view>
|
109
|
127
|
<view class="form_item">
|
110
|
128
|
<view class="title select"><text class="required newicon newicon-bitian"></text>延期天数:</view>
|
111
|
|
- <uni-data-select class="value" v-model="dataInfo.deferralDayId" :localdata="dataInfo.deferralDayList" :clear="false" placeholder="请选择延期天数" :class="{formRed: isSubmmit && !dataInfo.deferralDayId}"></uni-data-select>
|
|
129
|
+ <uni-data-select class="value" v-model="dataInfo.deferralDayId" :localdata="dataInfo.deferralDayList" :clear="false" placeholder="请选择延期天数" :class="{formRed: isSubmit && !dataInfo.deferralDayId}"></uni-data-select>
|
112
|
130
|
</view>
|
113
|
131
|
</template>
|
114
|
132
|
</scroll-view>
|
115
|
133
|
<view class="foot_common_btns">
|
116
|
134
|
<button @click="goBack" type="default" class="cancelButton btn">返回</button>
|
117
|
|
- <button @click="submmit" type="default" class="primaryButton btn">{{dataInfo.tabActiveValue === 'doing' && isInSummaryOrder ? '下一步' : '提交'}}</button>
|
|
135
|
+ <button @click="submit" type="default" class="primaryButton btn">{{dataInfo.tabActiveValue === 'doing' && isInSummaryOrder ? '下一步' : '提交'}}</button>
|
118
|
136
|
</view>
|
119
|
137
|
<NumberModal v-if="dataInfo.isNumber" @cancelEmit="cancelNumber" @confirmEmit="conformNumber" @removeEmit="removeNumber" :selectData="dataInfo.selectData" :selectType="dataInfo.selectType" :evtNumber="dataInfo.evtNumber" showRemove></NumberModal>
|
120
|
138
|
</view>
|
|
@@ -125,26 +143,25 @@
|
125
|
143
|
import NumberModal from '@/components/NumberModal.vue';
|
126
|
144
|
import { onLoad } from '@dcloudio/uni-app'
|
127
|
145
|
import { generateNumberArray } from '@/utils/index.js'
|
128
|
|
- import { api_group, api_incidentDetail, api_user, api_incidentTask, api_branch, api_dutyDepartment, api_getDictionary, api_querySummaryDoc, api_addSummaryDoc } from "@/http/api.js"
|
|
146
|
+ import { api_group, api_incidentDetail, api_user, api_incidentTask, api_branch, api_dutyDepartment, api_getDictionary, api_querySummaryDoc, api_addSummaryDoc, api_uploadAttachment } from "@/http/api.js"
|
129
|
147
|
import { defaultColor } from '@/static/js/theme.js'
|
130
|
148
|
import { useSetTitle } from '@/share/useSetTitle.js'
|
131
|
149
|
import { useMakePhoneCall } from '@/share/useMakePhoneCall.js'
|
|
150
|
+ import { useUploadFile } from '@/share/useUploadFile.js'
|
132
|
151
|
import { useGoBack } from '@/share/useGoBack.js'
|
133
|
152
|
import { useLoginUserStore } from '@/stores/loginUser'
|
|
153
|
+ import { useHandlerStore } from '@/stores/handler'
|
134
|
154
|
|
135
|
155
|
useSetTitle();
|
136
|
156
|
const loginUserStore = useLoginUserStore();
|
|
157
|
+ const handlerStore = useHandlerStore();
|
137
|
158
|
const { makePhoneCall } = useMakePhoneCall();
|
|
159
|
+ const { uploadFile } = useUploadFile();
|
138
|
160
|
const { goBack } = useGoBack();
|
139
|
161
|
|
140
|
162
|
// 主题颜色
|
141
|
163
|
const primaryColor = ref(defaultColor)
|
142
|
164
|
|
143
|
|
- // 是否进入汇总单
|
144
|
|
- const isInSummaryOrder = computed(() => () => {
|
145
|
|
- return dataInfo.tabActiveValue === 'doing' && dataInfo.incidentData.duty && dataInfo.incidentData.duty.addSummary == 1 && (dataInfo.incidentData.handlerUser.id == loginUserStore.loginUser.user.id);
|
146
|
|
- })
|
147
|
|
-
|
148
|
165
|
// 数据
|
149
|
166
|
const dataInfo = reactive({
|
150
|
167
|
tabs: [
|
|
@@ -154,24 +171,10 @@
|
154
|
171
|
tabActiveValue: 0,//当前选择的tab
|
155
|
172
|
incidentId: undefined,//事件ID
|
156
|
173
|
incidentData: {},//事件对象
|
157
|
|
- groupList: [], //工作组列表
|
158
|
|
- groupId: undefined, //工作组ID
|
159
|
|
- userList: [], //用户列表
|
160
|
|
- userId: undefined, //用户ID
|
161
|
|
- branchList: [], //院区列表
|
162
|
|
- branchId: undefined, //院区ID
|
163
|
|
- dutyList: [], //责任科室列表
|
164
|
|
- dutyId: undefined, //责任科室ID
|
165
|
|
- repairTypeList: [], //维修原因列表
|
166
|
|
- repairTypeId: undefined, //维修原因ID
|
|
174
|
+ repairTypeList: [], //延期原因列表
|
|
175
|
+ repairTypeId: undefined, //延期原因ID
|
167
|
176
|
deferralDayList: [], //延期天数列表
|
168
|
177
|
deferralDayId: undefined, //延期天数ID
|
169
|
|
- isAssignUser: 1, //工作组是否转派到人
|
170
|
|
- isAssignUserList: [
|
171
|
|
- { text: '是', value: 1 },
|
172
|
|
- { text: '否', value: 0 },
|
173
|
|
- ], //工作组是否转派到人选项
|
174
|
|
- reassignRemark: '',//退回原因
|
175
|
178
|
deferralRemark: '',//延期说明
|
176
|
179
|
summaryObj: {
|
177
|
180
|
consumableList: [],//耗材列表
|
|
@@ -182,10 +185,98 @@
|
182
|
185
|
evtNumber: 1,//弹窗返回的数量
|
183
|
186
|
selectData: {},//选择的对象
|
184
|
187
|
selectType: {},//选择的对象类型
|
|
188
|
+ handleDescription: '',//解决方案
|
|
189
|
+ handleCategory: undefined,//处理方式
|
|
190
|
+ handleCategoryList: [],//处理方式列表
|
|
191
|
+ closecode: undefined,//关闭代码
|
|
192
|
+ closecodeList: [],//关闭代码列表
|
|
193
|
+ handlerImgList: [],//处理图片列表
|
|
194
|
+ category: {},//故障现象
|
|
195
|
+ synergetic: [],//协同人员
|
185
|
196
|
})
|
186
|
197
|
|
187
|
198
|
// 是否提交
|
188
|
|
- const isSubmmit = ref(false)
|
|
199
|
+ const isSubmit = ref(false)
|
|
200
|
+
|
|
201
|
+ // 处理图片
|
|
202
|
+ const handlerImgRef = ref(null)
|
|
203
|
+
|
|
204
|
+ // 是否进入汇总单
|
|
205
|
+ const isInSummaryOrder = computed(() => {
|
|
206
|
+ return dataInfo.tabActiveValue === 'doing' && dataInfo.incidentData.duty && dataInfo.incidentData.duty.addSummary == 1 && (dataInfo.incidentData.handlingPersonnelUser.id == loginUserStore.loginUser.user.id);
|
|
207
|
+ })
|
|
208
|
+
|
|
209
|
+ // 上传处理图片成功
|
|
210
|
+ function handlerImgSuccess(e){
|
|
211
|
+ dataInfo.handlerImgList.forEach(v => {
|
|
212
|
+ v.url = v.path;
|
|
213
|
+ })
|
|
214
|
+ console.log(dataInfo.handlerImgList);
|
|
215
|
+ let handlerOrder$ = handlerOrder();
|
|
216
|
+ let requestList = [handlerOrder$];
|
|
217
|
+ dataInfo.handlerImgList.forEach(v => {
|
|
218
|
+ let handlerOrderImg$ = handlerOrderImg(v);
|
|
219
|
+ requestList.push(handlerOrderImg$);
|
|
220
|
+ })
|
|
221
|
+
|
|
222
|
+ Promise.all(requestList).then(resList => {
|
|
223
|
+ uni.hideLoading();
|
|
224
|
+ console.log(resList);
|
|
225
|
+ if(resList[0].state == 200){
|
|
226
|
+ uni.showToast({
|
|
227
|
+ icon: 'none',
|
|
228
|
+ title: '处理成功',
|
|
229
|
+ mask: true,
|
|
230
|
+ });
|
|
231
|
+ setTimeout(() => {
|
|
232
|
+ uni.reLaunch({
|
|
233
|
+ url: '/pages/incidentList/incidentList',
|
|
234
|
+ })
|
|
235
|
+ }, 1500)
|
|
236
|
+ }else{
|
|
237
|
+ uni.showToast({
|
|
238
|
+ icon: 'none',
|
|
239
|
+ title: resList[0].msg || '请求数据失败!'
|
|
240
|
+ });
|
|
241
|
+ }
|
|
242
|
+ })
|
|
243
|
+ }
|
|
244
|
+
|
|
245
|
+ // 上传处理图片失败
|
|
246
|
+ function handlerImgFail(e){
|
|
247
|
+ dataInfo.handlerImgList.forEach(v => {
|
|
248
|
+ v.url = v.path;
|
|
249
|
+ })
|
|
250
|
+ console.log(dataInfo.handlerImgList);
|
|
251
|
+ }
|
|
252
|
+
|
|
253
|
+ // 选择上传图片
|
|
254
|
+ function handlerImgSelect(e){
|
|
255
|
+ dataInfo.handlerImgList = dataInfo.handlerImgList.concat(e.tempFiles);
|
|
256
|
+ console.log(dataInfo.handlerImgList);
|
|
257
|
+ }
|
|
258
|
+
|
|
259
|
+ // 删除上传图片
|
|
260
|
+ function handlerImgDelete(e){
|
|
261
|
+ dataInfo.handlerImgList = dataInfo.handlerImgList.filter(v => e.tempFile.uuid != v.uuid);
|
|
262
|
+ console.log(dataInfo.handlerImgList);
|
|
263
|
+ }
|
|
264
|
+
|
|
265
|
+ // 添加协同人员
|
|
266
|
+ function synergeticAdd(){
|
|
267
|
+ handlerStore.setHandlerData(dataInfo);
|
|
268
|
+ uni.navigateTo({
|
|
269
|
+ url: `/pages/synergeticAdd/synergeticAdd?incidentId=${dataInfo.incidentId}`
|
|
270
|
+ })
|
|
271
|
+ }
|
|
272
|
+
|
|
273
|
+ // 选择故障现象
|
|
274
|
+ function selectCategory(){
|
|
275
|
+ handlerStore.setHandlerData(dataInfo);
|
|
276
|
+ uni.navigateTo({
|
|
277
|
+ url: `/pages/categoryOne/categoryOne?incidentId=${dataInfo.incidentId}`
|
|
278
|
+ })
|
|
279
|
+ }
|
189
|
280
|
|
190
|
281
|
// 点击修改数量
|
191
|
282
|
function numberClick(data, type){
|
|
@@ -307,28 +398,37 @@
|
307
|
398
|
|
308
|
399
|
// 重置
|
309
|
400
|
function reset(){
|
310
|
|
- dataInfo.branchId = undefined;
|
311
|
|
- dataInfo.branchList = [];
|
312
|
|
-
|
313
|
|
- dataInfo.dutyId = undefined;
|
314
|
|
- dataInfo.dutyList = [];
|
315
|
|
-
|
316
|
|
- dataInfo.groupId = undefined;
|
317
|
|
- dataInfo.groupList = [];
|
318
|
|
-
|
319
|
|
- dataInfo.userId = undefined;
|
320
|
|
- dataInfo.userList = [];
|
321
|
|
-
|
322
|
|
- dataInfo.isAssignUser = 1;
|
323
|
|
-
|
324
|
|
- dataInfo.reassignRemark = '';
|
325
|
|
- dataInfo.deferralRemark = '';
|
|
401
|
+ dataInfo.repairTypeList = []; //延期原因列表
|
|
402
|
+ dataInfo.repairTypeId = undefined; //延期原因ID
|
|
403
|
+ dataInfo.deferralDayList = []; //延期天数列表
|
|
404
|
+ dataInfo.deferralDayId = undefined; //延期天数ID
|
|
405
|
+ dataInfo.deferralRemark = '';//延期说明
|
|
406
|
+ dataInfo.summaryObj = {
|
|
407
|
+ consumableList: [],//耗材列表
|
|
408
|
+ workHourManagementList: [],//工时列表
|
|
409
|
+ };//汇总单信息
|
|
410
|
+ dataInfo.summaryId = undefined;//汇总单Id
|
|
411
|
+ dataInfo.isNumber = false;//修改数量弹窗
|
|
412
|
+ dataInfo.evtNumber = 1;//弹窗返回的数量
|
|
413
|
+ dataInfo.selectData = {};//选择的对象
|
|
414
|
+ dataInfo.selectType = {};//选择的对象类型
|
|
415
|
+ dataInfo.handleDescription = '';//解决方案
|
|
416
|
+ dataInfo.handleCategory = undefined;//处理方式
|
|
417
|
+ dataInfo.handleCategoryList = [];//处理方式列表
|
|
418
|
+ dataInfo.closecode = undefined;//关闭代码
|
|
419
|
+ dataInfo.closecodeList = [];//关闭代码列表
|
|
420
|
+ dataInfo.handlerImgList = [];//处理图片列表
|
|
421
|
+ dataInfo.category = {};//故障现象
|
|
422
|
+ dataInfo.synergetic = [];//协同人员
|
326
|
423
|
}
|
327
|
424
|
|
328
|
425
|
// 初始化表单
|
329
|
426
|
function initForm(){
|
330
|
|
- if(dataInfo.tabActiveValue === 'doing'){
|
|
427
|
+ if(dataInfo.tabActiveValue === 'doing' && isInSummaryOrder.value){
|
331
|
428
|
getSummaryList();
|
|
429
|
+ }else if(dataInfo.tabActiveValue === 'doing' && !isInSummaryOrder.value){
|
|
430
|
+ getHandleCategorys();
|
|
431
|
+ getClosecodes();
|
332
|
432
|
}else if(dataInfo.tabActiveValue === 'overtime'){
|
333
|
433
|
getRepairTypes();
|
334
|
434
|
getDeferralDays();
|
|
@@ -341,13 +441,13 @@
|
341
|
441
|
return;
|
342
|
442
|
}
|
343
|
443
|
dataInfo.tabActiveValue = tabValue;
|
344
|
|
- isSubmmit.value = false;
|
|
444
|
+ isSubmit.value = false;
|
345
|
445
|
reset();
|
346
|
|
- initForm()
|
|
446
|
+ initForm();
|
347
|
447
|
}
|
348
|
448
|
|
349
|
449
|
// 获取事件详情
|
350
|
|
- function getIncidentDetail(){
|
|
450
|
+ function getIncidentDetail(isSummaryNext = false){
|
351
|
451
|
uni.showLoading({
|
352
|
452
|
title: "加载中",
|
353
|
453
|
mask: true,
|
|
@@ -357,19 +457,37 @@
|
357
|
457
|
uni.hideLoading();
|
358
|
458
|
if(res.status == 200){
|
359
|
459
|
dataInfo.incidentData = res.data || {};
|
360
|
|
- let chuli = false;//故障处理权限
|
361
|
|
- for (let i = 0; i < loginUserStore.loginUser.menu.length; i++) {
|
362
|
|
- if (loginUserStore.loginUser.menu[i].link == "shijianliebiao_chuli") {
|
363
|
|
- chuli = true
|
364
|
|
- }
|
365
|
|
- }
|
366
|
460
|
|
367
|
|
- // 故障处理
|
368
|
|
- if(dataInfo.incidentData.state.value == 'handler' && dataInfo.incidentData.handlingPersonnelUser && dataInfo.incidentData.handlingPersonnelUser.id == loginUserStore.loginUser.user.id && chuli){
|
369
|
|
- dataInfo.tabs.splice(0, 0, {id: 5, name: '故障处理', value: 'doing', num: ''});
|
|
461
|
+ if(isSummaryNext){
|
|
462
|
+ // 汇总单-下一步
|
|
463
|
+ dataInfo.incidentData.duty.addSummary = 0;
|
370
|
464
|
}
|
371
|
465
|
|
372
|
|
- dataInfo.tabActiveValue = dataInfo.tabs[0].value;
|
|
466
|
+ // 跳转页面选择了选项并且工单ID一致
|
|
467
|
+ if(handlerStore.handler.data && handlerStore.handler.data.incidentId == dataInfo.incidentId){
|
|
468
|
+ Object.assign(dataInfo, handlerStore.handler.data);
|
|
469
|
+ console.log(dataInfo)
|
|
470
|
+ handlerStore.clearHandlerData();
|
|
471
|
+ }else{
|
|
472
|
+ // 初始化回显
|
|
473
|
+ dataInfo.category = dataInfo.incidentData.category || {};
|
|
474
|
+ dataInfo.synergetic = dataInfo.incidentData.synergetic || [];
|
|
475
|
+
|
|
476
|
+ let chuli = false;//故障处理权限
|
|
477
|
+ for (let i = 0; i < loginUserStore.loginUser.menu.length; i++) {
|
|
478
|
+ if (loginUserStore.loginUser.menu[i].link == "shijianliebiao_chuli") {
|
|
479
|
+ chuli = true
|
|
480
|
+ }
|
|
481
|
+ }
|
|
482
|
+
|
|
483
|
+ // 故障处理
|
|
484
|
+ if(dataInfo.incidentData.state.value == 'handler' && dataInfo.incidentData.handlingPersonnelUser && dataInfo.incidentData.handlingPersonnelUser.id == loginUserStore.loginUser.user.id && chuli){
|
|
485
|
+ let flag = dataInfo.tabs.some(v => v.value === 'doing');
|
|
486
|
+ !flag && dataInfo.tabs.splice(0, 0, {id: 5, name: '故障处理', value: 'doing', num: ''});
|
|
487
|
+ }
|
|
488
|
+
|
|
489
|
+ dataInfo.tabActiveValue = dataInfo.tabs[0].value;
|
|
490
|
+ }
|
373
|
491
|
|
374
|
492
|
initForm()
|
375
|
493
|
}else{
|
|
@@ -401,6 +519,56 @@
|
401
|
519
|
})
|
402
|
520
|
}
|
403
|
521
|
|
|
522
|
+ // 获取处理方式列表
|
|
523
|
+ function getHandleCategorys(){
|
|
524
|
+ uni.showLoading({
|
|
525
|
+ title: "加载中",
|
|
526
|
+ mask: true,
|
|
527
|
+ });
|
|
528
|
+ let postData = {
|
|
529
|
+ "key": 'incident_handleCategory',
|
|
530
|
+ "type": "list",
|
|
531
|
+ };
|
|
532
|
+ api_getDictionary(postData).then(res => {
|
|
533
|
+ uni.hideLoading();
|
|
534
|
+ res = res || [];
|
|
535
|
+ dataInfo.handleCategoryList = res.map(v => ({
|
|
536
|
+ text: v.name,
|
|
537
|
+ value: v.id,
|
|
538
|
+ key: v.value,
|
|
539
|
+ }));
|
|
540
|
+ if(!dataInfo.handleCategory){
|
|
541
|
+ let handleCategory = dataInfo.handleCategoryList.find(v => v.key == 'SUPPORT');
|
|
542
|
+ dataInfo.handleCategory = handleCategory ? handleCategory.value : undefined;
|
|
543
|
+ }
|
|
544
|
+ })
|
|
545
|
+ }
|
|
546
|
+
|
|
547
|
+ // 获取关闭代码列表
|
|
548
|
+ function getClosecodes(){
|
|
549
|
+ uni.showLoading({
|
|
550
|
+ title: "加载中",
|
|
551
|
+ mask: true,
|
|
552
|
+ });
|
|
553
|
+ let postData = {
|
|
554
|
+ "key": 'incident_closecode',
|
|
555
|
+ "type": "list",
|
|
556
|
+ };
|
|
557
|
+ api_getDictionary(postData).then(res => {
|
|
558
|
+ uni.hideLoading();
|
|
559
|
+ res = res || [];
|
|
560
|
+ dataInfo.closecodeList = res.map(v => ({
|
|
561
|
+ text: v.name,
|
|
562
|
+ value: v.id,
|
|
563
|
+ key: v.value,
|
|
564
|
+ }));
|
|
565
|
+ if(!dataInfo.closecode){
|
|
566
|
+ let closecode = dataInfo.closecodeList.find(v => v.key == '060');
|
|
567
|
+ dataInfo.closecode = closecode ? closecode.value : undefined;
|
|
568
|
+ }
|
|
569
|
+ })
|
|
570
|
+ }
|
|
571
|
+
|
404
|
572
|
// 获取延期天数列表
|
405
|
573
|
function getDeferralDays(){
|
406
|
574
|
dataInfo.deferralDayList = generateNumberArray(1, 15).map(v => ({
|
|
@@ -450,377 +618,112 @@
|
450
|
618
|
})
|
451
|
619
|
}
|
452
|
620
|
|
453
|
|
- // 获取院区列表
|
454
|
|
- function getBranchs(){
|
455
|
|
- uni.showLoading({
|
456
|
|
- title: "加载中",
|
457
|
|
- mask: true,
|
458
|
|
- });
|
459
|
|
- let postData = {
|
460
|
|
- "idx": 0,
|
461
|
|
- "sum": 9999,
|
462
|
|
- };
|
463
|
|
- api_branch(postData).then(res => {
|
464
|
|
- uni.hideLoading();
|
465
|
|
- if(res.status == 200){
|
466
|
|
- res.list = res.list || [];
|
467
|
|
- dataInfo.branchList = res.list.map(v => ({
|
468
|
|
- text: v.hosName,
|
469
|
|
- value: v.id,
|
470
|
|
- }));
|
471
|
|
-
|
472
|
|
- if(loginUserStore.loginUser.user.duty){
|
473
|
|
- // 当前的所属责任科室
|
474
|
|
- dataInfo.branchId = loginUserStore.loginUser.user.duty.branch;
|
475
|
|
- changeBranch();
|
476
|
|
-
|
477
|
|
- dataInfo.dutyId = loginUserStore.loginUser.user.duty.id;
|
478
|
|
- changeDuty();
|
479
|
|
- }else if(loginUserStore.loginUser.user.branch){
|
480
|
|
- // 当前的所属院区
|
481
|
|
- dataInfo.branchId = loginUserStore.loginUser.user.branch.id;
|
482
|
|
- }
|
483
|
|
- }else{
|
484
|
|
- uni.showToast({
|
485
|
|
- icon: 'none',
|
486
|
|
- title: res.msg || '请求数据失败!'
|
487
|
|
- });
|
488
|
|
- }
|
489
|
|
- })
|
490
|
|
- }
|
491
|
|
-
|
492
|
|
- // 获取责任科室列表
|
493
|
|
- function getDutys(){
|
494
|
|
- uni.showLoading({
|
495
|
|
- title: "加载中",
|
496
|
|
- mask: true,
|
497
|
|
- });
|
498
|
|
- let postData = {
|
499
|
|
- "idx": 0,
|
500
|
|
- "sum": 9999,
|
501
|
|
- "dutyDepartment": {
|
502
|
|
- "branch": dataInfo.branchId,
|
503
|
|
- }
|
504
|
|
- };
|
505
|
|
- api_dutyDepartment(postData).then(res => {
|
506
|
|
- uni.hideLoading();
|
507
|
|
- if(res.status == 200){
|
508
|
|
- res.list = res.list || [];
|
509
|
|
- dataInfo.dutyList = res.list.map(v => ({
|
510
|
|
- text: v.dept,
|
511
|
|
- value: v.id,
|
512
|
|
- }));
|
513
|
|
- }else{
|
514
|
|
- uni.showToast({
|
515
|
|
- icon: 'none',
|
516
|
|
- title: res.msg || '请求数据失败!'
|
517
|
|
- });
|
518
|
|
- }
|
519
|
|
- })
|
520
|
|
- }
|
521
|
|
-
|
522
|
|
- // 获取工作组列表
|
523
|
|
- function getGroups(){
|
524
|
|
- uni.showLoading({
|
525
|
|
- title: "加载中",
|
526
|
|
- mask: true,
|
527
|
|
- });
|
528
|
|
-
|
529
|
|
- let duty = undefined;
|
530
|
|
- if(dataInfo.tabActiveValue === 'redeploy'){
|
531
|
|
- duty = dataInfo.incidentData.duty;
|
532
|
|
- }else if(dataInfo.tabActiveValue === 'assign'){
|
533
|
|
- duty = { id: dataInfo.dutyId };
|
534
|
|
- }
|
535
|
|
-
|
536
|
|
- let postData = {
|
537
|
|
- "idx": 0,
|
538
|
|
- "sum": 9999,
|
539
|
|
- "group": {
|
540
|
|
- "duty": duty,
|
541
|
|
- "selectType": "nouser"
|
542
|
|
- }
|
543
|
|
- };
|
544
|
|
- api_group(postData).then(res => {
|
545
|
|
- uni.hideLoading();
|
546
|
|
- if(res.status == 200){
|
547
|
|
- res.list = res.list || [];
|
548
|
|
- dataInfo.groupList = res.list.map(v => ({
|
549
|
|
- text: v.groupName,
|
550
|
|
- value: v.id,
|
551
|
|
- }));
|
552
|
|
- }else{
|
553
|
|
- uni.showToast({
|
554
|
|
- icon: 'none',
|
555
|
|
- title: res.msg || '请求数据失败!'
|
556
|
|
- });
|
557
|
|
- }
|
558
|
|
- })
|
559
|
|
- }
|
560
|
|
-
|
561
|
|
- // 获取用户列表
|
562
|
|
- function getUsers(){
|
563
|
|
- uni.showLoading({
|
564
|
|
- title: "加载中",
|
565
|
|
- mask: true,
|
566
|
|
- });
|
567
|
|
- let postData = {
|
568
|
|
- "idx": 0,
|
569
|
|
- "sum": 9999,
|
570
|
|
- "user": {
|
571
|
|
- "groupdata":{
|
572
|
|
- "id": dataInfo.groupId,
|
573
|
|
- },
|
574
|
|
- "roledata": {
|
575
|
|
- "rolecode": "first-line support"
|
576
|
|
- },
|
577
|
|
- "roledata2": {
|
578
|
|
- "rolecode": "second-line support"
|
579
|
|
- },
|
580
|
|
- "selectType": "1",
|
581
|
|
- "selectDetails": 1,
|
582
|
|
- "simple": true,
|
583
|
|
- "engineer": 1
|
584
|
|
- }
|
585
|
|
- };
|
586
|
|
- api_user(postData).then(res => {
|
587
|
|
- uni.hideLoading();
|
588
|
|
- if(res.status == 200){
|
589
|
|
- res.list = res.list || [];
|
590
|
|
- dataInfo.userList = res.list.map(v => ({
|
591
|
|
- text: v.name,
|
592
|
|
- value: v.id,
|
593
|
|
- }));
|
594
|
|
- }else{
|
595
|
|
- uni.showToast({
|
596
|
|
- icon: 'none',
|
597
|
|
- title: res.msg || '请求数据失败!'
|
598
|
|
- });
|
599
|
|
- }
|
600
|
|
- })
|
601
|
|
- }
|
602
|
|
-
|
603
|
|
- // 选择院区
|
604
|
|
- function changeBranch(){
|
605
|
|
- dataInfo.dutyId = undefined;
|
606
|
|
- dataInfo.dutyList = [];
|
607
|
|
-
|
608
|
|
- dataInfo.groupId = undefined;
|
609
|
|
- dataInfo.groupList = [];
|
610
|
|
-
|
611
|
|
- dataInfo.userId = undefined;
|
612
|
|
- dataInfo.userList = [];
|
613
|
|
- getDutys();
|
614
|
|
- }
|
615
|
|
-
|
616
|
|
- // 选择责任科室
|
617
|
|
- function changeDuty(){
|
618
|
|
- dataInfo.groupId = undefined;
|
619
|
|
- dataInfo.groupList = [];
|
620
|
|
-
|
621
|
|
- dataInfo.userId = undefined;
|
622
|
|
- dataInfo.userList = [];
|
623
|
|
- getGroups();
|
624
|
|
- }
|
625
|
|
-
|
626
|
|
- // 选择工作组
|
627
|
|
- function changeGroup(){
|
628
|
|
- dataInfo.userId = undefined;
|
629
|
|
- dataInfo.userList = [];
|
630
|
|
- getUsers();
|
631
|
|
- }
|
632
|
|
-
|
633
|
|
- // 选择是否转派到人
|
634
|
|
- function changeIsAssignUser(){
|
635
|
|
- dataInfo.userId = undefined;
|
636
|
|
- }
|
637
|
|
-
|
638
|
621
|
// 提交
|
639
|
|
- function submmit(){
|
640
|
|
- isSubmmit.value = true;
|
641
|
|
- if(dataInfo.tabActiveValue === 'doing' && isInSummaryOrder){
|
642
|
|
-
|
643
|
|
- }else if(dataInfo.tabActiveValue === 'doing' && isInSummaryOrder){
|
644
|
|
-
|
|
622
|
+ function submit(){
|
|
623
|
+ isSubmit.value = true;
|
|
624
|
+ if(dataInfo.tabActiveValue === 'doing' && isInSummaryOrder.value){
|
|
625
|
+ isSubmit.value = false;
|
|
626
|
+ getIncidentDetail(true);
|
|
627
|
+ }else if(dataInfo.tabActiveValue === 'doing' && !isInSummaryOrder.value){
|
|
628
|
+ submitHandler();
|
645
|
629
|
}else if(dataInfo.tabActiveValue === 'overtime'){
|
646
|
|
- submmitOvertime();
|
|
630
|
+ submitOvertime();
|
647
|
631
|
}
|
648
|
632
|
}
|
649
|
633
|
|
650
|
|
- // 转派提交
|
651
|
|
- function submmitRedeploy(){
|
652
|
|
- if(!dataInfo.groupId){
|
653
|
|
- uni.showToast({
|
654
|
|
- icon: 'none',
|
655
|
|
- title: '请选择工作组'
|
656
|
|
- });
|
657
|
|
- return;
|
658
|
|
- }
|
659
|
|
-
|
660
|
|
- if(dataInfo.isAssignUser == 1 && !dataInfo.userId){
|
661
|
|
- uni.showToast({
|
662
|
|
- icon: 'none',
|
663
|
|
- title: '请选择指派对象'
|
664
|
|
- });
|
665
|
|
- return;
|
666
|
|
- }
|
667
|
|
-
|
668
|
|
- uni.showLoading({
|
669
|
|
- title: "加载中",
|
670
|
|
- mask: true,
|
671
|
|
- });
|
672
|
|
-
|
|
634
|
+ // 处理提交事件
|
|
635
|
+ function handlerOrder(){
|
673
|
636
|
let postData = {
|
674
|
637
|
incident: dataInfo.incidentData,
|
675
|
638
|
}
|
676
|
639
|
|
677
|
|
- if(dataInfo.userId){
|
678
|
|
- // 派人
|
679
|
|
- postData.incident.assignee = dataInfo.userId;
|
680
|
|
- } else {
|
681
|
|
- // 派组
|
682
|
|
- postData.incident.candidateGroups = dataInfo.groupId;
|
683
|
|
- }
|
|
640
|
+ postData.incident.handleDescription = dataInfo.handleDescription;
|
|
641
|
+ postData.incident.handlCategory = {id: dataInfo.handlCategory};
|
|
642
|
+ postData.incident.closecode = {id: dataInfo.closecode};
|
|
643
|
+ postData.incident.category = dataInfo.category;
|
|
644
|
+ postData.incident.synergetic = dataInfo.synergetic;
|
684
|
645
|
|
685
|
|
- api_incidentTask(dataInfo.tabActiveValue, postData).then(res => {
|
686
|
|
- uni.hideLoading();
|
687
|
|
- if(res.state == 200){
|
688
|
|
- uni.showToast({
|
689
|
|
- icon: 'none',
|
690
|
|
- title: '转派成功',
|
691
|
|
- mask: true,
|
692
|
|
- });
|
693
|
|
- setTimeout(() => {
|
694
|
|
- uni.reLaunch({
|
695
|
|
- url: '/pages/incidentList/incidentList',
|
696
|
|
- })
|
697
|
|
- }, 1500)
|
698
|
|
- }else{
|
699
|
|
- uni.showToast({
|
700
|
|
- icon: 'none',
|
701
|
|
- title: res.msg || '请求数据失败!'
|
702
|
|
- });
|
703
|
|
- }
|
704
|
|
- })
|
|
646
|
+ return api_incidentTask(dataInfo.tabActiveValue, postData);
|
705
|
647
|
}
|
706
|
648
|
|
707
|
|
- // 指派提交
|
708
|
|
- function submmitAssign(){
|
709
|
|
- if(!dataInfo.branchId){
|
|
649
|
+ // 处理图片
|
|
650
|
+ function handlerOrderImg(imgObj){
|
|
651
|
+ return uploadFile(imgObj, 'incident', dataInfo.incidentId)
|
|
652
|
+ }
|
|
653
|
+
|
|
654
|
+ // 处理提交
|
|
655
|
+ function submitHandler(){
|
|
656
|
+ console.log(dataInfo);
|
|
657
|
+ if(!dataInfo.handleDescription.trim() && dataInfo.category.hasSimple != 1){
|
710
|
658
|
uni.showToast({
|
711
|
659
|
icon: 'none',
|
712
|
|
- title: '请选择院区'
|
|
660
|
+ title: '请填写解决方案'
|
713
|
661
|
});
|
714
|
662
|
return;
|
715
|
663
|
}
|
716
|
664
|
|
717
|
|
- if(!dataInfo.dutyId){
|
|
665
|
+ if(!dataInfo.category.id && dataInfo.category.hasSimple != 1){
|
718
|
666
|
uni.showToast({
|
719
|
667
|
icon: 'none',
|
720
|
|
- title: '请选择责任科室'
|
|
668
|
+ title: '请选择故障现象'
|
721
|
669
|
});
|
722
|
670
|
return;
|
723
|
671
|
}
|
724
|
672
|
|
725
|
|
- if(!dataInfo.groupId){
|
|
673
|
+ if(!dataInfo.handleCategory){
|
726
|
674
|
uni.showToast({
|
727
|
675
|
icon: 'none',
|
728
|
|
- title: '请选择工作组'
|
|
676
|
+ title: '请选择处理方式'
|
729
|
677
|
});
|
730
|
678
|
return;
|
731
|
679
|
}
|
732
|
680
|
|
733
|
|
- if(dataInfo.isAssignUser == 1 && !dataInfo.userId){
|
|
681
|
+ if(!dataInfo.closecode && dataInfo.category.hasSimple != 1){
|
734
|
682
|
uni.showToast({
|
735
|
683
|
icon: 'none',
|
736
|
|
- title: '请选择指派对象'
|
|
684
|
+ title: '请选择关闭代码'
|
737
|
685
|
});
|
738
|
686
|
return;
|
739
|
687
|
}
|
|
688
|
+ console.log(dataInfo.handlerImgList)
|
740
|
689
|
|
741
|
690
|
uni.showLoading({
|
742
|
691
|
title: "加载中",
|
743
|
692
|
mask: true,
|
744
|
693
|
});
|
745
|
|
-
|
746
|
|
- let postData = {
|
747
|
|
- incident: dataInfo.incidentData,
|
748
|
|
- }
|
749
|
|
-
|
750
|
|
- if(dataInfo.userId){
|
751
|
|
- // 派人
|
752
|
|
- postData.incident.assignee = dataInfo.userId;
|
753
|
|
- } else {
|
754
|
|
- // 派组
|
755
|
|
- postData.incident.candidateGroups = dataInfo.groupId;
|
|
694
|
+ if(dataInfo.handlerImgList.length){
|
|
695
|
+ // 有图片
|
|
696
|
+ handlerImgRef.value.upload();
|
|
697
|
+ }else{
|
|
698
|
+ // 没有图片
|
|
699
|
+ let handlerOrder$ = handlerOrder();
|
|
700
|
+ let requestList = [handlerOrder$];
|
|
701
|
+ Promise.all(requestList).then(resList => {
|
|
702
|
+ uni.hideLoading();
|
|
703
|
+ console.log(resList);
|
|
704
|
+ if(resList[0].state == 200){
|
|
705
|
+ uni.showToast({
|
|
706
|
+ icon: 'none',
|
|
707
|
+ title: '处理成功',
|
|
708
|
+ mask: true,
|
|
709
|
+ });
|
|
710
|
+ setTimeout(() => {
|
|
711
|
+ uni.reLaunch({
|
|
712
|
+ url: '/pages/incidentList/incidentList',
|
|
713
|
+ })
|
|
714
|
+ }, 1500)
|
|
715
|
+ }else{
|
|
716
|
+ uni.showToast({
|
|
717
|
+ icon: 'none',
|
|
718
|
+ title: resList[0].msg || '请求数据失败!'
|
|
719
|
+ });
|
|
720
|
+ }
|
|
721
|
+ })
|
756
|
722
|
}
|
757
|
|
-
|
758
|
|
- api_incidentTask(dataInfo.tabActiveValue, postData).then(res => {
|
759
|
|
- uni.hideLoading();
|
760
|
|
- if(res.state == 200){
|
761
|
|
- uni.showToast({
|
762
|
|
- icon: 'none',
|
763
|
|
- title: '指派成功',
|
764
|
|
- mask: true,
|
765
|
|
- });
|
766
|
|
- setTimeout(() => {
|
767
|
|
- uni.reLaunch({
|
768
|
|
- url: '/pages/incidentList/incidentList',
|
769
|
|
- })
|
770
|
|
- }, 1500)
|
771
|
|
- }else{
|
772
|
|
- uni.showToast({
|
773
|
|
- icon: 'none',
|
774
|
|
- title: res.msg || '请求数据失败!'
|
775
|
|
- });
|
776
|
|
- }
|
777
|
|
- })
|
778
|
723
|
}
|
779
|
724
|
|
780
|
|
- // 退回提交
|
781
|
|
- function submmitReassign(){
|
782
|
|
- if(!dataInfo.reassignRemark.trim()){
|
783
|
|
- uni.showToast({
|
784
|
|
- icon: 'none',
|
785
|
|
- title: '请填写退回原因'
|
786
|
|
- });
|
787
|
|
- return;
|
788
|
|
- }
|
789
|
|
-
|
790
|
|
- uni.showLoading({
|
791
|
|
- title: "加载中",
|
792
|
|
- mask: true,
|
793
|
|
- });
|
794
|
|
-
|
795
|
|
- let postData = {
|
796
|
|
- incident: dataInfo.incidentData,
|
797
|
|
- }
|
798
|
|
-
|
799
|
|
- postData.incident.reassignRemark = dataInfo.reassignRemark;
|
800
|
|
-
|
801
|
|
- api_incidentTask(dataInfo.tabActiveValue, postData).then(res => {
|
802
|
|
- uni.hideLoading();
|
803
|
|
- if(res.state == 200){
|
804
|
|
- uni.showToast({
|
805
|
|
- icon: 'none',
|
806
|
|
- title: '退回成功',
|
807
|
|
- mask: true,
|
808
|
|
- });
|
809
|
|
- setTimeout(() => {
|
810
|
|
- uni.reLaunch({
|
811
|
|
- url: '/pages/incidentList/incidentList',
|
812
|
|
- })
|
813
|
|
- }, 1500)
|
814
|
|
- }else{
|
815
|
|
- uni.showToast({
|
816
|
|
- icon: 'none',
|
817
|
|
- title: res.msg || '请求数据失败!'
|
818
|
|
- });
|
819
|
|
- }
|
820
|
|
- })
|
821
|
|
- }
|
822
|
725
|
// 延期处理提交
|
823
|
|
- function submmitOvertime(){
|
|
726
|
+ function submitOvertime(){
|
824
|
727
|
if(!dataInfo.repairTypeId){
|
825
|
728
|
uni.showToast({
|
826
|
729
|
icon: 'none',
|
|
@@ -894,7 +797,6 @@
|
894
|
797
|
display: flex;
|
895
|
798
|
flex-direction: column;
|
896
|
799
|
justify-content: space-between;
|
897
|
|
- background-color: #F7F7F7;
|
898
|
800
|
.head{
|
899
|
801
|
height: 88rpx;
|
900
|
802
|
display: flex;
|
|
@@ -920,6 +822,9 @@
|
920
|
822
|
box-sizing: border-box;
|
921
|
823
|
flex: 1;
|
922
|
824
|
min-height: 0;
|
|
825
|
+ &.bg{
|
|
826
|
+ background-color: #F7F7F7;
|
|
827
|
+ }
|
923
|
828
|
.summaryItem{
|
924
|
829
|
&:first-of-type{
|
925
|
830
|
.summaryItem_head{
|
|
@@ -995,11 +900,19 @@
|
995
|
900
|
}
|
996
|
901
|
}
|
997
|
902
|
}
|
|
903
|
+ .form_item_column{
|
|
904
|
+ padding-top: 24rpx;
|
|
905
|
+ min-height: 86rpx;
|
|
906
|
+ .form_item{
|
|
907
|
+ padding-top: 0;
|
|
908
|
+ min-height: auto;
|
|
909
|
+ }
|
|
910
|
+ }
|
998
|
911
|
.form_item{
|
999
|
912
|
display: flex;
|
1000
|
913
|
align-items: center;
|
1001
|
914
|
padding-top: 24rpx;
|
1002
|
|
- height: 86rpx;
|
|
915
|
+ min-height: 86rpx;
|
1003
|
916
|
&.column{
|
1004
|
917
|
height: auto;
|
1005
|
918
|
flex-direction: column;
|
|
@@ -1026,10 +939,40 @@
|
1026
|
939
|
display: flex;
|
1027
|
940
|
align-items: center;
|
1028
|
941
|
margin-right: 12rpx;
|
|
942
|
+ flex-shrink: 0;
|
1029
|
943
|
&.select{
|
1030
|
944
|
width: calc(5em + 20rpx);
|
1031
|
945
|
}
|
1032
|
946
|
}
|
|
947
|
+ .value{
|
|
948
|
+ width: 100%;
|
|
949
|
+ &.category{
|
|
950
|
+ width: 100%;
|
|
951
|
+ display: flex;
|
|
952
|
+ justify-content: space-between;
|
|
953
|
+ align-items: center;
|
|
954
|
+ .categoryName{
|
|
955
|
+ font-size: 26rpx;
|
|
956
|
+ color: #555;
|
|
957
|
+ flex: 1;
|
|
958
|
+ }
|
|
959
|
+ .newicon-weibiaoti2010104{
|
|
960
|
+ color: $uni-primary;
|
|
961
|
+ margin-left: 24rpx;
|
|
962
|
+ }
|
|
963
|
+ }
|
|
964
|
+ .imgTips{
|
|
965
|
+ color: #909399;
|
|
966
|
+ font-size: 22rpx;
|
|
967
|
+ }
|
|
968
|
+ }
|
|
969
|
+ .synergeticNames{
|
|
970
|
+ font-size: 26rpx;
|
|
971
|
+ margin-right: 24rpx;
|
|
972
|
+ }
|
|
973
|
+ .synergeticAdd{
|
|
974
|
+ flex-shrink: 0;
|
|
975
|
+ }
|
1033
|
976
|
}
|
1034
|
977
|
}
|
1035
|
978
|
}
|