This commit is contained in:
parent
011c65dcf8
commit
dd09a8cb23
8 changed files with 51 additions and 39 deletions
|
|
@ -2287,7 +2287,6 @@ const emptyCreateDialog = ref(false);
|
|||
res = await customerStore.createBranch({
|
||||
...customerFormData.customerBranch[idx],
|
||||
customerId: customerFormState.editCustomerId || '',
|
||||
id: undefined,
|
||||
});
|
||||
}
|
||||
if (res) {
|
||||
|
|
@ -2315,10 +2314,10 @@ const emptyCreateDialog = ref(false);
|
|||
if (ext) filename += `.${ext}`;
|
||||
|
||||
const res = await customerStore.putAttachment({
|
||||
branchId:
|
||||
parentId:
|
||||
customerFormData.customerBranch?.[idx].id || '',
|
||||
file: v.file,
|
||||
filename,
|
||||
name: filename,
|
||||
});
|
||||
|
||||
if (res) {
|
||||
|
|
@ -3108,7 +3107,7 @@ const emptyCreateDialog = ref(false);
|
|||
file: File | undefined,
|
||||
) => {
|
||||
let status: boolean = false;
|
||||
if (group !== 'attachment') {
|
||||
if (group === 'passport' || group === 'visa') {
|
||||
if (file !== undefined && currentFromDataEmployee.id) {
|
||||
const res = await employeeStore.postMeta({
|
||||
parentId: currentFromDataEmployee.id || '',
|
||||
|
|
@ -5171,7 +5170,7 @@ const emptyCreateDialog = ref(false);
|
|||
file: File | undefined,
|
||||
) => {
|
||||
let status: boolean = false;
|
||||
if (group !== 'attachment') {
|
||||
if (group === 'passport' || group === 'visa') {
|
||||
if (file !== undefined && currentFromDataEmployee.id) {
|
||||
const res = await employeeStore.postMeta({
|
||||
parentId: currentFromDataEmployee.id || '',
|
||||
|
|
|
|||
|
|
@ -220,7 +220,6 @@ withDefaults(
|
|||
hide-action
|
||||
:ocr="
|
||||
async (group, file) => {
|
||||
console.log(group);
|
||||
if (group !== 'attachment') {
|
||||
const res = await ocrStore.sendOcr({
|
||||
file: file,
|
||||
|
|
@ -245,12 +244,20 @@ withDefaults(
|
|||
:auto-save="item.id !== ''"
|
||||
:download="
|
||||
(obj) => {
|
||||
customerStore.getFile({
|
||||
parentId: item.id || '',
|
||||
group: obj.group,
|
||||
fileId: obj._meta.id,
|
||||
download: true,
|
||||
});
|
||||
if (obj.group === 'citizen') {
|
||||
customerStore.getFile({
|
||||
parentId: item.id || '',
|
||||
group: obj.group,
|
||||
fileId: obj._meta.id,
|
||||
download: true,
|
||||
});
|
||||
} else {
|
||||
customerStore.getAttachment({
|
||||
parentId: item.id || '',
|
||||
name: obj._meta.id,
|
||||
download: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
"
|
||||
:delete-item="
|
||||
|
|
@ -279,7 +286,7 @@ withDefaults(
|
|||
_meta: any,
|
||||
file: File | undefined,
|
||||
) => {
|
||||
if (group !== 'attachment') {
|
||||
if (group === 'citizen') {
|
||||
if (file !== undefined && item.id) {
|
||||
const res = await customerStore.postMeta({
|
||||
parentId: item.id || '',
|
||||
|
|
@ -347,7 +354,6 @@ withDefaults(
|
|||
});
|
||||
|
||||
const tempValue = resMeta.map(async (v: any) => {
|
||||
console.log(v.expireDate);
|
||||
return {
|
||||
_meta: { ...v },
|
||||
name: `${group}-${dateFormat(v.expireDate)}`,
|
||||
|
|
@ -368,7 +374,6 @@ withDefaults(
|
|||
});
|
||||
|
||||
const tempValue = (res as string[]).map(async (i: any) => {
|
||||
console.log(i);
|
||||
return {
|
||||
_meta: { id: i, name: i },
|
||||
name: i || '',
|
||||
|
|
|
|||
|
|
@ -69,19 +69,19 @@ export const uploadFileListCustomer: {
|
|||
}[] = [
|
||||
{
|
||||
label: 'customer.typeFile.citizenId',
|
||||
value: 'citizen',
|
||||
group: 'citizen',
|
||||
value: 'citizen',
|
||||
},
|
||||
{
|
||||
label: 'customer.typeFile.registrationBook',
|
||||
value: 'attachment',
|
||||
group: 'houseRegistration',
|
||||
value: 'attachment',
|
||||
},
|
||||
|
||||
{
|
||||
label: 'customer.typeFile.houseMap',
|
||||
value: 'attachment',
|
||||
group: 'vatRegistration',
|
||||
value: 'attachment',
|
||||
},
|
||||
|
||||
{
|
||||
|
|
@ -92,7 +92,7 @@ export const uploadFileListCustomer: {
|
|||
|
||||
{
|
||||
label: 'customer.typeFile.dbdCertificate',
|
||||
group: 'powerOfAttorney',
|
||||
group: 'dbdCertificate',
|
||||
value: 'attachment',
|
||||
},
|
||||
|
||||
|
|
@ -144,43 +144,43 @@ export const uploadFileListEmployee: {
|
|||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.tm6',
|
||||
value: 'attachment',
|
||||
group: 'tm6',
|
||||
value: 'attachment',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.workPermit',
|
||||
value: 'attachment',
|
||||
group: 'workPermit',
|
||||
value: 'attachment',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.noticeJobEmployment',
|
||||
value: 'attachment',
|
||||
group: 'noticeJobEmployment',
|
||||
value: 'attachment',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.noticeJobEntry',
|
||||
value: 'attachment',
|
||||
group: 'noticeJobEntry',
|
||||
value: 'attachment',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.historyJob',
|
||||
value: 'attachment',
|
||||
group: 'historyJob',
|
||||
value: 'attachment',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.acceptJob',
|
||||
value: 'attachment',
|
||||
group: 'acceptJob',
|
||||
value: 'attachment',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.receipt',
|
||||
value: 'attachment',
|
||||
group: 'receipt',
|
||||
value: 'attachment',
|
||||
},
|
||||
{
|
||||
label: 'customerEmployee.fileType.other',
|
||||
value: 'attachment',
|
||||
group: 'other',
|
||||
value: 'attachment',
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -1010,7 +1010,6 @@ watch(
|
|||
"
|
||||
/>
|
||||
<!-- TODO: blind remark, urgent -->
|
||||
{{ console.log(taskListGroup) }}
|
||||
<RemarkExpansion
|
||||
v-if="
|
||||
view === TaskOrderStatus.Pending ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue