bug修改
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<a-form-item label="来款项目" :labelCol="remarksLabelCol" :wrapperCol="remarksWrapperCol">
|
||||
<a-input placeholder="请输入来款项目"
|
||||
v-decorator="['chargeProject',validatorRules.chargeProject]"
|
||||
:maxLength='100'
|
||||
:maxLength='50'
|
||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -185,6 +185,8 @@ import CompanySelect from '@comp/company/CompanySelect'
|
||||
import SelectPrincipal from '@comp/company/SelectPrincipal'
|
||||
import SelectContacts from '@comp/company/SelectContacts'
|
||||
import { addZero } from '../../../utils/util'
|
||||
import Vue from 'vue'
|
||||
import { USER_INFO } from '../../../store/mutation-types'
|
||||
|
||||
export default {
|
||||
name: 'GeneralProjectModule',
|
||||
@@ -344,6 +346,7 @@ export default {
|
||||
companyName: record.chargeCompanyTemporaryName
|
||||
}
|
||||
}
|
||||
|
||||
// 是否存在从收入合同传入的签订联系人id
|
||||
console.log(record, this.signedContactId)
|
||||
record.contactsId = this.signedContactId || record.contactsTemporaryId || undefined
|
||||
@@ -361,6 +364,13 @@ export default {
|
||||
id: this.model.mailContactsTemporaryId,
|
||||
name: this.model.mailContactsTemporaryName
|
||||
}
|
||||
} else {
|
||||
// 新增默认运行年份为当年
|
||||
this.model.year = new Date().getFullYear().toString()
|
||||
// 新增默认负责人为当前用户
|
||||
this.model.principalId = Vue.ls.get(USER_INFO).id
|
||||
// 新增默认来款方式为无
|
||||
this.model.chargeWay = 1
|
||||
}
|
||||
this.chargeWayType = record.chargeWay
|
||||
this.visible = true
|
||||
|
||||
Reference in New Issue
Block a user