数据产品上架
Showing
4 changed files
with
175 additions
and
121 deletions
| ... | @@ -61,6 +61,13 @@ export const listingUpdate = (params) => request({ | ... | @@ -61,6 +61,13 @@ export const listingUpdate = (params) => request({ |
| 61 | data: params | 61 | data: params |
| 62 | }); | 62 | }); |
| 63 | 63 | ||
| 64 | /**门户更新 */ | ||
| 65 | export const listingUpdateGateway = (params) => request({ | ||
| 66 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/update-gateway`, | ||
| 67 | method: 'post', | ||
| 68 | data: params | ||
| 69 | }); | ||
| 70 | |||
| 64 | /** 删除数据产品上架信息 */ | 71 | /** 删除数据产品上架信息 */ |
| 65 | export const listingDelete = (params) => request({ | 72 | export const listingDelete = (params) => request({ |
| 66 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/delete`, | 73 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/delete`, | ... | ... |
| ... | @@ -1353,36 +1353,70 @@ const panelChange = (scope, row) => { | ... | @@ -1353,36 +1353,70 @@ const panelChange = (scope, row) => { |
| 1353 | </template> | 1353 | </template> |
| 1354 | <template #file="{ file }"> | 1354 | <template #file="{ file }"> |
| 1355 | <div class="file-operate"> | 1355 | <div class="file-operate"> |
| 1356 | <template | 1356 | <!-- <template |
| 1357 | v-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'xls' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'xlsx'"> | 1357 | v-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'xls' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'xlsx'"> |
| 1358 | <img class="file-img" src="../../assets/images/excel.png" /> | 1358 | <img class="file-img" src="../../assets/images/excel.png" /> |
| 1359 | </template> | 1359 | </template> |
| 1360 | <template | 1360 | <template |
| 1361 | v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'doc' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'docx'"> | 1361 | v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'doc' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'docx'"> |
| 1362 | <img class="file-img" src="../../assets/images/word.png" /> | 1362 | <img class="file-img" src="../../assets/images/word.png" /> |
| 1363 | </template> | 1363 | </template> |
| 1364 | <template v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'zip'"> | 1364 | <template v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'zip'"> |
| 1365 | <img class="file-img" src="../../assets/images/zip.png" /> | 1365 | <img class="file-img" src="../../assets/images/zip.png" /> |
| 1366 | </template> | 1366 | </template> |
| 1367 | <template v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'rar'"> | 1367 | <template v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'rar'"> |
| 1368 | <img class="file-img" src="../../assets/images/RAR.png" /> | 1368 | <img class="file-img" src="../../assets/images/RAR.png" /> |
| 1369 | </template> | 1369 | </template> |
| 1370 | <template v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'pdf'"> | 1370 | <template v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'pdf'"> |
| 1371 | <img class="file-img" src="../../assets/images/PDF.png" /> | 1371 | <img class="file-img" src="../../assets/images/PDF.png" /> |
| 1372 | </template> | 1372 | </template> |
| 1373 | <template v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'png'"> | 1373 | <template v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'png'"> |
| 1374 | <img class="file-img" src="../../assets/images/png.png" /> | 1374 | <img class="file-img" src="../../assets/images/png.png" /> |
| 1375 | </template> | 1375 | </template> |
| 1376 | <template | 1376 | <template |
| 1377 | v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'jpg' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'jpeg'"> | 1377 | v-else-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'jpg' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'jpeg'"> |
| 1378 | <img class="file-img" src="../../assets/images/jpg.png" /> | 1378 | <img class="file-img" src="../../assets/images/jpg.png" /> |
| 1379 | </template> | 1379 | </template> |
| 1380 | <div class="file-name"> | ||
| 1381 | <ellipsis-tooltip :content="file.name" class-name="w100f" :refName="'tooltipOver' + file.name"></ellipsis-tooltip> | ||
| 1382 | </div> | ||
| 1383 | <div :style="{ right: '72px' }" class="file-preview" | ||
| 1384 | v-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'pdf' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'png' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'jpg' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'jpeg'" | ||
| 1385 | @click="onUploadFilePreview(file, item)">查看</div> | ||
| 1386 | <div :style="{ right: '36px' }" class="file-preview" @click="onUploadFileDownload(file, item)">下载 | ||
| 1387 | </div> | ||
| 1388 | <div v-if="!item.disabled" :style="{ right: 0 }" class="file-preview" @click="handleUploadFileRemove(file, item)">删除 | ||
| 1389 | </div> --> | ||
| 1390 | <template | ||
| 1391 | v-if="file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'xls' || file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'xlsx'"> | ||
| 1392 | <img class="file-img" src="../../assets/images/excel.png" /> | ||
| 1393 | </template> | ||
| 1394 | <template | ||
| 1395 | v-else-if="file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'doc' || file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'docx'"> | ||
| 1396 | <img class="file-img" src="../../assets/images/word.png" /> | ||
| 1397 | </template> | ||
| 1398 | <template v-else-if="file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'zip'"> | ||
| 1399 | <img class="file-img" src="../../assets/images/zip.png" /> | ||
| 1400 | </template> | ||
| 1401 | <template v-else-if="file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'rar'"> | ||
| 1402 | <img class="file-img" src="../../assets/images/RAR.png" /> | ||
| 1403 | </template> | ||
| 1404 | <template v-else-if="file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'"> | ||
| 1405 | <img class="file-img" src="../../assets/images/PDF.png" /> | ||
| 1406 | </template> | ||
| 1407 | <template v-else-if="file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'png'"> | ||
| 1408 | <img class="file-img" src="../../assets/images/png.png" /> | ||
| 1409 | </template> | ||
| 1410 | <template | ||
| 1411 | v-else-if="file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'jpg' || file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() === 'jpeg'"> | ||
| 1412 | <img class="file-img" src="../../assets/images/jpg.png" /> | ||
| 1413 | </template> | ||
| 1380 | <div class="file-name"> | 1414 | <div class="file-name"> |
| 1381 | <ellipsis-tooltip :content="file.name" class-name="w100f" | 1415 | <ellipsis-tooltip :content="file?.name ?? ''" class-name="w100f" |
| 1382 | :refName="'tooltipOver' + file.name"></ellipsis-tooltip> | 1416 | :refName="'tooltipOver' + file?.name"></ellipsis-tooltip> |
| 1383 | </div> | 1417 | </div> |
| 1384 | <div :style="{ right: '72px' }" class="file-preview" | 1418 | <div :style="{ right: '72px' }" class="file-preview" |
| 1385 | v-if="file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'pdf' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'png' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'jpg' || file.name.substring(file.name.lastIndexOf('.') + 1).toLowerCase() == 'jpeg'" | 1419 | v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(file?.name?.substring(file.name.lastIndexOf('.') + 1).toLowerCase() ?? '')" |
| 1386 | @click="onUploadFilePreview(file, item)">查看</div> | 1420 | @click="onUploadFilePreview(file, item)">查看</div> |
| 1387 | <div :style="{ right: '36px' }" class="file-preview" @click="onUploadFileDownload(file, item)">下载 | 1421 | <div :style="{ right: '36px' }" class="file-preview" @click="onUploadFileDownload(file, item)">下载 |
| 1388 | </div> | 1422 | </div> | ... | ... |
| ... | @@ -123,6 +123,14 @@ const tableInfo = ref({ | ... | @@ -123,6 +123,14 @@ const tableInfo = ref({ |
| 123 | if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) { | 123 | if (approveVO && approveVO.approveState == 'A' && staffGuid == currentStaffGuid) { |
| 124 | isShowCancel = true; | 124 | isShowCancel = true; |
| 125 | } | 125 | } |
| 126 | if (approveState === 'Y') { | ||
| 127 | if (row.listingStatus === 'Y') { | ||
| 128 | list.push({ label: "下架", value: "down" }); | ||
| 129 | } | ||
| 130 | if (row.listingStatus === 'N') { | ||
| 131 | list.push({ label: "上架", value: "up" }); | ||
| 132 | } | ||
| 133 | } | ||
| 126 | if (flowState === 1) { | 134 | if (flowState === 1) { |
| 127 | list = [{ label: "编辑", value: "edit" }, { label: "删除", value: "del" }] | 135 | list = [{ label: "编辑", value: "edit" }, { label: "删除", value: "del" }] |
| 128 | } | 136 | } |
| ... | @@ -141,14 +149,7 @@ const tableInfo = ref({ | ... | @@ -141,14 +149,7 @@ const tableInfo = ref({ |
| 141 | if (flowState !== 1) { | 149 | if (flowState !== 1) { |
| 142 | list.push({ label: "详情", value: "detail" }) | 150 | list.push({ label: "详情", value: "detail" }) |
| 143 | } | 151 | } |
| 144 | if (approveState === 'Y') { | 152 | |
| 145 | if (row.listingStatus === 'Y') { | ||
| 146 | list.push({ label: "下架", value: "down" }); | ||
| 147 | } | ||
| 148 | if (row.listingStatus === 'N') { | ||
| 149 | list.push({ label: "上架", value: "up" }); | ||
| 150 | } | ||
| 151 | } | ||
| 152 | return list | 153 | return list |
| 153 | }, | 154 | }, |
| 154 | } | 155 | } |
| ... | @@ -259,17 +260,21 @@ const tableBtnClick = (scope, btn) => { | ... | @@ -259,17 +260,21 @@ const tableBtnClick = (scope, btn) => { |
| 259 | currTableData.value = row; | 260 | currTableData.value = row; |
| 260 | if (type == "detail") { | 261 | if (type == "detail") { |
| 261 | router.push({ | 262 | router.push({ |
| 262 | name: 'dataResourceUpDetail', | 263 | name: 'productListingDetail', |
| 263 | query: { | 264 | query: { |
| 264 | guid: row.guid, | 265 | guid: row.guid, |
| 266 | type: 'detail' | ||
| 265 | } | 267 | } |
| 266 | }); | 268 | }); |
| 267 | } | 269 | } |
| 268 | if (type == "edit" || type == "redit") { | 270 | if (type == "edit" || type == "redit") { |
| 269 | router.push({ | 271 | router.push({ |
| 270 | name: 'dataResourceUpEdit', | 272 | name: 'productListingDetail', |
| 271 | query: { | 273 | query: { |
| 272 | guid: row.guid, | 274 | guid: row.guid, |
| 275 | type: type == 'edit' ? 'edit' : 'redit', | ||
| 276 | case: '2', | ||
| 277 | name: row.damName | ||
| 273 | } | 278 | } |
| 274 | }); | 279 | }); |
| 275 | } | 280 | } |
| ... | @@ -391,7 +396,8 @@ const toPatn = (type) => { | ... | @@ -391,7 +396,8 @@ const toPatn = (type) => { |
| 391 | name: "productListingDetail", | 396 | name: "productListingDetail", |
| 392 | query: { | 397 | query: { |
| 393 | type, | 398 | type, |
| 394 | groundingPick: '门户数据专区' | 399 | groundingPick: '门户数据专区', |
| 400 | case: '2', | ||
| 395 | }, | 401 | }, |
| 396 | }); | 402 | }); |
| 397 | } else { | 403 | } else { |
| ... | @@ -495,6 +501,7 @@ const demandListData: any = ref([ | ... | @@ -495,6 +501,7 @@ const demandListData: any = ref([ |
| 495 | { companyName: '苏数所', listedNum: 16, processNum: 1235 }, | 501 | { companyName: '苏数所', listedNum: 16, processNum: 1235 }, |
| 496 | ]); | 502 | ]); |
| 497 | const btnClick = (btn) => { | 503 | const btnClick = (btn) => { |
| 504 | console.log(btn) | ||
| 498 | } | 505 | } |
| 499 | 506 | ||
| 500 | 507 | ... | ... |
| ... | @@ -15,7 +15,7 @@ import { changeNum } from '@/utils/common'; | ... | @@ -15,7 +15,7 @@ import { changeNum } from '@/utils/common'; |
| 15 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; | 15 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; |
| 16 | import { getAreaData, getServiceTenants, getSingleList } from "@/api/modules/queryService"; | 16 | import { getAreaData, getServiceTenants, getSingleList } from "@/api/modules/queryService"; |
| 17 | import { getApproveList, getTenantApprove, registerApproveAllow, registerApproveBackup, getParamsList, getServiceDetail } from "@/api/modules/dataAsset"; | 17 | import { getApproveList, getTenantApprove, registerApproveAllow, registerApproveBackup, getParamsList, getServiceDetail } from "@/api/modules/dataAsset"; |
| 18 | import { getProductList, getAddedProductList, getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList } from "@/api/modules/dataProduct"; | 18 | import { getProductList, getAddedProductList, getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList, listingUpdateGateway } from "@/api/modules/dataProduct"; |
| 19 | import { getMatchDetail } from "@/api/modules/dataFinance"; | 19 | import { getMatchDetail } from "@/api/modules/dataFinance"; |
| 20 | import { useValidator } from '@/hooks/useValidator'; | 20 | import { useValidator } from '@/hooks/useValidator'; |
| 21 | import { getCamundaDeploymentId } from "@/api/modules/workFlowService"; | 21 | import { getCamundaDeploymentId } from "@/api/modules/workFlowService"; |
| ... | @@ -416,12 +416,12 @@ const formInfo = ref({ | ... | @@ -416,12 +416,12 @@ const formInfo = ref({ |
| 416 | field: 'productImg', | 416 | field: 'productImg', |
| 417 | default: [], | 417 | default: [], |
| 418 | limit: 1, | 418 | limit: 1, |
| 419 | block: false, | 419 | block: true, |
| 420 | required: false, | 420 | required: false, |
| 421 | col: 'mr8', | 421 | // col: 'mr8', |
| 422 | style: { | 422 | // style: { |
| 423 | width: 'calc(33.33% - 20px)!important' | 423 | // width: 'calc(33.33% - 20px)!important' |
| 424 | }, | 424 | // }, |
| 425 | }, | 425 | }, |
| 426 | { | 426 | { |
| 427 | label: '登记证', | 427 | label: '登记证', |
| ... | @@ -470,78 +470,78 @@ const formInfo = ref({ | ... | @@ -470,78 +470,78 @@ const formInfo = ref({ |
| 470 | width: 'calc(33.33% - 20px)!important' | 470 | width: 'calc(33.33% - 20px)!important' |
| 471 | }, | 471 | }, |
| 472 | }, | 472 | }, |
| 473 | { | 473 | // { |
| 474 | label: '价值评估报告', | 474 | // label: '价值评估报告', |
| 475 | tip: '支持扩展名:.png .pdf', | 475 | // tip: '支持扩展名:.png .pdf', |
| 476 | accept: '.png, .pdf', | 476 | // accept: '.png, .pdf', |
| 477 | type: 'upload-file', | 477 | // type: 'upload-file', |
| 478 | placeholder: '请选择', | 478 | // placeholder: '请选择', |
| 479 | field: 'valueReport', | 479 | // field: 'valueReport', |
| 480 | default: [], | 480 | // default: [], |
| 481 | limit: 1, | 481 | // limit: 1, |
| 482 | block: false, | 482 | // block: false, |
| 483 | required: false, | 483 | // required: false, |
| 484 | visible: true | 484 | // visible: true |
| 485 | }, | 485 | // }, |
| 486 | { | 486 | // { |
| 487 | label: "价值评估机构", | 487 | // label: "价值评估机构", |
| 488 | type: "select", | 488 | // type: "select", |
| 489 | placeholder: "请选择", | 489 | // placeholder: "请选择", |
| 490 | field: "valueOrg", | 490 | // field: "valueOrg", |
| 491 | default: '', | 491 | // default: '', |
| 492 | options: [], | 492 | // options: [], |
| 493 | props: { | 493 | // props: { |
| 494 | value: 'value', | 494 | // value: 'value', |
| 495 | label: 'label' | 495 | // label: 'label' |
| 496 | }, | 496 | // }, |
| 497 | filterable: true, | 497 | // filterable: true, |
| 498 | clearable: true, | 498 | // clearable: true, |
| 499 | disabled: false, | 499 | // disabled: false, |
| 500 | required: false, | 500 | // required: false, |
| 501 | visible: true | 501 | // visible: true |
| 502 | }, | 502 | // }, |
| 503 | { | 503 | // { |
| 504 | label: '承诺函', | 504 | // label: '承诺函', |
| 505 | tip: '支持扩展名:.png .pdf', | 505 | // tip: '支持扩展名:.png .pdf', |
| 506 | accept: '.png, .pdf', | 506 | // accept: '.png, .pdf', |
| 507 | type: 'upload-file', | 507 | // type: 'upload-file', |
| 508 | placeholder: '请选择', | 508 | // placeholder: '请选择', |
| 509 | field: 'commitment', | 509 | // field: 'commitment', |
| 510 | templateUrl: 'http://www.baidu.com', | 510 | // templateUrl: 'http://www.baidu.com', |
| 511 | default: [], | 511 | // default: [], |
| 512 | limit: 1, | 512 | // limit: 1, |
| 513 | block: true, | 513 | // block: true, |
| 514 | required: false, | 514 | // required: false, |
| 515 | visible: true | 515 | // visible: true |
| 516 | }, | 516 | // }, |
| 517 | { | 517 | // { |
| 518 | label: '授权文件', | 518 | // label: '授权文件', |
| 519 | tip: '支持扩展名:.png .pdf', | 519 | // tip: '支持扩展名:.png .pdf', |
| 520 | accept: '.png, .pdf', | 520 | // accept: '.png, .pdf', |
| 521 | type: 'upload-file', | 521 | // type: 'upload-file', |
| 522 | placeholder: '请选择', | 522 | // placeholder: '请选择', |
| 523 | field: 'authorization', | 523 | // field: 'authorization', |
| 524 | templateUrl: 'http://www.baidu.com', | 524 | // templateUrl: 'http://www.baidu.com', |
| 525 | default: [], | 525 | // default: [], |
| 526 | limit: 1, | 526 | // limit: 1, |
| 527 | block: true, | 527 | // block: true, |
| 528 | required: false, | 528 | // required: false, |
| 529 | visible: true | 529 | // visible: true |
| 530 | }, | 530 | // }, |
| 531 | { | 531 | // { |
| 532 | label: '商品详细介绍(签章版)', | 532 | // label: '商品详细介绍(签章版)', |
| 533 | tip: '支持扩展名:.png .pdf', | 533 | // tip: '支持扩展名:.png .pdf', |
| 534 | accept: '.png, .pdf', | 534 | // accept: '.png, .pdf', |
| 535 | type: 'upload-file', | 535 | // type: 'upload-file', |
| 536 | placeholder: '请选择', | 536 | // placeholder: '请选择', |
| 537 | field: 'productDetail', | 537 | // field: 'productDetail', |
| 538 | templateUrl: 'http://www.baidu.com', | 538 | // templateUrl: 'http://www.baidu.com', |
| 539 | default: [], | 539 | // default: [], |
| 540 | limit: 1, | 540 | // limit: 1, |
| 541 | block: true, | 541 | // block: true, |
| 542 | required: false, | 542 | // required: false, |
| 543 | visible: true | 543 | // visible: true |
| 544 | }, | 544 | // }, |
| 545 | { | 545 | { |
| 546 | label: "", | 546 | label: "", |
| 547 | type: "input", | 547 | type: "input", |
| ... | @@ -696,6 +696,7 @@ const getProductDetail = () => { | ... | @@ -696,6 +696,7 @@ const getProductDetail = () => { |
| 696 | if (res.code == proxy.$passCode) { | 696 | if (res.code == proxy.$passCode) { |
| 697 | const data = res.data || {} | 697 | const data = res.data || {} |
| 698 | flowDetail.value = data; | 698 | flowDetail.value = data; |
| 699 | console.log(data, '-----------------'); | ||
| 699 | let coverageArea = data.coverageArea || []; | 700 | let coverageArea = data.coverageArea || []; |
| 700 | if (data.coverageArea?.[0]?.[0] == 'all') { | 701 | if (data.coverageArea?.[0]?.[0] == 'all') { |
| 701 | setFormItems({ ...flowDetail.value, coverageArea: coverageArea }, true); | 702 | setFormItems({ ...flowDetail.value, coverageArea: coverageArea }, true); |
| ... | @@ -839,7 +840,8 @@ const submitForm = (btn, formEl, tosub = false) => { | ... | @@ -839,7 +840,8 @@ const submitForm = (btn, formEl, tosub = false) => { |
| 839 | }); | 840 | }); |
| 840 | } else { | 841 | } else { |
| 841 | params.guid = guid; | 842 | params.guid = guid; |
| 842 | listingUpdate(params).then((res: any) => { | 843 | params.immediateApprove = btn.value == 'submit' ? true : false; |
| 844 | listingUpdateGateway(params).then((res: any) => { | ||
| 843 | if (res.code == proxy.$passCode) { | 845 | if (res.code == proxy.$passCode) { |
| 844 | ElMessage({ | 846 | ElMessage({ |
| 845 | type: "success", | 847 | type: "success", |
| ... | @@ -894,7 +896,7 @@ const btnClick = (btn) => { | ... | @@ -894,7 +896,7 @@ const btnClick = (btn) => { |
| 894 | dialogInfo.value.contents = contents.value[btn.value] | 896 | dialogInfo.value.contents = contents.value[btn.value] |
| 895 | dialogInfo.value.visible = true | 897 | dialogInfo.value.visible = true |
| 896 | } else { | 898 | } else { |
| 897 | if (detailType == 'add' || detailType == 'edit') { | 899 | if (detailType == 'add' || detailType == 'edit' || detailType == 'redit') { |
| 898 | ElMessageBox.confirm( | 900 | ElMessageBox.confirm( |
| 899 | "当前页面尚未保存,确定放弃修改吗?", | 901 | "当前页面尚未保存,确定放弃修改吗?", |
| 900 | "提示", | 902 | "提示", |
| ... | @@ -905,7 +907,7 @@ const btnClick = (btn) => { | ... | @@ -905,7 +907,7 @@ const btnClick = (btn) => { |
| 905 | } | 907 | } |
| 906 | ).then(() => { | 908 | ).then(() => { |
| 907 | userStore.setTabbar(userStore.tabbar.filter((tab: any) => tab.fullPath !== fullPath)); | 909 | userStore.setTabbar(userStore.tabbar.filter((tab: any) => tab.fullPath !== fullPath)); |
| 908 | assetStore.set(true); | 910 | // assetStore.set(true); |
| 909 | router.push({ | 911 | router.push({ |
| 910 | name: "productListing", | 912 | name: "productListing", |
| 911 | query: {}, | 913 | query: {}, |
| ... | @@ -976,6 +978,8 @@ const setFormItems = (row: any = null, isDetail = false) => { | ... | @@ -976,6 +978,8 @@ const setFormItems = (row: any = null, isDetail = false) => { |
| 976 | } else { | 978 | } else { |
| 977 | item.default = row ? row[item.field] : (item.default || '') | 979 | item.default = row ? row[item.field] : (item.default || '') |
| 978 | } | 980 | } |
| 981 | } else if (item.field == 'dateRange') { | ||
| 982 | item.default = row ? [row.timeAreaStart, row.timeAreaEnd] : null; | ||
| 979 | } else { | 983 | } else { |
| 980 | item.default = row ? row[item.field] : (item.default || '') | 984 | item.default = row ? row[item.field] : (item.default || '') |
| 981 | } | 985 | } |
| ... | @@ -1137,7 +1141,8 @@ const deploymentId = ref(''); | ... | @@ -1137,7 +1141,8 @@ const deploymentId = ref(''); |
| 1137 | const qualityEvaluationData = ref<any>(''); | 1141 | const qualityEvaluationData = ref<any>(''); |
| 1138 | const costAssessmentData = ref<any>(''); | 1142 | const costAssessmentData = ref<any>(''); |
| 1139 | onBeforeMount(() => { | 1143 | onBeforeMount(() => { |
| 1140 | if (route.query.type == 'add' && !route.query.type1) { | 1144 | // case 1: 数交易所 case 2: 门户 |
| 1145 | if (route.query.case == '2') { | ||
| 1141 | formInfo.value.items.forEach(item => { | 1146 | formInfo.value.items.forEach(item => { |
| 1142 | if (item.field == 'damCode' || item.field == 'exchangeGuids' || item.field == 'registrationCertificate' || item.field == 'qualityReport' || item.field == 'qualityOrg' || item.field == 'valueReport' || item.field == 'valueOrg' || item.field == 'commitment' || item.field == 'authorization' || item.field == 'productDetail') { | 1147 | if (item.field == 'damCode' || item.field == 'exchangeGuids' || item.field == 'registrationCertificate' || item.field == 'qualityReport' || item.field == 'qualityOrg' || item.field == 'valueReport' || item.field == 'valueOrg' || item.field == 'commitment' || item.field == 'authorization' || item.field == 'productDetail') { |
| 1143 | item.visible = false; | 1148 | item.visible = false; |
| ... | @@ -1153,11 +1158,11 @@ onBeforeMount(() => { | ... | @@ -1153,11 +1158,11 @@ onBeforeMount(() => { |
| 1153 | }) | 1158 | }) |
| 1154 | if (detailType && detailType != 'add') { | 1159 | if (detailType && detailType != 'add') { |
| 1155 | getProductDetail(); | 1160 | getProductDetail(); |
| 1156 | if (detailType == 'detail' && dGuid !== undefined) { | 1161 | // if (detailType == 'detail' && dGuid !== undefined) { |
| 1157 | getApplyDeatil(); | 1162 | // getApplyDeatil(); |
| 1158 | } | 1163 | // } |
| 1159 | } | 1164 | } |
| 1160 | getApproveData(); | 1165 | // getApproveData(); |
| 1161 | getParamsDataList({ dictType: '资产类型' }).then((res: any) => { | 1166 | getParamsDataList({ dictType: '资产类型' }).then((res: any) => { |
| 1162 | if (res.code == proxy.$passCode) { | 1167 | if (res.code == proxy.$passCode) { |
| 1163 | damTypes.value = res.data || []; | 1168 | damTypes.value = res.data || []; |
| ... | @@ -1307,7 +1312,7 @@ onBeforeMount(() => { | ... | @@ -1307,7 +1312,7 @@ onBeforeMount(() => { |
| 1307 | </div> | 1312 | </div> |
| 1308 | </div> | 1313 | </div> |
| 1309 | <div class="panel_body" :class="{ collapse: collapseIcon }"> | 1314 | <div class="panel_body" :class="{ collapse: collapseIcon }"> |
| 1310 | <div class="list_panel" v-if="detailType == 'add' || detailType == 'edit'"> | 1315 | <div class="list_panel" v-if="detailType == 'add' || detailType == 'edit' || detailType == 'redit'"> |
| 1311 | <Form ref="listingFormRef" :itemList="formInfo.items" :formId="formInfo.id" :rules="formInfo.rules" | 1316 | <Form ref="listingFormRef" :itemList="formInfo.items" :formId="formInfo.id" :rules="formInfo.rules" |
| 1312 | :col="formInfo.col" @selectChange="selectChange" @checkboxChange="checkboxChange" | 1317 | :col="formInfo.col" @selectChange="selectChange" @checkboxChange="checkboxChange" |
| 1313 | @switchChange="switchChange" /> | 1318 | @switchChange="switchChange" /> |
| ... | @@ -1327,24 +1332,24 @@ onBeforeMount(() => { | ... | @@ -1327,24 +1332,24 @@ onBeforeMount(() => { |
| 1327 | </div> | 1332 | </div> |
| 1328 | <div class="list_item"> | 1333 | <div class="list_item"> |
| 1329 | <span class="item_label">数据时间范围:</span> | 1334 | <span class="item_label">数据时间范围:</span> |
| 1330 | <span class="item_value">{{ flowDetail.subjectDomainName || '--' }}</span> | 1335 | <span class="item_value">{{ (flowDetail.timeAreaStart - flowDetail.timeAreaEnd) || '--' }}</span> |
| 1331 | </div> | 1336 | </div> |
| 1332 | <div class="list_item"> | 1337 | <div class="list_item"> |
| 1333 | <span class="item_label">交付方式:</span> | 1338 | <span class="item_label">交付方式:</span> |
| 1334 | <span class="item_value">{{ flowDetail.subjectDomainName || '--' }}</span> | 1339 | <span class="item_value">{{ flowDetail.deliveryWayName || '--' }}</span> |
| 1335 | </div> | 1340 | </div> |
| 1336 | <div class="list_item"> | 1341 | <div class="list_item"> |
| 1337 | <span class="item_label">定价方式:</span> | 1342 | <span class="item_label">定价方式:</span> |
| 1338 | <span class="item_value">{{ flowDetail.subjectDomainName || '--' }}</span> | 1343 | <span class="item_value">{{ flowDetail.pricingWayName || '--' }}</span> |
| 1339 | </div> | 1344 | </div> |
| 1340 | <div class="list_item"> | 1345 | <div class="list_item"> |
| 1341 | <span class="item_label">定价金额:</span> | 1346 | <span class="item_label">定价金额:</span> |
| 1342 | <span class="item_value">{{ flowDetail.subjectDomainName || '--' }}</span> | 1347 | <span class="item_value">{{ flowDetail.subjectDomainName || '--' }}</span> |
| 1343 | </div> | 1348 | </div> |
| 1344 | <div class="list_item"> | 1349 | <!-- <div class="list_item"> |
| 1345 | <span class="item_label">所属主题:</span> | 1350 | <span class="item_label">所属主题:</span> |
| 1346 | <span class="item_value">{{ flowDetail.subjectDomainName || '--' }}</span> | 1351 | <span class="item_value">{{ flowDetail.subjectDomainName || '--' }}</span> |
| 1347 | </div> | 1352 | </div> --> |
| 1348 | 1353 | ||
| 1349 | <div class="list_item"> | 1354 | <div class="list_item"> |
| 1350 | <span class="item_label">数据规模(条):</span> | 1355 | <span class="item_label">数据规模(条):</span> |
| ... | @@ -1356,25 +1361,25 @@ onBeforeMount(() => { | ... | @@ -1356,25 +1361,25 @@ onBeforeMount(() => { |
| 1356 | <span class="item_value">{{ flowDetail.caseNumber != null ? changeNum(flowDetail.caseNumber, 0) : '--' | 1361 | <span class="item_value">{{ flowDetail.caseNumber != null ? changeNum(flowDetail.caseNumber, 0) : '--' |
| 1357 | }}</span> | 1362 | }}</span> |
| 1358 | </div> | 1363 | </div> |
| 1359 | <div class="list_item"> | 1364 | <!-- <div class="list_item"> |
| 1360 | <span class="item_label">交易方式:</span> | 1365 | <span class="item_label">交易方式:</span> |
| 1361 | <span class="item_value">{{ flowDetail.deliveryWayName || '--' }}</span> | 1366 | <span class="item_value">{{ flowDetail.deliveryWayName || '--' }}</span> |
| 1362 | </div> | 1367 | </div> --> |
| 1363 | <div class="list_item"> | 1368 | <!-- <div class="list_item"> |
| 1364 | <span class="item_label">产品价格:</span> | 1369 | <span class="item_label">产品价格:</span> |
| 1365 | <span class="item_value">{{ flowDetail.isDiscussPersonally == 'Y' ? '面议' : (flowDetail.productPrice || | 1370 | <span class="item_value">{{ flowDetail.isDiscussPersonally == 'Y' ? '面议' : (flowDetail.productPrice || |
| 1366 | '--') | 1371 | '--') |
| 1367 | }}</span> | 1372 | }}</span> |
| 1368 | </div> | 1373 | </div> --> |
| 1369 | <div class="list_item"> | 1374 | <div class="list_item"> |
| 1370 | <span class="item_label">登记数交所:</span> | 1375 | <span class="item_label">登记数交所:</span> |
| 1371 | <span class="item_value">{{ flowDetail.isApproveGrounding == 'Y' ? `自动上架` : '手动上架' }}</span> | 1376 | <span class="item_value">{{ flowDetail.isApproveGrounding == 'Y' ? `自动上架` : '手动上架' }}</span> |
| 1372 | </div> | 1377 | </div> |
| 1373 | <div class="list_item is_block"> | 1378 | <!-- <div class="list_item is_block"> |
| 1374 | <span class="item_label">上架交易所:</span> | 1379 | <span class="item_label">上架交易所:</span> |
| 1375 | <span class="item_value">{{ !flowDetail.exchangeGuids?.length ? '--' : flowDetail.exchangeNames.join(',') | 1380 | <span class="item_value">{{ !flowDetail.exchangeGuids?.length ? '--' : flowDetail.exchangeNames.join(',') |
| 1376 | }}</span> | 1381 | }}</span> |
| 1377 | </div> | 1382 | </div> --> |
| 1378 | <div class="list_item is_block"> | 1383 | <div class="list_item is_block"> |
| 1379 | <span class="item_label">数据覆盖地域:</span> | 1384 | <span class="item_label">数据覆盖地域:</span> |
| 1380 | <span class="item_value" | 1385 | <span class="item_value" |
| ... | @@ -1506,10 +1511,11 @@ onBeforeMount(() => { | ... | @@ -1506,10 +1511,11 @@ onBeforeMount(() => { |
| 1506 | </div> | 1511 | </div> |
| 1507 | </div> | 1512 | </div> |
| 1508 | </div> | 1513 | </div> |
| 1509 | <div class="tool_btns" v-if="detailType == 'add' || detailType == 'edit'"> | 1514 | <div class="tool_btns" v-if="detailType == 'add' || detailType == 'edit' || detailType == 'redit'"> |
| 1510 | <div class="btns"> | 1515 | <div class="btns"> |
| 1511 | <el-button @click="btnClick({ value: 'cancel' })">返回</el-button> | 1516 | <el-button @click="btnClick({ value: 'cancel' })">返回</el-button> |
| 1512 | <el-button @click="btnClick({ value: 'draft' })">保存草稿</el-button> | 1517 | <el-button @click="btnClick({ value: 'draft' })" |
| 1518 | v-if="route.query.type == 'add' || route.query.type == 'redit' || route.query.type == 'edit'">保存草稿</el-button> | ||
| 1513 | <el-button type="primary" @click="btnClick({ value: 'submit' })">提交流程</el-button> | 1519 | <el-button type="primary" @click="btnClick({ value: 'submit' })">提交流程</el-button> |
| 1514 | </div> | 1520 | </div> |
| 1515 | </div> | 1521 | </div> | ... | ... |
-
Please register or sign in to post a comment