下拉框回显
This commit is contained in:
@ -354,6 +354,7 @@
|
||||
formState.empName = userInfo.name
|
||||
formState.empId = userInfo.id
|
||||
formState.tel = userInfo.mobile
|
||||
getOptionParams()
|
||||
}
|
||||
let a = await getParameter({code: 'RATE_TON_GJ'})||[]
|
||||
rateCode.value = a[0]?.valueNum1
|
||||
@ -409,6 +410,7 @@
|
||||
v.dateToY = v.dateToY ? dayjs(v.dateToY) : null
|
||||
|
||||
v.lngPriceProcDtlList = v.lngPriceProcDtlList || []
|
||||
getOptionParams()
|
||||
if (isDisable.value) {
|
||||
v.lngPriceProcDtlList =DataFormat.format(v.lngPriceProcDtlList, [
|
||||
FormatOption.createQty('qtyGj'),
|
||||
@ -430,15 +432,18 @@
|
||||
optionSelect.kPeriodList = await getDictionary('LNG_K_PER')
|
||||
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
|
||||
optionSelect.dateToCodeList = await getDictionary('LNG_D_TO')
|
||||
optionSelect.curCodeList = await getAllCurrency()
|
||||
|
||||
|
||||
if (!pageId.value) {
|
||||
getCompDeptInfo(userInfo.id)
|
||||
}
|
||||
|
||||
}
|
||||
const getCompDeptInfo = async (id)=> {
|
||||
const res = await getCompDept(id)
|
||||
async function getOptionParams() {
|
||||
optionSelect.curCodeList = await getAllCurrency({eid: formState.curCode})
|
||||
}
|
||||
const getCompDeptInfo = async (id, deptId)=> {
|
||||
const res = await getCompDept(id, deptId)
|
||||
formState.bDeptName = res?.dept?.name
|
||||
formState.bDeptId = res?.dept?.id
|
||||
|
||||
@ -515,11 +520,11 @@
|
||||
dataListPrice.value[idx].lngPriceProcDtlList.splice(index, 1)
|
||||
}
|
||||
|
||||
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