ปรับ workflow
This commit is contained in:
parent
619e93231c
commit
7eb2c0ce2f
3 changed files with 61 additions and 44 deletions
|
|
@ -22,6 +22,7 @@ const id = ref<string>(
|
|||
? ""
|
||||
: route.params.id.toString()
|
||||
); //id path
|
||||
|
||||
const files = ref<any>(); //ไฟล์
|
||||
const tranferOrg = ref<string>(""); //ชื่อหน่วยงานที่ขอโอนไป
|
||||
const noteReason = ref<string>(""); //เหตุผล
|
||||
|
|
@ -48,11 +49,11 @@ async function createTransfer() {
|
|||
formData.append("file", files.value);
|
||||
await http
|
||||
.post(config.API.listtransfer(), formData)
|
||||
.then((res: any) => {
|
||||
.then((res) => {
|
||||
router.push(`/transfer/` + res.data.result);
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
router.push(`/transfer`);
|
||||
})
|
||||
.catch((e: any) => {
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue