【bug】资料网员成员添加 带出邮寄联系人
This commit is contained in:
@@ -39,12 +39,13 @@
|
||||
:selected-company="selectedCompany"
|
||||
:init-contacts="selectPerson"
|
||||
placeholder="请选择企业联系人"
|
||||
@change="changetPerson"
|
||||
v-decorator="[
|
||||
'companyContactId',
|
||||
validatorRules.companyContactId,
|
||||
]"
|
||||
:maxLength="50"
|
||||
ref="selectMailContacts"
|
||||
ref="selectContacts"
|
||||
@ok="addContactsOk"
|
||||
></select-contacts>
|
||||
</a-form-item>
|
||||
@@ -203,11 +204,11 @@
|
||||
</a-row>
|
||||
</a-form>
|
||||
</a-spin>
|
||||
<contact-management-module
|
||||
ref="contactForm"
|
||||
is-company-disabled
|
||||
:selected-company="selectedCompany"
|
||||
></contact-management-module>
|
||||
<!-- <contact-management-module-->
|
||||
<!-- ref="contactForm"-->
|
||||
<!-- is-company-disabled-->
|
||||
<!-- :selected-company="selectedCompany"-->
|
||||
<!-- ></contact-management-module>-->
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
@@ -216,7 +217,7 @@ import pick from 'lodash.pick'
|
||||
import { httpAction } from '@api/manage'
|
||||
import JUpload from '@comp/jero/JUpload'
|
||||
import CompanySelect from '@comp/company/CompanySelect'
|
||||
import ContactManagementModule from '@views/businessManagement/modules/ContactManagementModule'
|
||||
// import ContactManagementModule from '@views/businessManagement/modules/ContactManagementModule'
|
||||
import SelectContacts from '@comp/company/SelectContacts'
|
||||
import {addZero} from '@/utils/util'
|
||||
|
||||
@@ -225,7 +226,7 @@ export default {
|
||||
components: {
|
||||
JUpload,
|
||||
CompanySelect,
|
||||
ContactManagementModule,
|
||||
// ContactManagementModule,
|
||||
SelectContacts,
|
||||
},
|
||||
data() {
|
||||
@@ -263,11 +264,11 @@ export default {
|
||||
},
|
||||
companyContactId: {
|
||||
rules: [{ required: true, message: '请选择企业联系人' }],
|
||||
validateTrigger: 'blur',
|
||||
validateTrigger: 'change',
|
||||
},
|
||||
postContactId: {
|
||||
rules: [{ required: true, message: '请选择邮寄联系人' }],
|
||||
validateTrigger: 'blur',
|
||||
validateTrigger: 'change',
|
||||
},
|
||||
paymentMethod: {
|
||||
rules: [{ required: true, message: '请选择来款方式' }],
|
||||
@@ -365,6 +366,13 @@ export default {
|
||||
)
|
||||
})
|
||||
},
|
||||
// 选择企业联系人 带出邮寄联系人
|
||||
changetPerson(val){
|
||||
// 只有邮寄联系人没有值的时候才去联动复制
|
||||
if(this.form.getFieldValue('postContactId') === undefined ){
|
||||
this.form.setFieldsValue({'postContactId':val})
|
||||
}
|
||||
},
|
||||
close() {
|
||||
this.incomePaysType = 3
|
||||
this.$emit('close')
|
||||
@@ -413,10 +421,10 @@ export default {
|
||||
* 选择会员单位
|
||||
* */
|
||||
companyChange(val) {
|
||||
this.selectedCompany = Object.assign({}, val, { companyName: val.name })
|
||||
this.selectedCompany = Object.assign({}, val, )
|
||||
},
|
||||
handleCancel() {
|
||||
this.selectedCompany = {}
|
||||
this.selectedCompany = null
|
||||
this.close()
|
||||
},
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user