รายการลาออก => เงื่อนไขต่าง ๆ
This commit is contained in:
parent
fce4bb8a2d
commit
ef0bcc7e4d
1 changed files with 12 additions and 4 deletions
|
|
@ -129,6 +129,7 @@ const openModal = () => (modal.value = true);
|
||||||
|
|
||||||
const file = ref<any>(null);
|
const file = ref<any>(null);
|
||||||
const fileList = ref<FileList[]>([]);
|
const fileList = ref<FileList[]>([]);
|
||||||
|
const isNoDebt = ref<boolean>(false);
|
||||||
const checkboxGroup = ref<CheckBoxType[]>([]);
|
const checkboxGroup = ref<CheckBoxType[]>([]);
|
||||||
const checkboxOp = ref<CheckBoxType[]>([
|
const checkboxOp = ref<CheckBoxType[]>([
|
||||||
{ label: "ไม่เป็นหนี้สหกรณ์", value: "debt" },
|
{ label: "ไม่เป็นหนี้สหกรณ์", value: "debt" },
|
||||||
|
|
@ -187,6 +188,7 @@ const fetchData = async (id: string) => {
|
||||||
}
|
}
|
||||||
rows.value = list;
|
rows.value = list;
|
||||||
dataDetail.value = data;
|
dataDetail.value = data;
|
||||||
|
|
||||||
organizationPositionOld.value = data.organizationPositionOld ?? "";
|
organizationPositionOld.value = data.organizationPositionOld ?? "";
|
||||||
positionTypeOld.value = data.positionTypeOld ?? "";
|
positionTypeOld.value = data.positionTypeOld ?? "";
|
||||||
positionLevelOld.value = data.positionLevelOld ?? "";
|
positionLevelOld.value = data.positionLevelOld ?? "";
|
||||||
|
|
@ -198,6 +200,7 @@ const fetchData = async (id: string) => {
|
||||||
location.value = data.location ?? "";
|
location.value = data.location ?? "";
|
||||||
status.value = data.status ?? "";
|
status.value = data.status ?? "";
|
||||||
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
||||||
|
isNoDebt.value = data.isNoDebt;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -305,7 +308,7 @@ const onSubmitConditions = () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.put(config.API.resignConditions(id.value), {
|
.put(config.API.resignConditions(id.value), {
|
||||||
isNoDebt: checkboxGroup.value[0] ? true : false,
|
isNoDebt: isNoDebt.value,
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
fetchData(id.value);
|
fetchData(id.value);
|
||||||
|
|
@ -774,13 +777,18 @@ function removeFile(fileName: string) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12"><q-separator /></div>
|
||||||
<!-- <q-checkbox v-model="teal" label="Teal" color="teal" :disable="!conditions" /> -->
|
<q-checkbox
|
||||||
<q-option-group
|
v-model="isNoDebt"
|
||||||
|
label="ไม่เป็นหนี้สหกรณ์"
|
||||||
|
color="teal"
|
||||||
|
:disable="!conditions"
|
||||||
|
/>
|
||||||
|
<!-- <q-option-group
|
||||||
:options="checkboxOp"
|
:options="checkboxOp"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
v-model="checkboxGroup"
|
v-model="checkboxGroup"
|
||||||
:disable="!conditions"
|
:disable="!conditions"
|
||||||
/>
|
/> -->
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue