|
|
@@ -130,7 +130,7 @@ export default { |
|
|
|
dataSource: { |
|
|
|
EmpInfo: { |
|
|
|
PartyFaceNo: [], |
|
|
|
NationalityNo: [], |
|
|
|
NationalityNo: Object.values(this.GET_GLOBAL('dataDictionary').National).map(t => ({ value: t.value, text: t.text })), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
@@ -150,7 +150,13 @@ export default { |
|
|
|
this.id = id; |
|
|
|
this.mode = type; |
|
|
|
this.edit = ["create", "edit"].includes(this.mode); // 拉取表单数据,同时拉取所有来自数据源的选单数据 |
|
|
|
await Promise.all([() => {}]); |
|
|
|
await Promise.all([ |
|
|
|
this.FETCH_DATASOURCE('BCdPartyFace').then(result => { |
|
|
|
this.dataSource.EmpInfo.PartyFaceNo = result.data.map(t => ({ text: t.partyface, value: t.partyfaceno })) |
|
|
|
}), |
|
|
|
() => {}, |
|
|
|
|
|
|
|
]); |
|
|
|
await this.fetchForm(); |
|
|
|
this.ready = true; |
|
|
|
this.HIDE_LOADING(); |
|
|
@@ -164,7 +170,7 @@ export default { |
|
|
|
this.id |
|
|
|
); |
|
|
|
this.id=result.EmpInfo.EmpId; |
|
|
|
console.log(result); |
|
|
|
// console.log(result); |
|
|
|
this.origin = await this.formatFormData(result); |
|
|
|
} |
|
|
|
this.current = this.COPY(this.origin); |
|
|
|