registry add field positionExecutiveField
This commit is contained in:
parent
20f95f1a69
commit
91ea489bc7
5 changed files with 28 additions and 0 deletions
|
|
@ -178,6 +178,11 @@ const baseColumns = ref<QTableColumn[]>([
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
sort: (a: string, b: string) =>
|
sort: (a: string, b: string) =>
|
||||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
|
format(val, row) {
|
||||||
|
return !row.positionExecutiveField
|
||||||
|
? val
|
||||||
|
: `${val} (${row.positionExecutiveField})`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "commandNo",
|
name: "commandNo",
|
||||||
|
|
@ -361,6 +366,8 @@ const formData = reactive<FormPostition>({
|
||||||
positionCee: "", //ระดับซี
|
positionCee: "", //ระดับซี
|
||||||
positionPathSide: "", //ด้าน/สาขา
|
positionPathSide: "", //ด้าน/สาขา
|
||||||
positionExecutive: "", //ตำแหน่งทางการบริหาร
|
positionExecutive: "", //ตำแหน่งทางการบริหาร
|
||||||
|
positionExecutiveField: "", //ด้านทางการบริหาร
|
||||||
|
positionArea: "", //ด้าน/สาขา
|
||||||
amount: null, //เงินเดือน
|
amount: null, //เงินเดือน
|
||||||
amountSpecial: null, //เงินค่าตอบแทนพิเศษ
|
amountSpecial: null, //เงินค่าตอบแทนพิเศษ
|
||||||
orgRoot: "", //หน่วยงาน
|
orgRoot: "", //หน่วยงาน
|
||||||
|
|
@ -672,6 +679,10 @@ async function onClickOpenDialog(
|
||||||
formData.positionLine = statusEdit ? data.positionLine : "";
|
formData.positionLine = statusEdit ? data.positionLine : "";
|
||||||
formData.positionPathSide = statusEdit ? data.positionPathSide : "";
|
formData.positionPathSide = statusEdit ? data.positionPathSide : "";
|
||||||
formData.positionExecutive = statusEdit ? data.positionExecutive : "";
|
formData.positionExecutive = statusEdit ? data.positionExecutive : "";
|
||||||
|
formData.positionExecutiveField = statusEdit
|
||||||
|
? data.positionExecutiveField
|
||||||
|
: "";
|
||||||
|
formData.positionArea = statusEdit ? data.positionArea : "";
|
||||||
formData.amount = statusEdit ? data.amount : null;
|
formData.amount = statusEdit ? data.amount : null;
|
||||||
formData.amountSpecial = statusEdit ? data.amountSpecial : null;
|
formData.amountSpecial = statusEdit ? data.amountSpecial : null;
|
||||||
formData.orgRoot = statusEdit ? data.orgRoot : "";
|
formData.orgRoot = statusEdit ? data.orgRoot : "";
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,11 @@ const baseColumns = ref<QTableColumn[]>([
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
sort: (a: string, b: string) =>
|
sort: (a: string, b: string) =>
|
||||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
|
format(val, row) {
|
||||||
|
return !row.positionExecutiveField
|
||||||
|
? val
|
||||||
|
: `${val} (${row.positionExecutiveField})`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "commandNo",
|
name: "commandNo",
|
||||||
|
|
@ -414,6 +419,8 @@ const formData = reactive<FormSalary>({
|
||||||
positionLine: "", // สายงาน
|
positionLine: "", // สายงาน
|
||||||
positionPathSide: "", //ด้าน/สาขา
|
positionPathSide: "", //ด้าน/สาขา
|
||||||
positionExecutive: "", //ตำแหน่งทางการบริหาร
|
positionExecutive: "", //ตำแหน่งทางการบริหาร
|
||||||
|
positionExecutiveField: "", //ด้านทางการบริหาร
|
||||||
|
positionArea: "", //ด้าน/สาขา
|
||||||
amount: null, //เงินเดือน
|
amount: null, //เงินเดือน
|
||||||
amountSpecial: null, //เงินค่าตอบแทนพิเศษ
|
amountSpecial: null, //เงินค่าตอบแทนพิเศษ
|
||||||
positionSalaryAmount: null, //เงินประจำตำแหน่ง
|
positionSalaryAmount: null, //เงินประจำตำแหน่ง
|
||||||
|
|
@ -653,6 +660,10 @@ async function onClickOpenDialog(
|
||||||
formData.positionLine = statusEdit ? data.positionLine : "";
|
formData.positionLine = statusEdit ? data.positionLine : "";
|
||||||
formData.positionPathSide = statusEdit ? data.positionPathSide : "";
|
formData.positionPathSide = statusEdit ? data.positionPathSide : "";
|
||||||
formData.positionExecutive = statusEdit ? data.positionExecutive : "";
|
formData.positionExecutive = statusEdit ? data.positionExecutive : "";
|
||||||
|
formData.positionExecutiveField = statusEdit
|
||||||
|
? data.positionExecutiveField
|
||||||
|
: "";
|
||||||
|
formData.positionArea = statusEdit ? data.positionArea : "";
|
||||||
formData.amount = statusEdit ? data.amount : null;
|
formData.amount = statusEdit ? data.amount : null;
|
||||||
formData.amountSpecial = statusEdit ? data.amountSpecial : null;
|
formData.amountSpecial = statusEdit ? data.amountSpecial : null;
|
||||||
formData.positionSalaryAmount = statusEdit ? data.positionSalaryAmount : null;
|
formData.positionSalaryAmount = statusEdit ? data.positionSalaryAmount : null;
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,8 @@ interface FormPostition {
|
||||||
positionLine: string; // สายงาน
|
positionLine: string; // สายงาน
|
||||||
positionPathSide: string; //ด้าน/สาขา
|
positionPathSide: string; //ด้าน/สาขา
|
||||||
positionExecutive: string; //ตำแหน่งทางการบริหาร
|
positionExecutive: string; //ตำแหน่งทางการบริหาร
|
||||||
|
positionExecutiveField?: string; //ด้านทางการบริหาร
|
||||||
|
positionArea?: string; //ด้าน/สาขา
|
||||||
positionCee: string; //ระดับซี
|
positionCee: string; //ระดับซี
|
||||||
amount: number | null; //เงินเดือน
|
amount: number | null; //เงินเดือน
|
||||||
amountSpecial: number | null; //เงินค่าตอบแทนพิเศษ
|
amountSpecial: number | null; //เงินค่าตอบแทนพิเศษ
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ interface FormSalary {
|
||||||
positionLine: string; // สายงาน
|
positionLine: string; // สายงาน
|
||||||
positionPathSide: string; //ด้าน/สาขา
|
positionPathSide: string; //ด้าน/สาขา
|
||||||
positionExecutive: string; //ตำแหน่งทางการบริหาร
|
positionExecutive: string; //ตำแหน่งทางการบริหาร
|
||||||
|
positionExecutiveField?: string; //ด้านทางการบริหาร
|
||||||
|
positionArea?: string; //ด้าน/สาขา
|
||||||
amount: number | null; //เงินเดือน
|
amount: number | null; //เงินเดือน
|
||||||
amountSpecial: number | null; //เงินค่าตอบแทนพิเศษ
|
amountSpecial: number | null; //เงินค่าตอบแทนพิเศษ
|
||||||
positionSalaryAmount: number | null; //เงินประจำตำแหน่ง
|
positionSalaryAmount: number | null; //เงินประจำตำแหน่ง
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ interface DataPositions {
|
||||||
posNoAbb: string;
|
posNoAbb: string;
|
||||||
positionCee: string;
|
positionCee: string;
|
||||||
positionExecutive: string;
|
positionExecutive: string;
|
||||||
|
positionExecutiveField?: string;
|
||||||
|
positionArea?: string;
|
||||||
positionLevel: string;
|
positionLevel: string;
|
||||||
positionLine: string;
|
positionLine: string;
|
||||||
positionPathSide: string;
|
positionPathSide: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue