updated
This commit is contained in:
parent
43e36b7b74
commit
6eed463eb5
6 changed files with 313 additions and 190 deletions
|
|
@ -43,12 +43,10 @@ function getDate() {
|
|||
.get(config.API.evaluationDateAnnounce(id.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
const endDate = new Date(data.dateStartAnnounce);
|
||||
endDate.setDate(endDate.getDate() + 210);
|
||||
const endDate = new Date(data.dateEndAnnounce);
|
||||
endDate.setDate(endDate.getDate() + 180);
|
||||
dateEndPrepareDoc2.value = date2Thai(endDate);
|
||||
dateEndPrepareDoc2.value = data.dateEndPrepareDoc2
|
||||
? date2Thai(data.dateEndPrepareDoc2)
|
||||
: dateEndPrepareDoc2.value;
|
||||
// dateEndPrepareDoc2.value = dateEndPrepareDoc2.value;
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -69,9 +67,9 @@ function getSigner() {
|
|||
formCommand.abovelevelFullname = data.commanderAboveFullnameDoc2;
|
||||
formCommand.abovelevelPosition = data.commanderAbovePositionDoc2;
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
// .catch((e) => {
|
||||
// messageError($q, e);
|
||||
// })
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue