This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-08 18:44:39 +07:00
parent 474d28750c
commit 73f6d9c6f7

View file

@ -36,7 +36,7 @@ const {
/**
* Props
*/
const props = defineProps({
const props = defineProps({
modal: Boolean,
save: {
type: Function,
@ -80,7 +80,7 @@ const affiliationReceived = ref<string>("");
const receivedate = ref<Date | null>();
const announceDate = ref<Date | null>();
const invoiceDate = ref<Date | null>(null);
const filterinsigniaOp2 = ref<any>(DataStore.insigniaOp2);
const filterinsigniaOp2 = ref<any[]>([]);
const employeeClass = ref<string>("");
const employeeClassOps = ref<DataOption[]>([
{ id: "officer", name: "ข้าราชการ กทม.สามัญ" },
@ -107,6 +107,7 @@ function clearDateInvoiceDate() {
*/
watch(props, () => {
if (props.modal === true) {
filterinsigniaOp2.value = DataStore.insigniaOp2;
employeeClass.value = "";
cardid.value = "";
fullName.value = "";
@ -170,7 +171,7 @@ function selectType() {
* function เรยกรายชอลกจางตาม id หนวยงาน
* @param id id หนวยงาน
*/
function findlist(id: string = "", idCard: string) {
function findlist(id: string = "", idCard: string) {
formFilter.searchKeyword = idCard;
http
.get(