diff --git a/appserver/Expenses.json b/appserver/Expenses.json index ffeefac..e6f3587 100644 --- a/appserver/Expenses.json +++ b/appserver/Expenses.json @@ -1,27 +1,56 @@ [ { "id": "3f7e1c45-a2e9-4b08-a56d-e687ea79ba61", - "firstName": "สมชัย14", - "lastName": "แสงสุข", - "affiliation": "ลูกจ้าง", - "rank": "นาง", + "firstName": "กนกวรรณ", + "lastName": "เจริญเจริญ", + "affiliation": "ฝอ.1", + "rank": "พ.ต.อ.หญิง", "idcard": "134044411441178", - "phone": "0325647845", - "status": "โสด", - "typeAffiliation": "ลูกจ้าง", - "typeRanks": "ลูกจ้าง", + "phone": "0974543655", + "status": "สมรส", + "typeAffiliation": "บก.อก.", + "typeRanks": "สัญญาบัตร", "typeUser": "ตร.", "building": "แฟลตบางเขน 1", "floor": "2", "roomnumber": "201", - "insurancecost": 254, - "installments": 266, + "insurancecost": 266 , + "installments": 254, "waterbill": 150, "electricitybill": 945, "central": 500, - "costs": 200, - "sumCost":1000, + "costs": 950, + "Maintenancefee":100, + "sumCost":200, + "sumbill":"5/10", "typeContract": "หักได้", "contract": "..." + }, + { + "id": "3f7e1c45-a2e9-4b08-a56d-e687ea79ba62", + "firstName": "มานี", + "lastName": "มานอน", + "affiliation": "ลูกจ้าง", + "rank": "ส.ต.ต.", + "idcard": "134044411441178", + "phone": "0325647845", + "status": "สมรส", + "typeAffiliation": "ลูกจ้าง", + "typeRanks": "ประทวน", + "typeUser": "ตร.", + "building": "แฟลตบางเขน 1", + "floor": "2", + "roomnumber": "201", + "insurancecost": "", + "installments": "", + "waterbill": "", + "Maintenancefee": "", + "electricitybill": "", + "central": "", + "costs": "", + "sumCost":"", + "sumbill":"", + "typeContract": "", + "contract": "..." } ] \ No newline at end of file diff --git a/appserver/queue.json b/appserver/queue.json index 279500c..ec08602 100644 --- a/appserver/queue.json +++ b/appserver/queue.json @@ -8,9 +8,11 @@ "idcard": "134044411441178", "phone": "0325647845", "status": "โสด", + "typeRoom": "ช1", "typeAffiliation": "ลูกจ้าง", "typeRanks": "ลูกจ้าง", - "bookNumber": "1234" + "bookNumber": "1234", + "pickedBook":"" }, { "id": "8e81c39a-d50c-42f5-85c0-f9f773c2a4aa", @@ -20,10 +22,12 @@ "rank": "ส.ต.อ.", "idcard": "134044411441178", "status": "โสด", + "typeRoom": "ช1", "phone": "0325647845", "typeAffiliation": "บช.ตซด.", "typeRanks": "ประทวน", - "bookNumber": "1234" + "bookNumber": "1234", + "pickedBook":"" }, { "id": "ebd367bf-396f-4bae-8130-1ce3fa130d38", @@ -34,9 +38,11 @@ "idcard": "134044411441178", "phone": "0325647845", "status": "โสด", + "typeRoom": "ช1", "typeAffiliation": "ลูกจ้าง", "typeRanks": "ลูกจ้าง", - "bookNumber": "1234" + "bookNumber": "1234", + "pickedBook":"" }, { "id": "46685cde-8ea0-4cd2-ba94-7d86e6e893bd", @@ -47,9 +53,11 @@ "idcard": "134044411441178", "phone": "0325647845", "status": "สมรส", + "typeRoom": "ช2", "typeAffiliation": "บช.ตซด.", "typeRanks": "ประทวน", - "bookNumber": "14578963" + "bookNumber": "14578963", + "pickedBook":"" }, { "id": "f5d0184e-3b79-4005-b873-543a45942c4c", @@ -60,10 +68,12 @@ "idcard": "134044411441178", "phone": "0325647845", "status": "โสด", + "typeRoom": "ช1", "typeAffiliation": "ลูกจ้าง", "typeRanks": "ลูกจ้าง", "typeUser": "ตร.", - "bookNumber": "กกกกกกกกกก" + "bookNumber": "กกกกกกกกกก", + "pickedBook":"" }, { "id": "5615b6ac-de82-4ec2-b370-e7ddc830924c", @@ -72,12 +82,14 @@ "lastName": "แสงสุข", "affiliation": "บช.ตซด.", "rank": "ส.ต.อ.", + "typeRoom": "ช3", "idcard": "134044411441178", "phone": "0325647845", "typeAffiliation": "บช.ตซด.", "typeRanks": "ประทวน", "typeUser": "บช.ตชด.", "bookNumber": "56544444", - "queue": "none" + "queue": "none", + "pickedBook":"" } ] \ No newline at end of file diff --git a/appserver/server.js b/appserver/server.js index e9f75ab..3a7e94d 100644 --- a/appserver/server.js +++ b/appserver/server.js @@ -213,6 +213,8 @@ app.put('/queue/:id', (req, res) => { if (req.body.queue) parsedData.queue = req.body.queue if (req.body.no) parsedData.no = req.body.no if (req.body.bookNumber) parsedData.bookNumber = req.body.bookNumber + if (req.body.pickedBook) parsedData.pickedBook = req.body.pickedBook + if (req.body.typeRoom) parsedData.typeRoom = req.body.typeRoom filterdata.push(parsedData) fs.writeFile('./users.json', JSON.stringify(filterdata, null, 2), (err) => { if (err) { diff --git a/appserver/users.json b/appserver/users.json index abc2f31..3bdf30f 100644 --- a/appserver/users.json +++ b/appserver/users.json @@ -1,189 +1,208 @@ [ - { - "id": "3f7e1c45-a2e9-4b08-a56d-e687ea79ba61", - "no": 1, - "firstName": "สมชัย14", - "lastName": "แสงสุข", - "affiliation": "ลูกจ้าง", - "rank": "นาง", - "idcard": "134044411441178", - "phone": "0325647845", - "status": "โสด", - "typeAffiliation": "ลูกจ้าง", - "typeRanks": "ลูกจ้าง", - "typeUser": "ตร.", - "bookNumber": "1234", - "queue": "inqueue", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - }, - { - "id": "ebd367bf-396f-4bae-8130-1ce3fa130d38", - "no": 2, - "firstName": "สมชัย", - "lastName": "แสงสุข", - "affiliation": "ลูกจ้าง", - "rank": "นาง", - "idcard": "134044411441178", - "phone": "0325647845", - "status": "โสด", - "typeAffiliation": "ลูกจ้าง", - "typeRanks": "ลูกจ้าง", - "typeUser": "ตร.", - "bookNumber": "", - "queue": "inqueue", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - }, - { - "id": "507e0867-4d56-4f4e-81d1-f3a1ab0d0fde", - "no": 1, - "firstName": "มานา", - "lastName": "มานี", - "affiliation": "ลูกจ้าง", - "rank": "นาย", - "idcard": "134044411441178", - "phone": "0325647845", - "status": "สมรส", - "typeAffiliation": "ลูกจ้าง", - "typeRanks": "ลูกจ้าง", - "typeUser": "ตร.", - "bookNumber": "", - "queue": "inroom", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - }, - { - "id": "2c388c78-b2a3-4ea2-bca5-48521eb7e5db", - "no": 3, - "firstName": "มานี", - "lastName": "มานอน", - "affiliation": "ลูกจ้าง", - "rank": "ส.ต.ต.", - "idcard": "134044411441178", - "phone": "0325647845", - "status": "สมรส", - "typeAffiliation": "ลูกจ้าง", - "typeRanks": "ประทวน", - "typeUser": "ตร.", - "bookNumber": "1234", - "queue": "inqueue", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - }, - { - "id": "1cb479fa-e217-422d-938e-47f6fc9b9f32", - "no": 4, - "firstName": "มานพ", - "lastName": "มานี", - "affiliation": "ฝอ.2", - "rank": "ร.ต.ต.", - "idcard": "13404441144555", - "phone": "0325647845", - "status": "สมรส", - "typeAffiliation": "บก.อก.", - "typeRanks": "สัญญาบัตร", - "typeUser": "บช.ตชด.", - "bookNumber": "1234", - "queue": "inqueue", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - }, - { - "id": "fc3710ca-c3af-4781-9c8f-4aa6657ddff4", - "no": 5, - "firstName": "สมาน788", - "lastName": "แสงสุข7", - "affiliation": "ลูกจ้าง", - "rank": "นาง", - "idcard": "13404441144", - "phone": "0325647847", - "status": "โสด", - "typeAffiliation": "ลูกจ้าง", - "typeRanks": "ลูกจ้าง", - "typeUser": "ตร.", - "bookNumber": "14", - "queue": "none", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - }, - { - "id": "967bf9a7-047e-4951-ba2a-190f42045715", - "no": 5, - "firstName": "สมชัย", - "lastName": "แสงสุข", - "affiliation": "ฝสสน.1", - "rank": "ส.ต.ท.", - "idcard": "134044411441178", - "phone": "0325647845", - "status": "โสด", - "typeAffiliation": "บก.สนน.", - "typeRanks": "ประทวน", - "typeUser": "บช.ตชด.", - "bookNumber": "456", - "queue": "inqueue", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - }, - { - "id": "fae8c402-f815-44cc-8702-bf843dc97db4", - "firstName": "กนกวรรณ", - "lastName": "เจริญเจริญ", - "affiliation": "ฝอ.1", - "rank": "พ.ต.อ.หญิง", - "idcard": "134044411441178", - "phone": "0974543655", - "status": "สมรส", - "typeAffiliation": "บก.อก.", - "typeRanks": "สัญญาบัตร", - "typeUser": "ตร.", - "queue": "inqueue", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - }, - { - "id": "8e81c39a-d50c-42f5-85c0-f9f773c2a4aa", - "no": 0, - "firstName": "สมชัย", - "lastName": "แสงสุข", - "affiliation": "บช.ตซด.", - "rank": "ส.ต.อ.", - "idcard": "134044411441178", - "phone": "0325647845", - "typeAffiliation": "บช.ตซด.", - "typeRanks": "ประทวน", - "typeUser": "บช.ตชด.", - "bookNumber": "1234", - "queue": "none", - "status": "โสด", - "contract": "", - "checkintime": "", - "maintenance": "", - "insurance": "", - "installments": "" - } + { + "id": "3f7e1c45-a2e9-4b08-a56d-e687ea79ba61", + "no": 1, + "firstName": "สมชัย14", + "lastName": "แสงสุข", + "affiliation": "ลูกจ้าง", + "rank": "นาง", + "idcard": "134044411441178", + "phone": "0325647845", + "status": "โสด", + "typeAffiliation": "ลูกจ้าง", + "typeRanks": "ลูกจ้าง", + "typeUser": "ตร.", + "bookNumber": "1234", + "queue": "inqueue", + "typeRoom": "ช1", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-10-08T14:10:26.374Z" + }, + { + "id": "ebd367bf-396f-4bae-8130-1ce3fa130d38", + "no": 2, + "firstName": "สมชัย", + "lastName": "แสงสุข", + "affiliation": "ลูกจ้าง", + "rank": "นาง", + "idcard": "134044411441178", + "phone": "0325647845", + "status": "โสด", + "typeAffiliation": "ลูกจ้าง", + "typeRanks": "ลูกจ้าง", + "typeUser": "ตร.", + "typeRoom": "ช1", + "bookNumber": "", + "queue": "inqueue", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-11-01T14:10:26.374Z" + }, + { + "id": "507e0867-4d56-4f4e-81d1-f3a1ab0d0fde", + "no": 1, + "firstName": "มานา", + "lastName": "มานี", + "affiliation": "ลูกจ้าง", + "rank": "นาย", + "idcard": "134044411441178", + "phone": "0325647845", + "status": "สมรส", + "typeAffiliation": "ลูกจ้าง", + "typeRanks": "ลูกจ้าง", + "typeUser": "ตร.", + "bookNumber": "", + "typeRoom": "ช2", + "queue": "inroom", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-11-03T14:10:26.374Z" + }, + { + "id": "2c388c78-b2a3-4ea2-bca5-48521eb7e5db", + "no": 3, + "firstName": "มานี", + "lastName": "มานอน", + "affiliation": "ลูกจ้าง", + "rank": "ส.ต.ต.", + "idcard": "134044411441178", + "phone": "0325647845", + "status": "สมรส", + "typeAffiliation": "ลูกจ้าง", + "typeRanks": "ประทวน", + "typeUser": "ตร.", + "bookNumber": "1234", + "typeRoom": "ช2", + "queue": "inqueue", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-11-02T14:10:26.374Z" + }, + { + "id": "1cb479fa-e217-422d-938e-47f6fc9b9f32", + "no": 4, + "firstName": "มานพ", + "lastName": "มานี", + "affiliation": "ฝอ.2", + "rank": "ร.ต.ต.", + "idcard": "13404441144555", + "phone": "0325647845", + "status": "สมรส", + "typeRoom": "ช2", + "typeAffiliation": "บก.อก.", + "typeRanks": "สัญญาบัตร", + "typeUser": "บช.ตชด.", + "bookNumber": "1234", + "queue": "inqueue", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-11-07T14:10:26.374Z" + }, + { + "id": "967bf9a7-047e-4951-ba2a-190f42045715", + "no": 5, + "firstName": "สมชัย", + "lastName": "แสงสุข", + "affiliation": "ฝสสน.1", + "rank": "ส.ต.ท.", + "idcard": "134044411441178", + "phone": "0325647845", + "status": "โสด", + "typeRoom": "ช1", + "typeAffiliation": "บก.สนน.", + "typeRanks": "ประทวน", + "typeUser": "บช.ตชด.", + "bookNumber": "456", + "queue": "inqueue", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-11-08T14:10:26.374Z" + }, + { + "id": "fae8c402-f815-44cc-8702-bf843dc97db4", + "no": 6, + "firstName": "กนกวรรณ", + "lastName": "เจริญเจริญ", + "affiliation": "ฝอ.1", + "rank": "พ.ต.อ.หญิง", + "idcard": "134044411441178", + "phone": "0974543655", + "status": "สมรส", + "typeRoom": "ช3", + "typeAffiliation": "บก.อก.", + "typeRanks": "สัญญาบัตร", + "typeUser": "ตร.", + "queue": "none", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-11-08T10:10:26.374Z" + }, + { + "id": "fc3710ca-c3af-4781-9c8f-4aa6657ddff4", + "no": 7, + "firstName": "สมาน788", + "lastName": "แสงสุข7", + "affiliation": "ลูกจ้าง", + "rank": "นาง", + "idcard": "13404441144", + "phone": "0325647847", + "status": "โสด", + "typeRoom": "ช1", + "typeAffiliation": "ลูกจ้าง", + "typeRanks": "ลูกจ้าง", + "typeUser": "ตร.", + "bookNumber": "14", + "queue": "none", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-11-08T14:10:26.374Z" + }, + { + "id": "8e81c39a-d50c-42f5-85c0-f9f773c2a4aa", + "no": 6, + "firstName": "สมชัย", + "lastName": "แสงสุข", + "affiliation": "บช.ตซด.", + "rank": "ส.ต.อ.", + "idcard": "134044411441178", + "phone": "0325647845", + "typeAffiliation": "บช.ตซด.", + "typeRanks": "ประทวน", + "typeUser": "บช.ตชด.", + "bookNumber": "123", + "queue": "none", + "status": "โสด", + "typeRoom": "ช1", + "contract": "", + "checkintime": "", + "maintenance": "", + "insurance": "", + "installments": "", + "pickedBook":"2023-11-08T12:10:26.374Z" + } ] \ No newline at end of file diff --git a/webapp/index.html b/webapp/index.html index fddc07d..5cf63c9 100644 --- a/webapp/index.html +++ b/webapp/index.html @@ -11,8 +11,8 @@ sizes="76x76" href="./assets/img/apple-icon.png" /> - -
ลำดับ | ++ | ชื่อ-สกุล | -อาคาร | +เลขก่อน | เลขหลัง | ยอดใช้ | @@ -286,28 +299,11 @@ export default {หักได้ | หักไม่ได้ | สาเหตุที่หัก | -|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ index + 1 }} | -{{ item?.rank }} {{ item?.firstName }} {{ item?.lastName }} | -{{ item?.building }} | -{{ item?.floor }} | -{{ item?.roomnumber }} | -{{ item?.installments }} | -{{ item?.insurancecost }} | -{{ item?.sumCost }} | -{{ item?.waterbill }} | -{{ item?.electricitybill }} | -{{ item?.central }} | -{{ item?.costs }} | -{{ item?.roomnumber }} | -{{ item?.typeContract }} | -{{ item?.typeContract }} | -- | {{ item?.contract }} | +
|
+ {{ item?.rank }} {{ item?.firstName }} {{ item?.lastName }} | + +{{ item?.installments }} | +{{ item?.insurancecost }} | +{{ item?.sumCost }} | +{{ item?.waterbill }} | +{{ item?.electricitybill }} | +{{ item?.central }} | +{{ item?.costs }} | +{{ item?.sumCost }} | +{{ item?.sumbill }} | +/ | +- | + +{{ item?.contract }} |