- fix bug generate แนบท้ายไม่ generate ใหม่
- ปิด log
This commit is contained in:
parent
eea8ce1b6d
commit
3da536acb0
7 changed files with 132 additions and 479 deletions
|
|
@ -178,7 +178,6 @@ watch(byOrder, async () => {
|
|||
.get(config.API.approverOC(byOrder.value))
|
||||
.then((res: any) => {
|
||||
CommandOption.value = res.data.result;
|
||||
// console.log(CommandOption.value);
|
||||
})
|
||||
.catch((e: any) => {
|
||||
console.log(e);
|
||||
|
|
@ -220,10 +219,8 @@ const fetchdetailOrder = async () => {
|
|||
await http
|
||||
.get(config.API.detailOrder(orderIdString))
|
||||
.then((res: any) => {
|
||||
// console.log(res);
|
||||
|
||||
const data = res.data.result;
|
||||
// console.log(data);
|
||||
typeOrder.value = typeOrderOption.value.find(
|
||||
(e) => e.id === data.orderTypeValue
|
||||
);
|
||||
|
|
@ -234,7 +231,6 @@ const fetchdetailOrder = async () => {
|
|||
byOrder.value = data.orderBy;
|
||||
nameCommand.value = data.signatoryBy;
|
||||
positionCommand.value = data.signatoryPosition;
|
||||
// console.log("nameCommand===>",nameCommand.value);
|
||||
|
||||
examRound.value = data.examRound;
|
||||
conclusionRegisterNo.value = data.conclusionRegisterNo;
|
||||
|
|
@ -309,8 +305,6 @@ const fecthCommand = async () => {
|
|||
await http
|
||||
.get(config.API.organizationsOrder())
|
||||
.then((res: any) => {
|
||||
console.log(res);
|
||||
|
||||
byOrderOption.value = res.data.result;
|
||||
})
|
||||
.catch((e: any) => {
|
||||
|
|
@ -319,7 +313,6 @@ const fecthCommand = async () => {
|
|||
};
|
||||
|
||||
const nameOrderFilter = (selectOrder: any) => {
|
||||
console.log(selectOrder);
|
||||
switch (selectOrder) {
|
||||
case "C-PM-01":
|
||||
return "บรรจุและแต่งตั้งผู้สอบแข่งขันได้";
|
||||
|
|
@ -434,9 +427,6 @@ const fecthExamRoundOption = async (commandCode: string) => {
|
|||
};
|
||||
|
||||
const submit = async () => {
|
||||
// console.log(nameCommand.value);
|
||||
// console.log(CommandOption.value);
|
||||
|
||||
let signBy = null;
|
||||
if (!nameCommand.value.length) {
|
||||
signBy = await nameCommand.value.name;
|
||||
|
|
@ -447,9 +437,7 @@ const submit = async () => {
|
|||
(x: any) => x.name == nameCommand.value
|
||||
);
|
||||
signBy = await name2?.name;
|
||||
console.log("signBy", signBy);
|
||||
}
|
||||
console.log(signBy);
|
||||
|
||||
const orderByOrganizationName = await byOrderOption.value.find(
|
||||
(x: any) => x.id == byOrder.value
|
||||
|
|
@ -553,8 +541,6 @@ const submit = async () => {
|
|||
});
|
||||
}
|
||||
|
||||
// console.log(formdata);
|
||||
|
||||
await myForm.value!.validate().then((result: boolean) => {
|
||||
if (result) {
|
||||
dialogConfirm($q, () => {
|
||||
|
|
@ -591,8 +577,6 @@ const updateOrder = async (formData: Object, orderId: string, type: string) => {
|
|||
await http
|
||||
.put(config.API.orderCPMUpdate(type, orderId), formData)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
|
||||
next();
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue