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