ส่งเรื่องร้องเรียนไปยังขั้นตอนการสืบสวน
This commit is contained in:
parent
418437486d
commit
b876c951b0
4 changed files with 56 additions and 31 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue