diff --git a/app/Classes/Modules/Addresses/ControllersLogic/UpdateAddressLogic.php b/app/Classes/Modules/Addresses/ControllersLogic/UpdateAddressLogic.php index 345dd777..25fb6054 100644 --- a/app/Classes/Modules/Addresses/ControllersLogic/UpdateAddressLogic.php +++ b/app/Classes/Modules/Addresses/ControllersLogic/UpdateAddressLogic.php @@ -90,7 +90,7 @@ class UpdateAddressLogic extends AbstractControllerLogic $address->contacts()->delete(); $address->remarks()->delete(); - $contactObject = new ContactObject($request->input('pic'), $request->input('phone'), '', ''); + $contactObject = new ContactObject($request->input('person_in_charge'), $request->input('phone'), '', ''); if($contactObject->getPhone()){ $this->createContactProcessor->execute($contactObject, $address); diff --git a/resources/assets/vue/components/addresses/forms/AddressFormComponent.vue b/resources/assets/vue/components/addresses/forms/AddressFormComponent.vue index 98d405e9..5a9d22c6 100644 --- a/resources/assets/vue/components/addresses/forms/AddressFormComponent.vue +++ b/resources/assets/vue/components/addresses/forms/AddressFormComponent.vue @@ -106,7 +106,7 @@ post_code: '', remark: '', phone: '', - pic: '', + person_in_charge: '', } } @@ -119,7 +119,7 @@ this.parameters.district_id = this.data.district.id; this.parameters.post_code = this.data.post_code; this.parameters.phone = this.data.contact.phone; - this.parameters.pic = this.data.contact.reference; + this.parameters.person_in_charge = this.data.contact.reference; this.parameters.remark = this.data.remark.content; } },