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

feat:供货商资质

上级 1885494b
...@@ -22,9 +22,6 @@ export const getCertifyHistory = (params) => { ...@@ -22,9 +22,6 @@ export const getCertifyHistory = (params) => {
description: '查看审核历史', description: '查看审核历史',
}) })
}; };
export const getCertifyDetail = (storeId) => { export const getCertifyDetail = (storeId) => {
return fetch({ return fetch({
headers, headers,
...@@ -33,10 +30,10 @@ export const getCertifyDetail = (storeId) => { ...@@ -33,10 +30,10 @@ export const getCertifyDetail = (storeId) => {
description: '获取认证申请的审核详情', description: '获取认证申请的审核详情',
}) })
}; };
export const getRefuseTemplate = (storeId) => { export const getRefuseTemplate = (type) => {
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`store/cert/constant/refuse/template`), url: getBaseUrl(`store/cert/constant/refuse/template?type=${type}`),
method: 'get', method: 'get',
description: '获取错误模板', description: '获取错误模板',
}) })
......
...@@ -7,13 +7,14 @@ ...@@ -7,13 +7,14 @@
> >
<div class="refuse-dialog"> <div class="refuse-dialog">
<el-radio <el-radio
class="radio"
v-model="checkId" v-model="checkId"
v-for="item in list" v-for="item in list"
:key="item.id" :key="item.id"
:label="item.id" :label="item.id"
>{{ item.name }}</el-radio >{{ item.name }}</el-radio
> >
<el-radio v-model="checkId" :label="4">手动输入</el-radio> <el-radio class="radio" v-model="checkId" :label="-1">手动输入</el-radio>
<el-input <el-input
v-if="checkId === -1" v-if="checkId === -1"
type="textarea" type="textarea"
...@@ -41,39 +42,59 @@ export default { ...@@ -41,39 +42,59 @@ export default {
dialogVisible: false, dialogVisible: false,
checkId: -1, checkId: -1,
refuse: "", refuse: "",
list:[], list: [],
type:'' type: "",
typeData: {
1: "公司信息",
2: "营业执照",
3: "上一年年度报告",
4: "委托人身份证照片",
5: "委托书",
6: "法人身份证照片",
7: "药品经营许可证",
8: "药品经营质量管理规范认证证书",
9: "食品经营许可证",
10: "医疗器械经营许可证",
11: "二级医疗器械经营备案凭证",
12: "事业单位法人证",
},
}; };
}, },
created() {}, created() {},
methods: { methods: {
init(type) { init() {
this.type = type getRefuseTemplate(this.type).then((res) => {
getRefuseTemplate({ type }).then((res) => {
console.log(res); console.log(res);
this.list = res.data || [] this.list = res.data || [];
}); });
}, },
show() { show(type) {
console.log(type);
this.type = type;
this.init(type);
this.dialogVisible = true; this.dialogVisible = true;
}, },
handleClose() { handleClose() {
this.list = [];
this.refuse = "";
this.checkId = -1;
this.dialogVisible = false; this.dialogVisible = false;
}, },
confirm() { confirm() {
const params = { const params = {
refuseTemplateNo:this.checkId, refuseTemplateNo: this.checkId,
infoType:this.type infoType: this.type,
} infoTypeName:this.typeData[this.type]
if(this.checkId === -1) { };
params.refuseContent = this.refuse if (this.checkId === -1) {
params.refuseContent = this.refuse;
} else { } else {
params.refuseContent = this.list.filters(v => { params.refuseContent = this.list.filter((v) => {
return v.id === checkId return v.id === this.checkId;
})[0].name })[0].name;
} }
this.handleClose(); this.handleClose();
this.$emit("confirm",params); this.$emit("confirm", params);
}, },
}, },
}; };
...@@ -84,6 +105,9 @@ export default { ...@@ -84,6 +105,9 @@ export default {
flex-direction: column; flex-direction: column;
margin-bottom: 20px; margin-bottom: 20px;
} }
.radio {
margin-bottom: 10px;
}
.btn { .btn {
text-align: right; text-align: right;
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div class="company" ref="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(1)">
<i class="el-icon-edit-outline"></i> <i class="el-icon-edit-outline"></i>
拒绝原因 拒绝原因
</div> </div>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<div class=""> <div class="">
<div class="flex-c fs12"> <div class="flex-c fs12">
<div class="mr5">营业执照</div> <div class="mr5">营业执照</div>
<div class="c0D9078 cp" @click="refuse"> <div class="c0D9078 cp" @click="refuse(2)">
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<div> <div>
<div class="flex-c fs12"> <div class="flex-c fs12">
<div class="mr5">上一年度报告</div> <div class="mr5">上一年度报告</div>
<div class="c0D9078 cp" @click="refuse"> <div class="c0D9078 cp" @click="refuse(3)">
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
<div> <div>
<div class="flex-c fs12"> <div class="flex-c fs12">
<div class="mr5">委托人身份证照片</div> <div class="mr5">委托人身份证照片</div>
<div class="c0D9078 cp" @click="refuse"> <div class="c0D9078 cp" @click="refuse(4)">
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<div> <div>
<div class="flex-c fs12"> <div class="flex-c fs12">
<div class="mr5">委托书</div> <div class="mr5">委托书</div>
<div class="c0D9078 cp" @click="refuse"> <div class="c0D9078 cp" @click="refuse(5)">
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
<div> <div>
<div class="flex-c fs12"> <div class="flex-c fs12">
<div class="mr5">法人身份证照片</div> <div class="mr5">法人身份证照片</div>
<div class="c0D9078 cp" @click="refuse"> <div class="c0D9078 cp" @click="refuse(6)">
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
<div v-for="item in 4" :key="item" class="item"> <div v-for="item in 4" :key="item" class="item">
<div class="flex-c fs12"> <div class="flex-c fs12">
<div class="mr5">药品经营许可证</div> <div class="mr5">药品经营许可证</div>
<div class="c0D9078 cp" @click="refuse"> <div class="c0D9078 cp" @click="refuse(7)">
<i class="el-icon-edit-outline"></i>拒绝原因 <i class="el-icon-edit-outline"></i>拒绝原因
</div> </div>
</div> </div>
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
</div> </div>
</div> </div>
<history-dialog :hidden="historyDialogHidden" @close="historyDialogClose" /> <history-dialog :hidden="historyDialogHidden" @close="historyDialogClose" />
<refuse-dialog /> <refuse-dialog ref="refuseDialog" @confirm="refuseConfirm" />
<footer> <footer>
<el-button type="primary" size="small" @click="confirm" <el-button type="primary" size="small" @click="confirm"
>审核通过</el-button >审核通过</el-button
...@@ -299,8 +299,8 @@ export default { ...@@ -299,8 +299,8 @@ export default {
reasonRejection(type) { reasonRejection(type) {
const value = this.certifyValidDtoList.filter(v => { const value = this.certifyValidDtoList.filter(v => {
return v.infoType === type return v.infoType === type
})[0]; })[0] || {};
return value || '' ; return value.refuseContent || '' ;
}, },
// copy // copy
copyTxt(text) { copyTxt(text) {
...@@ -344,7 +344,13 @@ export default { ...@@ -344,7 +344,13 @@ export default {
}) })
.catch(() => {}); .catch(() => {});
}, },
refuseConfirm(params) {
console.log(params);
this.certifyValidDtoList.push(params)
},
refuse(type) { refuse(type) {
console.log(type);
this.$refs.refuseDialog.show(type);
switch (type) { switch (type) {
case 1: case 1:
break; break;
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</template> </template>
<el-form-item label="审核状态"> <!-- <el-form-item label="审核状态">
<el-select <el-select
v-model="searchForm.status" v-model="searchForm.status"
placeholder="请选择" placeholder="请选择"
...@@ -89,17 +89,21 @@ ...@@ -89,17 +89,21 @@
:value="item.id" :value="item.id"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </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" @click="submitForm"
<el-button type="default" size="small">重制</el-button> >查询</el-button
>
<el-button type="default" size="small" @click="resetForm"
>重制</el-button
>
</div> </div>
</div> </div>
<div class="table"> <div class="table">
<div class="tab"> <div class="tab">
<span <span
:class="{ checked: item.id === tabChecked }" :class="{ checked: item.id === searchForm.status }"
v-for="item in tabList" v-for="item in tabList"
:key="item.id" :key="item.id"
@click="checkTab(item)" @click="checkTab(item)"
...@@ -135,24 +139,18 @@ ...@@ -135,24 +139,18 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="storeType" prop="adminName"
label="管理员姓名" label="管理员姓名"
min-width="100" min-width="100"
align="center" align="center"
> >
<template slot-scope="scope">
<span>{{ scope.row.storeType | storeTypeFormat }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="storeType" prop="adminMobile"
label="管理员手机号" label="管理员手机号"
min-width="100" min-width="100"
align="center" align="center"
> >
<template slot-scope="scope">
<span>{{ scope.row.storeType | storeTypeFormat }}</span>
</template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="$route.query.source === 'pf'"> <template v-if="$route.query.source === 'pf'">
...@@ -168,45 +166,39 @@ ...@@ -168,45 +166,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="storeType" prop="applyName"
label="医生姓名" label="医生姓名"
min-width="100" min-width="100"
align="center" align="center"
> >
<template slot-scope="scope">
<span>{{ scope.row.storeType | storeTypeFormat }}</span>
</template>
</el-table-column> </el-table-column>
</template> </template>
<el-table-column <el-table-column
prop="storeStatus" prop="orgName"
label="企业姓名" label="企业姓名"
min-width="100" min-width="100"
align="center" align="center"
> >
<template slot-scope="scope">
<span>{{ scope.row.storeStatus | statusFormat }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="count" prop="orgType"
label="企业类型" label="企业类型"
min-width="120" min-width="120"
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.count }}</span> <span>{{ scope.row.orgType }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="createdTime" prop="status"
label="审核状态" label="审核状态"
min-width="120" min-width="120"
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span :class="scope.row.createdTime | typeState">{{ <span :class="scope.row.status | typeState">{{
scope.row.createdTime | examineType scope.row.status | examineType
}}</span> }}</span>
<el-tooltip <el-tooltip
class="item" class="item"
...@@ -219,41 +211,25 @@ ...@@ -219,41 +211,25 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="commissionType" prop="applyTime"
label="申请时间" label="申请时间"
width="120" width="120"
align="center" align="center"
> >
<template slot-scope="scope">
<span>{{ scope.row.commissionType | commissionTypeFormat }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="commissionPrice" prop="auditName"
label="审核人" label="审核人"
width="120" width="120"
align="center" align="center"
> >
<template slot-scope="scope">
<span v-if="scope.row.commissionType == 1"
>{{ scope.row.commissionPrice | priceNum }}%</span
>
<span v-if="scope.row.commissionType == 2"
>{{ scope.row.commissionPrice | priceNum }}</span
>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="commissionType" prop="auditTime"
label="审核时间" label="审核时间"
width="120" width="120"
align="center" align="center"
> >
<template slot-scope="scope">
<span>{{
scope.row.proxyCommissionType | commissionTypeFormat
}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
...@@ -263,13 +239,10 @@ ...@@ -263,13 +239,10 @@
> >
<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 @click="editDetail(scope.row)" type="text" size="small"
>审核</el-button >审核</el-button
> >
<el-button <el-button @click="lookDetail(scope.row)" type="text" size="small"
@click="orderManage(scope.row)"
type="text"
size="small"
>查看详情</el-button >查看详情</el-button
> >
</div> </div>
...@@ -318,18 +291,11 @@ export default { ...@@ -318,18 +291,11 @@ export default {
return { return {
curmbFirst: "首营资质审核", curmbFirst: "首营资质审核",
tabList: [ tabList: [
{ { id: 0, name: "全部" },
id: 1, { id: 2, name: "待审核" },
name: "全部", { id: 3, name: "审核成功" },
}, { id: 4, name: "审核失败" },
{ { id: 5, name: "作废" },
id: 2,
name: "待审核",
},
{
id: 3,
name: "已审核",
},
], ],
searchForm: { searchForm: {
adminMobileStr: "", adminMobileStr: "",
...@@ -340,7 +306,7 @@ export default { ...@@ -340,7 +306,7 @@ export default {
orgType: "", orgType: "",
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: "", status: 0,
storeNameStr: "", storeNameStr: "",
}, },
orgList: [ orgList: [
...@@ -349,11 +315,6 @@ export default { ...@@ -349,11 +315,6 @@ export default {
{ id: 3, name: "零售-单体药店" }, { id: 3, name: "零售-单体药店" },
{ id: 4, name: "零售-连锁药店" }, { id: 4, name: "零售-连锁药店" },
], ],
statusList: [
{ id: 0, name: "全部" },
{ id: 1, name: "待审核" },
{ id: 2, name: "已审核" },
],
tableData: [ tableData: [
{ {
id: 1, id: 1,
...@@ -365,7 +326,8 @@ export default { ...@@ -365,7 +326,8 @@ export default {
commissionType: 2, commissionType: 2,
}, },
], ],
tabChecked: 1, pageNo: 1,
pageSize: 10,
totalRows: 0, totalRows: 0,
}; };
}, },
...@@ -375,7 +337,9 @@ export default { ...@@ -375,7 +337,9 @@ export default {
methods: { methods: {
init() { init() {
const params = { const params = {
type: Number(this.$route.query.type || 1) , pageSize: this.pageSize,
pageNo: this.pageNo,
type: Number(this.$route.query.type || 1),
...this.searchForm, ...this.searchForm,
}; };
getCertifyList(params).then((res) => { getCertifyList(params).then((res) => {
...@@ -385,8 +349,41 @@ export default { ...@@ -385,8 +349,41 @@ export default {
this.totalRows = total; this.totalRows = total;
}); });
}, },
submitForm() {
this.init();
},
editDetail() {
this.$router.push({path:'/qualification-detail',query:{source:this.$route.query.source}})
},
lookDetail() {},
resetForm() {
(this.searchForm = {
adminMobileStr: "",
adminNameStr: "",
doctorIdStr: "",
doctorNameStr: "",
orgNameStr: "",
orgType: "",
pageNo: this.pageNo,
pageSize: this.pageSize,
status: this.searchForm.status,
storeNameStr: "",
}),
this.init();
},
handleSizeChange(value) {
this.pageSize = value;
this.pageNo = 1;
this.init();
},
handleNumChange(value) {
this.pageNo = value;
this.init();
},
checkTab(item) { checkTab(item) {
this.tabChecked = item.id; this.searchForm.status = item.id;
this.init();
}, },
}, },
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册