feat: request list => PropertiesExpansion display employee name
This commit is contained in:
parent
a19e75e17d
commit
187ca4db0f
2 changed files with 20 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ import {
|
|||
|
||||
import { Attributes, RequestData } from 'src/stores/request-list/types';
|
||||
|
||||
import { getCustomerName } from 'src/stores/utils';
|
||||
import { getCustomerName, getEmployeeName } from 'src/stores/utils';
|
||||
import useOptionStore from 'src/stores/options';
|
||||
import { useRequestList } from 'src/stores/request-list';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
|
@ -84,6 +84,7 @@ function triggerEdit() {
|
|||
|
||||
function assignToForm() {
|
||||
const requestData = props.requestListData;
|
||||
// console.log(requestData);
|
||||
formRemark.value = attributes.value?.remark || '';
|
||||
formData.value = JSON.parse(
|
||||
JSON.stringify(attributes.value?.properties || {}),
|
||||
|
|
@ -91,6 +92,9 @@ function assignToForm() {
|
|||
formData.value['quotationNo'] = requestData.quotation.code;
|
||||
formData.value['contactPerson'] = requestData.quotation.contactName;
|
||||
formData.value['telephone'] = requestData.quotation.contactTel;
|
||||
formData.value['employee'] = getEmployeeName(requestData.employee, {
|
||||
locale: locale.value,
|
||||
});
|
||||
formData.value['employer'] = getCustomerName(
|
||||
requestData.quotation.customerBranch,
|
||||
{ locale: locale.value },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue