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

feat:供货商资质

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