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