แก้ไขระบบบรรจุหลังรีวิว
This commit is contained in:
parent
34ae841cfc
commit
c41460a50e
11 changed files with 807 additions and 151 deletions
|
|
@ -44,6 +44,8 @@ const modalData = ref<any>({
|
|||
salaryAmount: null,
|
||||
positionSalaryAmount: null,
|
||||
monthSalaryAmount: null,
|
||||
remarkVertical: "",
|
||||
remarkHorizontal: "",
|
||||
});
|
||||
const myForm = ref<QForm | null>(null);
|
||||
const myFormAdd = ref<QForm | null>(null);
|
||||
|
|
@ -172,6 +174,18 @@ const statuscode = computed(() => {
|
|||
}
|
||||
return true;
|
||||
});
|
||||
// เช็คหมายเหตุ
|
||||
const checkNote = computed(() => {
|
||||
if (
|
||||
orderTypeCode.value === "c-pm-01" ||
|
||||
orderTypeCode.value === "c-pm-02" ||
|
||||
orderTypeCode.value === "c-pm-03" ||
|
||||
orderTypeCode.value === "c-pm-04"
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
// ยืนยันลบข้อมูลราชชื่อ
|
||||
const dialogDeleteData = async (id: string) => {
|
||||
dialogRemove($q, () => deleteData(id));
|
||||
|
|
@ -257,6 +271,8 @@ const fetchSalary = async (personalId: string) => {
|
|||
.get(config.API.salaryOrder(personalId))
|
||||
.then((res: any) => {
|
||||
const data = res.data.result;
|
||||
console.log(data);
|
||||
|
||||
modalData.value = {
|
||||
salaryAmount:
|
||||
data.salaryAmount === 0 &&
|
||||
|
|
@ -276,6 +292,8 @@ const fetchSalary = async (personalId: string) => {
|
|||
data.monthSalaryAmount === 0
|
||||
? null
|
||||
: data.monthSalaryAmount,
|
||||
// remarkVertical: data.remarkVertical,
|
||||
// remarkHorizontal: data.remarkHorizontal,
|
||||
};
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -645,6 +663,21 @@ const pagination = ref({
|
|||
hide-bottom-space
|
||||
/>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-6 col-md-12" v-if="checkNote">
|
||||
<q-input
|
||||
outlined
|
||||
v-model="modalData.remarkVertical"
|
||||
label="หมายเหตุแนวตั้ง"
|
||||
/>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-6 col-md-12" v-if="checkNote">
|
||||
<q-input
|
||||
outlined
|
||||
v-model="modalData.remarkHorizontal"
|
||||
type="textarea"
|
||||
label="หมายเหตุแนวนอน"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue