เลขที่ตำแหน่ง => ตำแหน่งเลขที่
This commit is contained in:
parent
599a9c2c75
commit
c1bb3651ab
47 changed files with 155 additions and 127 deletions
|
|
@ -98,7 +98,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "posMasterNo",
|
||||
align: "left",
|
||||
label: "เลขที่ตำแหน่ง",
|
||||
label: "ตำแหน่งเลขที่",
|
||||
sortable: true,
|
||||
field: "posMasterNo",
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
@ -379,7 +379,7 @@ function filterItemsTaps(data: TreeMain[]) {
|
|||
}
|
||||
|
||||
/**
|
||||
* function เลือกเลขที่ตำแหน่ง
|
||||
* function เลือกตำแหน่งเลขที่
|
||||
* @param id เลชที่ตำแหน่ง
|
||||
*/
|
||||
async function onClickSelectPos(id: string) {
|
||||
|
|
@ -435,6 +435,8 @@ watch(
|
|||
async (n) => {
|
||||
if (n == true) {
|
||||
getActive();
|
||||
console.log(props.dataRows);
|
||||
|
||||
if (props?.dataRows?.node !== null && props?.dataRows?.nodeId !== null) {
|
||||
await fetchPosFind(props?.dataRows?.node, props?.dataRows?.nodeId);
|
||||
if (positionId.value) {
|
||||
|
|
@ -491,7 +493,7 @@ function onSubmit() {
|
|||
nodeId: dataPosMaster.nodeId,
|
||||
orgRevisionId: formActive.activeId,
|
||||
positionId: selectedPos.value[0].id,
|
||||
posMasterNo: dataPosMaster.posMasterNo, //เลขที่ตำแหน่ง(เลขอย่่างเดียว)
|
||||
posMasterNo: dataPosMaster.posMasterNo, //ตำแหน่งเลขที่(เลขอย่่างเดียว)
|
||||
positionName: selectedPos.value[0].positionName, //ชื่อตำแหน่ง
|
||||
positionField: selectedPos.value[0].positionField, //ชื่อตำแหน่ง
|
||||
posTypeId: selectedPos.value[0].posTypeId, //ชื่อตำแหน่ง
|
||||
|
|
@ -586,8 +588,8 @@ function onSubmit() {
|
|||
:key="index"
|
||||
:name="item"
|
||||
>
|
||||
<div class="column q-col-gutter-sm" >
|
||||
<!-- เลือกเลขที่ตำแหน่ง -->
|
||||
<div class="column q-col-gutter-sm">
|
||||
<!-- เลือกตำแหน่งเลขที่ -->
|
||||
<div class="col-7">
|
||||
<q-card
|
||||
bordered
|
||||
|
|
@ -596,7 +598,7 @@ function onSubmit() {
|
|||
<div
|
||||
class="col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md"
|
||||
>
|
||||
เลือกเลขที่ตำแหน่ง
|
||||
เลือกตำแหน่งเลขที่
|
||||
</div>
|
||||
<div class="col-12"><q-separator /></div>
|
||||
<div class="col-12 q-pa-md">
|
||||
|
|
@ -860,10 +862,12 @@ function onSubmit() {
|
|||
</div>
|
||||
<div
|
||||
v-else-if="col.name === 'positionArea'"
|
||||
class="table_ellipsis"
|
||||
class="table_ellipsis"
|
||||
>
|
||||
{{
|
||||
props.row.positionArea ? props.row.positionArea:'-'
|
||||
props.row.positionArea
|
||||
? props.row.positionArea
|
||||
: "-"
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "posMasterNo",
|
||||
align: "left",
|
||||
label: "เลขที่ตำแหน่ง",
|
||||
label: "ตำแหน่งเลขที่",
|
||||
sortable: true,
|
||||
field: "posMasterNo",
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
@ -360,7 +360,7 @@ function filterItemsTaps(data: TreeMain[]) {
|
|||
}
|
||||
|
||||
/**
|
||||
* function เลือกเลขที่ตำแหน่ง
|
||||
* function เลือกตำแหน่งเลขที่
|
||||
* @param id เลชที่ตำแหน่ง
|
||||
*/
|
||||
async function onClickSelectPos(id: string) {
|
||||
|
|
@ -472,7 +472,7 @@ function onSubmit() {
|
|||
nodeId: dataPosMaster.nodeId,
|
||||
orgRevisionId: formActive.activeId,
|
||||
positionId: selectedPos.value[0].id,
|
||||
posMasterNo: dataPosMaster.posMasterNo, //เลขที่ตำแหน่ง(เลขอย่่างเดียว)
|
||||
posMasterNo: dataPosMaster.posMasterNo, //ตำแหน่งเลขที่(เลขอย่่างเดียว)
|
||||
positionName: selectedPos.value[0].positionName, //ชื่อตำแหน่ง
|
||||
positionField: selectedPos.value[0].positionField, //ชื่อตำแหน่ง
|
||||
posTypeId: selectedPos.value[0].posTypeId, //ชื่อตำแหน่ง
|
||||
|
|
@ -568,7 +568,7 @@ function onSubmit() {
|
|||
:name="item"
|
||||
>
|
||||
<div class="column q-col-gutter-sm" style="height: 70vh">
|
||||
<!-- เลือกเลขที่ตำแหน่ง -->
|
||||
<!-- เลือกตำแหน่งเลขที่ -->
|
||||
<div class="col-7">
|
||||
<q-card
|
||||
bordered
|
||||
|
|
@ -577,7 +577,7 @@ function onSubmit() {
|
|||
<div
|
||||
class="col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md"
|
||||
>
|
||||
เลือกเลขที่ตำแหน่ง
|
||||
เลือกตำแหน่งเลขที่
|
||||
</div>
|
||||
<div class="col-12"><q-separator /></div>
|
||||
<div class="col-12 q-pa-md">
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ function filterItemsTaps(data: TreeMain[]) {
|
|||
}
|
||||
|
||||
/**
|
||||
* function เลือกเลขที่ตำแหน่ง
|
||||
* function เลือกตำแหน่งเลขที่
|
||||
* @param id เลชที่ตำแหน่ง
|
||||
*/
|
||||
async function onClickSelectPos(id: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue