fix: product worker
This commit is contained in:
parent
f4802b6991
commit
7f0d006a7c
4 changed files with 176 additions and 248 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue