fix ระบบเครื่องราชฯ >> บันทึกผลการเสนอขอ (กรองข้อมูลใบกำกับที่ค้างจ่าย)

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-31 16:44:45 +07:00
parent 38b0a2e548
commit 3d34a8d3ff

View file

@ -193,7 +193,8 @@ export const useResultDataStore = defineStore("insigniaResult", () => {
* @returns "haveDate" | "noDate"
*/
function convertDatepay(val: string | null, status: string) {
return val !== null && status === "DONE" ? "haveDate" : "noDate";
if (status !== "DONE") return "";
return val === null ? "noDate" : "haveDate";
}
return {