数据资产登记更新
Showing
3 changed files
with
110 additions
and
136 deletions
| ... | @@ -122,7 +122,7 @@ export const getServiceTenants = (params) => request({ | ... | @@ -122,7 +122,7 @@ export const getServiceTenants = (params) => request({ |
| 122 | 122 | ||
| 123 | /** 获取会员的附件模板 */ | 123 | /** 获取会员的附件模板 */ |
| 124 | export const getTenantAttach = (params) => request({ | 124 | export const getTenantAttach = (params) => request({ |
| 125 | url: `${import.meta.env.VITE_APP_API_BASEURL}/attachment-template/list-attachment?tenantGuid=${params}`, | 125 | url: `${import.meta.env.VITE_APP_PERSONAL_URL}/attachment-template/list-attachment?tenantGuid=${params}`, |
| 126 | method: 'get' | 126 | method: 'get' |
| 127 | }) | 127 | }) |
| 128 | 128 | ... | ... |
| ... | @@ -228,7 +228,7 @@ const tableBtnClick = (scope, btn) => { | ... | @@ -228,7 +228,7 @@ const tableBtnClick = (scope, btn) => { |
| 228 | localStorage.setItem('isRestart', btn.label == '重新提交' ? 'true' : ''); | 228 | localStorage.setItem('isRestart', btn.label == '重新提交' ? 'true' : ''); |
| 229 | router.push({ | 229 | router.push({ |
| 230 | name: 'registerStart', | 230 | name: 'registerStart', |
| 231 | query: { guid: row.guid, damGuid: row.damGuid, name: row.daName, type } | 231 | query: { guid: row.guid, exchangeGuid: row.exchangeGuid, name: row.daName, type } |
| 232 | }); | 232 | }); |
| 233 | } else if (type == "delete") { | 233 | } else if (type == "delete") { |
| 234 | delTableOpen("此操作将永久删除该资产登记,是否继续?", "warning"); | 234 | delTableOpen("此操作将永久删除该资产登记,是否继续?", "warning"); | ... | ... |
| ... | @@ -46,6 +46,7 @@ const route = useRoute(); | ... | @@ -46,6 +46,7 @@ const route = useRoute(); |
| 46 | const guid = route.query.guid; | 46 | 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 | 50 | ||
| 50 | /** 资产目录列表 */ | 51 | /** 资产目录列表 */ |
| 51 | const registerCatalogList: any = ref([]); | 52 | const registerCatalogList: any = ref([]); |
| ... | @@ -157,28 +158,14 @@ const getArea = (node, resolve) => { | ... | @@ -157,28 +158,14 @@ const getArea = (node, resolve) => { |
| 157 | } | 158 | } |
| 158 | } | 159 | } |
| 159 | 160 | ||
| 160 | const serviceTenants: any = ref([ | 161 | const serviceTenants: any = ref([]); |
| 161 | { | 162 | const currTenantChanged: any = ref([]); |
| 162 | "exchangeGuid": "07c11603a8bc4d8f8bee2e3a34ab4d8a", | ||
| 163 | "exchangeName": "测试数交所", | ||
| 164 | "listingNum": 0, | ||
| 165 | "underReviewNum": 0 | ||
| 166 | } | ||
| 167 | ]); | ||
| 168 | const currTenantChanged: any = ref([ | ||
| 169 | { | ||
| 170 | "exchangeGuid": "07c11603a8bc4d8f8bee2e3a34ab4d8a", | ||
| 171 | "exchangeName": "测试数交所", | ||
| 172 | "listingNum": 0, | ||
| 173 | "underReviewNum": 0 | ||
| 174 | } | ||
| 175 | ]); | ||
| 176 | 163 | ||
| 177 | const tenantDetail: any = ref({}); | 164 | const tenantDetail: any = ref({}); |
| 178 | 165 | ||
| 179 | /** 获取当前登录会员,服务商,企业等详情。 */ | 166 | /** 获取当前登录会员,服务商,企业等详情。 */ |
| 180 | const getTenantDetail = () => { | 167 | const getTenantDetail = () => { |
| 181 | getTenantDetailInfo({ guid: userData.tenantGuid }).then((res: any) => { | 168 | getTenantDetailInfo(userData.tenantGuid).then((res: any) => { |
| 182 | if (res.code == proxy.$passCode) { | 169 | if (res.code == proxy.$passCode) { |
| 183 | const data = res.data ?? {}; | 170 | const data = res.data ?? {}; |
| 184 | tenantDetail.value = data; | 171 | tenantDetail.value = data; |
| ... | @@ -316,10 +303,10 @@ const setUploadFormItemsValue = (info) => { | ... | @@ -316,10 +303,10 @@ const setUploadFormItemsValue = (info) => { |
| 316 | } else if (item.field === 'commitmentLetter') { | 303 | } else if (item.field === 'commitmentLetter') { |
| 317 | item.default = attach.commitmentLetter || []; | 304 | item.default = attach.commitmentLetter || []; |
| 318 | item.templateUrl = attachDataInfo.value['commitment-letter']; | 305 | item.templateUrl = attachDataInfo.value['commitment-letter']; |
| 319 | } else if (item.field === 'costAssessmentInstitution') { | 306 | } else if (item.field === 'costAssessmentInstitutionGuid') { |
| 320 | item.default = attach.costAssessmentInstitution || ''; | 307 | item.default = attach.costAssessmentInstitutionGuid || ''; |
| 321 | } else if (item.field === 'qualityEvaluationInstitution') { | 308 | } else if (item.field === 'qualityEvaluationInstitutionGuid') { |
| 322 | item.default = attach.qualityEvaluationInstitution || ''; | 309 | item.default = attach.qualityEvaluationInstitutionGuid || ''; |
| 323 | } | 310 | } |
| 324 | }); | 311 | }); |
| 325 | } | 312 | } |
| ... | @@ -358,10 +345,15 @@ const draftDetailInfo: any = ref({}); | ... | @@ -358,10 +345,15 @@ const draftDetailInfo: any = ref({}); |
| 358 | /** 会员附件模板 */ | 345 | /** 会员附件模板 */ |
| 359 | const attachDataInfo: any = ref({}); | 346 | const attachDataInfo: any = ref({}); |
| 360 | 347 | ||
| 361 | const getRegisterCatalogListData = () => { | 348 | const getRegisterCatalogListData = (dam: any={}) => { |
| 362 | getRegisterCatalogList().then((res: any) => { | 349 | getRegisterCatalogList().then((res: any) => { |
| 363 | if (res.code == proxy.$passCode) { | 350 | if (res.code == proxy.$passCode) { |
| 364 | baseFormItems.value[0].options = registerCatalogList.value = res.data || [] | 351 | const data = res.data || []; |
| 352 | baseFormItems.value[0].options = registerCatalogList.value = data; | ||
| 353 | if(guid){ | ||
| 354 | const opt = data.find(item => item.guid == dam.damGuid) | ||
| 355 | baseFormItems.value[0].default = opt? opt.guid: dam.damName | ||
| 356 | } | ||
| 365 | let dataScaleItem = baseFormItems.value.find(item => item.field == 'dataScale'); | 357 | let dataScaleItem = baseFormItems.value.find(item => item.field == 'dataScale'); |
| 366 | if (draftDetailInfo.value.damGuid) { | 358 | if (draftDetailInfo.value.damGuid) { |
| 367 | let da = registerCatalogList.value.find(r => r.guid == draftDetailInfo.value.damGuid); | 359 | let da = registerCatalogList.value.find(r => r.guid == draftDetailInfo.value.damGuid); |
| ... | @@ -394,12 +386,11 @@ const getRegisterCatalogListData = () => { | ... | @@ -394,12 +386,11 @@ const getRegisterCatalogListData = () => { |
| 394 | } | 386 | } |
| 395 | 387 | ||
| 396 | onActivated(() => { | 388 | onActivated(() => { |
| 397 | getRegisterCatalogListData(); | 389 | // getRegisterCatalogListData(); |
| 398 | }) | 390 | }) |
| 399 | 391 | ||
| 400 | onBeforeMount(() => { | 392 | onBeforeMount(() => { |
| 401 | if (guid) { | 393 | if (guid) { |
| 402 | baseFormItems.value[7].default = guid; | ||
| 403 | fullscreenLoading.value = true; | 394 | fullscreenLoading.value = true; |
| 404 | getRegiaterDetail({ guid: guid }).then((res: any) => { | 395 | getRegiaterDetail({ guid: guid }).then((res: any) => { |
| 405 | fullscreenLoading.value = false; | 396 | fullscreenLoading.value = false; |
| ... | @@ -456,17 +447,17 @@ onBeforeMount(() => { | ... | @@ -456,17 +447,17 @@ onBeforeMount(() => { |
| 456 | }); | 447 | }); |
| 457 | } | 448 | } |
| 458 | if (data.exchangeGuid) { | 449 | if (data.exchangeGuid) { |
| 459 | // getTenantAttach(data.exchangeGuid).then((res: any) => { | 450 | getTenantAttach(userData.tenantGuid).then((res: any) => { |
| 460 | // if (res?.code == proxy.$passCode) { | 451 | if (res?.code == proxy.$passCode) { |
| 461 | // Object.assign(attachDataInfo.value, res.data || {}); | 452 | Object.assign(attachDataInfo.value, res.data || {}); |
| 462 | // uploadFormItems.value[0].templateUrl = attachDataInfo.value.register_letter; | 453 | uploadFormItems.value[0].templateUrl = attachDataInfo.value.register_letter; |
| 463 | // uploadFormItems.value[1].templateUrl = attachDataInfo.value['commitment-letter']; | 454 | uploadFormItems.value[1].templateUrl = attachDataInfo.value['commitment-letter']; |
| 464 | // setUploadFormItemsValue(draftDetailInfo.value); | 455 | setUploadFormItemsValue(draftDetailInfo.value); |
| 465 | // } else { | 456 | } else { |
| 466 | // ElMessage.error(res.msg); | 457 | ElMessage.error(res.msg); |
| 467 | // setUploadFormItemsValue(draftDetailInfo.value); | 458 | setUploadFormItemsValue(draftDetailInfo.value); |
| 468 | // } | 459 | } |
| 469 | // }) | 460 | }) |
| 470 | setUploadFormItemsValue(draftDetailInfo.value); | 461 | setUploadFormItemsValue(draftDetailInfo.value); |
| 471 | } else { | 462 | } else { |
| 472 | setUploadFormItemsValue(draftDetailInfo.value); | 463 | setUploadFormItemsValue(draftDetailInfo.value); |
| ... | @@ -491,39 +482,7 @@ onBeforeMount(() => { | ... | @@ -491,39 +482,7 @@ onBeforeMount(() => { |
| 491 | } else { | 482 | } else { |
| 492 | setPropertyFormItemsValue(draftDetailInfo.value); | 483 | setPropertyFormItemsValue(draftDetailInfo.value); |
| 493 | } | 484 | } |
| 494 | // if (fullPath === route.fullPath) { | 485 | getRegisterCatalogListData({damName: data.daName, damGuid: data.damGuid}); |
| 495 | // document.title = editType ? `详情-${data.daName}` : `编辑-${data.daName}`; | ||
| 496 | // } | ||
| 497 | // let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); | ||
| 498 | // if (tab) { | ||
| 499 | // tab.meta.title = editType ? `详情-${data.daName}` : `编辑-${data.daName}`; | ||
| 500 | // } | ||
| 501 | if (data.approveGuid != null) { | ||
| 502 | approveTableInfo.value.loading = true; | ||
| 503 | getApproveList(guid).then((res: any) => { | ||
| 504 | approveTableInfo.value.loading = false; | ||
| 505 | if (res.code == proxy.$passCode) { | ||
| 506 | console.log(res.data); | ||
| 507 | approveTableInfo.value.data = res.data || []; | ||
| 508 | } else { | ||
| 509 | ElMessage.error(res.msg); | ||
| 510 | } | ||
| 511 | }); | ||
| 512 | } else { | ||
| 513 | approveTableInfo.value.loading = true; | ||
| 514 | getTenantApprove().then((res: any) => { | ||
| 515 | approveTableInfo.value.loading = false; | ||
| 516 | if (res.code == proxy.$passCode) { | ||
| 517 | approveTableInfo.value.data = res.data?.map(d => { | ||
| 518 | return { | ||
| 519 | tenantType: d.substring(4) | ||
| 520 | } | ||
| 521 | }) || []; | ||
| 522 | } else { | ||
| 523 | ElMessage.error(res.msg); | ||
| 524 | } | ||
| 525 | }); | ||
| 526 | } | ||
| 527 | } else { | 486 | } else { |
| 528 | ElMessage.error(res.msg); | 487 | ElMessage.error(res.msg); |
| 529 | } | 488 | } |
| ... | @@ -536,44 +495,10 @@ onBeforeMount(() => { | ... | @@ -536,44 +495,10 @@ onBeforeMount(() => { |
| 536 | ElMessage.error(res.msg); | 495 | ElMessage.error(res.msg); |
| 537 | } | 496 | } |
| 538 | }) | 497 | }) |
| 539 | // //新建无guid的时候显示这个审批信息,有guid调用另一个接口。 | 498 | getRegisterCatalogListData(); |
| 540 | // getTenantApprove().then((res: any) => { | ||
| 541 | // if (res.code == proxy.$passCode) { | ||
| 542 | // approveTableInfo.value.data = res.data?.map(d => { | ||
| 543 | // return { | ||
| 544 | // tenantType: d.substring(4) | ||
| 545 | // } | ||
| 546 | // }) || []; | ||
| 547 | // } else { | ||
| 548 | // ElMessage.error(res.msg); | ||
| 549 | // } | ||
| 550 | // }); | ||
| 551 | } | 499 | } |
| 552 | let exchangeItem = baseFormItems.value.find(f => f.field === 'exchangeGuid'); | 500 | |
| 553 | exchangeItem.default = route.query.exchangeGuid; | 501 | getTenantDetail(); |
| 554 | // getTenantDetail(); | ||
| 555 | // getServiceTenants({ | ||
| 556 | // tenantType: 3 | ||
| 557 | // }).then((res: any) => { | ||
| 558 | // if (res.code == proxy.$passCode) { | ||
| 559 | // const data = res.data ?? {}; | ||
| 560 | // serviceTenants.value = data['3'] || []; | ||
| 561 | // let item2 = baseFormItems.value.find(f => f.field === 'rules'); | ||
| 562 | // item2.children[1].options = serviceTenants.value; | ||
| 563 | // } else { | ||
| 564 | // ElMessage.error(res.msg); | ||
| 565 | // } | ||
| 566 | // }); | ||
| 567 | // getServiceDetail(userData.tenantGuid).then((res: any) => { | ||
| 568 | // if (res.code == proxy.$passCode) { | ||
| 569 | // const data = res.data ?? {}; | ||
| 570 | // currTenantChanged.value = data.filter(d => d.serviceType == 4); | ||
| 571 | // let formItem = baseFormItems.value.find(f => f.field === 'exchangeGuid'); | ||
| 572 | // formItem.options = currTenantChanged.value; | ||
| 573 | // } else { | ||
| 574 | // ElMessage.error(res.msg); | ||
| 575 | // } | ||
| 576 | // }); | ||
| 577 | getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { | 502 | getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { |
| 578 | if (res?.code == proxy.$passCode) { | 503 | if (res?.code == proxy.$passCode) { |
| 579 | parentAreaData.value = res.data ?? []; | 504 | parentAreaData.value = res.data ?? []; |
| ... | @@ -590,6 +515,7 @@ onBeforeMount(() => { | ... | @@ -590,6 +515,7 @@ onBeforeMount(() => { |
| 590 | // ElMessage.error(res.msg); | 515 | // ElMessage.error(res.msg); |
| 591 | // } | 516 | // } |
| 592 | // }) | 517 | // }) |
| 518 | // 获取资产类型 | ||
| 593 | getParamsList({ dictType: '资产类型' }).then((res: any) => { | 519 | getParamsList({ dictType: '资产类型' }).then((res: any) => { |
| 594 | if (res.code == proxy.$passCode) { | 520 | if (res.code == proxy.$passCode) { |
| 595 | damTypes.value = res.data || []; | 521 | damTypes.value = res.data || []; |
| ... | @@ -607,6 +533,7 @@ onBeforeMount(() => { | ... | @@ -607,6 +533,7 @@ onBeforeMount(() => { |
| 607 | proxy.$ElMessage.error(res.msg); | 533 | proxy.$ElMessage.error(res.msg); |
| 608 | } | 534 | } |
| 609 | }) | 535 | }) |
| 536 | // 获取数据资产目录主题 | ||
| 610 | getParamsList({ dictType: '数据资产目录主题名称' }).then((res: any) => { | 537 | getParamsList({ dictType: '数据资产目录主题名称' }).then((res: any) => { |
| 611 | if (res.code == proxy.$passCode) { | 538 | if (res.code == proxy.$passCode) { |
| 612 | let item = baseFormItems.value.find(item => item.field == 'subjectDomain'); | 539 | let item = baseFormItems.value.find(item => item.field == 'subjectDomain'); |
| ... | @@ -615,11 +542,26 @@ onBeforeMount(() => { | ... | @@ -615,11 +542,26 @@ onBeforeMount(() => { |
| 615 | proxy.$ElMessage.error(res.msg); | 542 | proxy.$ElMessage.error(res.msg); |
| 616 | } | 543 | } |
| 617 | }) | 544 | }) |
| 545 | // 获取数交所数据 | ||
| 546 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "130" }).then((res: any) => { | ||
| 547 | if (res.code == proxy.$passCode) { | ||
| 548 | const data = res.data.records ?? []; | ||
| 549 | currTenantChanged.value = data; | ||
| 550 | let formItem = baseFormItems.value.find(f => f.field === 'exchangeGuid'); | ||
| 551 | formItem.options = currTenantChanged.value; | ||
| 552 | formItem.default = exGuid; | ||
| 553 | serviceTenants.value = data.filter(d => d.guid !== exGuid); | ||
| 554 | let item2 = baseFormItems.value.find(f => f.field === 'rules'); | ||
| 555 | item2.children[1].options = serviceTenants.value; | ||
| 556 | } else { | ||
| 557 | proxy.$ElMessage.error(res.msg); | ||
| 558 | } | ||
| 559 | }) | ||
| 618 | // 获取质量评估机构 | 560 | // 获取质量评估机构 |
| 619 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12505" }).then((res: any) => { | 561 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12505" }).then((res: any) => { |
| 620 | if (res.code == proxy.$passCode) { | 562 | if (res.code == proxy.$passCode) { |
| 621 | qualityEvaluationData.value = res.data.records || []; | 563 | qualityEvaluationData.value = res.data.records || []; |
| 622 | let item = uploadFormItems.value.find(item => item.field == 'qualityEvaluationInstitution'); | 564 | let item = uploadFormItems.value.find(item => item.field == 'qualityEvaluationInstitutionGuid'); |
| 623 | item && (item.options = qualityEvaluationData.value); | 565 | item && (item.options = qualityEvaluationData.value); |
| 624 | } else { | 566 | } else { |
| 625 | proxy.$ElMessage.error(res.msg); | 567 | proxy.$ElMessage.error(res.msg); |
| ... | @@ -629,7 +571,7 @@ onBeforeMount(() => { | ... | @@ -629,7 +571,7 @@ onBeforeMount(() => { |
| 629 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12504" }).then((res: any) => { | 571 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12504" }).then((res: any) => { |
| 630 | if (res.code == proxy.$passCode) { | 572 | if (res.code == proxy.$passCode) { |
| 631 | costAssessmentData.value = res.data.records || []; | 573 | costAssessmentData.value = res.data.records || []; |
| 632 | let item = uploadFormItems.value.find(item => item.field == 'costAssessmentInstitution'); | 574 | let item = uploadFormItems.value.find(item => item.field == 'costAssessmentInstitutionGuid'); |
| 633 | item && (item.options = costAssessmentData.value); | 575 | item && (item.options = costAssessmentData.value); |
| 634 | } else { | 576 | } else { |
| 635 | proxy.$ElMessage.error(res.msg); | 577 | proxy.$ElMessage.error(res.msg); |
| ... | @@ -795,13 +737,10 @@ const baseFormItems: any = ref([ | ... | @@ -795,13 +737,10 @@ const baseFormItems: any = ref([ |
| 795 | field: 'exchangeGuid', | 737 | field: 'exchangeGuid', |
| 796 | default: '', | 738 | default: '', |
| 797 | // col: 'mr8', | 739 | // col: 'mr8', |
| 798 | // col: 'mr8', | ||
| 799 | options: currTenantChanged.value, | 740 | options: currTenantChanged.value, |
| 800 | props: { | 741 | props: { |
| 801 | // value: 'serviceTenantGuid', | 742 | value: 'guid', |
| 802 | // label: 'serviceTenantName' | 743 | label: 'tenantName' |
| 803 | value: "exchangeGuid", | ||
| 804 | label: "exchangeName", | ||
| 805 | }, | 744 | }, |
| 806 | required: true, | 745 | required: true, |
| 807 | disabled: true, | 746 | disabled: true, |
| ... | @@ -840,10 +779,8 @@ const baseFormItems: any = ref([ | ... | @@ -840,10 +779,8 @@ const baseFormItems: any = ref([ |
| 840 | default: [], | 779 | default: [], |
| 841 | // index: 0, | 780 | // index: 0, |
| 842 | props: { | 781 | props: { |
| 843 | // value: "guid", | 782 | value: "guid", |
| 844 | // label: "tenantName", | 783 | label: "tenantName", |
| 845 | value: "exchangeGuid", | ||
| 846 | label: "exchangeName", | ||
| 847 | }, | 784 | }, |
| 848 | options: serviceTenants.value, | 785 | options: serviceTenants.value, |
| 849 | multiple: true, | 786 | multiple: true, |
| ... | @@ -1819,12 +1756,17 @@ const uploadFormItems: any = ref([ | ... | @@ -1819,12 +1756,17 @@ const uploadFormItems: any = ref([ |
| 1819 | label: '质量评估机构', | 1756 | label: '质量评估机构', |
| 1820 | type: 'select', | 1757 | type: 'select', |
| 1821 | placeholder: '请选择', | 1758 | placeholder: '请选择', |
| 1822 | field: 'qualityEvaluationInstitution', | 1759 | field: 'qualityEvaluationInstitutionGuid', |
| 1823 | default: '', | 1760 | default: '', |
| 1824 | options: [], | 1761 | options: [], |
| 1762 | props: { | ||
| 1763 | label: 'tenantName', | ||
| 1764 | value: 'guid' | ||
| 1765 | }, | ||
| 1825 | required: true, | 1766 | required: true, |
| 1826 | filterable: true, | 1767 | filterable: true, |
| 1827 | allowCreate: true, | 1768 | allowCreate: true, |
| 1769 | clearable: true, | ||
| 1828 | style: { | 1770 | style: { |
| 1829 | width: 'calc(33.33% - 6px)!important' | 1771 | width: 'calc(33.33% - 6px)!important' |
| 1830 | }, | 1772 | }, |
| ... | @@ -1845,12 +1787,17 @@ const uploadFormItems: any = ref([ | ... | @@ -1845,12 +1787,17 @@ const uploadFormItems: any = ref([ |
| 1845 | label: '价值评估机构', | 1787 | label: '价值评估机构', |
| 1846 | type: 'select', | 1788 | type: 'select', |
| 1847 | placeholder: '请选择', | 1789 | placeholder: '请选择', |
| 1848 | field: 'costAssessmentInstitution', | 1790 | field: 'costAssessmentInstitutionGuid', |
| 1849 | default: '', | 1791 | default: '', |
| 1850 | options: [], | 1792 | options: [], |
| 1793 | props: { | ||
| 1794 | label: 'tenantName', | ||
| 1795 | value: 'guid' | ||
| 1796 | }, | ||
| 1851 | required: true, | 1797 | required: true, |
| 1852 | filterable: true, | 1798 | filterable: true, |
| 1853 | allowCreate: true, | 1799 | allowCreate: true, |
| 1800 | clearable: true, | ||
| 1854 | style: { | 1801 | style: { |
| 1855 | width: 'calc(33.33% - 6px)!important' | 1802 | width: 'calc(33.33% - 6px)!important' |
| 1856 | }, | 1803 | }, |
| ... | @@ -1868,10 +1815,10 @@ const uploadFormRules = ref({ | ... | @@ -1868,10 +1815,10 @@ const uploadFormRules = ref({ |
| 1868 | } | 1815 | } |
| 1869 | }, trigger: 'change' | 1816 | }, trigger: 'change' |
| 1870 | }], | 1817 | }], |
| 1871 | qualityEvaluationInstitution: [ | 1818 | qualityEvaluationInstitutionGuid: [ |
| 1872 | { required: true, trigger: 'change', message: "请选择质量评估机构" } | 1819 | { required: true, trigger: 'change', message: "请选择质量评估机构" } |
| 1873 | ], | 1820 | ], |
| 1874 | costAssessmentInstitution: [ | 1821 | costAssessmentInstitutionGuid: [ |
| 1875 | { required: true, trigger: 'change', message: "请选择价值评估机构" } | 1822 | { required: true, trigger: 'change', message: "请选择价值评估机构" } |
| 1876 | ], | 1823 | ], |
| 1877 | qualityEvaluationFile: [{ | 1824 | qualityEvaluationFile: [{ |
| ... | @@ -1919,6 +1866,16 @@ const cancel = () => { | ... | @@ -1919,6 +1866,16 @@ const cancel = () => { |
| 1919 | }); | 1866 | }); |
| 1920 | } | 1867 | } |
| 1921 | 1868 | ||
| 1869 | const qualityEvaluationInstitution = ref(''); | ||
| 1870 | const costAssessmentInstitution = ref(''); | ||
| 1871 | const uploadSelectChange = (val, item, row) => { | ||
| 1872 | if (item.field == 'qualityEvaluationInstitutionGuid') { | ||
| 1873 | qualityEvaluationInstitution.value = val && item.options.find(o => o.guid == val) ? '' : (val || ''); | ||
| 1874 | } else { | ||
| 1875 | costAssessmentInstitution.value = val && item.options.find(o => o.guid == val) ? '' : (val || ''); | ||
| 1876 | } | ||
| 1877 | } | ||
| 1878 | |||
| 1922 | /** 保存草稿,不用校验。 */ | 1879 | /** 保存草稿,不用校验。 */ |
| 1923 | const saveDraft = () => { | 1880 | const saveDraft = () => { |
| 1924 | let params: any = {}; | 1881 | let params: any = {}; |
| ... | @@ -1938,14 +1895,22 @@ const saveDraft = () => { | ... | @@ -1938,14 +1895,22 @@ const saveDraft = () => { |
| 1938 | let propertyFormLine = porpertyInfoFormRef.value.formInline; | 1895 | let propertyFormLine = porpertyInfoFormRef.value.formInline; |
| 1939 | Object.assign(params, propertyFormLine); | 1896 | Object.assign(params, propertyFormLine); |
| 1940 | let uploadFormInline = uploadFormRef.value.formInline; | 1897 | let uploadFormInline = uploadFormRef.value.formInline; |
| 1941 | const registerAttachment = { | 1898 | let registerAttachment: any = { |
| 1942 | // fileHash: uploadFormInline.fileHash, | 1899 | // fileHash: uploadFormInline.fileHash, |
| 1943 | registerLetter: uploadFormInline['registerLetter']?.map(u => u.url) || [], | 1900 | registerLetter: uploadFormInline['registerLetter']?.map(u => u.url) || [], |
| 1944 | qualityEvaluationFile: uploadFormInline['qualityEvaluationFile']?.map(u => u.url) || [], | 1901 | qualityEvaluationFile: uploadFormInline['qualityEvaluationFile']?.map(u => u.url) || [], |
| 1945 | costAssessmentFile: uploadFormInline['costAssessmentFile']?.map(u => u.url) || [], | 1902 | costAssessmentFile: uploadFormInline['costAssessmentFile']?.map(u => u.url) || [], |
| 1946 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => u.url) || [], | 1903 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => u.url) || [], |
| 1947 | qualityEvaluationInstitution: uploadFormInline.qualityEvaluationInstitution || '', | 1904 | } |
| 1948 | costAssessmentInstitution: uploadFormInline.costAssessmentInstitution || '', | 1905 | if (qualityEvaluationInstitution.value) { |
| 1906 | registerAttachment.qualityEvaluationInstitution = qualityEvaluationInstitution.value | ||
| 1907 | } else { | ||
| 1908 | registerAttachment.qualityEvaluationInstitutionGuid = uploadFormInline.qualityEvaluationInstitutionGuid || '' | ||
| 1909 | } | ||
| 1910 | if (costAssessmentInstitution.value) { | ||
| 1911 | registerAttachment.costAssessmentInstitution = costAssessmentInstitution.value | ||
| 1912 | } else { | ||
| 1913 | registerAttachment.costAssessmentInstitutionGuid = uploadFormInline.costAssessmentInstitutionGuid || '' | ||
| 1949 | } | 1914 | } |
| 1950 | Object.assign(params, { | 1915 | Object.assign(params, { |
| 1951 | registerAttachment: registerAttachment, | 1916 | registerAttachment: registerAttachment, |
| ... | @@ -2018,16 +1983,25 @@ const save = () => { | ... | @@ -2018,16 +1983,25 @@ const save = () => { |
| 2018 | let propertyFormLine = porpertyInfoFormRef.value.formInline; | 1983 | let propertyFormLine = porpertyInfoFormRef.value.formInline; |
| 2019 | Object.assign(params, propertyFormLine); | 1984 | Object.assign(params, propertyFormLine); |
| 2020 | let uploadFormInline = uploadFormRef.value.formInline; | 1985 | let uploadFormInline = uploadFormRef.value.formInline; |
| 1986 | let registerAttachment: any = { | ||
| 1987 | // fileHash: uploadFormInline.fileHash, | ||
| 1988 | registerLetter: uploadFormInline['registerLetter']?.map(u => u.url) || [], | ||
| 1989 | qualityEvaluationFile: uploadFormInline['qualityEvaluationFile']?.map(u => u.url) || [], | ||
| 1990 | costAssessmentFile: uploadFormInline['costAssessmentFile']?.map(u => u.url) || [], | ||
| 1991 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => u.url) || [], | ||
| 1992 | } | ||
| 1993 | if (qualityEvaluationInstitution.value) { | ||
| 1994 | registerAttachment.qualityEvaluationInstitution = qualityEvaluationInstitution.value | ||
| 1995 | } else { | ||
| 1996 | registerAttachment.qualityEvaluationInstitutionGuid = uploadFormInline.qualityEvaluationInstitutionGuid || '' | ||
| 1997 | } | ||
| 1998 | if (costAssessmentInstitution.value) { | ||
| 1999 | registerAttachment.costAssessmentInstitution = costAssessmentInstitution.value | ||
| 2000 | } else { | ||
| 2001 | registerAttachment.costAssessmentInstitutionGuid = uploadFormInline.costAssessmentInstitutionGuid || '' | ||
| 2002 | } | ||
| 2021 | Object.assign(params, { | 2003 | Object.assign(params, { |
| 2022 | registerAttachment: { | 2004 | registerAttachment: registerAttachment, |
| 2023 | // fileHash: uploadFormInline.fileHash, | ||
| 2024 | registerLetter: uploadFormInline['registerLetter']?.map(u => u.url) || [], | ||
| 2025 | qualityEvaluationFile: uploadFormInline['qualityEvaluationFile']?.map(u => u.url) || [], | ||
| 2026 | costAssessmentFile: uploadFormInline['costAssessmentFile']?.map(u => u.url) || [], | ||
| 2027 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => u.url) || [], | ||
| 2028 | qualityEvaluationInstitution: uploadFormInline.qualityEvaluationInstitution || '', | ||
| 2029 | costAssessmentInstitution: uploadFormInline.costAssessmentInstitution || '', | ||
| 2030 | }, | ||
| 2031 | immediateApprove: true, | 2005 | immediateApprove: true, |
| 2032 | isSubmit: true, | 2006 | isSubmit: true, |
| 2033 | }); | 2007 | }); |
| ... | @@ -2153,7 +2127,7 @@ const approveTableInfo: any = ref({ | ... | @@ -2153,7 +2127,7 @@ const approveTableInfo: any = ref({ |
| 2153 | <ContentWrap id="id-assetContent" title="附件信息" description="" :isExpand="assetContentExpand" expandSwicth | 2127 | <ContentWrap id="id-assetContent" title="附件信息" description="" :isExpand="assetContentExpand" expandSwicth |
| 2154 | style="margin-top: 15px" @expand="(v) => assetContentExpand = v"> | 2128 | style="margin-top: 15px" @expand="(v) => assetContentExpand = v"> |
| 2155 | <Form class='uploadForm' ref="uploadFormRef" :itemList="uploadFormItems" formId="upload-form" | 2129 | <Form class='uploadForm' ref="uploadFormRef" :itemList="uploadFormItems" formId="upload-form" |
| 2156 | :rules="uploadFormRules" col="col3" /> | 2130 | :rules="uploadFormRules" col="col3" @selectChange="uploadSelectChange" /> |
| 2157 | </ContentWrap> | 2131 | </ContentWrap> |
| 2158 | <ContentWrap id="id-propertyInfo" title="权利信息" description="申报数据资产的权利信息" expandSwicth | 2132 | <ContentWrap id="id-propertyInfo" title="权利信息" description="申报数据资产的权利信息" expandSwicth |
| 2159 | :isExpand="propertyInfoExpand" style="margin-top: 15px" @expand="(v) => propertyInfoExpand = v"> | 2133 | :isExpand="propertyInfoExpand" style="margin-top: 15px" @expand="(v) => propertyInfoExpand = v"> | ... | ... |
-
Please register or sign in to post a comment