下拉框回显
This commit is contained in:
@ -406,6 +406,7 @@
|
||||
formState.empName = userInfo.name
|
||||
formState.empId = userInfo.id
|
||||
formState.tel = userInfo.mobile
|
||||
getOptionParams()
|
||||
}
|
||||
initialFetch()
|
||||
|
||||
@ -483,7 +484,7 @@
|
||||
formState.specMmbtuTo = (formState?.lngContractPurIntList[0] || {}).specMmbtuTo
|
||||
formState.paymentDesc = (formState?.lngContractPurIntList[0] || {}).paymentDesc
|
||||
formState.dmDesc = (formState?.lngContractPurIntList[0] || {}).dmDesc
|
||||
|
||||
getOptionParams()
|
||||
if ((formState?.lngContractPurIntList[0] || {}).salesAreaCode) {
|
||||
getArea((formState?.lngContractPurIntList[0] || {}).salesAreaCode)
|
||||
}
|
||||
@ -503,9 +504,6 @@
|
||||
optionSelect.kPeriodList = await getDictionary('LNG_K_PER')
|
||||
optionSelect.uomCodeList = await getDictionary('LNG_UOM')
|
||||
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
|
||||
optionSelect.curCodeList = await getAllCurrency()
|
||||
optionSelect.prcTermCodeList = await getAllPriceTerm()
|
||||
|
||||
optionSelect.longSpotCodeList = await getDictionary('LNG_LONG')
|
||||
optionSelect.crTermCodeList = await getDictionary('LNG_CREDIT')
|
||||
optionSelect.calTypeCodeList = await getDictionary('LNG_CAL')
|
||||
@ -516,8 +514,12 @@
|
||||
}
|
||||
|
||||
}
|
||||
const getCompDeptInfo = async (id)=> {
|
||||
const res = await getCompDept(id)
|
||||
async function getOptionParams() {
|
||||
optionSelect.curCodeList = await getAllCurrency({eid: formState.curCode})
|
||||
optionSelect.prcTermCodeList = await getAllPriceTerm({eid: formState.prcTermCode})
|
||||
}
|
||||
const getCompDeptInfo = async (id, deptId)=> {
|
||||
const res = await getCompDept(id, deptId)
|
||||
formState.bDeptName = res?.dept?.name
|
||||
formState.bDeptId = res?.dept?.id
|
||||
|
||||
@ -575,11 +577,11 @@
|
||||
const onContract = (val)=> {
|
||||
openModalContractFact(true,{isUpdate: false})
|
||||
}
|
||||
const handleSuccess = (val) => {
|
||||
const handleSuccess = (val, deptId) => {
|
||||
formState.empName = val[0].name
|
||||
formState.empId = val[0].id
|
||||
formState.tel = val[0].mobile
|
||||
getCompDeptInfo(formState.empId)
|
||||
getCompDeptInfo(formState.empId, deptId)
|
||||
}
|
||||
const handleSuccessDept = (val, info) => {
|
||||
formState.bDeptName = val[0].name
|
||||
|
||||
Reference in New Issue
Block a user