下拉框回显
This commit is contained in:
@ -392,6 +392,7 @@
|
||||
formState.empName = userInfo.name
|
||||
formState.empId = userInfo.id
|
||||
formState.tel = userInfo.mobile
|
||||
getOptionParams()
|
||||
}
|
||||
|
||||
});
|
||||
@ -412,6 +413,7 @@
|
||||
formState.dateTo = formState.dateTo ? dayjs(formState.dateTo) : null
|
||||
periodTypeCodeChange(formState.periodTypeCode)
|
||||
amountTypeCodeChange(formState.amountTypeCode)
|
||||
getOptionParams()
|
||||
} catch (error) {
|
||||
spinning.value = false
|
||||
}
|
||||
@ -428,7 +430,7 @@
|
||||
optionSelect.impSignList = await getDictionary('LNG_YN')
|
||||
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
|
||||
|
||||
optionSelect.curCodeList = await getAllCurrency()
|
||||
|
||||
// optionSelect.telList = await getAllUser()
|
||||
|
||||
if (!pageId.value) {
|
||||
@ -436,8 +438,11 @@
|
||||
}
|
||||
|
||||
}
|
||||
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
|
||||
|
||||
@ -516,11 +521,11 @@
|
||||
openModalUser(true,{isUpdate: false,list: dataList.value, curIdx: curIdx.value})
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -381,8 +381,8 @@
|
||||
}
|
||||
|
||||
}
|
||||
const getCompDeptInfo = async (id)=> {
|
||||
const res = await getCompDept(id)
|
||||
const getCompDeptInfo = async (id, deptId)=> {
|
||||
const res = await getCompDept(id, deptId)
|
||||
formState.bDeptName = res?.dept?.name
|
||||
formState.bDeptId = res?.dept?.id
|
||||
|
||||
@ -474,11 +474,11 @@
|
||||
dataListPoint.value.pop()
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
@ -412,8 +412,8 @@
|
||||
}
|
||||
|
||||
}
|
||||
const getCompDeptInfo = async (id)=> {
|
||||
const res = await getCompDept(id)
|
||||
const getCompDeptInfo = async (id, deptId)=> {
|
||||
const res = await getCompDept(id, deptId)
|
||||
formState.bDeptName = res?.dept?.name
|
||||
formState.bDeptId = res?.dept?.id
|
||||
|
||||
@ -504,11 +504,11 @@
|
||||
dataListPoint.value.splice(idx, 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
|
||||
|
||||
@ -407,6 +407,7 @@
|
||||
formState.empName = userInfo.name
|
||||
formState.empId = userInfo.id
|
||||
formState.tel = userInfo.mobile
|
||||
getOptionParams()
|
||||
}
|
||||
initialFetch()
|
||||
|
||||
@ -484,7 +485,7 @@
|
||||
formState.specMmbtuTo = (formState?.lngContractSalesIntList[0] || {}).specMmbtuTo
|
||||
formState.paymentDesc = (formState?.lngContractSalesIntList[0] || {}).paymentDesc
|
||||
formState.dmDesc = (formState?.lngContractSalesIntList[0] || {}).dmDesc
|
||||
|
||||
getOptionParams()
|
||||
if ((formState?.lngContractSalesIntList[0] || {}).salesAreaCode) {
|
||||
getArea((formState?.lngContractSalesIntList[0] || {}).salesAreaCode)
|
||||
}
|
||||
@ -504,8 +505,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')
|
||||
@ -517,8 +516,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
|
||||
|
||||
@ -576,11 +579,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
|
||||
|
||||
@ -350,8 +350,8 @@
|
||||
}
|
||||
|
||||
}
|
||||
const getCompDeptInfo = async (id)=> {
|
||||
const res = await getCompDept(id)
|
||||
const getCompDeptInfo = async (id, deptId)=> {
|
||||
const res = await getCompDept(id, deptId)
|
||||
formState.bDeptName = res?.dept?.name
|
||||
formState.bDeptId = res?.dept?.id
|
||||
|
||||
@ -431,11 +431,11 @@
|
||||
|
||||
|
||||
|
||||
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
|
||||
|
||||
@ -363,6 +363,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
|
||||
@ -413,6 +414,7 @@
|
||||
formState.dateSign = formState.dateSign ? dayjs(formState.dateSign) : null
|
||||
formState.dateFrom = formState.dateFrom ? dayjs(formState.dateFrom) : null
|
||||
formState.dateTo = formState.dateTo ? dayjs(formState.dateTo) : null
|
||||
getOptionParams()
|
||||
dataListPrice.value.forEach(v =>{
|
||||
v.lngPriceTransPngList.forEach(k => {
|
||||
k.dateFromNew = k.dateFrom ? dayjs(k.dateFrom) : null
|
||||
@ -439,15 +441,17 @@
|
||||
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
|
||||
|
||||
@ -543,11 +547,11 @@
|
||||
|
||||
}
|
||||
|
||||
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 handleSuccessSupplier = (val) => {
|
||||
formState.cpCode = val[0].suCode
|
||||
|
||||
Reference in New Issue
Block a user