fix
Showing
2 changed files
with
81 additions
and
34 deletions
| ... | @@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user"; | ... | @@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user"; |
| 9 | import { ElMessage, ElMessageBox } from "element-plus"; | 9 | import { ElMessage, ElMessageBox } from "element-plus"; |
| 10 | 10 | ||
| 11 | import useDataAssetStore from "@/store/modules/dataAsset"; | 11 | import useDataAssetStore from "@/store/modules/dataAsset"; |
| 12 | import { getListingList, listingDelete, listingUpdateStatus, filterVal, getParamsDataList } from "@/api/modules/dataProduct"; | 12 | import { getListingList, listingDelete, listingUpdateStatus, filterVal, getParamsDataList, getListingCount } from "@/api/modules/dataProduct"; |
| 13 | import { TableColumnWidth } from '@/utils/enum'; | 13 | import { TableColumnWidth } from '@/utils/enum'; |
| 14 | 14 | ||
| 15 | import TableTools from "@/components/Tools/table_tools.vue"; | 15 | import TableTools from "@/components/Tools/table_tools.vue"; |
| ... | @@ -150,8 +150,20 @@ const toSearch = (val: any, clear: boolean = false) => { | ... | @@ -150,8 +150,20 @@ const toSearch = (val: any, clear: boolean = false) => { |
| 150 | page.value.curr = 1; | 150 | page.value.curr = 1; |
| 151 | tableInfo.value.page.curr = 1; | 151 | tableInfo.value.page.curr = 1; |
| 152 | getTableData(); | 152 | getTableData(); |
| 153 | getListingCountData(); | ||
| 153 | }; | 154 | }; |
| 154 | 155 | ||
| 156 | // 获取产品上架数量 | ||
| 157 | const getListingCountData = () => { | ||
| 158 | getListingCount({}).then((res: any) => { | ||
| 159 | if (res.code == proxy.$passCode) { | ||
| 160 | demandListData.value = res.data || []; | ||
| 161 | } else { | ||
| 162 | proxy.$ElMessage.error(res.msg); | ||
| 163 | } | ||
| 164 | }) | ||
| 165 | } | ||
| 166 | |||
| 155 | const tableSwitchBeforeChange = (scope, field, callback) => { | 167 | const tableSwitchBeforeChange = (scope, field, callback) => { |
| 156 | ElMessageBox.confirm( | 168 | ElMessageBox.confirm( |
| 157 | `确定${scope.row[field] == 'Y' ? '下架' : '上架'}该产品吗?`, | 169 | `确定${scope.row[field] == 'Y' ? '下架' : '上架'}该产品吗?`, |
| ... | @@ -340,21 +352,21 @@ const btnClick = (btn) => { | ... | @@ -340,21 +352,21 @@ const btnClick = (btn) => { |
| 340 | <img class="left-img" :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo" | 352 | <img class="left-img" :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo" |
| 341 | alt="" /> | 353 | alt="" /> |
| 342 | <div class="right-main"> | 354 | <div class="right-main"> |
| 343 | <div class="title">{{ item.companyName ?? '--' }}</div> | 355 | <div class="title">{{ item.exchangeName ?? '--' }}</div> |
| 344 | <div class="count-group"> | 356 | <div class="count-group"> |
| 345 | <div class="count-item"> | 357 | <div class="count-item"> |
| 346 | <div class="item-label">已上架产品数</div> | 358 | <div class="item-label">已上架产品数</div> |
| 347 | <div class="item-num">{{ changeNum(item.listedNum) }}</div> | 359 | <div class="item-num">{{ item.listingNum || '--' }}</div> |
| 348 | </div> | 360 | </div> |
| 349 | <div class="count-item"> | 361 | <div class="count-item"> |
| 350 | <div class="item-label">审批中产品数</div> | 362 | <div class="item-label">审批中产品数</div> |
| 351 | <div class="item-num">{{ changeNum(item.processNum) }}</div> | 363 | <div class="item-num">{{ item.underReviewNum || '--' }}</div> |
| 352 | </div> | 364 | </div> |
| 353 | </div> | 365 | </div> |
| 354 | </div> | 366 | </div> |
| 355 | </div> | 367 | </div> |
| 356 | <div class="operator-btn"> | 368 | <div class="operator-btn"> |
| 357 | <div class="left-btn borderRight" @click="btnClick(item)">更新模板</div> | 369 | <!-- <div class="left-btn borderRight" @click="btnClick(item)">更新模板</div> --> |
| 358 | <div class="left-btn" @click="btnClick(item)">资产登记</div> | 370 | <div class="left-btn" @click="btnClick(item)">资产登记</div> |
| 359 | </div> | 371 | </div> |
| 360 | </div> | 372 | </div> |
| ... | @@ -433,32 +445,37 @@ const btnClick = (btn) => { | ... | @@ -433,32 +445,37 @@ const btnClick = (btn) => { |
| 433 | 445 | ||
| 434 | .operator-btn { | 446 | .operator-btn { |
| 435 | display: flex; | 447 | display: flex; |
| 436 | justify-content: space-between; | 448 | // justify-content: space-between; |
| 449 | justify-content: center; | ||
| 437 | align-items: center; | 450 | align-items: center; |
| 438 | box-shadow: 0 0 0 1px #d9d9d9; | 451 | box-shadow: 0 0 0 1px #d9d9d9; |
| 439 | position: relative; | 452 | position: relative; |
| 440 | 453 | width: 100%; | |
| 441 | &::after { | 454 | height: 40px; |
| 442 | content: ''; | 455 | line-height: 40px; |
| 443 | width: 0; | 456 | cursor: pointer; |
| 444 | height: 100%; | 457 | // &::after { |
| 445 | border-left: 1px solid #d9d9d9; | 458 | // content: ''; |
| 446 | position: absolute; | 459 | // width: 0; |
| 447 | left: 50%; | 460 | // height: 100%; |
| 448 | transform: translateX(-50%); | 461 | // border-left: 1px solid #d9d9d9; |
| 462 | // position: absolute; | ||
| 463 | // left: 50%; | ||
| 464 | // transform: translateX(-50%); | ||
| 465 | // } | ||
| 466 | |||
| 467 | // >.left-btn { | ||
| 468 | // width: 50%; | ||
| 469 | // height: 40px; | ||
| 470 | // line-height: 40px; | ||
| 471 | // text-align: center; | ||
| 472 | // cursor: pointer; | ||
| 473 | |||
| 474 | &:hover { | ||
| 475 | color: #4fa1a4; | ||
| 449 | } | 476 | } |
| 450 | 477 | ||
| 451 | >.left-btn { | 478 | // } |
| 452 | width: 50%; | ||
| 453 | height: 40px; | ||
| 454 | line-height: 40px; | ||
| 455 | text-align: center; | ||
| 456 | cursor: pointer; | ||
| 457 | |||
| 458 | &:hover { | ||
| 459 | color: #4fa1a4; | ||
| 460 | } | ||
| 461 | } | ||
| 462 | } | 479 | } |
| 463 | } | 480 | } |
| 464 | } | 481 | } | ... | ... |
| ... | @@ -13,7 +13,7 @@ import useUserStore from "@/store/modules/user"; | ... | @@ -13,7 +13,7 @@ import useUserStore from "@/store/modules/user"; |
| 13 | import useDataAssetStore from "@/store/modules/dataAsset"; | 13 | import useDataAssetStore from "@/store/modules/dataAsset"; |
| 14 | import { changeNum } from '@/utils/common'; | 14 | 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 } 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 } from "@/api/modules/dataProduct"; |
| 19 | import { getMatchDetail } from "@/api/modules/dataFinance"; | 19 | import { getMatchDetail } from "@/api/modules/dataFinance"; |
| ... | @@ -365,8 +365,8 @@ const formInfo = ref({ | ... | @@ -365,8 +365,8 @@ const formInfo = ref({ |
| 365 | // required: true, | 365 | // required: true, |
| 366 | // }, | 366 | // }, |
| 367 | { | 367 | { |
| 368 | label: "上架交易所", | 368 | label: "登记数交所", |
| 369 | type: "select", | 369 | type: "inputinput", |
| 370 | placeholder: "请选择", | 370 | placeholder: "请选择", |
| 371 | field: "exchangeGuids", | 371 | field: "exchangeGuids", |
| 372 | default: [], | 372 | default: [], |
| ... | @@ -418,6 +418,10 @@ const formInfo = ref({ | ... | @@ -418,6 +418,10 @@ const formInfo = ref({ |
| 418 | limit: 1, | 418 | limit: 1, |
| 419 | block: false, | 419 | block: false, |
| 420 | required: false, | 420 | required: false, |
| 421 | col: 'mr8', | ||
| 422 | style: { | ||
| 423 | width: 'calc(33.33% - 20px)!important' | ||
| 424 | }, | ||
| 421 | }, | 425 | }, |
| 422 | { | 426 | { |
| 423 | label: '登记证', | 427 | label: '登记证', |
| ... | @@ -425,7 +429,7 @@ const formInfo = ref({ | ... | @@ -425,7 +429,7 @@ const formInfo = ref({ |
| 425 | accept: '.jpg, .png, .jpeg ', | 429 | accept: '.jpg, .png, .jpeg ', |
| 426 | type: 'upload-file', | 430 | type: 'upload-file', |
| 427 | placeholder: '请选择', | 431 | placeholder: '请选择', |
| 428 | field: 'registerImg', | 432 | field: 'registrationCertificate', |
| 429 | default: [], | 433 | default: [], |
| 430 | limit: 1, | 434 | limit: 1, |
| 431 | block: false, | 435 | block: false, |
| ... | @@ -459,8 +463,12 @@ const formInfo = ref({ | ... | @@ -459,8 +463,12 @@ const formInfo = ref({ |
| 459 | filterable: true, | 463 | filterable: true, |
| 460 | clearable: true, | 464 | clearable: true, |
| 461 | disabled: false, | 465 | disabled: false, |
| 462 | required: true, | 466 | required: false, |
| 463 | visible: true | 467 | visible: true, |
| 468 | col: 'mr8', | ||
| 469 | style: { | ||
| 470 | width: 'calc(33.33% - 20px)!important' | ||
| 471 | }, | ||
| 464 | }, | 472 | }, |
| 465 | { | 473 | { |
| 466 | label: '价值评估报告', | 474 | label: '价值评估报告', |
| ... | @@ -489,7 +497,7 @@ const formInfo = ref({ | ... | @@ -489,7 +497,7 @@ const formInfo = ref({ |
| 489 | filterable: true, | 497 | filterable: true, |
| 490 | clearable: true, | 498 | clearable: true, |
| 491 | disabled: false, | 499 | disabled: false, |
| 492 | required: true, | 500 | required: false, |
| 493 | visible: true | 501 | visible: true |
| 494 | }, | 502 | }, |
| 495 | { | 503 | { |
| ... | @@ -1124,10 +1132,12 @@ onActivated(() => { | ... | @@ -1124,10 +1132,12 @@ onActivated(() => { |
| 1124 | }) | 1132 | }) |
| 1125 | 1133 | ||
| 1126 | const deploymentId = ref(''); | 1134 | const deploymentId = ref(''); |
| 1135 | const qualityEvaluationData = ref<any>(''); | ||
| 1136 | const costAssessmentData = ref<any>(''); | ||
| 1127 | onBeforeMount(() => { | 1137 | onBeforeMount(() => { |
| 1128 | if (route.query.type == 'add' && !route.query.type1) { | 1138 | if (route.query.type == 'add' && !route.query.type1) { |
| 1129 | formInfo.value.items.forEach(item => { | 1139 | formInfo.value.items.forEach(item => { |
| 1130 | if (item.field == 'damCode' || item.field == 'exchangeGuids' || item.field == 'registerImg' || item.field == 'qualityReport' || item.field == 'qualityOrg' || item.field == 'valueReport' || item.field == 'valueOrg' || item.field == 'commitment' || item.field == 'authorization' || item.field == 'productDetail') { | 1140 | 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') { |
| 1131 | item.visible = false; | 1141 | item.visible = false; |
| 1132 | } | 1142 | } |
| 1133 | }) | 1143 | }) |
| ... | @@ -1213,6 +1223,26 @@ onBeforeMount(() => { | ... | @@ -1213,6 +1223,26 @@ onBeforeMount(() => { |
| 1213 | ElMessage.error(res.msg); | 1223 | ElMessage.error(res.msg); |
| 1214 | } | 1224 | } |
| 1215 | }) | 1225 | }) |
| 1226 | // 获取质量评估机构 | ||
| 1227 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12505" }).then((res: any) => { | ||
| 1228 | if (res.code == proxy.$passCode) { | ||
| 1229 | qualityEvaluationData.value = res.data.records || []; | ||
| 1230 | let item = formInfo.value.items.find(item => item.field == 'qualityOrg'); | ||
| 1231 | item && (item.options = qualityEvaluationData.value); | ||
| 1232 | } else { | ||
| 1233 | proxy.$ElMessage.error(res.msg); | ||
| 1234 | } | ||
| 1235 | }) | ||
| 1236 | // 获取价值评估机构 | ||
| 1237 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12504" }).then((res: any) => { | ||
| 1238 | if (res.code == proxy.$passCode) { | ||
| 1239 | costAssessmentData.value = res.data.records || []; | ||
| 1240 | let item = formInfo.value.items.find(item => item.field == 'valueOrg'); | ||
| 1241 | item && (item.options = costAssessmentData.value); | ||
| 1242 | } else { | ||
| 1243 | proxy.$ElMessage.error(res.msg); | ||
| 1244 | } | ||
| 1245 | }) | ||
| 1216 | }) | 1246 | }) |
| 1217 | 1247 | ||
| 1218 | </script> | 1248 | </script> | ... | ... |
-
Please register or sign in to post a comment