eslint; 收入合同
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<contact-management-module ref="contactForm"
|
||||
is-company-disabled
|
||||
:selected-company="selectedCompany"
|
||||
v-on="$listeners">
|
||||
@ok="addContactsOk">
|
||||
</contact-management-module>
|
||||
</div>
|
||||
</template>
|
||||
@@ -59,6 +59,7 @@ export default {
|
||||
return {
|
||||
contactsList: [], // 该企业下联系人列表
|
||||
isFirstOpen: true, // 编辑状态下是否为第一次打开
|
||||
contactId: this.value
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -114,11 +115,16 @@ export default {
|
||||
}
|
||||
this.$message.warn('请先选择来款企业再为该企业新建联系人')
|
||||
},
|
||||
addContactsOk(id) {
|
||||
this.getContactsList()
|
||||
this.$emit('change', id)
|
||||
this.$emit('ok')
|
||||
},
|
||||
// 下拉框的搜索
|
||||
filterOption(input, option) {
|
||||
return (
|
||||
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||
);
|
||||
)
|
||||
},
|
||||
handleDropdownOpen() {
|
||||
if (this.isFirstOpen && this.initContacts && this.initContacts.hasOwnProperty('id')) {
|
||||
@@ -143,5 +149,6 @@ export default {
|
||||
.form-btn {
|
||||
padding-top: 1px;
|
||||
padding-left: 8px;
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user