Commit e152bfa7 by wenyang

潜在客户功能调整为手机号与微信号填一个即可保存(律家保潜在客户只有微信号无手机号)

parent e2c3b4b6
...@@ -172,9 +172,11 @@ ...@@ -172,9 +172,11 @@
<div class="wrapper_item" style="border: none;margin-bottom: 0;"> <div class="wrapper_item" style="border: none;margin-bottom: 0;">
<div class="contentItem"> <div class="contentItem">
<span>备注</span> <span>备注</span>
<div style="padding: 6px 15px;"> <div style="padding: 6px 15px;flex-grow: 1;">
<input class="form-control" style="padding: 0;" type="text" [disabled]="readonlyFlag" <textarea class="form-control" style="padding: 0;" type="textarea" [disabled]="readonlyFlag"
[(ngModel)]="editBusiness.remark" placeholder="备注信息" (blur)="inputBlur()" /> [(ngModel)]="editBusiness.remark" placeholder="备注信息" (blur)="inputBlur()" >
</textarea>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -347,16 +347,16 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -347,16 +347,16 @@ export class MyBusinessDetailComponent implements OnInit {
} }
} }
if (!this.editBusiness.mobileNo) { if (!this.editBusiness.mobileNo && !this.editBusiness.weChat) {
this.toastDialog = true; this.toastDialog = true;
this.toastInfo = { this.toastInfo = {
status: 1, status: 1,
msg: '手机号不能为空!', msg: '手机号与微信号不能同时为空!',
timeout: 3000, timeout: 3000,
align: 'center' align: 'center'
}; };
return; return;
} else { } else if(this.editBusiness.mobileNo) {
this.editBusiness.mobileNo = this.editBusiness.mobileNo.trim() this.editBusiness.mobileNo = this.editBusiness.mobileNo.trim()
if (!this.lifeCommonService.mobileNoValid(this.editBusiness.mobileNo)) { if (!this.lifeCommonService.mobileNoValid(this.editBusiness.mobileNo)) {
this.toastDialog = true; this.toastDialog = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment