数据资产登记bug修改
Showing
3 changed files
with
32 additions
and
43 deletions
| ... | @@ -286,7 +286,7 @@ const handleExpand = () => { | ... | @@ -286,7 +286,7 @@ const handleExpand = () => { |
| 286 | 286 | ||
| 287 | onBeforeMount(() => { | 287 | onBeforeMount(() => { |
| 288 | getDetailInfo(); | 288 | getDetailInfo(); |
| 289 | daTenantGuid.value && getTenantDetail(); | 289 | getTenantDetail(); |
| 290 | }); | 290 | }); |
| 291 | 291 | ||
| 292 | onActivated(() => { | 292 | onActivated(() => { |
| ... | @@ -402,7 +402,7 @@ const tenantDetail: any = ref({}); | ... | @@ -402,7 +402,7 @@ const tenantDetail: any = ref({}); |
| 402 | 402 | ||
| 403 | /** 获取当前登录会员,服务商,企业等详情。 */ | 403 | /** 获取当前登录会员,服务商,企业等详情。 */ |
| 404 | const getTenantDetail = () => { | 404 | const getTenantDetail = () => { |
| 405 | getTenantDetailInfo(daTenantGuid.value).then((res: any) => { | 405 | getTenantDetailInfo(userData.tenantGuid).then((res: any) => { |
| 406 | if (res.code == proxy.$passCode) { | 406 | if (res.code == proxy.$passCode) { |
| 407 | const data = res.data ?? {}; | 407 | const data = res.data ?? {}; |
| 408 | tenantDetail.value = data; | 408 | tenantDetail.value = data; |
| ... | @@ -1400,9 +1400,9 @@ const handleClickDamCatalogDetail = () => { | ... | @@ -1400,9 +1400,9 @@ const handleClickDamCatalogDetail = () => { |
| 1400 | </span> | 1400 | </span> |
| 1401 | </div> | 1401 | </div> |
| 1402 | <div class="list_item is_block isFile" :style="{ width: '40%' }" | 1402 | <div class="list_item is_block isFile" :style="{ width: '40%' }" |
| 1403 | v-if="(detailType == 'asset' && assetDetailInfo.isQualityAssessment == 'Y') && assetDetailInfo.registerAttachment?.qualityEvaluationFile?.length"> | 1403 | v-if="(detailType == 'asset' && assetDetailInfo.isQualityAssessment == 'Y') && assetDetailInfo.registerAttachment?.evaluationFile?.length"> |
| 1404 | <span class="item_label" :style="{ width: 'auto', 'text-align': 'left' }">质量评估报告</span> | 1404 | <span class="item_label" :style="{ width: 'auto', 'text-align': 'left' }">质量评估报告</span> |
| 1405 | <span v-for="(item) in (assetDetailInfo.registerAttachment?.qualityEvaluationFile || [])" | 1405 | <span v-for="(item) in (assetDetailInfo.registerAttachment?.evaluationFile || [])" |
| 1406 | class="item_value" :style="{ 'padding-left': '0px' }"> | 1406 | class="item_value" :style="{ 'padding-left': '0px' }"> |
| 1407 | <div class="file-operate"> | 1407 | <div class="file-operate"> |
| 1408 | <template | 1408 | <template |
| ... | @@ -1438,9 +1438,9 @@ const handleClickDamCatalogDetail = () => { | ... | @@ -1438,9 +1438,9 @@ const handleClickDamCatalogDetail = () => { |
| 1438 | </span> | 1438 | </span> |
| 1439 | </div> | 1439 | </div> |
| 1440 | <div class="list_item is_block isFile" :style="{ width: '40%', 'margin-right': '28px' }" | 1440 | <div class="list_item is_block isFile" :style="{ width: '40%', 'margin-right': '28px' }" |
| 1441 | v-if="(detailType == 'asset' && assetDetailInfo.isCostAssessment == 'Y') && assetDetailInfo.registerAttachment?.costAssessmentFile?.length"> | 1441 | v-if="(detailType == 'asset' && assetDetailInfo.isCostAssessment == 'Y') && assetDetailInfo.registerAttachment?.assessmentFile?.length"> |
| 1442 | <span class="item_label" :style="{ width: 'auto', 'text-align': 'left' }">价值评估报告</span> | 1442 | <span class="item_label" :style="{ width: 'auto', 'text-align': 'left' }">价值评估报告</span> |
| 1443 | <span v-for="(item) in (assetDetailInfo.registerAttachment?.costAssessmentFile || [])" class="item_value" | 1443 | <span v-for="(item) in (assetDetailInfo.registerAttachment?.assessmentFile || [])" class="item_value" |
| 1444 | :style="{ 'padding-left': '0px' }"> | 1444 | :style="{ 'padding-left': '0px' }"> |
| 1445 | <div class="file-operate"> | 1445 | <div class="file-operate"> |
| 1446 | <template | 1446 | <template | ... | ... |
| ... | @@ -376,6 +376,7 @@ const toSearch = (val: any, clear: boolean = false) => { | ... | @@ -376,6 +376,7 @@ const toSearch = (val: any, clear: boolean = false) => { |
| 376 | pageInfo.value.tenantGuid = val.tenantGuid; | 376 | pageInfo.value.tenantGuid = val.tenantGuid; |
| 377 | } | 377 | } |
| 378 | getTableData(); | 378 | getTableData(); |
| 379 | getExchangeData(); | ||
| 379 | }; | 380 | }; |
| 380 | 381 | ||
| 381 | const pageChange = (info) => { | 382 | const pageChange = (info) => { |
| ... | @@ -394,21 +395,6 @@ onActivated(() => { | ... | @@ -394,21 +395,6 @@ onActivated(() => { |
| 394 | }) | 395 | }) |
| 395 | 396 | ||
| 396 | onBeforeMount(() => { | 397 | onBeforeMount(() => { |
| 397 | // if (isCompanyPlatform.value) { | ||
| 398 | // tableInfo.value.fields = tableFields.value; | ||
| 399 | // searchItemList.value[1].visible = false; | ||
| 400 | // } else { | ||
| 401 | // tableFields.value.splice(2, 0, { label: "企业名称", field: "tenantName", width: 240, align: "left" }); | ||
| 402 | // tableInfo.value.fields = tableFields.value; | ||
| 403 | // searchItemList.value[1].visible = true; | ||
| 404 | // getRegisterTenant().then((res: any) => { | ||
| 405 | // if (res.code == proxy.$passCode) { | ||
| 406 | // searchItemList.value[1].options = res.data || []; | ||
| 407 | // } else { | ||
| 408 | // ElMessage.error(res.msg); | ||
| 409 | // } | ||
| 410 | // }); | ||
| 411 | // } | ||
| 412 | getExchangeData(); | 398 | getExchangeData(); |
| 413 | }) | 399 | }) |
| 414 | 400 | ||
| ... | @@ -571,7 +557,7 @@ const createBtnVisible = computed(() => { | ... | @@ -571,7 +557,7 @@ const createBtnVisible = computed(() => { |
| 571 | @click="btnClick({ value: 'search', ...item })" v-preReClick>{{ item.exchangeName ?? '--' }}</div> | 557 | @click="btnClick({ value: 'search', ...item })" v-preReClick>{{ item.exchangeName ?? '--' }}</div> |
| 572 | <div class="count-group"> | 558 | <div class="count-group"> |
| 573 | <div class="count-item"> | 559 | <div class="count-item"> |
| 574 | <div class="item-label">已上架产品数</div> | 560 | <div class="item-label">已登记产品数</div> |
| 575 | <div class="item-num">{{ changeNum(item.listingNum || 0) }}</div> | 561 | <div class="item-num">{{ changeNum(item.listingNum || 0) }}</div> |
| 576 | </div> | 562 | </div> |
| 577 | <div class="count-item"> | 563 | <div class="count-item"> |
| ... | @@ -597,7 +583,7 @@ const createBtnVisible = computed(() => { | ... | @@ -597,7 +583,7 @@ const createBtnVisible = computed(() => { |
| 597 | </div> | 583 | </div> |
| 598 | <el-tag :type="(tagType(item, 'approveState') as any)">{{ | 584 | <el-tag :type="(tagType(item, 'approveState') as any)">{{ |
| 599 | tagMethod(item, 'approveState') | 585 | tagMethod(item, 'approveState') |
| 600 | }}</el-tag> | 586 | }}</el-tag> |
| 601 | </div> | 587 | </div> |
| 602 | <div v-if="!isCompanyPlatform" class="desc">{{ item.tenantName ?? '深圳传世般若有限公司' }}</div> | 588 | <div v-if="!isCompanyPlatform" class="desc">{{ item.tenantName ?? '深圳传世般若有限公司' }}</div> |
| 603 | <div class="desc">{{ item.updateTime }}</div> | 589 | <div class="desc">{{ item.updateTime }}</div> | ... | ... |
| ... | @@ -47,6 +47,7 @@ const guid = route.query.guid; | ... | @@ -47,6 +47,7 @@ const guid = route.query.guid; |
| 47 | const fullPath = route.fullPath; | 47 | const fullPath = route.fullPath; |
| 48 | const editType = route.query.type; | 48 | const editType = route.query.type; |
| 49 | const exGuid = route.query.exchangeGuid; | 49 | const exGuid = route.query.exchangeGuid; |
| 50 | const restart = localStorage.getItem('isRestart'); | ||
| 50 | 51 | ||
| 51 | /** 资产目录列表 */ | 52 | /** 资产目录列表 */ |
| 52 | const registerCatalogList: any = ref([]); | 53 | const registerCatalogList: any = ref([]); |
| ... | @@ -294,19 +295,19 @@ const setUploadFormItemsValue = (info) => { | ... | @@ -294,19 +295,19 @@ const setUploadFormItemsValue = (info) => { |
| 294 | if (item.field == 'registerLetter') { | 295 | if (item.field == 'registerLetter') { |
| 295 | item.default = attach.registerLetter || []; | 296 | item.default = attach.registerLetter || []; |
| 296 | item.templateUrl = attachDataInfo.value.register_letter; | 297 | item.templateUrl = attachDataInfo.value.register_letter; |
| 297 | } else if (item.field == 'qualityEvaluationFile') { | 298 | } else if (item.field == 'evaluationFile') { |
| 298 | item.default = attach.qualityEvaluationFile || []; | 299 | item.default = attach.evaluationFile || []; |
| 299 | item.templateUrl = attachDataInfo.value.quality_evaluation_file; | 300 | item.templateUrl = attachDataInfo.value.quality_evaluation_file; |
| 300 | } else if (item.field == 'costAssessmentFile') { | 301 | } else if (item.field == 'assessmentFile') { |
| 301 | item.default = attach.costAssessmentFile || []; | 302 | item.default = attach.assessmentFile || []; |
| 302 | item.templateUrl = attachDataInfo.value.cost_assessment_file; | 303 | item.templateUrl = attachDataInfo.value.cost_assessment_file; |
| 303 | } else if (item.field === 'commitmentLetter') { | 304 | } else if (item.field === 'commitmentLetter') { |
| 304 | item.default = attach.commitmentLetter || []; | 305 | item.default = attach.commitmentLetter || []; |
| 305 | item.templateUrl = attachDataInfo.value['commitment-letter']; | 306 | item.templateUrl = attachDataInfo.value['commitment-letter']; |
| 306 | } else if (item.field === 'costAssessmentInstitutionGuid') { | 307 | } else if (item.field === 'costAssessmentInstitutionGuid') { |
| 307 | item.default = attach.costAssessmentInstitutionGuid || ''; | 308 | item.default = attach.costAssessmentInstitutionGuid ? attach.costAssessmentInstitutionGuid : attach.costAssessmentInstitution; |
| 308 | } else if (item.field === 'qualityEvaluationInstitutionGuid') { | 309 | } else if (item.field === 'qualityEvaluationInstitutionGuid') { |
| 309 | item.default = attach.qualityEvaluationInstitutionGuid || ''; | 310 | item.default = attach.qualityEvaluationInstitutionGuid ? attach.qualityEvaluationInstitutionGuid : attach.qualityEvaluationInstitution; |
| 310 | } | 311 | } |
| 311 | }); | 312 | }); |
| 312 | } | 313 | } |
| ... | @@ -345,14 +346,14 @@ const draftDetailInfo: any = ref({}); | ... | @@ -345,14 +346,14 @@ const draftDetailInfo: any = ref({}); |
| 345 | /** 会员附件模板 */ | 346 | /** 会员附件模板 */ |
| 346 | const attachDataInfo: any = ref({}); | 347 | const attachDataInfo: any = ref({}); |
| 347 | 348 | ||
| 348 | const getRegisterCatalogListData = (dam: any={}) => { | 349 | const getRegisterCatalogListData = (dam: any = {}) => { |
| 349 | getRegisterCatalogList().then((res: any) => { | 350 | getRegisterCatalogList().then((res: any) => { |
| 350 | if (res.code == proxy.$passCode) { | 351 | if (res.code == proxy.$passCode) { |
| 351 | const data = res.data || []; | 352 | const data = res.data || []; |
| 352 | baseFormItems.value[0].options = registerCatalogList.value = data; | 353 | baseFormItems.value[0].options = registerCatalogList.value = data; |
| 353 | if(guid){ | 354 | if (guid) { |
| 354 | const opt = data.find(item => item.guid == dam.damGuid) | 355 | const opt = data.find(item => item.guid == dam.damGuid) |
| 355 | baseFormItems.value[0].default = opt? opt.guid: dam.damName | 356 | baseFormItems.value[0].default = opt ? opt.guid : dam.damName |
| 356 | } | 357 | } |
| 357 | let dataScaleItem = baseFormItems.value.find(item => item.field == 'dataScale'); | 358 | let dataScaleItem = baseFormItems.value.find(item => item.field == 'dataScale'); |
| 358 | if (draftDetailInfo.value.damGuid) { | 359 | if (draftDetailInfo.value.damGuid) { |
| ... | @@ -482,7 +483,7 @@ onBeforeMount(() => { | ... | @@ -482,7 +483,7 @@ onBeforeMount(() => { |
| 482 | } else { | 483 | } else { |
| 483 | setPropertyFormItemsValue(draftDetailInfo.value); | 484 | setPropertyFormItemsValue(draftDetailInfo.value); |
| 484 | } | 485 | } |
| 485 | getRegisterCatalogListData({damName: data.daName, damGuid: data.damGuid}); | 486 | getRegisterCatalogListData({ damName: data.daName, damGuid: data.damGuid }); |
| 486 | } else { | 487 | } else { |
| 487 | ElMessage.error(res.msg); | 488 | ElMessage.error(res.msg); |
| 488 | } | 489 | } |
| ... | @@ -536,6 +537,8 @@ onBeforeMount(() => { | ... | @@ -536,6 +537,8 @@ onBeforeMount(() => { |
| 536 | // 获取数据资产目录主题 | 537 | // 获取数据资产目录主题 |
| 537 | getParamsList({ dictType: '数据资产目录主题名称' }).then((res: any) => { | 538 | getParamsList({ dictType: '数据资产目录主题名称' }).then((res: any) => { |
| 538 | if (res.code == proxy.$passCode) { | 539 | if (res.code == proxy.$passCode) { |
| 540 | const data = res.data || []; | ||
| 541 | subjectDomainListData.value = data; | ||
| 539 | let item = baseFormItems.value.find(item => item.field == 'subjectDomain'); | 542 | let item = baseFormItems.value.find(item => item.field == 'subjectDomain'); |
| 540 | item && (item.options = subjectDomainListData.value); | 543 | item && (item.options = subjectDomainListData.value); |
| 541 | } else { | 544 | } else { |
| ... | @@ -1749,7 +1752,7 @@ const uploadFormItems: any = ref([ | ... | @@ -1749,7 +1752,7 @@ const uploadFormItems: any = ref([ |
| 1749 | required: true, | 1752 | required: true, |
| 1750 | default: [], | 1753 | default: [], |
| 1751 | col: 'mr8', | 1754 | col: 'mr8', |
| 1752 | field: 'qualityEvaluationFile', | 1755 | field: 'evaluationFile', |
| 1753 | visible: false, | 1756 | visible: false, |
| 1754 | }, | 1757 | }, |
| 1755 | { | 1758 | { |
| ... | @@ -1780,7 +1783,7 @@ const uploadFormItems: any = ref([ | ... | @@ -1780,7 +1783,7 @@ const uploadFormItems: any = ref([ |
| 1780 | required: true, | 1783 | required: true, |
| 1781 | default: [], | 1784 | default: [], |
| 1782 | col: 'mr8', | 1785 | col: 'mr8', |
| 1783 | field: 'costAssessmentFile', | 1786 | field: 'assessmentFile', |
| 1784 | visible: false, | 1787 | visible: false, |
| 1785 | }, | 1788 | }, |
| 1786 | { | 1789 | { |
| ... | @@ -1821,7 +1824,7 @@ const uploadFormRules = ref({ | ... | @@ -1821,7 +1824,7 @@ const uploadFormRules = ref({ |
| 1821 | costAssessmentInstitutionGuid: [ | 1824 | costAssessmentInstitutionGuid: [ |
| 1822 | { required: true, trigger: 'change', message: "请选择价值评估机构" } | 1825 | { required: true, trigger: 'change', message: "请选择价值评估机构" } |
| 1823 | ], | 1826 | ], |
| 1824 | qualityEvaluationFile: [{ | 1827 | evaluationFile: [{ |
| 1825 | validator: (rule: any, value: any, callback: any) => { | 1828 | validator: (rule: any, value: any, callback: any) => { |
| 1826 | if (!value?.length) { | 1829 | if (!value?.length) { |
| 1827 | callback(new Error('请上传质量评估报告')) | 1830 | callback(new Error('请上传质量评估报告')) |
| ... | @@ -1830,7 +1833,7 @@ const uploadFormRules = ref({ | ... | @@ -1830,7 +1833,7 @@ const uploadFormRules = ref({ |
| 1830 | } | 1833 | } |
| 1831 | }, trigger: 'change' | 1834 | }, trigger: 'change' |
| 1832 | }], | 1835 | }], |
| 1833 | costAssessmentFile: [{ | 1836 | assessmentFile: [{ |
| 1834 | validator: (rule: any, value: any, callback: any) => { | 1837 | validator: (rule: any, value: any, callback: any) => { |
| 1835 | if (!value?.length) { | 1838 | if (!value?.length) { |
| 1836 | callback(new Error('请上传价值评估报告')) | 1839 | callback(new Error('请上传价值评估报告')) |
| ... | @@ -1898,8 +1901,8 @@ const saveDraft = () => { | ... | @@ -1898,8 +1901,8 @@ const saveDraft = () => { |
| 1898 | let registerAttachment: any = { | 1901 | let registerAttachment: any = { |
| 1899 | // fileHash: uploadFormInline.fileHash, | 1902 | // fileHash: uploadFormInline.fileHash, |
| 1900 | registerLetter: uploadFormInline['registerLetter']?.map(u => u.url) || [], | 1903 | registerLetter: uploadFormInline['registerLetter']?.map(u => u.url) || [], |
| 1901 | qualityEvaluationFile: uploadFormInline['qualityEvaluationFile']?.map(u => u.url) || [], | 1904 | evaluationFile: uploadFormInline['evaluationFile']?.map(u => u.url) || [], |
| 1902 | costAssessmentFile: uploadFormInline['costAssessmentFile']?.map(u => u.url) || [], | 1905 | assessmentFile: uploadFormInline['assessmentFile']?.map(u => u.url) || [], |
| 1903 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => u.url) || [], | 1906 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => u.url) || [], |
| 1904 | } | 1907 | } |
| 1905 | if (qualityEvaluationInstitution.value) { | 1908 | if (qualityEvaluationInstitution.value) { |
| ... | @@ -1986,8 +1989,8 @@ const save = () => { | ... | @@ -1986,8 +1989,8 @@ const save = () => { |
| 1986 | let registerAttachment: any = { | 1989 | let registerAttachment: any = { |
| 1987 | // fileHash: uploadFormInline.fileHash, | 1990 | // fileHash: uploadFormInline.fileHash, |
| 1988 | registerLetter: uploadFormInline['registerLetter']?.map(u => u.url) || [], | 1991 | registerLetter: uploadFormInline['registerLetter']?.map(u => u.url) || [], |
| 1989 | qualityEvaluationFile: uploadFormInline['qualityEvaluationFile']?.map(u => u.url) || [], | 1992 | evaluationFile: uploadFormInline['evaluationFile']?.map(u => u.url) || [], |
| 1990 | costAssessmentFile: uploadFormInline['costAssessmentFile']?.map(u => u.url) || [], | 1993 | assessmentFile: uploadFormInline['assessmentFile']?.map(u => u.url) || [], |
| 1991 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => u.url) || [], | 1994 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => u.url) || [], |
| 1992 | } | 1995 | } |
| 1993 | if (qualityEvaluationInstitution.value) { | 1996 | if (qualityEvaluationInstitution.value) { |
| ... | @@ -2012,7 +2015,7 @@ const save = () => { | ... | @@ -2012,7 +2015,7 @@ const save = () => { |
| 2012 | fullscreenLoading.value = true; | 2015 | fullscreenLoading.value = true; |
| 2013 | if (draftDetailInfo.value.guid) { | 2016 | if (draftDetailInfo.value.guid) { |
| 2014 | params.guid = draftDetailInfo.value.guid; | 2017 | params.guid = draftDetailInfo.value.guid; |
| 2015 | params.isRestart = localStorage.getItem('isRestart') ? true : false; | 2018 | params.isRestart = restart ? true : false; |
| 2016 | registerUpdate(params).then((res: any) => { | 2019 | registerUpdate(params).then((res: any) => { |
| 2017 | fullscreenLoading.value = false; | 2020 | fullscreenLoading.value = false; |
| 2018 | if (res.code == proxy.$passCode) { | 2021 | if (res.code == proxy.$passCode) { |
| ... | @@ -2145,7 +2148,7 @@ const approveTableInfo: any = ref({ | ... | @@ -2145,7 +2148,7 @@ const approveTableInfo: any = ref({ |
| 2145 | <div class="tool_btns"> | 2148 | <div class="tool_btns"> |
| 2146 | <div class="btns"> | 2149 | <div class="btns"> |
| 2147 | <el-button plain @click="cancel">取消</el-button> | 2150 | <el-button plain @click="cancel">取消</el-button> |
| 2148 | <el-button type="primary" @click="saveDraft">保存</el-button> | 2151 | <el-button type="primary" @click="saveDraft" v-if="!restart">保存</el-button> |
| 2149 | <el-button type="primary" @click="save">提交申请</el-button> | 2152 | <el-button type="primary" @click="save">提交申请</el-button> |
| 2150 | </div> | 2153 | </div> |
| 2151 | </div> | 2154 | </div> | ... | ... |
-
Please register or sign in to post a comment