fix
Showing
6 changed files
with
204 additions
and
170 deletions
| ... | @@ -86,7 +86,7 @@ const searchItemList = ref([ | ... | @@ -86,7 +86,7 @@ const searchItemList = ref([ |
| 86 | label: "", | 86 | label: "", |
| 87 | field: "dataSources", | 87 | field: "dataSources", |
| 88 | default: "", | 88 | default: "", |
| 89 | placeholder: "数据来源", | 89 | placeholder: "产品来源", |
| 90 | clearable: true, | 90 | clearable: true, |
| 91 | filterable: true, | 91 | filterable: true, |
| 92 | options: dataSources.value, | 92 | options: dataSources.value, |
| ... | @@ -423,7 +423,7 @@ const handleWindowResize = () => { | ... | @@ -423,7 +423,7 @@ const handleWindowResize = () => { |
| 423 | <div class="right">{{ item.damTypeName || '--' }}</div> | 423 | <div class="right">{{ item.damTypeName || '--' }}</div> |
| 424 | </div> | 424 | </div> |
| 425 | <div class="mid-content"> | 425 | <div class="mid-content"> |
| 426 | <div class="left">数据来源</div> | 426 | <div class="left">产品来源</div> |
| 427 | <div class="right">{{ item.foundMode ? (item.foundMode === 1 ? '自建' : '加工交付') : '--' | 427 | <div class="right">{{ item.foundMode ? (item.foundMode === 1 ? '自建' : '加工交付') : '--' |
| 428 | }}</div> | 428 | }}</div> |
| 429 | </div> | 429 | </div> | ... | ... |
| ... | @@ -168,44 +168,44 @@ const tenantDetail: any = ref({}); | ... | @@ -168,44 +168,44 @@ const tenantDetail: any = ref({}); |
| 168 | /** 获取当前登录会员,服务商,企业等详情。 */ | 168 | /** 获取当前登录会员,服务商,企业等详情。 */ |
| 169 | const getTenantDetail = () => { | 169 | const getTenantDetail = () => { |
| 170 | let ps: any = [], tentData = {}; | 170 | let ps: any = [], tentData = {}; |
| 171 | ps.push(getTenantDetailInfo(userData.tenantGuid).then((res: any) => { | 171 | ps.push(getTenantDetailInfo(userData.tenantGuid).then((res: any) => { |
| 172 | if (res.code == proxy.$passCode) { | 172 | if (res.code == proxy.$passCode) { |
| 173 | const data = res.data ?? {}; | 173 | const data = res.data ?? {}; |
| 174 | tentData = {...tentData, ...data}; | 174 | tentData = { ...tentData, ...data }; |
| 175 | } else { | 175 | } else { |
| 176 | ElMessage.error(res.msg); | 176 | ElMessage.error(res.msg); |
| 177 | } | 177 | } |
| 178 | })); | 178 | })); |
| 179 | ps.push(getTenantInfo({ tenantName: userData.tenantName }).then((res: any) => { | 179 | ps.push(getTenantInfo({ tenantName: userData.tenantName }).then((res: any) => { |
| 180 | if (res.code == proxy.$passCode) { | 180 | if (res.code == proxy.$passCode) { |
| 181 | const data = res.data ?? {}; | 181 | const data = res.data ?? {}; |
| 182 | tentData = {...tentData, ...data}; | 182 | tentData = { ...tentData, ...data }; |
| 183 | } else { | 183 | } else { |
| 184 | ElMessage.error(res.msg); | 184 | ElMessage.error(res.msg); |
| 185 | } | 185 | } |
| 186 | })) | 186 | })) |
| 187 | 187 | ||
| 188 | Promise.all(ps).then(() => { | 188 | Promise.all(ps).then(() => { |
| 189 | tenantDetail.value = tentData; | 189 | tenantDetail.value = tentData; |
| 190 | propertyFormItems.value.forEach((item, index) => { | 190 | propertyFormItems.value.forEach((item, index) => { |
| 191 | if (item.field == 'address' || item.field == 'socialCreditCode' || item.field == 'registrationDate' || item.field == 'businessLicenseStartDate' || item.field == 'businessLicenseEndDate') {//在会员详情处获取。 | 191 | if (item.field == 'address' || item.field == 'socialCreditCode' || item.field == 'registrationDate' || item.field == 'businessLicenseStartDate' || item.field == 'businessLicenseEndDate') {//在会员详情处获取。 |
| 192 | item.default = tenantDetail.value[item.field]; | 192 | item.default = tenantDetail.value[item.field]; |
| 193 | } else if (item.field == 'businessLicenseJson') { | 193 | } else if (item.field == 'businessLicenseJson') { |
| 194 | item.default = tenantDetail.value[item.field] || []; | 194 | item.default = tenantDetail.value[item.field] || []; |
| 195 | if (!item.default.length) { | 195 | if (!item.default.length) { |
| 196 | item.visible = false; | 196 | item.visible = false; |
| 197 | } else { | 197 | } else { |
| 198 | item.visible = true; | 198 | item.visible = true; |
| 199 | } | ||
| 200 | } else if (item.field == 'officeLocation') { | ||
| 201 | if (!guid && tenantDetail.value.province) { | ||
| 202 | item.default = [[tenantDetail.value.province, tenantDetail.value.city]]; | ||
| 203 | } | ||
| 204 | } | 199 | } |
| 205 | }); | 200 | } else if (item.field == 'officeLocation') { |
| 206 | }).catch(() => { | 201 | if (!guid && tenantDetail.value.province) { |
| 207 | fullscreenLoading.value = false; | 202 | item.default = [[tenantDetail.value.province, tenantDetail.value.city]]; |
| 203 | } | ||
| 204 | } | ||
| 208 | }); | 205 | }); |
| 206 | }).catch(() => { | ||
| 207 | fullscreenLoading.value = false; | ||
| 208 | }); | ||
| 209 | } | 209 | } |
| 210 | 210 | ||
| 211 | const setBaseFormItemsValue = (info) => { | 211 | const setBaseFormItemsValue = (info) => { |
| ... | @@ -310,28 +310,28 @@ const setUploadFormItemsValue = (info) => { | ... | @@ -310,28 +310,28 @@ const setUploadFormItemsValue = (info) => { |
| 310 | uploadFormItems.value.forEach(item => { | 310 | uploadFormItems.value.forEach(item => { |
| 311 | if (item.field == 'registerLetter') { | 311 | if (item.field == 'registerLetter') { |
| 312 | let registerLetter = attach.registerLetter ? attach.registerLetter : []; | 312 | let registerLetter = attach.registerLetter ? attach.registerLetter : []; |
| 313 | if(registerLetter.length){ | 313 | if (registerLetter.length) { |
| 314 | registerLetter[0].name = registerLetter[0].name | 314 | registerLetter[0].name = registerLetter[0].name |
| 315 | } | 315 | } |
| 316 | item.default = registerLetter; | 316 | item.default = registerLetter; |
| 317 | item.templateUrl = attachDataInfo.value.register_letter; | 317 | item.templateUrl = attachDataInfo.value.register_letter; |
| 318 | } else if (item.field == 'evaluationFile') { | 318 | } else if (item.field == 'evaluationFile') { |
| 319 | let evaluationFile = attach.evaluationFile ? attach.evaluationFile : []; | 319 | let evaluationFile = attach.evaluationFile ? attach.evaluationFile : []; |
| 320 | if(evaluationFile.length){ | 320 | if (evaluationFile.length) { |
| 321 | evaluationFile[0].name = evaluationFile[0].name | 321 | evaluationFile[0].name = evaluationFile[0].name |
| 322 | } | 322 | } |
| 323 | item.default = evaluationFile; | 323 | item.default = evaluationFile; |
| 324 | item.templateUrl = attachDataInfo.value.quality_evaluation_file; | 324 | item.templateUrl = attachDataInfo.value.quality_evaluation_file; |
| 325 | } else if (item.field == 'assessmentFile') { | 325 | } else if (item.field == 'assessmentFile') { |
| 326 | let assessmentFile = attach.assessmentFile ? attach.assessmentFile : []; | 326 | let assessmentFile = attach.assessmentFile ? attach.assessmentFile : []; |
| 327 | if(assessmentFile.length){ | 327 | if (assessmentFile.length) { |
| 328 | assessmentFile[0].name = assessmentFile[0].name | 328 | assessmentFile[0].name = assessmentFile[0].name |
| 329 | } | 329 | } |
| 330 | item.default = assessmentFile; | 330 | item.default = assessmentFile; |
| 331 | item.templateUrl = attachDataInfo.value.cost_assessment_file; | 331 | item.templateUrl = attachDataInfo.value.cost_assessment_file; |
| 332 | } else if (item.field === 'commitmentLetter') { | 332 | } else if (item.field === 'commitmentLetter') { |
| 333 | let commitmentLetter = attach.commitmentLetter ? attach.commitmentLetter : []; | 333 | let commitmentLetter = attach.commitmentLetter ? attach.commitmentLetter : []; |
| 334 | if(commitmentLetter.length){ | 334 | if (commitmentLetter.length) { |
| 335 | commitmentLetter[0].name = commitmentLetter[0].name | 335 | commitmentLetter[0].name = commitmentLetter[0].name |
| 336 | } | 336 | } |
| 337 | item.default = commitmentLetter; | 337 | item.default = commitmentLetter; |
| ... | @@ -423,7 +423,7 @@ onActivated(() => { | ... | @@ -423,7 +423,7 @@ onActivated(() => { |
| 423 | }) | 423 | }) |
| 424 | 424 | ||
| 425 | onBeforeMount(() => { | 425 | onBeforeMount(() => { |
| 426 | restart.value = localStorage.getItem('isRestart')?true:false; | 426 | restart.value = localStorage.getItem('isRestart') ? true : false; |
| 427 | if (guid) { | 427 | if (guid) { |
| 428 | fullscreenLoading.value = true; | 428 | fullscreenLoading.value = true; |
| 429 | getRegiaterDetail({ guid: guid }).then((res: any) => { | 429 | getRegiaterDetail({ guid: guid }).then((res: any) => { |
| ... | @@ -1939,19 +1939,19 @@ const saveDraft = () => { | ... | @@ -1939,19 +1939,19 @@ const saveDraft = () => { |
| 1939 | name: u.name | 1939 | name: u.name |
| 1940 | } | 1940 | } |
| 1941 | }) || [], | 1941 | }) || [], |
| 1942 | evaluationFile: uploadFormInline['evaluationFile']?.map(u => { | 1942 | evaluationFile: uploadFormInline['evaluationFile']?.map(u => { |
| 1943 | return { | 1943 | return { |
| 1944 | url: u.url, | 1944 | url: u.url, |
| 1945 | name: u.name | 1945 | name: u.name |
| 1946 | } | 1946 | } |
| 1947 | }) || [], | 1947 | }) || [], |
| 1948 | assessmentFile: uploadFormInline['assessmentFile']?.map(u => { | 1948 | assessmentFile: uploadFormInline['assessmentFile']?.map(u => { |
| 1949 | return { | 1949 | return { |
| 1950 | url: u.url, | 1950 | url: u.url, |
| 1951 | name: u.name | 1951 | name: u.name |
| 1952 | } | 1952 | } |
| 1953 | }) || [], | 1953 | }) || [], |
| 1954 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => { | 1954 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => { |
| 1955 | return { | 1955 | return { |
| 1956 | url: u.url, | 1956 | url: u.url, |
| 1957 | name: u.name | 1957 | name: u.name |
| ... | @@ -2041,30 +2041,30 @@ const save = () => { | ... | @@ -2041,30 +2041,30 @@ const save = () => { |
| 2041 | let uploadFormInline = uploadFormRef.value.formInline; | 2041 | let uploadFormInline = uploadFormRef.value.formInline; |
| 2042 | let registerAttachment: any = { | 2042 | let registerAttachment: any = { |
| 2043 | // fileHash: uploadFormInline.fileHash, | 2043 | // fileHash: uploadFormInline.fileHash, |
| 2044 | registerLetter: uploadFormInline['registerLetter']?.map(u => { | 2044 | registerLetter: uploadFormInline['registerLetter']?.map(u => { |
| 2045 | return { | 2045 | return { |
| 2046 | url: u.url, | 2046 | url: u.url, |
| 2047 | name: u.name | 2047 | name: u.name |
| 2048 | } | 2048 | } |
| 2049 | }) || [], | 2049 | }) || [], |
| 2050 | evaluationFile: uploadFormInline['evaluationFile']?.map(u => { | 2050 | evaluationFile: uploadFormInline['evaluationFile']?.map(u => { |
| 2051 | return { | 2051 | return { |
| 2052 | url: u.url, | 2052 | url: u.url, |
| 2053 | name: u.name | 2053 | name: u.name |
| 2054 | } | 2054 | } |
| 2055 | }) || [], | 2055 | }) || [], |
| 2056 | assessmentFile: uploadFormInline['assessmentFile']?.map(u => { | 2056 | assessmentFile: uploadFormInline['assessmentFile']?.map(u => { |
| 2057 | return { | 2057 | return { |
| 2058 | url: u.url, | 2058 | url: u.url, |
| 2059 | name: u.name | 2059 | name: u.name |
| 2060 | } | 2060 | } |
| 2061 | }) || [], | 2061 | }) || [], |
| 2062 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => { | 2062 | commitmentLetter: uploadFormInline['commitmentLetter']?.map(u => { |
| 2063 | return { | 2063 | return { |
| 2064 | url: u.url, | 2064 | url: u.url, |
| 2065 | name: u.name | 2065 | name: u.name |
| 2066 | } | 2066 | } |
| 2067 | }) || [], | 2067 | }) || [], |
| 2068 | } | 2068 | } |
| 2069 | if (qualityEvaluationInstitution.value) { | 2069 | if (qualityEvaluationInstitution.value) { |
| 2070 | registerAttachment.qualityEvaluationInstitution = qualityEvaluationInstitution.value | 2070 | registerAttachment.qualityEvaluationInstitution = qualityEvaluationInstitution.value | ... | ... |
| ... | @@ -360,91 +360,114 @@ const tableBtnClick = (scope, btn) => { | ... | @@ -360,91 +360,114 @@ const tableBtnClick = (scope, btn) => { |
| 360 | } | 360 | } |
| 361 | if (type == 'up') { | 361 | if (type == 'up') { |
| 362 | // tableSwitchChange('Y', scope, 'listingStatus') | 362 | // tableSwitchChange('Y', scope, 'listingStatus') |
| 363 | console.log('上架', scope) | 363 | // console.log('上架', scope) |
| 364 | let params: any = {} | 364 | // let params: any = {} |
| 365 | if (scope.row.exchangeGuid) { | 365 | // if (scope.row.exchangeGuid) { |
| 366 | // 数交所上架 [params.commitmentLetterInfo[0].url] | 366 | // // 数交所上架 [params.commitmentLetterInfo[0].url] |
| 367 | params = { | 367 | // params = { |
| 368 | guid: scope.row.guid, | 368 | // guid: scope.row.guid, |
| 369 | accreditFile: scope.row.accreditFile, | 369 | // accreditFile: scope.row.accreditFile, |
| 370 | caseNumber: scope.row.caseNumber, | 370 | // caseNumber: scope.row.caseNumber, |
| 371 | commitmentLetter: scope.row.commitmentLetter, | 371 | // commitmentLetter: scope.row.commitmentLetter, |
| 372 | content: scope.row.productDesc, | 372 | // content: scope.row.productDesc, |
| 373 | costAssessmentInstitution: scope.row.costAssessmentInstitution, | 373 | // costAssessmentInstitution: scope.row.costAssessmentInstitution, |
| 374 | costAssessmentInstitutionGuid: scope.row.costAssessmentInstitutionGuid, | 374 | // costAssessmentInstitutionGuid: scope.row.costAssessmentInstitutionGuid, |
| 375 | coverageArea: scope.row.coverageArea, | 375 | // coverageArea: scope.row.coverageArea, |
| 376 | damCode: scope.row.damCode, | 376 | // damCode: scope.row.damCode, |
| 377 | damGuid: scope.row.damGuid, | 377 | // damGuid: scope.row.damGuid, |
| 378 | damName: scope.row.damName, | 378 | // damName: scope.row.damName, |
| 379 | damType: scope.row.damType, | 379 | // damType: scope.row.damType, |
| 380 | dataScale: scope.row.dataScale, | 380 | // dataScale: scope.row.dataScale, |
| 381 | deliveryWay: scope.row.deliveryWay, | 381 | // deliveryWay: scope.row.deliveryWay, |
| 382 | evaluationFile: scope.row.evaluationFile, | 382 | // evaluationFile: scope.row.evaluationFile, |
| 383 | exchangeGuid: scope.row.exchangeGuid, | 383 | // exchangeGuid: scope.row.exchangeGuid, |
| 384 | feeDesc: scope.row.feeDesc, | 384 | // feeDesc: scope.row.feeDesc, |
| 385 | immediateApprove: true, | 385 | // immediateApprove: true, |
| 386 | priceUnit: scope.row.priceUnit, | 386 | // priceUnit: scope.row.priceUnit, |
| 387 | pricingWay: scope.row.pricingWay, | 387 | // pricingWay: scope.row.pricingWay, |
| 388 | productPic: scope.row.productPic, | 388 | // productPic: scope.row.productPic, |
| 389 | productPrice: scope.row.productPrice, | 389 | // productPrice: scope.row.productPrice, |
| 390 | qualityEvaluationInstitution: scope.row.qualityEvaluationInstitution, | 390 | // qualityEvaluationInstitution: scope.row.qualityEvaluationInstitution, |
| 391 | qualityEvaluationInstitutionGuid: scope.row.qualityEvaluationInstitutionGuid, | 391 | // qualityEvaluationInstitutionGuid: scope.row.qualityEvaluationInstitutionGuid, |
| 392 | timeAreaStart: scope.row.timeAreaStart, | 392 | // timeAreaStart: scope.row.timeAreaStart, |
| 393 | timeAreaEnd: scope.row.timeAreaEnd, | 393 | // timeAreaEnd: scope.row.timeAreaEnd, |
| 394 | registrationCertificate: scope.row.registrationCertificate, | 394 | // registrationCertificate: scope.row.registrationCertificate, |
| 395 | productDetail: scope.row.productDetail, | 395 | // productDetail: scope.row.productDetail, |
| 396 | assessmentFile: scope.row.assessmentFile, | 396 | // assessmentFile: scope.row.assessmentFile, |
| 397 | } | 397 | // } |
| 398 | listingUpdate(params).then((res: any) => { | 398 | // listingUpdate(params).then((res: any) => { |
| 399 | if (res.code == proxy.$passCode) { | 399 | // if (res.code == proxy.$passCode) { |
| 400 | ElMessage({ | 400 | // ElMessage({ |
| 401 | type: "success", | 401 | // type: "success", |
| 402 | message: '提交成功', | 402 | // message: '提交成功', |
| 403 | }); | 403 | // }); |
| 404 | getTableData(); | 404 | // getTableData(); |
| 405 | } else { | 405 | // } else { |
| 406 | ElMessage({ | 406 | // ElMessage({ |
| 407 | type: "error", | 407 | // type: "error", |
| 408 | message: res.msg, | 408 | // message: res.msg, |
| 409 | }); | 409 | // }); |
| 410 | // } | ||
| 411 | // }) | ||
| 412 | // } else { | ||
| 413 | // // 门户数据专区上架 | ||
| 414 | // params = { | ||
| 415 | // guid: scope.row.guid, | ||
| 416 | // caseNumber: scope.row.caseNumber, | ||
| 417 | // content: scope.row.productDesc, | ||
| 418 | // coverageArea: scope.row.coverageArea, | ||
| 419 | // damGuid: scope.row.damGuid, | ||
| 420 | // damName: scope.row.damName, | ||
| 421 | // damType: scope.row.damType, | ||
| 422 | // dataScale: scope.row.dataScale, | ||
| 423 | // deliveryWay: scope.row.deliveryWay, | ||
| 424 | // feeDesc: scope.row.feeDesc, | ||
| 425 | // immediateApprove: true, | ||
| 426 | // priceUnit: scope.row.priceUnit, | ||
| 427 | // pricingWay: scope.row.pricingWay, | ||
| 428 | // productPic: scope.row.productPic, | ||
| 429 | // productPrice: scope.row.productPrice, | ||
| 430 | // timeAreaStart: scope.row.timeAreaStart, | ||
| 431 | // timeAreaEnd: scope.row.timeAreaEnd, | ||
| 432 | // } | ||
| 433 | // listingUpdateGateway(params).then((res: any) => { | ||
| 434 | // if (res.code == proxy.$passCode) { | ||
| 435 | // ElMessage({ | ||
| 436 | // type: "success", | ||
| 437 | // message: '提交成功', | ||
| 438 | // }); | ||
| 439 | // getTableData(); | ||
| 440 | // } else { | ||
| 441 | // ElMessage({ | ||
| 442 | // type: "error", | ||
| 443 | // message: res.msg, | ||
| 444 | // }); | ||
| 445 | // } | ||
| 446 | // }) | ||
| 447 | // console.log('上架', scope) | ||
| 448 | // } | ||
| 449 | if (row.exchangeGuid) { | ||
| 450 | router.push({ | ||
| 451 | name: 'productListingDetail', | ||
| 452 | query: { | ||
| 453 | guid: row.guid, | ||
| 454 | exchangeName: row.exchangeName, | ||
| 455 | type: type == 'edit' ? 'edit' : 'redit', | ||
| 456 | case: '1', | ||
| 457 | name: row.damName, | ||
| 458 | exchangeGuid: row.exchangeGuid | ||
| 410 | } | 459 | } |
| 411 | }) | 460 | }) |
| 412 | } else { | 461 | } else { |
| 413 | // 门户数据专区上架 | 462 | router.push({ |
| 414 | params = { | 463 | name: 'productListingDetail', |
| 415 | guid: scope.row.guid, | 464 | query: { |
| 416 | caseNumber: scope.row.caseNumber, | 465 | guid: row.guid, |
| 417 | content: scope.row.productDesc, | 466 | type: type == 'edit' ? 'edit' : 'redit', |
| 418 | coverageArea: scope.row.coverageArea, | 467 | case: '2', |
| 419 | damGuid: scope.row.damGuid, | 468 | name: row.damName |
| 420 | damName: scope.row.damName, | ||
| 421 | damType: scope.row.damType, | ||
| 422 | dataScale: scope.row.dataScale, | ||
| 423 | deliveryWay: scope.row.deliveryWay, | ||
| 424 | feeDesc: scope.row.feeDesc, | ||
| 425 | immediateApprove: true, | ||
| 426 | priceUnit: scope.row.priceUnit, | ||
| 427 | pricingWay: scope.row.pricingWay, | ||
| 428 | productPic: scope.row.productPic, | ||
| 429 | productPrice: scope.row.productPrice, | ||
| 430 | timeAreaStart: scope.row.timeAreaStart, | ||
| 431 | timeAreaEnd: scope.row.timeAreaEnd, | ||
| 432 | } | ||
| 433 | listingUpdateGateway(params).then((res: any) => { | ||
| 434 | if (res.code == proxy.$passCode) { | ||
| 435 | ElMessage({ | ||
| 436 | type: "success", | ||
| 437 | message: '提交成功', | ||
| 438 | }); | ||
| 439 | getTableData(); | ||
| 440 | } else { | ||
| 441 | ElMessage({ | ||
| 442 | type: "error", | ||
| 443 | message: res.msg, | ||
| 444 | }); | ||
| 445 | } | 469 | } |
| 446 | }) | 470 | }); |
| 447 | console.log('上架', scope) | ||
| 448 | } | 471 | } |
| 449 | 472 | ||
| 450 | } | 473 | } | ... | ... |
| ... | @@ -72,6 +72,7 @@ const getArea = (node, resolve) => { | ... | @@ -72,6 +72,7 @@ const getArea = (node, resolve) => { |
| 72 | return; | 72 | return; |
| 73 | } | 73 | } |
| 74 | if (!getAreaDataPromise.value[node.value]) { | 74 | if (!getAreaDataPromise.value[node.value]) { |
| 75 | console.log('getAreaDataPromise', getAreaDataPromise.value); | ||
| 75 | getAreaDataPromise.value[node.value] = getAreaData(params).then((res: any) => { | 76 | getAreaDataPromise.value[node.value] = getAreaData(params).then((res: any) => { |
| 76 | getAreaDataPromise.value[node.value] = null; | 77 | getAreaDataPromise.value[node.value] = null; |
| 77 | node.loaded = true; | 78 | node.loaded = true; |
| ... | @@ -264,13 +265,14 @@ const formInfo = ref<any>({ | ... | @@ -264,13 +265,14 @@ const formInfo = ref<any>({ |
| 264 | clearable: true, | 265 | clearable: true, |
| 265 | required: true, | 266 | required: true, |
| 266 | col: 'checkbox-right', | 267 | col: 'checkbox-right', |
| 267 | visible: true | 268 | visible: false |
| 268 | } | 269 | } |
| 269 | ], | 270 | ], |
| 270 | clearable: false, | 271 | clearable: false, |
| 271 | required: true, | 272 | required: true, |
| 272 | col: 'checkbox-cascader' | 273 | col: 'checkbox-cascader' |
| 273 | }, { | 274 | }, |
| 275 | { | ||
| 274 | label: "交付方式", | 276 | label: "交付方式", |
| 275 | type: "select", | 277 | type: "select", |
| 276 | placeholder: "请选择", | 278 | placeholder: "请选择", |
| ... | @@ -1191,6 +1193,7 @@ const setFormItems = (row: any = null, isDetail = false) => { | ... | @@ -1191,6 +1193,7 @@ const setFormItems = (row: any = null, isDetail = false) => { |
| 1191 | 1193 | ||
| 1192 | const selectChange = async (val, row, info) => { | 1194 | const selectChange = async (val, row, info) => { |
| 1193 | if (row.field == 'damName') { | 1195 | if (row.field == 'damName') { |
| 1196 | console.log(val, row, info, '--------1123123---------'); | ||
| 1194 | const data = row.options.filter(o => o.damName == val); | 1197 | const data = row.options.filter(o => o.damName == val); |
| 1195 | let coverageArea = (data.length && data[0].coverageArea) ? data[0].coverageArea : []; | 1198 | let coverageArea = (data.length && data[0].coverageArea) ? data[0].coverageArea : []; |
| 1196 | await setFormItems({ ...info, coverageArea: coverageArea }); | 1199 | await setFormItems({ ...info, coverageArea: coverageArea }); |
| ... | @@ -1483,9 +1486,17 @@ onBeforeMount(async () => { | ... | @@ -1483,9 +1486,17 @@ onBeforeMount(async () => { |
| 1483 | if (route.query.exchangeGuid) { | 1486 | if (route.query.exchangeGuid) { |
| 1484 | getTemplateInfo(); | 1487 | getTemplateInfo(); |
| 1485 | } | 1488 | } |
| 1489 | setTimeout(() => { | ||
| 1490 | formInfo.value.items.forEach(item => { | ||
| 1491 | if (item.field == 'coverageAreas') { | ||
| 1492 | item.children[0].visible = true | ||
| 1493 | } | ||
| 1494 | }) | ||
| 1495 | }, 0); | ||
| 1486 | 1496 | ||
| 1487 | }) | 1497 | }) |
| 1488 | 1498 | ||
| 1499 | |||
| 1489 | const pageLIstInfo = ref<any>(); | 1500 | const pageLIstInfo = ref<any>(); |
| 1490 | const getTableData = async () => { | 1501 | const getTableData = async () => { |
| 1491 | const res: any = await getListingList({ | 1502 | const res: any = await getListingList({ |
| ... | @@ -1508,13 +1519,13 @@ const getTemplateInfo = () => { | ... | @@ -1508,13 +1519,13 @@ const getTemplateInfo = () => { |
| 1508 | if (res.code == proxy.$passCode) { | 1519 | if (res.code == proxy.$passCode) { |
| 1509 | formInfo.value.items.forEach(item => { | 1520 | formInfo.value.items.forEach(item => { |
| 1510 | if (item.field == 'commitmentLetterInfo') { | 1521 | if (item.field == 'commitmentLetterInfo') { |
| 1511 | item.templateUrl = res.data.commitment_letter || ''; | 1522 | item.templateUrl = res.data?.commitment_letter || ''; |
| 1512 | } | 1523 | } |
| 1513 | if (item.field == 'accreditFileInfo') { | 1524 | if (item.field == 'accreditFileInfo') { |
| 1514 | item.templateUrl = res.data.authorization_file || ''; | 1525 | item.templateUrl = res.data?.authorization_file || ''; |
| 1515 | } | 1526 | } |
| 1516 | if (item.field == 'productDetailInfo') { | 1527 | if (item.field == 'productDetailInfo') { |
| 1517 | item.templateUrl = res.data.detail_file || ''; | 1528 | item.templateUrl = res.data?.detail_file || ''; |
| 1518 | } | 1529 | } |
| 1519 | }) | 1530 | }) |
| 1520 | } else { | 1531 | } else { | ... | ... |
| ... | @@ -91,18 +91,18 @@ const cardList = ref([ | ... | @@ -91,18 +91,18 @@ const cardList = ref([ |
| 91 | label: "最近入表时间", | 91 | label: "最近入表时间", |
| 92 | unit: "", | 92 | unit: "", |
| 93 | }, | 93 | }, |
| 94 | { | 94 | // { |
| 95 | name: "dataCategoryNum", | 95 | // name: "dataCategoryNum", |
| 96 | value: 0, | 96 | // value: 0, |
| 97 | label: "数据分类", | 97 | // label: "数据分类", |
| 98 | unit: "", | 98 | // unit: "", |
| 99 | }, | 99 | // }, |
| 100 | { | 100 | // { |
| 101 | name: "dataGradeNum", | 101 | // name: "dataGradeNum", |
| 102 | value: 0, | 102 | // value: 0, |
| 103 | label: "数据分级", | 103 | // label: "数据分级", |
| 104 | unit: "", | 104 | // unit: "", |
| 105 | }, | 105 | // }, |
| 106 | ]); | 106 | ]); |
| 107 | 107 | ||
| 108 | const checkImage = () => { | 108 | const checkImage = () => { |
| ... | @@ -869,7 +869,7 @@ const handleChangeTime = (val) => { | ... | @@ -869,7 +869,7 @@ const handleChangeTime = (val) => { |
| 869 | <div class="row-per"> | 869 | <div class="row-per"> |
| 870 | <div class="header"> | 870 | <div class="header"> |
| 871 | <div class="left-pd"></div> | 871 | <div class="left-pd"></div> |
| 872 | <div class="header-title">资产授信情况</div> | 872 | <div class="header-title">数据产品调用情况</div> |
| 873 | </div> | 873 | </div> |
| 874 | <div style="height: calc(100% - 40px);"> | 874 | <div style="height: calc(100% - 40px);"> |
| 875 | <Table class="drak-table" v-if="!financingTableInfo.loading1" :tableInfo="financingTableInfo" | 875 | <Table class="drak-table" v-if="!financingTableInfo.loading1" :tableInfo="financingTableInfo" | ... | ... |
| ... | @@ -56,7 +56,7 @@ const tableInfo = ref({ | ... | @@ -56,7 +56,7 @@ const tableInfo = ref({ |
| 56 | }, | 56 | }, |
| 57 | { | 57 | { |
| 58 | label: "合规评估报告", field: "complianceEvaluateReport", width: 120, type: 'text_btn', value: 'complianceEvaluateReport', columClass: 'text_btn', getName: (scope) => { | 58 | label: "合规评估报告", field: "complianceEvaluateReport", width: 120, type: 'text_btn', value: 'complianceEvaluateReport', columClass: 'text_btn', getName: (scope) => { |
| 59 | console.log('scope合规评估报告', scope); | 59 | const value = scope.row.complianceEvaluateReport?.length > 0; |
| 60 | return scope.row.complianceEvaluateReport?.length > 0 ? '预览' : '--'; | 60 | return scope.row.complianceEvaluateReport?.length > 0 ? '预览' : '--'; |
| 61 | } | 61 | } |
| 62 | }, | 62 | }, | ... | ... |
-
Please register or sign in to post a comment