[update] 外标的新车型实施日期和在产车实施日期改变也同步更新对应的备注字段,更新备注字段改成新增日期时往后面追加

This commit is contained in:
lideqin
2024-08-02 10:05:48 +08:00
parent f608dcacc4
commit c27a2155a0
3 changed files with 6 additions and 4 deletions
+4 -4
View File
@@ -44,7 +44,7 @@
v-model="formInline[item.dbFieldName]"
:fieldName="item.dbFieldName"
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
@change="multipleDateChange"/>
@addDate="multipleAddDate"/>
<!-- 5, 多行文本 -->
<a-textarea v-else-if="item.fieldShowType === FieldType.TEXTAREA.value"
:placeholder="$t('pleaseEnter')+item.dbFieldTxt"
@@ -773,11 +773,11 @@ export default {
// this.formInline[value + '_by'] = id
this.formInline = { ...this.formInline }
},
// 多选日期改变
multipleDateChange (value, fieldName) {
// 多选日期添加了日期
multipleAddDate (value, fieldName) {
if (this.needSyncRemarksDataField.includes(fieldName)) {
// 有关联字段需要更新
this.formInline[fieldName + '_remarks'] = value
this.formInline[fieldName + '_remarks'] = (this.formInline[fieldName + '_remarks'] ? (this.formInline[fieldName + '_remarks'] + ',') : '') + value
this.formInline = { ...this.formInline }
}
},