fix:profileId To citizenId
This commit is contained in:
parent
79d1a14ec4
commit
ae4e874f42
11 changed files with 68 additions and 18 deletions
|
|
@ -155,7 +155,7 @@ async function uploadFileDoc(
|
|||
uploadUrl: string,
|
||||
file: any,
|
||||
group: string,
|
||||
profileId?: string
|
||||
id?: string
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append("file", file);
|
||||
|
|
@ -177,7 +177,7 @@ async function uploadFileDoc(
|
|||
fileUploadOrder.value = null;
|
||||
} else {
|
||||
attachmentList.value.forEach((e) => {
|
||||
if (e.id === profileId) {
|
||||
if (e.id === id) {
|
||||
e.file = null;
|
||||
}
|
||||
});
|
||||
|
|
@ -217,13 +217,13 @@ async function fetchDocOrder(type: string) {
|
|||
});
|
||||
}
|
||||
|
||||
async function fetchDocTailer(type: string, profileId: string) {
|
||||
async function fetchDocTailer(type: string, id: string) {
|
||||
await http
|
||||
.get(config.API.subFile("ระบบออกคำสั่ง", type, commandId.value, profileId))
|
||||
.get(config.API.subFile("ระบบออกคำสั่ง", type, commandId.value, id))
|
||||
.then((res) => {
|
||||
const data = res.data[0];
|
||||
attachmentList.value.forEach((e) => {
|
||||
if (e.id === profileId) {
|
||||
if (e.id === id) {
|
||||
attachmentFiles.value[e.id] = data;
|
||||
}
|
||||
});
|
||||
|
|
@ -245,7 +245,7 @@ function downloadFile(
|
|||
file: any,
|
||||
group: string,
|
||||
isView: boolean = false,
|
||||
profileId: string
|
||||
id: string
|
||||
) {
|
||||
let type = group === "order" ? "คำสั่ง" : "แนบท้าย";
|
||||
|
||||
|
|
@ -261,7 +261,7 @@ function downloadFile(
|
|||
"ระบบออกคำสั่ง",
|
||||
type,
|
||||
commandId.value,
|
||||
profileId,
|
||||
id,
|
||||
file.fileName
|
||||
);
|
||||
|
||||
|
|
@ -330,7 +330,7 @@ async function fetchLists() {
|
|||
.then(async (res) => {
|
||||
const data = await res.data.result;
|
||||
attachmentList.value = data.commandRecives.map((item: any) => ({
|
||||
id: item.id,
|
||||
id: item.citizenId,
|
||||
name: item.prefix + item.firstName + " " + item.lastName,
|
||||
file: null,
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue