ส่งเรื่องร้องเรียนไปยังขั้นตอนการสืบสวน

This commit is contained in:
setthawutttty 2023-11-23 17:48:24 +07:00
parent 418437486d
commit b876c951b0
4 changed files with 56 additions and 31 deletions

View file

@ -17,7 +17,7 @@ const { dialogConfirm, dialogMessageNotify, success } = mixin;
const props = defineProps({
title: {
type: String,
default: 'ส่งไปสืบสวน',
default: "ส่งไปสืบสวน",
},
modal: {
type: Boolean,
@ -27,6 +27,10 @@ const props = defineProps({
type: Function,
require: true,
},
sentApprove: {
type: Function,
default: () => "",
},
});
/** หัวตาราง */
@ -128,21 +132,23 @@ const initialPagination = ref<any>({
function onclickSend() {
// inputRef.value.validate();
if (selected.value.length > 0) {
dialogConfirm(
$q,
async () => {
success($q, `ส่งข้อมูล${props.title}สำเร็จ`);
console.log(selected.value);
dialogConfirm($q, () => props.sentApprove());
props.close?.();
},
`ยืนยันการส่ง${props.title}`,
`ต้องการยืนยันการส่ง${props.title}หรือไม่`
);
} else {
dialogMessageNotify($q, "กรุณาเลือกรายชื่อ");
}
// if (selected.value.length > 0) {
// dialogConfirm(
// $q,
// async () => {
// success($q, `${props.title}`);
// console.log(selected.value);
// props.close?.();
// },
// `${props.title}`,
// `${props.title}`
// );
// } else {
// dialogMessageNotify($q, "");
// }
}
function onClickClose() {