Commit f6a2044b authored by Administrator's avatar Administrator

Merge remote-tracking branch 'origin/V20231129-中建一局二公司' into V20231129-中建一局二公司

parents 0f99fb18 28b907bc
...@@ -9,9 +9,9 @@ export function certPage(data) { ...@@ -9,9 +9,9 @@ export function certPage(data) {
}) })
} }
// 备案地 // 备案地
export function recordArea(data) { export function recordAreaList(data) {
return request({ return request({
url: '/enterpriseCert/recordArea', url: '/enterprise/enterpriseCert/recordAreaList',
method: 'post', method: 'post',
data: data data: data
}) })
...@@ -19,23 +19,23 @@ export function recordArea(data) { ...@@ -19,23 +19,23 @@ export function recordArea(data) {
// 资质变更 // 资质变更
export function certChangePage(data) { export function certChangePage(data) {
return request({ return request({
url: '/enterpriseCert/certChangePage', url: '/enterprise/enterpriseCert/certChangePage',
method: 'post', method: 'post',
data: data data: data
}) })
} }
// 备案网站 // 备案网站
export function recordWebSite(data) { export function recordWebSiteList(data) {
return request({ return request({
url: '/enterpriseCert/recordWebSite', url: '/enterprise/enterpriseCert/recordWebSiteList',
method: 'post', method: 'post',
data: data data: data
}) })
} }
// 安许证 // 安许证
export function lice(data) { export function liceList(data) {
return request({ return request({
url: '/enterpriseCert/lice', url: '/enterprise/enterpriseCert/liceList',
method: 'post', method: 'post',
data: data data: data
}) })
......
...@@ -34,6 +34,13 @@ export function companyList(data) { ...@@ -34,6 +34,13 @@ export function companyList(data) {
data: data data: data
}) })
} }
// 添加默认监控
export function defaultAdd() {
return request({
url: '/monitor/add/default',
method: 'post',
})
}
// 添加监控企业 // 添加监控企业
export function companyAdd(data) { export function companyAdd(data) {
return request({ return request({
......
...@@ -21,10 +21,18 @@ ...@@ -21,10 +21,18 @@
highlight-current-row highlight-current-row
> >
<el-table-column label="序号" width="60" align="left" type="index"></el-table-column> <el-table-column label="序号" width="60" align="left" type="index"></el-table-column>
<el-table-column label="资质编号" width="150" prop="certificateNo"></el-table-column> <el-table-column label="资质编号" width="200" prop="certificateNo"></el-table-column>
<el-table-column label="资质名称" min-width="200" prop="certName"></el-table-column> <el-table-column label="资质名称" min-width="200" prop="certName"></el-table-column>
<el-table-column label="发证日期" width="150" prop="issueDate"></el-table-column> <el-table-column label="发证日期" width="180" prop="issueDate">
<el-table-column label="有效期" width="150" prop="validityDate"></el-table-column> <template slot-scope="scope">
<span>{{ parseTime(scope.row.issueDate) }}</span>
</template>
</el-table-column>
<el-table-column label="有效期" width="180" prop="validityDate">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.validityDate) }}</span>
</template>
</el-table-column>
<el-table-column label="发证机关" min-width="200" prop="authority"></el-table-column> <el-table-column label="发证机关" min-width="200" prop="authority"></el-table-column>
</el-table> </el-table>
<div class="pagination-box" v-if="show_page && tableDataTotal>queryParams.pageSize"> <div class="pagination-box" v-if="show_page && tableDataTotal>queryParams.pageSize">
...@@ -37,7 +45,7 @@ ...@@ -37,7 +45,7 @@
<script> <script>
import skeleton from '../component/skeleton'; import skeleton from '../component/skeleton';
import { statistic } from '@/api/detail/party-a/index'; import { statistic } from '@/api/detail/party-a/index';
import { certPage,certChangePage,recordArea,recordWebSite,lice } from '@/api/detail/party-a/qualification'; import { certPage,certChangePage,recordAreaList,recordWebSiteList,liceList } from '@/api/detail/party-a/qualification';
export default { export default {
name: "qualification", name: "qualification",
components: { components: {
...@@ -77,29 +85,36 @@ ...@@ -77,29 +85,36 @@
}; };
let res = await statistic(params); let res = await statistic(params);
if (res.code == 200) { if (res.code == 200) {
// this.statisticList = res.data.newQualification; let data=res.data.newQualification
let arr=[] let arr=[]
for(let i=0; i<res.data.newQualification.length; i++){ for(let i=0; i<data.length; i++){
if(res.data.newQualification[i].qualificationMount !=0){ if(data[i].qualificationMount !=0){
arr.push(res.data.newQualification[i]) arr.push(data[i])
} }
} }
this.statisticList = arr; let removerList=['资质变更','备案地','备案网站','安许证']
let arrList=arr.filter(function (item) {
return !removerList.includes(item.qualificationParamNameCn)
})
this.statisticList = arrList;
this.stateColor=this.statisticList[0].qualificationParamNameCn; this.stateColor=this.statisticList[0].qualificationParamNameCn;
this.getCertPage() this.getCertPage()
if(this.stateColor === '资质变更'){ // if(this.stateColor === '资质变更'){
this.getCertChangePage() // this.getCertChangePage()
} // }
if(this.stateColor === '备案地'){ // if(this.stateColor === '备案地'){
this.getRecordArea() // this.getRecordArea()
} // }
if(this.stateColor === '备案网站'){ // if(this.stateColor === '备案网站'){
this.getRecordWebSite() // this.getRecordWebSite()
} // }
if(this.stateColor === '安许证'){ // if(this.stateColor === '安许证'){
this.getLice() // this.getLice()
} // }
} }
}, },
...@@ -122,7 +137,7 @@ ...@@ -122,7 +137,7 @@
this.isSkeleton = true this.isSkeleton = true
let params = { let params = {
...this.queryParams, ...this.queryParams,
companyId: this.companyId, cid: this.companyId,
}; };
let res = await certChangePage(params); let res = await certChangePage(params);
if (res.code == 200) { if (res.code == 200) {
...@@ -134,11 +149,11 @@ ...@@ -134,11 +149,11 @@
this.isSkeleton = true this.isSkeleton = true
let params = { let params = {
...this.queryParams, ...this.queryParams,
companyId: this.companyId, cid: this.companyId,
}; };
let res = await recordArea(params); let res = await recordAreaList(params);
if (res.code == 200) { if (res.code == 200) {
this.tableData=res.rows; this.tableData=res.data;
this.isSkeleton = false this.isSkeleton = false
} }
}, },
...@@ -146,11 +161,11 @@ ...@@ -146,11 +161,11 @@
this.isSkeleton = true this.isSkeleton = true
let params = { let params = {
...this.queryParams, ...this.queryParams,
companyId: this.companyId, cid: this.companyId,
}; };
let res = await lice(params); let res = await liceList(params);
if (res.code == 200) { if (res.code == 200) {
this.tableData=res.rows; this.tableData=res.data;
this.isSkeleton = false this.isSkeleton = false
} }
}, },
...@@ -158,11 +173,11 @@ ...@@ -158,11 +173,11 @@
this.isSkeleton = true this.isSkeleton = true
let params = { let params = {
...this.queryParams, ...this.queryParams,
companyId: this.companyId, cid: this.companyId,
}; };
let res = await recordWebSite(params); let res = await recordWebSiteList(params);
if (res.code == 200) { if (res.code == 200) {
this.tableData=res.rows; this.tableData=res.data;
this.isSkeleton = false this.isSkeleton = false
} }
}, },
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
<div class="total">{{tableDataTotal}}</div> <div class="total">{{tableDataTotal}}</div>
<div class="right"> <div class="right">
<span class="add" @click="addEnterprise">添加企业</span> <span class="add" @click="addEnterprise">添加企业</span>
<span class="add" @click="addDefault" style="width: 110px;">添加默认监控</span>
<span class="add1" @click="handleBatch">批量监控</span> <span class="add1" @click="handleBatch">批量监控</span>
</div> </div>
</div> </div>
...@@ -161,7 +162,7 @@ ...@@ -161,7 +162,7 @@
</template> </template>
<script> <script>
import { companyPage,companyList,companyAdd,companyCancel,queryMonitorCompany } from '@/api/monitoring/monitoring' import { companyPage,companyList,companyAdd,companyCancel,queryMonitorCompany,defaultAdd } from '@/api/monitoring/monitoring'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import skeleton from '../component/skeleton' import skeleton from '../component/skeleton'
export default { export default {
...@@ -361,6 +362,21 @@ ...@@ -361,6 +362,21 @@
this.querySubmit() this.querySubmit()
}) })
}, },
addDefault(){
this.$confirm('是否添加所有供应商监控', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
defaultAdd().then(res => {
if(res.code === 200){
this.$message.success(res.msg);
}
})
}).catch(() => {
});
},
addEnterprise(){ addEnterprise(){
this.qyVisible=true; this.qyVisible=true;
this.loading = true this.loading = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment