แก้ตามเทส
This commit is contained in:
parent
7c98ab4791
commit
c580393d04
5 changed files with 29 additions and 6 deletions
|
|
@ -839,7 +839,7 @@ onMounted(() => {
|
||||||
v-model="formDataSalary.posNo"
|
v-model="formDataSalary.posNo"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:label="`${'ตำแหน่งเลขที่'}`"
|
:label="`${'ตำแหน่งเลขที่'}`"
|
||||||
:rules="[(val: string) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`]"
|
:rules="empType !== '-temp'? [(val: string) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`]:[]"
|
||||||
>
|
>
|
||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1123,7 +1123,7 @@ onMounted(() => {
|
||||||
label="เงินค่าตอบแทนพิเศษ"
|
label="เงินค่าตอบแทนพิเศษ"
|
||||||
mask="###,###,###,###"
|
mask="###,###,###,###"
|
||||||
reverse-fill-mask
|
reverse-fill-mask
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกเงินค่าตอบแทนพิเศษ'}`]"
|
:rules="empType !== '-temp'? [(val:string) => !!val || `${'กรุณากรอกเงินค่าตอบแทนพิเศษ'}`]:[]"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
/>
|
/>
|
||||||
|
|
@ -1191,7 +1191,7 @@ onMounted(() => {
|
||||||
:label="`${'เอกสารอ้างอิง'}`"
|
:label="`${'เอกสารอ้างอิง'}`"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="[(val: number) => !!val || `${'กรุณากรอกเอกสารอ้างอิง'}`]"
|
:rules="empType !== '-temp'? [(val: number) => !!val || `${'กรุณากรอกเอกสารอ้างอิง'}`]:[]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -663,6 +663,7 @@ watch(props.data, async () => {
|
||||||
isSend: person.isSend,
|
isSend: person.isSend,
|
||||||
isDisciplinary: person.isDisciplinary,
|
isDisciplinary: person.isDisciplinary,
|
||||||
isAncestorDNA: person.isAncestorDNA,
|
isAncestorDNA: person.isAncestorDNA,
|
||||||
|
|
||||||
root: person.root,
|
root: person.root,
|
||||||
rootId: person.rootId,
|
rootId: person.rootId,
|
||||||
rootShortName: person.rootShortName,
|
rootShortName: person.rootShortName,
|
||||||
|
|
|
||||||
|
|
@ -227,6 +227,7 @@ async function fetchDetailComplaints() {
|
||||||
* @param data ข้อมูล ใน form
|
* @param data ข้อมูล ใน form
|
||||||
*/
|
*/
|
||||||
async function onSubmitDisciplinary(data: any) {
|
async function onSubmitDisciplinary(data: any) {
|
||||||
|
console.log("🚀 ~ onSubmitDisciplinary ~ data:", data)
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.disciplineDisciplinaryById(id.value), data)
|
.put(config.API.disciplineDisciplinaryById(id.value), data)
|
||||||
|
|
|
||||||
|
|
@ -352,6 +352,27 @@ async function fetchDatadetail() {
|
||||||
status: person.status,
|
status: person.status,
|
||||||
statusDiscard: person.statusDiscard,
|
statusDiscard: person.statusDiscard,
|
||||||
isAncestorDNA: person.isAncestorDNA,
|
isAncestorDNA: person.isAncestorDNA,
|
||||||
|
|
||||||
|
root: person.root,
|
||||||
|
rootId: person.rootId,
|
||||||
|
rootShortName: person.rootShortName,
|
||||||
|
child1: person.child1,
|
||||||
|
child1Id: person.child1Id,
|
||||||
|
child1ShortName: person.child1ShortName,
|
||||||
|
child2: person.child2,
|
||||||
|
child2Id: person.child2Id,
|
||||||
|
child2ShortName: person.child2ShortName,
|
||||||
|
child3: person.child3,
|
||||||
|
child3Id: person.child3Id,
|
||||||
|
child3ShortName: person.child3ShortName,
|
||||||
|
child4: person.child4,
|
||||||
|
child4Id: person.child4Id,
|
||||||
|
child4ShortName: person.child4ShortName,
|
||||||
|
posMasterNo: person.posMasterNo,
|
||||||
|
posTypeId: person.posTypeId,
|
||||||
|
posTypeName: person.posTypeName,
|
||||||
|
posLevelId: person.posLevelId,
|
||||||
|
citizenId: person.idcard,
|
||||||
}));
|
}));
|
||||||
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
||||||
(item: any) => item.isSuspend === "NEW" && item.isSend === "NEW"
|
(item: any) => item.isSuspend === "NEW" && item.isSend === "NEW"
|
||||||
|
|
@ -398,8 +419,8 @@ function returnCount(num: number) {
|
||||||
countNum.value = num;
|
countNum.value = num;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function addPerson(data: any,type?:string) {
|
async function addPerson(data: any, type?: string) {
|
||||||
await mainStore.fetchData(data,type);
|
await mainStore.fetchData(data, type);
|
||||||
changeFormData();
|
changeFormData();
|
||||||
toggleModal();
|
toggleModal();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ function getData() {
|
||||||
item.posMasterNoPrefix ? item.posMasterNoPrefix : ""
|
item.posMasterNoPrefix ? item.posMasterNoPrefix : ""
|
||||||
}${item.posMasterNo ? item.posMasterNo : ""}${
|
}${item.posMasterNo ? item.posMasterNo : ""}${
|
||||||
item.posMasterNoSuffix ? item.posMasterNoSuffix : ""
|
item.posMasterNoSuffix ? item.posMasterNoSuffix : ""
|
||||||
} ${item.fullNameNextHolder ? item.fullNameNextHolder : ""}`,
|
} ${item.fullNameCurrentHolder ? item.fullNameCurrentHolder : ""}`,
|
||||||
posMasterNoPrefix: item.posMasterNoPrefix,
|
posMasterNoPrefix: item.posMasterNoPrefix,
|
||||||
posMasterNo: item.posMasterNo,
|
posMasterNo: item.posMasterNo,
|
||||||
posMasterNoSuffix: item.posMasterNoSuffix,
|
posMasterNoSuffix: item.posMasterNoSuffix,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue