fix: product worker

This commit is contained in:
puriphatt 2024-10-09 18:09:01 +07:00
parent f4802b6991
commit 7f0d006a7c
4 changed files with 176 additions and 248 deletions

View file

@ -688,6 +688,22 @@ watch(
<ProductItem
:agent-price="agentPrice"
:employeeRows="
selectedWorker.map((e: Employee) => ({
foreignRefNo: '123456789',
employeeName:
$i18n.locale === 'eng'
? `${e.firstNameEN} ${e.lastNameEN}`
: `${e.firstName} ${e.lastName}`,
birthDate: dateFormat(e.dateOfBirth),
gender: e.gender,
age: calculateAge(e.dateOfBirth),
nationality: optionStore.mapOption(e.nationality),
documentExpireDate: '1234',
imgUrl: `${baseUrl}/customer/${e.id}/image/${e.selectedImage}`,
status: e.status,
}))
"
@delete="toggleDeleteProduct"
v-model:groupList="productServiceTableData"
v-model:rows="productServiceList"