|
@@ -185,7 +185,7 @@
|
|
|
<template v-if="item.projectId && doYouWantToDisplayTheWorkOrder">
|
|
|
<!-- 工单号 -->
|
|
|
<van-field readonly name="stage" :disabled="!item.canEdit"
|
|
|
- v-if="user.timeType.reportExtraField4Name"
|
|
|
+ v-if="user.timeType.reportExtraField4Name && doYouWantToDisplayTheWorkOrderGongdan"
|
|
|
clickable :value="item.extraField4" :label="user.timeType.reportExtraField4Name" :placeholder="!item.canEdit ? '' : `请选择`" :right-icon="!item.canEdit ? '' : 'close'"
|
|
|
@click-right-icon.stop="clearClickPickExtraField4(index, item)"
|
|
|
@focus="clickPickExtraField4(index, item)" />
|
|
@@ -763,6 +763,7 @@ export default {
|
|
|
showAddMore: false,
|
|
|
businessTripsArray: [],
|
|
|
doYouWantToDisplayTheWorkOrder: true,
|
|
|
+ doYouWantToDisplayTheWorkOrderGongdan: true,
|
|
|
hideWorkingHours: false,
|
|
|
|
|
|
reportSettingsRow: {},
|
|
@@ -1241,9 +1242,9 @@ export default {
|
|
|
this.form.domains[index == null ? this.clickIndex : index].extraField4 = ''
|
|
|
this.form.domains[index == null ? this.clickIndex : index].extraField5 = ''
|
|
|
}
|
|
|
- if((res.data.orderIds || []).length > 0) {
|
|
|
- this.form.domains[index == null ? this.clickIndex : index].extraField4 = res.data.orderIds[0]
|
|
|
- }
|
|
|
+ // if((res.data.orderIds || []).length > 0) {
|
|
|
+ // this.form.domains[index == null ? this.clickIndex : index].extraField4 = res.data.orderIds[0]
|
|
|
+ // }
|
|
|
this.form.domains[index == null ? this.clickIndex : index].reportExtraField4List = res.data.orderIds || []
|
|
|
this.form.domains[index == null ? this.clickIndex : index].reportExtraField5List = res.data.lines || []
|
|
|
}
|
|
@@ -2387,6 +2388,12 @@ export default {
|
|
|
} else {
|
|
|
this.doYouWantToDisplayTheWorkOrder = true
|
|
|
}
|
|
|
+
|
|
|
+ if(value.name.indexOf('出差工时') != -1) {
|
|
|
+ this.doYouWantToDisplayTheWorkOrderGongdan = false
|
|
|
+ } else {
|
|
|
+ this.doYouWantToDisplayTheWorkOrderGongdan = true
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|