update customer profile

This commit is contained in:
edmondlang
2023-08-09 00:53:54 +08:00
parent e7524e8e00
commit 3c9c1b0034
@@ -6,9 +6,13 @@
<label>{{this.company_details.reference ? this.company_details.reference : ""}}</label>
</div>
<div class="col-12 p-0">
<label :style="minWidth">Company Type</label>
<label :style="minWidth">Business Type</label>
<label>{{this.company_details.business_type ? getBusinessTypeDesc(this.company_details.business_type) : ""}}</label>
</div>
<div class="col-12 p-0">
<label :style="minWidth">Company Type</label>
<label>{{this.company_details.type ? getCompanyTypeDesc(this.company_details.type) : ""}}</label>
</div>
<div class="col-12 p-0">
<label :style="minWidth">Email</label>
<label><i class="fa fa-envelope text-primary fs-10"></i>&nbsp;{{this.company_details.employee ? this.company_details.employee.email : ""}}</label>
@@ -185,8 +189,29 @@
backToCompanyList() {
this.$root.$emit('backToCompanyList');
},
getBusinessTypeDesc(type){
return (type==1) ? 'Company Business':'Personal Business';
getBusinessTypeDesc(business_type_id) {
switch (business_type_id) {
case 1:
return 'Freight Forwarder';
case 2:
return 'Importer';
case 3:
return 'Currency Vendor';
case 4:
return 'Transfer Agent';
default:
return null;
}
},
getCompanyTypeDesc(company_type_id) {
switch (company_type_id) {
case 0:
return 'Personal Business';
case 1:
return 'Company Business';
default:
return null;
}
},
},
mixins: [componentHandler]