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"
size="md"
v-model="formData.isSpecial"
label=""
label="เฉพาะสายงานที่กำหนด"
/>
</div>

View file

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

View file

@ -421,7 +421,7 @@ onMounted(async () => {
bordered
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> -->