提交 1885494b 编写于 作者: dmx_mac's avatar dmx_mac

feat:供货店铺审核

上级 fa31f407
...@@ -7,7 +7,7 @@ let headers = { ...@@ -7,7 +7,7 @@ let headers = {
export const getCertifyList = (params) => { export const getCertifyList = (params) => {
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`certify/list`), url: getBaseUrl(`store/certify/list`),
method: 'post', method: 'post',
data:params, data:params,
description: '审核记录列表(批发和供应商)', description: '审核记录列表(批发和供应商)',
...@@ -28,7 +28,7 @@ export const getCertifyHistory = (params) => { ...@@ -28,7 +28,7 @@ export const getCertifyHistory = (params) => {
export const getCertifyDetail = (storeId) => { export const getCertifyDetail = (storeId) => {
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`certify/certifyDetail`), url: getBaseUrl(`store/certify/certifyDetail`),
method: 'get', method: 'get',
description: '获取认证申请的审核详情', description: '获取认证申请的审核详情',
}) })
...@@ -36,7 +36,7 @@ export const getCertifyDetail = (storeId) => { ...@@ -36,7 +36,7 @@ export const getCertifyDetail = (storeId) => {
export const getRefuseTemplate = (storeId) => { export const getRefuseTemplate = (storeId) => {
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`cert/constant/refuse/template`), url: getBaseUrl(`store/cert/constant/refuse/template`),
method: 'get', method: 'get',
description: '获取错误模板', description: '获取错误模板',
}) })
......
...@@ -3,81 +3,97 @@ ...@@ -3,81 +3,97 @@
title="提示" title="提示"
:visible.sync="hidden" :visible.sync="hidden"
width="80%" width="80%"
:before-close="handleClose"> :before-close="handleClose"
>
<el-table :data="gridData"> <el-table :data="gridData">
<el-table-column property="date" label="审核时间" ></el-table-column> <el-table-column property="date" label="审核时间"></el-table-column>
<el-table-column property="name" label="审核人" ></el-table-column> <el-table-column property="name" label="审核人"></el-table-column>
<el-table-column property="address" label="审核结果"></el-table-column> <el-table-column property="address" label="审核结果"></el-table-column>
<el-table-column property="address" label="失败原因" width="200"> <el-table-column property="address" label="失败原因" width="200">
<template class=""> <template class=""> </template>
</el-table-column>
<el-table-column property="address" label="操作">
<template>
<el-button
@click="goDetail(scope.row)"
class="c0D9078"
type="text"
size="small"
>查看详情</el-button
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column property="address" label="操作"></el-table-column>
</el-table> </el-table>
<div class="pagination"> <div class="pagination">
<el-pagination <el-pagination
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleNumChange" @current-change="handleNumChange"
:current-page="pageNo" :current-page="pageNo"
:page-sizes="[10, 30, 50, 100]" :page-sizes="[10, 30, 50, 100]"
:page-size="pageSize" :page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
></el-pagination> ></el-pagination>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { getCertifyHistory } from "@/utils/qualification";
import { getCertifyHistory } from '@/utils/qualification'
export default { export default {
props:{ props: {
hidden:{ hidden: {
type:Boolean, type: Boolean,
default:() => { default: () => {
return false; return false;
} },
},
id: {
type: Number,
default: () => {
return 0;
},
},
}, },
id:{ data() {
type:Number, return {
default:() => { pageNo: 0,
return 0; pageSize: 10,
} total: 100,
} gridData: [],
}, };
data () {
return {
pageNo:0,
pageSize:10,
total:100,
gridData:[],
}
},
created(){},
methods:{
init(){
const params = {
certificateInfoId:this.id,
pageNo:this.pageNo,
pageSize:this.pageSize
}
getCertifyHistory(params).then(res => {
})
}, },
handleSizeChange() {}, created() {},
handleNumChange() {}, methods: {
show() { init() {
const params = {
certificateInfoId: this.id,
pageNo: this.pageNo,
pageSize: this.pageSize,
};
getCertifyHistory(params).then((res) => {
this.gridData = res.data.contentList;
});
},
handleSizeChange(value) {
this.pageSize = value;
this.init();
},
handleNumChange(value) {
this.pageNo = value;
},
goDetail() {
},
show() {},
handleClose() {
this.pageSize = 10;
this.pageNo = 1;
this.gridData = [];
this.$emit("close");
},
}, },
handleClose(){ };
this.$emit('close')
}
}
}
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
</style> </style>
<template> <template>
<div class="qualification-detail"> <div class="qualification-detail" ref="qualificationDetail">
<bread-crumb :curmbFirst="curmbFirst"></bread-crumb> <bread-crumb :curmbFirst="curmbFirst"></bread-crumb>
<div class="qualification-content screenSet" id="screenSet"> <div class="qualification-content screenSet" id="screenSet">
<div class="head"> <div class="head">
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="company"> <div class="company" ref="company">
<div class="tit"> <div class="tit">
<div class="mr5">公司信息</div> <div class="mr5">公司信息</div>
<div class="c0D9078 cp" @click="refuse"> <div class="c0D9078 cp" @click="refuse">
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
拒绝原因 拒绝原因
</div> </div>
</div> </div>
<div class="refuse-info">拒绝原因:{{ 1 | reasonRejection }}</div> <div class="refuse-info">拒绝原因:{{ reasonRejection(1) }}</div>
<div class="info"> <div class="info">
<div> <div>
<div>企业类型:{{ detail.orgType }}</div> <div>企业类型:{{ detail.orgType }}</div>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<div class="tit"> <div class="tit">
<div>工商信息</div> <div>工商信息</div>
</div> </div>
<div class="refuse-info">拒绝原因:{{ 2 | reasonRejection }}</div> <div class="refuse-info">拒绝原因:{{ reasonRejection(2) }}</div>
<div class=""> <div class="">
<div class="flex-c fs12"> <div class="flex-c fs12">
<div class="mr5">营业执照</div> <div class="mr5">营业执照</div>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
<div class="refuse-info">拒绝原因:{{ 3 | reasonRejection }}</div> <div class="refuse-info">拒绝原因:{{ reasonRejection(3) }}</div>
<div class="img"> <div class="img">
<el-image <el-image
src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
<div class="refuse-info">拒绝原因:{{ 4 | reasonRejection }}</div> <div class="refuse-info">拒绝原因:{{ reasonRejection(4) }}</div>
<div class="img"> <div class="img">
<el-image <el-image
:src="detail.assignorCertBackUrl" :src="detail.assignorCertBackUrl"
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
<div class="refuse-info">拒绝原因:{{ 5 | reasonRejection }}</div> <div class="refuse-info">拒绝原因:{{ reasonRejection(5) }}</div>
<div class="img"> <div class="img">
<el-image <el-image
:src="detail.assignorCertBackUrl" :src="detail.assignorCertBackUrl"
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
<div class="refuse-info">拒绝原因:{{ 6 | reasonRejection }}</div> <div class="refuse-info">拒绝原因:{{ reasonRejection(6) }}</div>
<div class="img"> <div class="img">
<el-image <el-image
:src="detail.legalCertBackUrl" :src="detail.legalCertBackUrl"
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
<div class="refuse-info">拒绝原因:{{ 7 | reasonRejection }}</div> <div class="refuse-info">拒绝原因:{{ reasonRejection(7) }}</div>
<div class="img"> <div class="img">
<el-image <el-image
src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
...@@ -252,20 +252,15 @@ export default { ...@@ -252,20 +252,15 @@ export default {
typeState() { typeState() {
const reviewType = ["tobe-reviewed", "success-reviewed", "no-reviewed"]; const reviewType = ["tobe-reviewed", "success-reviewed", "no-reviewed"];
return reviewType[this.$route.query.type]; return reviewType[this.$route.query.status];
}, },
typeStateText() { typeStateText() {
const reviewType = ["待审核", "审核成功", "审核不通过"]; const reviewType = ["待审核", "审核成功", "审核不通过"];
return reviewType[this.$route.query.type]; return reviewType[this.$route.query.status];
}, },
}, },
filters: { filters: {
reasonRejection(type) {
return this.certifyValidDtoList.filters(v => {
return v.infoType === type
})[0]
},
}, },
data() { data() {
return { return {
...@@ -277,7 +272,9 @@ export default { ...@@ -277,7 +272,9 @@ export default {
certifyReportImgList: [], //认证图片list 年度报告类 certifyReportImgList: [], //认证图片list 年度报告类
}; };
}, },
created() {}, created() {
this.init();
},
methods: { methods: {
init() { init() {
getCertifyDetail(this.id).then((res) => { getCertifyDetail(this.id).then((res) => {
...@@ -286,6 +283,7 @@ export default { ...@@ -286,6 +283,7 @@ export default {
certifyLicenseImgList = [], certifyLicenseImgList = [],
certifyReportImgList = [], certifyReportImgList = [],
} = res.data; } = res.data;
console.log(this.certifyValidDtoList);
this.certifyValidDtoList = certifyValidDtoList; this.certifyValidDtoList = certifyValidDtoList;
this.certifyLicenseImgList = certifyLicenseImgList; this.certifyLicenseImgList = certifyLicenseImgList;
this.certifyReportImgList = certifyReportImgList; this.certifyReportImgList = certifyReportImgList;
...@@ -298,6 +296,12 @@ export default { ...@@ -298,6 +296,12 @@ export default {
historyDialogClose() { historyDialogClose() {
this.historyDialogHidden = false; this.historyDialogHidden = false;
}, },
reasonRejection(type) {
const value = this.certifyValidDtoList.filter(v => {
return v.infoType === type
})[0];
return value || '' ;
},
// copy // copy
copyTxt(text) { copyTxt(text) {
var type = "text/plain"; var type = "text/plain";
...@@ -321,7 +325,11 @@ export default { ...@@ -321,7 +325,11 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => {}) .then(() => {
console.log(document.querySelector('#body-content').scrollTop);
console.log(this.$refs.company.scrollHeight,document.scrollTop);
document.querySelector('#body-content').scrollTop = this.$refs.company.scrollHeight
})
.catch(() => {}); .catch(() => {});
}, },
handleClose() { handleClose() {
......
...@@ -2,56 +2,94 @@ ...@@ -2,56 +2,94 @@
<div class="qualification-list"> <div class="qualification-list">
<bread-crumb :curmbFirst="curmbFirst"></bread-crumb> <bread-crumb :curmbFirst="curmbFirst"></bread-crumb>
<div class="qualification-content screenSet" id="screenSet"> <div class="qualification-content screenSet" id="screenSet">
<el-form ref="searchForm" :model="searchForm" label-width="100px" label-suffix=":" :inline="true"> <el-form
<template v-if="$route.query.source === 'ghs'"> ref="searchForm"
<el-form-item label="店铺名称"> :model="searchForm"
<el-input v-model="searchForm.storeNameStr" size="small" style="width:200px" placeholder="请输入店铺名称,用‘、’隔开"></el-input> label-width="100px"
</el-form-item> label-suffix=":"
<el-form-item label="管理员姓名"> :inline="true"
<el-input v-model="searchForm.adminNameStr" size="small" style="width:220px" placeholder="请输入管理员姓名,用‘、’隔开"></el-input> >
</el-form-item> <template v-if="$route.query.source === 'ghs'">
<el-form-item label="管理员手机号"> <el-form-item label="店铺名称">
<el-input v-model="searchForm.adminMobileStr" size="small" style="width:220px" placeholder="亲输入管理员手机号,用‘、’隔开"></el-input> <el-input
</el-form-item> v-model="searchForm.storeNameStr"
<el-form-item label="企业类型"> size="small"
<el-select style="width: 200px"
v-model="searchForm.orgType" placeholder="请输入店铺名称,用‘、’隔开"
placeholder="请选择" ></el-input>
size="small" </el-form-item>
clearable> <el-form-item label="管理员姓名">
<el-option <el-input
v-for="(item,index) in orgList" v-model="searchForm.adminNameStr"
:key="index" size="small"
:label="item.name" style="width: 220px"
:value="item.id" placeholder="请输入管理员姓名,用‘、’隔开"
></el-option> ></el-input>
</el-select> </el-form-item>
</el-form-item> <el-form-item label="管理员手机号">
</template> <el-input
<template v-if="$route.query.source === 'pf'"> v-model="searchForm.adminMobileStr"
<el-form-item label="医生ID"> size="small"
<el-input v-model="searchForm.doctorIdStr" size="small" style="width:200px" placeholder="请输入医生ID,用‘、’隔开"></el-input> style="width: 220px"
</el-form-item> placeholder="亲输入管理员手机号,用‘、’隔开"
<el-form-item label="医生姓名"> ></el-input>
<el-input v-model="searchForm.doctorNameStr" size="small" style="width:200px" placeholder="请输入医生姓名,用‘、’隔开"></el-input> </el-form-item>
</el-form-item> <el-form-item label="企业类型">
<el-form-item label="企业名称"> <el-select
<el-input v-model="searchForm.orgNameStr" size="small" style="width:200px" placeholder="亲输入企业名称,用‘、’隔开"></el-input> v-model="searchForm.orgType"
</el-form-item> placeholder="请选择"
</template> size="small"
<el-form-item label="审核状态"> clearable
<el-select >
v-model="searchForm.status" <el-option
placeholder="请选择" v-for="(item, index) in orgList"
size="small"> :key="index"
<el-option :label="item.name"
v-for="(item,index) in statusList" :value="item.id"
:key="index" ></el-option>
:label="item.name" </el-select>
:value="item.id" </el-form-item>
></el-option> </template>
</el-select> <template v-if="$route.query.source === 'pf'">
</el-form-item> <el-form-item label="医生ID">
<el-input
v-model="searchForm.doctorIdStr"
size="small"
style="width: 200px"
placeholder="请输入医生ID,用‘、’隔开"
></el-input>
</el-form-item>
<el-form-item label="医生姓名">
<el-input
v-model="searchForm.doctorNameStr"
size="small"
style="width: 200px"
placeholder="请输入医生姓名,用‘、’隔开"
></el-input>
</el-form-item>
<el-form-item label="企业名称">
<el-input
v-model="searchForm.orgNameStr"
size="small"
style="width: 200px"
placeholder="亲输入企业名称,用‘、’隔开"
></el-input>
</el-form-item>
</template>
<el-form-item label="审核状态">
<el-select
v-model="searchForm.status"
placeholder="请选择"
size="small"
>
<el-option
v-for="(item, index) in statusList"
:key="index"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
</el-form> </el-form>
<div class="form-btn"> <div class="form-btn">
<el-button type="primary" size="small">查询</el-button> <el-button type="primary" size="small">查询</el-button>
...@@ -60,233 +98,337 @@ ...@@ -60,233 +98,337 @@
</div> </div>
<div class="table"> <div class="table">
<div class="tab"> <div class="tab">
<span :class="{checked:item.id === tabChecked}" v-for="item in tabList" :key="item.id" @click="checkTab(item)">{{item.name}}</span> <span
:class="{ checked: item.id === tabChecked }"
v-for="item in tabList"
:key="item.id"
@click="checkTab(item)"
>{{ item.name }}</span
>
</div> </div>
<el-table :data="tableData" align="left" class="item-table" style="width: 100%;margin-top: 10px;"> <el-table
<el-table-column prop="id" label="申请ID" min-width="100" align="center"> :data="tableData"
align="left"
class="item-table"
style="width: 100%; margin-top: 10px"
>
<el-table-column
prop="id"
label="申请ID"
min-width="100"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.id }}</span> <span>{{ scope.row.id }}</span>
</template> </template>
</el-table-column> </el-table-column>
<template v-if="$route.query.source === 'ghs'"> <template v-if="$route.query.source === 'ghs'">
<el-table-column prop="storeName" label="店铺名称" min-width="100" align="center" show-overflow-tooltip> <el-table-column
prop="storeName"
label="店铺名称"
min-width="100"
align="center"
show-overflow-tooltip
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.storeName }}</span> <span>{{ scope.row.storeName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="storeType" label="管理员姓名" min-width="100" align="center"> <el-table-column
prop="storeType"
label="管理员姓名"
min-width="100"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.storeType | storeTypeFormat}}</span> <span>{{ scope.row.storeType | storeTypeFormat }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="storeType" label="管理员手机号" min-width="100" align="center"> <el-table-column
prop="storeType"
label="管理员手机号"
min-width="100"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.storeType | storeTypeFormat}}</span> <span>{{ scope.row.storeType | storeTypeFormat }}</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="$route.query.source === 'pf'"> <template v-if="$route.query.source === 'pf'">
<el-table-column prop="storeName" label="医生ID" min-width="100" align="center" show-overflow-tooltip> <el-table-column
prop="storeName"
label="医生ID"
min-width="100"
align="center"
show-overflow-tooltip
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.storeName }}</span> <span>{{ scope.row.storeName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="storeType" label="医生姓名" min-width="100" align="center"> <el-table-column
prop="storeType"
label="医生姓名"
min-width="100"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.storeType | storeTypeFormat}}</span> <span>{{ scope.row.storeType | storeTypeFormat }}</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<el-table-column prop="storeStatus" label="企业姓名" min-width="100" align="center"> <el-table-column
prop="storeStatus"
label="企业姓名"
min-width="100"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.storeStatus | statusFormat }}</span> <span>{{ scope.row.storeStatus | statusFormat }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="count" label="企业类型" min-width="120" align="center"> <el-table-column
prop="count"
label="企业类型"
min-width="120"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.count }}</span> <span>{{ scope.row.count }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createdTime" label="审核状态" min-width="120" align="center"> <el-table-column
prop="createdTime"
label="审核状态"
min-width="120"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span :class="scope.row.createdTime | typeState">{{ scope.row.createdTime | examineType }}</span> <span :class="scope.row.createdTime | typeState">{{
<el-tooltip class="item" effect="dark" content="Top Left 提示文字" placement="top-start"> scope.row.createdTime | examineType
<i class="el-icon-warning-outline no-reviewed" ></i> }}</span>
</el-tooltip> <el-tooltip
class="item"
effect="dark"
content="Top Left 提示文字"
placement="top-start"
>
<i class="el-icon-warning-outline no-reviewed"></i>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="commissionType" label="申请时间" width="120" align="center"> <el-table-column
prop="commissionType"
label="申请时间"
width="120"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.commissionType | commissionTypeFormat}}</span> <span>{{ scope.row.commissionType | commissionTypeFormat }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="commissionPrice" label="审核人" width="120" align="center"> <el-table-column
prop="commissionPrice"
label="审核人"
width="120"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.commissionType == 1">{{scope.row.commissionPrice | priceNum}}%</span> <span v-if="scope.row.commissionType == 1"
<span v-if="scope.row.commissionType == 2">{{scope.row.commissionPrice | priceNum}}</span> >{{ scope.row.commissionPrice | priceNum }}%</span
>
<span v-if="scope.row.commissionType == 2"
>{{ scope.row.commissionPrice | priceNum }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="commissionType" label="审核时间" width="120" align="center"> <el-table-column
prop="commissionType"
label="审核时间"
width="120"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.proxyCommissionType | commissionTypeFormat}}</span> <span>{{
scope.row.proxyCommissionType | commissionTypeFormat
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" min-width="230" align="center" fixed="right"> <el-table-column
label="操作"
min-width="230"
align="center"
fixed="right"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="operation"> <div class="operation">
<el-button @click="shopManage(scope.row)" type="text" size="small">审核</el-button> <el-button @click="shopManage(scope.row)" type="text" size="small"
<el-button @click="orderManage(scope.row)" type="text" size="small">查看详情</el-button> >审核</el-button
>
<el-button
@click="orderManage(scope.row)"
type="text"
size="small"
>查看详情</el-button
>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="pagination"> <div class="pagination">
<el-pagination <el-pagination
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleNumChange" @current-change="handleNumChange"
:current-page="searchForm.pageNo" :current-page="searchForm.pageNo"
:page-sizes="[10, 30, 50, 100]" :page-sizes="[10, 30, 50, 100]"
:page-size="searchForm.pageSize" :page-size="searchForm.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="totalRows" :total="totalRows"
></el-pagination> ></el-pagination>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import { getCertifyList } from '@/utils/qualification' import { getCertifyList } from "@/utils/qualification";
export default { export default {
components: { components: {
BreadCrumb BreadCrumb,
},
filters: {
examineType(type) {
const obj = {
0: "待审核",
1: "审核通过",
2: "审核不通过",
};
return obj[type];
}, },
filters:{ typeState(type) {
examineType(type){ const reviewType = ["tobe-reviewed", "success-reviewed", "no-reviewed"];
const obj = {
0:'待审核',
1:'审核通过',
2:'审核不通过',
}
return obj[type]
},
typeState(type){
const reviewType = ['tobe-reviewed','success-reviewed','no-reviewed']
return reviewType[type] return reviewType[type];
},
}, },
data(){ },
return{ data() {
curmbFirst: '首营资质审核', return {
tabList:[ curmbFirst: "首营资质审核",
{ tabList: [
id:1, {
name:'全部', id: 1,
}, name: "全部",
{
id:2,
name:'待审核',
},
{
id:3,
name:'已审核',
},
],
searchForm: {
adminMobileStr: '',
adminNameStr: '',
doctorIdStr: 0,
doctorNameStr: 1,
orgNameStr: 10,
orgType: null,
pageNo: null,
pageSize: 0,
status:0,
storeNameStr:0,
type:1
}, },
orgList:[ {
{id:1,name:'医疗机构(非营利性)'}, id: 2,
{id:2,name:'医疗机构(营利性)'}, name: "待审核",
{id:3,name:'零售-单体药店'}, },
{id:4,name:'零售-连锁药店'}, {
], id: 3,
statusList:[ name: "已审核",
{id:0,name:'全部'}, },
{id:1,name:'待审核'}, ],
{id:2,name:'已审核'}, searchForm: {
], adminMobileStr: "",
tableData:[{ adminNameStr: "",
id:1, doctorIdStr: "",
storeName:'11', doctorNameStr: "",
storeType:2, orgNameStr: "",
storeStatus:2, orgType: "",
count:2, pageNo: 1,
createdTime:2, pageSize: 10,
commissionType:2, status: "",
}], storeNameStr: "",
tabChecked:1 },
} orgList: [
{ id: 1, name: "医疗机构(非营利性)" },
{ id: 2, name: "医疗机构(营利性)" },
{ id: 3, name: "零售-单体药店" },
{ id: 4, name: "零售-连锁药店" },
],
statusList: [
{ id: 0, name: "全部" },
{ id: 1, name: "待审核" },
{ id: 2, name: "已审核" },
],
tableData: [
{
id: 1,
storeName: "11",
storeType: 2,
storeStatus: 2,
count: 2,
createdTime: 2,
commissionType: 2,
},
],
tabChecked: 1,
totalRows: 0,
};
},
created() {
this.init();
},
methods: {
init() {
const params = {
type: Number(this.$route.query.type || 1) ,
...this.searchForm,
};
getCertifyList(params).then((res) => {
console.log(res);
const { contentList, total } = res.data;
this.tableData = contentList;
this.totalRows = total;
});
}, },
created(){ checkTab(item) {
this.init() this.tabChecked = item.id;
}, },
methods:{ },
init() { };
const params = {
}
getCertifyList(params).then(res => {
console.log(res);
})
},
checkTab(item) {
this.tabChecked = item.id;
}
}
}
</script> </script>
<style lang="scss" scope> <style lang="scss" scope>
.qualification-list{ .qualification-list {
.qualification-content{ .qualification-content {
background: #fff; background: #fff;
padding: 10px; padding: 10px;
}
.form-btn {
text-align: right;
}
.table {
background-color: #fff;
margin: 10px 30px;
padding: 20px;
.tobe-reviewed {
color: #fac94d;
} }
.form-btn{ .success-reviewed {
text-align: right; color: #71d60a;
} }
.table{ .no-reviewed {
background-color: #fff; color: #e2292a;
margin:10px 30px; }
padding: 20px; .tab {
.tobe-reviewed{ span {
color: #FAC94D; font-weight: bold;
} font-size: 18px;
.success-reviewed{ margin-right: 30px;
color: #71D60A; cursor: pointer;
} &.checked {
.no-reviewed{ color: #0d9078;
color: #E2292A; }
}
.tab{
span{
font-weight: bold;
font-size: 18px;
margin-right: 30px;
cursor: pointer;
&.checked{
color: #0D9078;
}
}
}
.operation{
span{
color: #0D9078;
} }
} }
.operation {
span {
color: #0d9078;
}
} }
} }
}
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册