下拉框回显
This commit is contained in:
@ -74,11 +74,11 @@ export async function getDept( mode: ErrorMessageMode = 'modal') {
|
||||
/**
|
||||
* @description: 根据用户ID查询默认公司部门
|
||||
*/
|
||||
export async function getCompDept(userId: String, mode: ErrorMessageMode = 'modal') {
|
||||
export async function getCompDept(userId: String,deptId:String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngApproPageModel>(
|
||||
{
|
||||
url: Api.compDept,
|
||||
params: { userId },
|
||||
params: { userId, deptId },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
|
||||
@ -48,11 +48,11 @@ export async function getAllUser( mode: ErrorMessageMode = 'modal') {
|
||||
},
|
||||
);
|
||||
}
|
||||
export async function getAllCurrency( mode: ErrorMessageMode = 'modal') {
|
||||
export async function getAllCurrency(params: LngContractFactPageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngContractFactPageResult>(
|
||||
{
|
||||
url: Api.queryAllCurrency,
|
||||
params: { },
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
|
||||
@ -25,10 +25,11 @@ export async function getAllCom (mode: ErrorMessageMode = 'modal') {
|
||||
},
|
||||
);
|
||||
}
|
||||
export async function getAllPriceTerm (mode: ErrorMessageMode = 'modal') {
|
||||
export async function getAllPriceTerm (params: LngContractPageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngContractPageResult>(
|
||||
{
|
||||
url: Api.queryAllPriceTerm,
|
||||
params
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
|
||||
@ -5,7 +5,8 @@ import { ErrorMessageMode } from '/#/axios';
|
||||
enum Api {
|
||||
// Page = '/sales/gradeSystem/page',
|
||||
Page = '/magic-api/sales/gradeSystem/page',
|
||||
List = '/sales/gradeSystem/list',
|
||||
// List = '/sales/gradeSystem/list',
|
||||
List = '/magic-api/sales/gradeSystem/list',
|
||||
Info = '/sales/gradeSystem/info',
|
||||
LngGradeSystem = '/sales/gradeSystem',
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ const props = defineProps({
|
||||
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
||||
curData.value = ''
|
||||
formState.filePath = ''
|
||||
getOption()
|
||||
|
||||
setModalProps({ confirmLoading: false });
|
||||
isUpdate.value = !!data?.isUpdate;
|
||||
isDisable.value = data?.btnType == 'view' ? true : false
|
||||
@ -95,6 +95,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
||||
Object.assign(formState, {...data.record,dateFrom, dateTo})
|
||||
let json = JSON.parse(JSON.stringify(data.record))
|
||||
formState.filePath = (json?.fileList||[])[0]?.tableId
|
||||
getOption()
|
||||
curData.value = json?.docTypeCode
|
||||
}
|
||||
});
|
||||
@ -128,7 +129,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
||||
obj = {'suSign': 'Y'}
|
||||
tableName = 'supplier'
|
||||
}
|
||||
optionList = await getDocCpList({'valid': 'Y',...obj })
|
||||
optionList = await getDocCpList({'valid': 'Y',...obj, docTypeCode: formState.docTypeCode })
|
||||
}
|
||||
const handleCancel = () => {
|
||||
formRef.value.resetFields();
|
||||
|
||||
@ -106,7 +106,7 @@
|
||||
return
|
||||
}
|
||||
closeModal();
|
||||
emit('success', selectedValues.value);
|
||||
emit('success', selectedValues.value, deptId.value);
|
||||
}
|
||||
</script>
|
||||
<style >
|
||||
|
||||
@ -240,8 +240,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
|
||||
|
||||
@ -254,10 +254,10 @@
|
||||
const onSearchUser = (val)=> {
|
||||
openModal(true,{isUpdate: false})
|
||||
}
|
||||
const handleSuccess = (val) => {
|
||||
const handleSuccess = (val, deptId) => {
|
||||
formState.empName = val[0].name
|
||||
formState.empId = val[0].id
|
||||
getCompDeptInfo(formState.empId)
|
||||
getCompDeptInfo(formState.empId, deptId)
|
||||
}
|
||||
const handleSuccessDept = (val, info) => {
|
||||
formState.bDeptName = val[0].name
|
||||
|
||||
@ -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
|
||||
|
||||
@ -232,9 +232,9 @@
|
||||
<template v-if="column.dataIndex === 'dateTo'">
|
||||
{{ record.dateTo ? dayjs(record.dateTo).format('YYYY-MM-DD') : ''}}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'docTypeCode'">
|
||||
<!-- <template v-if="column.dataIndex === 'docTypeCode'">
|
||||
{{ (optionSelect.docCpList.find(v=>v.code == record.docTypeCode) || {}).fullName }}
|
||||
</template>
|
||||
</template> -->
|
||||
<template v-if="column.dataIndex === 'operation'">
|
||||
<a v-if="!isDisable" style="margin-right: 10px" @click="btnCheck('certificate', 'edit', record, index)">编辑</a>
|
||||
<a v-if="!isDisable" style="margin-right: 10px" @click="btnCheck('certificate', 'delete', record, index)">删除</a>
|
||||
@ -390,7 +390,7 @@
|
||||
|
||||
const columnsCertificate = ref([
|
||||
{ title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100},
|
||||
{ title: t('资质证书名称'), dataIndex: 'docTypeCode', width:200},
|
||||
{ title: t('资质证书名称'), dataIndex: 'docTypeName', width:200},
|
||||
{ title: t('有效期开始'), dataIndex: 'dateFrom', width: 140},
|
||||
{ title: t('有效期结束'), dataIndex: 'dateTo', width: 140},
|
||||
{ title: t('备注'), dataIndex: 'note', },
|
||||
@ -493,7 +493,7 @@
|
||||
optionSelect.validList = await getDictionary('LNG_VALID')
|
||||
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
|
||||
|
||||
optionSelect.docCpList = await getDocCpList()
|
||||
// optionSelect.docCpList = await getDocCpList()
|
||||
}
|
||||
function stateSignChange(val) {
|
||||
if (val!='Y'){
|
||||
|
||||
@ -170,9 +170,10 @@
|
||||
}
|
||||
);
|
||||
onMounted(() => {
|
||||
getOption()
|
||||
if (pageId.value) {
|
||||
getInfo(pageId.value)
|
||||
} else {
|
||||
getOption()
|
||||
}
|
||||
|
||||
});
|
||||
@ -188,12 +189,13 @@
|
||||
Object.assign(dataList.value, formState.lngScoreDtlList || [])
|
||||
Object.assign(dataFile.value, formState.lngFileUploadList || [])
|
||||
formState.dateGrade = formState.dateGrade ? dayjs(formState.dateGrade) : null
|
||||
getOption()
|
||||
} catch (error) {
|
||||
spinning.value = false
|
||||
}
|
||||
}
|
||||
async function getOption() {
|
||||
optionSelect.gsIdList = await getLngGradeSystemPageList({'valid': 'Y', 'typeCode': 'CU'})
|
||||
optionSelect.gsIdList = await getLngGradeSystemPageList({'typeCode': 'CU', eid: formState.gsId})
|
||||
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
|
||||
let res = await getUserInfo()
|
||||
Object.assign(userInfo, {...res})
|
||||
|
||||
@ -170,9 +170,10 @@
|
||||
}
|
||||
);
|
||||
onMounted(() => {
|
||||
getOption()
|
||||
if (pageId.value) {
|
||||
getInfo(pageId.value)
|
||||
} else {
|
||||
getOption()
|
||||
}
|
||||
|
||||
});
|
||||
@ -187,13 +188,14 @@
|
||||
Object.assign(formState, {...data})
|
||||
Object.assign(dataList.value, formState.lngScoreDtlList || [])
|
||||
Object.assign(dataFile.value, formState.lngFileUploadList || [])
|
||||
getOption()
|
||||
formState.dateGrade = formState.dateGrade ? dayjs(formState.dateGrade) : null
|
||||
} catch (error) {
|
||||
spinning.value = false
|
||||
}
|
||||
}
|
||||
async function getOption() {
|
||||
optionSelect.gsIdList = await getLngGradeSystemPageList({'valid': 'Y', 'typeCode': 'SU'})
|
||||
optionSelect.gsIdList = await getLngGradeSystemPageList({'typeCode': 'SU', eid: formState.gsId})
|
||||
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
|
||||
let res = await getUserInfo()
|
||||
Object.assign(userInfo, {...res})
|
||||
|
||||
@ -150,9 +150,9 @@
|
||||
<template v-if="column.dataIndex === 'dateTo'">
|
||||
{{ record.dateTo ? dayjs(record.dateTo).format('YYYY-MM-DD') : ''}}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'docTypeCode'">
|
||||
<!-- <template v-if="column.dataIndex === 'docTypeCode'">
|
||||
{{ (optionSelect.docCpList.find(v=>v.code == record.docTypeCode) || {}).fullName }}
|
||||
</template>
|
||||
</template> -->
|
||||
<template v-if="column.dataIndex === 'operation'">
|
||||
<a v-if="!isDisable" style="margin-right: 10px" @click="btnCheck('certificate', 'edit', record, index)">编辑</a>
|
||||
<a v-if="!isDisable" style="margin-right: 10px" @click="btnCheck('certificate', 'delete', record, index)">删除</a>
|
||||
@ -300,7 +300,7 @@
|
||||
|
||||
const columnsCertificate = ref([
|
||||
{ title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100},
|
||||
{ title: t('资质证书名称'), dataIndex: 'docTypeCode' , width:200},
|
||||
{ title: t('资质证书名称'), dataIndex: 'docTypeName' , width:200},
|
||||
{ title: t('有效期开始'), dataIndex: 'dateFrom', width: 140},
|
||||
{ title: t('有效期结束'), dataIndex: 'dateTo', width: 140},
|
||||
{ title: t('备注'), dataIndex: 'note', },
|
||||
@ -399,7 +399,7 @@
|
||||
optionSelect.signList = await getDictionary('LNG_YN')
|
||||
optionSelect.validList = await getDictionary('LNG_VALID')
|
||||
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
|
||||
optionSelect.docCpList = await getDocCpList()
|
||||
// optionSelect.docCpList = await getDocCpList()
|
||||
}
|
||||
const handleAdd = (val)=> {
|
||||
curIdx.value = null
|
||||
|
||||
Reference in New Issue
Block a user