fix bug select position, change field reportingDateFullDate to reportingDate, add send positionExecutiveField & positionArea
This commit is contained in:
parent
0ef46feabc
commit
20f95f1a69
7 changed files with 23 additions and 10 deletions
|
|
@ -93,7 +93,7 @@ function updateSelected(data: TreeMain) {
|
|||
if (props?.dataRow?.nodeId === data.orgTreeId) {
|
||||
positionId.value = props?.dataRow?.posmasterId;
|
||||
seletcId.value = props?.dataRow?.positionId;
|
||||
datePos.value = props?.dataRow?.reportingDateFullDate;
|
||||
datePos.value = props?.dataRow?.reportingDate;
|
||||
} else {
|
||||
positionId.value = "";
|
||||
seletcId.value = "";
|
||||
|
|
@ -237,6 +237,8 @@ async function onClickSubmit() {
|
|||
posExecutiveName: selectedPos.value[0].posExecutiveName,
|
||||
reportingDate: convertDateToAPI(datePos.value),
|
||||
posmasterId: dataPosMaster.id,
|
||||
positionExecutiveField: selectedPos.value[0].positionExecutiveField, //ด้านทางการบริหาร
|
||||
positionArea: selectedPos.value[0].positionArea, //ด้าน/สาขา
|
||||
};
|
||||
|
||||
await http
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ interface ItemTabs {
|
|||
name: string;
|
||||
}
|
||||
|
||||
interface DataOptions{
|
||||
id:string,
|
||||
name:string
|
||||
interface DataOptions {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
interface FormOrderPlacementMainData {
|
||||
Order: string;
|
||||
|
|
@ -153,6 +153,8 @@ interface FormDataAppoint {
|
|||
posmasterId: string;
|
||||
posExecutiveName?: string;
|
||||
typeCommand: string;
|
||||
positionExecutiveField?: string;
|
||||
positionArea?: string;
|
||||
}
|
||||
export type {
|
||||
FormPlacementMainData,
|
||||
|
|
@ -171,5 +173,5 @@ export type {
|
|||
MemBerType,
|
||||
PersonsAppointData,
|
||||
FormDataAppoint,
|
||||
DataOptions
|
||||
DataOptions,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -366,6 +366,8 @@ async function onSave(data: FormDataAppoint) {
|
|||
reportingDate: data.reportingDate,
|
||||
posmasterId: data.posmasterId,
|
||||
typeCommand: data.typeCommand,
|
||||
positionExecutiveField: data.positionExecutiveField,
|
||||
positionArea: data.positionArea,
|
||||
};
|
||||
|
||||
showLoader();
|
||||
|
|
|
|||
|
|
@ -319,6 +319,8 @@ async function onSave(data: FormDataAppoint) {
|
|||
posExecutiveName: data.posExecutiveName,
|
||||
posmasterId: data.posmasterId,
|
||||
typeCommand: data.typeCommand,
|
||||
positionExecutiveField: data.positionExecutiveField,
|
||||
positionArea: data.positionArea,
|
||||
};
|
||||
|
||||
showLoader();
|
||||
|
|
|
|||
|
|
@ -274,6 +274,8 @@ async function onSaveSelectOrg(data: any) {
|
|||
reportingDate: data.reportingDate,
|
||||
posmasterId: data.posmasterId,
|
||||
typeCommand: data.typeCommand,
|
||||
positionExecutiveField: data.positionExecutiveField,
|
||||
positionArea: data.positionArea,
|
||||
};
|
||||
|
||||
showLoader();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue