|
@@ -251,7 +251,7 @@
|
|
|
</div>
|
|
|
<div class="fixed__btn__panel">
|
|
|
<el-button size="small" @click="onClose" class="normal-btn-width inline-16">取 消</el-button>
|
|
|
- <duplicateCheck ref="check" :data="form" @onSuccess="onClose"></duplicateCheck>
|
|
|
+ <duplicateCheck ref="check" :data="form" @onSuccess="onClose" @onCheck="onCheck"></duplicateCheck>
|
|
|
<el-button size="small" type="primary" @click="onSave" class="normal-btn-width">确 定</el-button>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
@@ -315,7 +315,7 @@ export default {
|
|
|
value:'',
|
|
|
rules:{
|
|
|
enterprisename:[
|
|
|
- { required: true, message: '输入客户名称', trigger: 'change,blur'},
|
|
|
+ { required: true, message: '输入客户名称', trigger: 'blur'},
|
|
|
],
|
|
|
type: [
|
|
|
{ required: true, message: '还未选择客户类型', trigger: 'change' },
|
|
@@ -376,7 +376,7 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.businessShow = false
|
|
|
this.form.enterprisename = val.companyName
|
|
|
- this.form.address = val.address
|
|
|
+ this.form.address = val.address === "-" ? '' : val.address
|
|
|
this.form.taxno = val.taxNum
|
|
|
this.value = [val.regProvince,val.regCity,val.regArea]
|
|
|
this.form.province = val.regProvince
|
|
@@ -384,6 +384,7 @@ export default {
|
|
|
this.form.county = val.regArea
|
|
|
this.form.contact = val.legalPerson
|
|
|
}).catch(() => {
|
|
|
+ this.businessShow = false
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
message: '已取消更新'
|
|
@@ -400,6 +401,13 @@ export default {
|
|
|
this.param.content.pageNumber = val
|
|
|
this.businessSearch()
|
|
|
},*/
|
|
|
+ /*查重检查*/
|
|
|
+ onCheck(){
|
|
|
+ this.$refs.form.validate((valid) => {
|
|
|
+ if (!valid) return false
|
|
|
+ this.$refs.check.queryRule()
|
|
|
+ })
|
|
|
+ },
|
|
|
/*自动查重判断*/
|
|
|
duplicateCheck(){
|
|
|
this.$refs.form.validate(async (valid) => {
|
|
@@ -644,4 +652,4 @@ export default {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|