fix 79461
This commit is contained in:
+6
-1
@@ -156,7 +156,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="item-model" prop="applyDelayDate">
|
<a-form-model-item class="item-model" prop="applyDelayDate">
|
||||||
<j-date date-format="YYYY-MM-DD" style="width: 100%" showType="day" :disabled="disabled"
|
<j-date date-format="YYYY-MM-DD" style="width: 100%" showType="day" :disabled="disabled" :disabledDate="disabledDate"
|
||||||
:placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionRectification.requestExtensionDate')"
|
:placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionRectification.requestExtensionDate')"
|
||||||
v-model="formInline.applyDelayDate" />
|
v-model="formInline.applyDelayDate" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -187,6 +187,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import UploadFile from '@comp/UploadFile'
|
import UploadFile from '@comp/UploadFile'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BaseInfoForm',
|
name: 'BaseInfoForm',
|
||||||
@@ -294,6 +295,10 @@ export default {
|
|||||||
/** 赋值给当前对应的表单文件 */
|
/** 赋值给当前对应的表单文件 */
|
||||||
this.$set(this.formInline, 'attachment', attIdList.join(','))
|
this.$set(this.formInline, 'attachment', attIdList.join(','))
|
||||||
// this.formInline.attachment = attIdList.join(',')
|
// this.formInline.attachment = attIdList.join(',')
|
||||||
|
},
|
||||||
|
// 禁用日期选择大于当前天
|
||||||
|
disabledDate (date) {
|
||||||
|
return date.isBefore(moment().add(1, 'days'), 'day')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+6
@@ -29,6 +29,7 @@
|
|||||||
<template v-slot:inspectionContactPerson="{text, record}">
|
<template v-slot:inspectionContactPerson="{text, record}">
|
||||||
<div class="table-form" v-if="isInitiate">
|
<div class="table-form" v-if="isInitiate">
|
||||||
<a-select v-model="record.liaisons" style="width: 100%" allowClear @change="changeRowData(record, 'liaisons')"
|
<a-select v-model="record.liaisons" style="width: 100%" allowClear @change="changeRowData(record, 'liaisons')"
|
||||||
|
show-search :filter-option="filterOption"
|
||||||
:placeholder="$t('pleaseSelect')+$t('workCenter.incExtensionRequest.inspectionContactPerson')">
|
:placeholder="$t('pleaseSelect')+$t('workCenter.incExtensionRequest.inspectionContactPerson')">
|
||||||
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.realname + '(' + item.username + ')' }}</a-select-option>
|
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.realname + '(' + item.username + ')' }}</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -320,6 +321,11 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
filterOption (input, option) {
|
||||||
|
return (
|
||||||
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user