|
|
@@ -97,13 +97,13 @@
|
|
|
owner_group_id : "{{$owner->user_owner_group_id ?? ''}}",
|
|
|
user_workgroup_id : "{{$owner->user_workgroup_id ?? ''}}",
|
|
|
warehouse_id : "{{ $owner->warehouse_id ?? ''}}",
|
|
|
- tax_rate_id : "{{$owner->tax_rate_id ?? ''}}",
|
|
|
+ tax_rate_id : "{{$owner->is_tax_exist}}"==='Y' ? '0' : "{{$owner->tax_rate_id ?? ''}}",
|
|
|
linkman : "{{$owner->linkman ?? ''}}",
|
|
|
phone_number : "{{$owner->phone_number ?? ''}}",
|
|
|
description : "{{$owner->description ?? ''}}",
|
|
|
waring_line_on : "{{$owner->waring_line_on ?? ''}}",
|
|
|
subjection : "{{$owner->subjection ?? ''}}",
|
|
|
- is_tax_exist : "{{$owner->is_tax_exist}}"=='Y',
|
|
|
+ is_tax_exist : "{{$owner->is_tax_exist}}"==='Y',
|
|
|
},
|
|
|
ownerTemp : {},
|
|
|
customers : [
|
|
|
@@ -493,8 +493,9 @@
|
|
|
//if (!this.owner.tax_rate_id) error["tax_rate_id"] = ["必须选择税率"];
|
|
|
if (JSON.stringify(error) !== "{}"){
|
|
|
this.errors = error;
|
|
|
- return;
|
|
|
+ return false;
|
|
|
}
|
|
|
+ this.owner.is_tax_exist = this.owner.tax_rate_id==='0';
|
|
|
let url = "{{url('customer/project/projectUpdate')}}";
|
|
|
let params = this.owner;
|
|
|
let old = this.ownerTemp;
|