Commit dd89018b by Lin

feat(detailFiles):将邀请日期与交付日期同步

- 新增 syncInviteDateFromDelivery 方法,当 inviteDate 未设置时,根据 deliveryDate 设置 inviteDate。
- 更新 bindDateChange 方法,在 deliveryDate 变化时调用 syncInviteDateFromDelivery。
1 parent 6806f48a
......@@ -454,6 +454,7 @@ export default {
if (!this.customerInfo.contact_name && res.wxName) {
this.customerInfo.contact_name = res.wxName
}
this.syncInviteDateFromDelivery()
this.syncDisplayInfo(this.customerInfo)
await this.getCustomerGroupInfo()
return true
......@@ -706,6 +707,7 @@ export default {
if (!this.customerInfo.contact_name && res.wxName) {
this.customerInfo.contact_name = res.wxName
}
this.syncInviteDateFromDelivery()
this.syncDisplayInfo(this.customerInfo)
console.log('findVisitsInfo**customerInfo*', this.customerInfo)
await this.getCustomerGroupInfo()
......@@ -772,8 +774,16 @@ export default {
getDatePickerEnd (field) {
return field.dateUnlimited ? '2099-12-31' : this.endDate
},
syncInviteDateFromDelivery () {
if (!this.customerInfo.inviteDate && this.customerInfo.deliveryDate) {
this.customerInfo.inviteDate = this.customerInfo.deliveryDate
}
},
bindDateChange (e, valueKey) {
this.customerInfo[valueKey] = e.detail.value
if (valueKey === 'deliveryDate') {
this.syncInviteDateFromDelivery()
}
},
inputBlur (e, val) {
const standNoVal = this.customerInfo.standNo
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!