This commit is contained in:
setthawutttty 2024-03-18 11:56:18 +07:00
parent 1d644393fb
commit cdf68c055e
3 changed files with 7 additions and 3 deletions

View file

@ -318,7 +318,7 @@ function checkEndDate() {
:disable="isReadonly" :disable="isReadonly"
size="md" size="md"
v-model="formData.isSpecial" v-model="formData.isSpecial"
label="" label="เฉพาะสายงานที่กำหนด"
/> />
</div> </div>

View file

@ -18,7 +18,8 @@ const fileUpload = ref<any>(null);
const document = ref<string>(""); const document = ref<string>("");
const props = defineProps({ const props = defineProps({
rootId:String, rootId:String,
periodId:String periodId:String,
getData:Function
}) })
/** /**
* function ปโหลดไฟลเจาหนาท * function ปโหลดไฟลเจาหนาท
@ -63,6 +64,7 @@ function saveReccommend(reason:string) {
}) })
.then((res)=>{ .then((res)=>{
console.log(res) console.log(res)
props.getData?.()
}).catch((e)=>{ }).catch((e)=>{
messageError($q,e) messageError($q,e)
}).finally(()=>{ }).finally(()=>{
@ -85,6 +87,7 @@ function sendToDirector(msg: string,type:string) {
.get(config.API.salaryPeriodStatus(type, props.periodId ? props.periodId:'', props.rootId ? props.rootId:'')) .get(config.API.salaryPeriodStatus(type, props.periodId ? props.periodId:'', props.rootId ? props.rootId:''))
.then((res)=>{ .then((res)=>{
console.log(res) console.log(res)
props.getData?.()
}).catch((e)=>{ }).catch((e)=>{
messageError($q,e) messageError($q,e)
}).finally(()=>{ }).finally(()=>{
@ -103,6 +106,7 @@ function sendAndRecommend(title: string,typeOrder:string) {
modalRecommend.value = true; modalRecommend.value = true;
titleRecommend.value = title; titleRecommend.value = title;
type.value = typeOrder type.value = typeOrder
props.getData?.()
} }
</script> </script>

View file

@ -421,7 +421,7 @@ onMounted(async () => {
bordered bordered
class="row col-12 q-mt-xs" class="row col-12 q-mt-xs"
> >
<ProcessStep :periodId="roundFilter.id" :rootId="agencyFilter"/> <ProcessStep :periodId="roundFilter.id" :rootId="agencyFilter" :get-data="onChangeRound"/>
</q-card> </q-card>
<!-- </q-card> --> <!-- </q-card> -->