บรรจุ ทดลองงาน
This commit is contained in:
parent
a8fdca1138
commit
4cfcc2d018
21 changed files with 113 additions and 199 deletions
|
|
@ -36,6 +36,7 @@ const {
|
|||
messageError,
|
||||
dialogMessageNotify,
|
||||
dialogConfirm,
|
||||
convertDateToAPI,
|
||||
} = useCounterMixin();
|
||||
|
||||
/**props*/
|
||||
|
|
@ -233,7 +234,7 @@ async function onClickSubmit() {
|
|||
posTypeName: selectedPos.value[0].posTypeName, //ชื่อตำแหน่ง
|
||||
posLevelId: selectedPos.value[0].posLevelId, //ชื่อตำแหน่ง
|
||||
posLevelName: selectedPos.value[0].posLevelName, //ชื่อตำแหน่ง
|
||||
reportingDate: datePos.value,
|
||||
reportingDate: convertDateToAPI(datePos.value),
|
||||
posmasterId: dataPosMaster.id,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ const {
|
|||
dialogConfirm,
|
||||
date2Thai,
|
||||
onSearchDataTable,
|
||||
convertDateToAPI,
|
||||
} = mixin;
|
||||
|
||||
/** รับค่ามาจากหน้าหลัก */
|
||||
|
|
@ -732,7 +733,9 @@ function onSubmitDate() {
|
|||
dialogConfirm($q, () => {
|
||||
showLoader();
|
||||
http
|
||||
.put(config.API.clearDate(rowId.value), { date: reportingDate.value })
|
||||
.put(config.API.clearDate(rowId.value), {
|
||||
date: convertDateToAPI(reportingDate.value),
|
||||
})
|
||||
.then(async () => {
|
||||
await Promise.all([getTable(), props.statCard()]);
|
||||
await success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue