This commit is contained in:
faiz 2024-04-11 10:17:09 +08:00
parent 667d40a39a
commit 09b106fec5
6 changed files with 128 additions and 51 deletions

View File

@ -195,6 +195,12 @@ export function productStatusSecondApi(data) {
export function productStatusApi(data) {
return request.post(`store/product/status`, data)
}
/**
* @description 商品审核 -- 最终审核
*/
export function productStatusUnlockApi(data) {
return request.post(`store/product/status_unlock`, data)
}
/**
* @description 秒杀商品审核 -- 表单提交
*/

View File

@ -60,11 +60,11 @@
/>
</el-select>
</el-form-item>
<el-form-item label="关键字:" prop="keyword">
<el-form-item label="商户关键字:" prop="keyword">
<el-input
v-model="tableFrom.keyword"
@keyup.enter.native="getList(1)"
placeholder="请输入商户名称关键字/联系电话"
placeholder="请输入商户名称/企业名称的关键字"
class="selWidth"
clearable
/>
@ -84,11 +84,16 @@
class="switchTable"
>
<el-table-column prop="mer_intention_id" label="ID" min-width="60" />
<el-table-column prop="mer_name" label="商户名称" min-width="150" />
<el-table-column prop="category_name" label="商户分类" min-width="150" />
<el-table-column prop="mer_name" label="店铺名称" min-width="150" />
<el-table-column prop="mer_name" label="企业名称" min-width="150" />
<!-- <el-table-column prop="category_name" label="商户分类" min-width="150" /> -->
<el-table-column prop="type_name" label="店铺类型" min-width="150" />
<el-table-column prop="name" label="商户姓名" min-width="100" />
<el-table-column prop="phone" label="联系方式" min-width="100" />
<el-table-column prop="com.contact" label="对接人姓名" min-width="100" />
<el-table-column prop="com.mobile" label="对接人电话" min-width="100" />
<el-table-column prop="com.number" label="对接人编号" min-width="100" />
<el-table-column prop="com.initiator" label="发起人姓名" min-width="100" />
<el-table-column prop="inti_numbe" label="发起人编号" min-width="100" />
<el-table-column prop="com.inti_mobile" label="发起人编号" min-width="100" />
<el-table-column prop="create_time" label="申请时间" min-width="150" />
<el-table-column prop="create_time" label="资质图片" min-width="150">
<template slot-scope="scope">

View File

@ -1,7 +1,7 @@
<template>
<div>
<el-tabs type="border-card" v-model="activeName">
<el-tab-pane label="基本信息" name="detail">
<!-- <el-tab-pane label="基本信息" name="detail">
<div class="section">
<div class="title">基础信息</div>
<ul class="list">
@ -35,68 +35,76 @@
</li>
</ul>
</div>
</el-tab-pane>
</el-tab-pane> -->
<el-tab-pane label="企业信息" name="business">
<div class="section">
<ul class="list">
<li class="item">
<div>企业名称</div>
<div>店铺名称</div>
<div class="value">
{{merData.com.name}}
{{merData.mer_name}}
</div>
</li>
<li class="item">
<div>企业类型</div>
<div>店铺类型</div>
<div class="value">{{merData.type_name}}</div>
</li>
<li class="item">
<div>企业名称</div>
<div class="value">
{{merData.com.type}}
<!-- {{merData.com.name}} -->
</div>
</li>
<li class="item">
<div>客服电话:</div>
<div>企业类型</div>
<div class="value">
{{ merData.com.service}}
{{merData.com&&merData.com.type}}
</div>
</li>
<li class="item">
<div>更新时间</div>
<div class="value">{{merData.update_time}}</div>
</li>
<li class="item">
<div>企业对接人姓名</div>
<div class="value">
{{ merData.com.contact}}
{{ merData.com&&merData.com.contact}}
</div>
</li>
<li class="item">
<div>企业对接人联系电话</div>
<div class="value">
{{ merData.com.mobile}}
{{ merData.com&&merData.com.mobile}}
</div>
</li>
<li class="item">
<div>企业对接人编号:</div>
<div class="value">
{{ merData.com.number}}
{{ merData.com&&merData.com.number}}
</div>
</li>
<li class="item">
<div>发起人:</div>
<div class="value">
{{ merData.com.initiator}}
{{ merData.com&&merData.com.initiator}}
</div>
</li>
<li class="item">
<div>发起人电话:</div>
<div class="value">
{{ merData.com.inti_mobile}}
{{ merData.com&&merData.com.inti_mobile}}
</div>
</li>
<li class="item item100">
<div>发起人编号:</div>
<div class="value">
{{ merData.com.inti_number}}
{{ merData.com&&merData.com.inti_number}}
</div>
</li>
<li class="item item100">
<div>发起人手持介绍信照片:</div>
<div class="value">
<el-image v-for="(url,i) in merData.com.init_image"
<el-image v-for="(url,i) in merData.com&&merData.com.init_image"
:key="i"
style="width: 100px; height: 100px"
:src="url"
@ -107,13 +115,13 @@
<li class="item item100">
<div>是否惠美乡村店铺:</div>
<div class="value">
{{ merData.com.is_huimei? '是': '否'}}
{{ merData.com&&merData.com.is_huimei? '是': '否'}}
</div>
</li>
<li class="item item100">
<div>惠美乡村红头文件:</div>
<div class="value">
<el-image v-for="(url,i) in merData.com.image_huimei"
<el-image v-for="(url,i) in merData.com&&merData.com.image_huimei"
:key="i"
style="width: 100px; height: 100px"
:src="url"
@ -124,13 +132,13 @@
<li class="item item100">
<div>是否退伍军人:</div>
<div class="value">
{{ merData.com.is_soldier? '是': '否'}}
{{ merData.com&&merData.com.is_soldier? '是': '否'}}
</div>
</li>
<li class="item item100">
<div>退伍军人证件照:</div>
<div class="value">
<el-image v-for="(url,i) in merData.com.image_soldier"
<el-image v-for="(url,i) in merData.com&&merData.com.image_soldier"
:key="i"
style="width: 100px; height: 100px"
:src="url"
@ -219,6 +227,12 @@
<div>实际经营地址</div>
<div class="value">{{merData.biz.address_true}}</div>
</li>
<li class="item">
<div>经营范围</div>
<div class="value">
{{merData.bank.bankCardUserName}}
</div>
</li>
</ul>
</div>
</el-tab-pane>
@ -245,7 +259,7 @@
<div class="value">{{merData.bank.bankBranchName}}</div>
</li>
<li class="item">
<div>营业执照地址</div>
<div>开户许可证(或基本存款信息)</div>
<div class="value">
<el-image v-for="(url,i) in merData.bank.bankCardImg"
:key="i"
@ -255,6 +269,10 @@
</el-image>
</div>
</li>
<li class="item">
<div>联行号</div>
<div class="value">{{merData.bank.bankBranchName}}</div>
</li>
</ul>
</div>
</el-tab-pane>
@ -287,7 +305,7 @@ export default {
loading: true,
merId: '',
direction: 'rtl',
activeName: 'detail',
activeName: 'business',
timeVal: [],
tableDataLog: {
data: [],

View File

@ -76,7 +76,7 @@
<el-form-item label="审核状态:" prop="is_audited">
<el-select v-model="tableFrom.is_audited" placeholder="请选择" class="filter-item selWidth" clearable @change="getList(1)">
<el-option label="首次提报" value="0" />
<el-option label="非首次提报" value="1" />
<el-option label="已上架提报" value="1" />
<el-option label="首次修改" value="2" />
</el-select>
</el-form-item>
@ -185,11 +185,13 @@
<span>{{ scope.row.us_status | productStatusFilter }}</span>
</template>
</el-table-column>
<el-table-column prop="refusal" label="拒绝/锁定原因" min-width="110" />
<el-table-column prop="create_time" label="创建时间" min-width="120" />
<el-table-column v-if="Number(tableFrom.type) != 7" key="8" label="操作" min-width="210" fixed="right">
<template slot-scope="scope">
<el-button type="text" size="small" @click="onDetails(scope.row.product_id)">详情</el-button>
<el-button v-if="tableFrom.type === '6' || tableFrom.type === '10' || tableFrom.type === '11'" type="text" size="small" @click.native="toExamine(scope.row.product_id)">{{ getStatusName(scope.row.status) }}</el-button>
<el-button v-if="tableFrom.type === '6' || tableFrom.type === '10' || tableFrom.type === '11'" type="text" size="small" @click.native="toExamine(scope.row.product_id)">审核</el-button>
<el-button v-if="scope.row.status == 15" type="text" size="small" @click.native="toExamine(scope.row.product_id)">解锁</el-button>
<el-button type="text" size="small" class="mr10" @click="handlePreview(scope.row.product_id)">预览</el-button>
<el-dropdown>
<span class="el-dropdown-link">
@ -435,7 +437,7 @@ export default {
{ label: "2星", value: 2 },
{ label: "1星", value: 1 }
],
auditedList:['首次提报','非首次提报','首次修改'],
auditedList:['首次提报','已上架提报','首次修改'],
recommend: proOptions,
recommendList: [{
name: '热门榜单',
@ -532,16 +534,6 @@ export default {
this.getLabelLst()
},
methods: {
getStatusName(val){
switch (val) {
case 0:
return '初始审核';
case 10:
return '二次审核';
case 11:
return '最终审核';
}
},
//
onchangeTime(e) {
this.timeVal = e

View File

@ -32,7 +32,7 @@
<span class="sp">商品id{{ projectData.product_id }}</span>
<span class="sp">商品名称{{ projectData.store_name }}</span>
<span class="sp">平台分类{{ projectData.storeCategory?projectData.storeCategory.cate_name:'' }}</span>
<span class="sp">品牌{{ projectData.brand?projectData.brand.brand_name:'其他' }}</span>
<!-- <span class="sp">品牌{{ projectData.brand?projectData.brand.brand_name:'其他' }}</span> -->
<span class="sp">商品关键字{{ projectData.keyword }}</span>
<span class="sp">商品单位{{ projectData.unit_name }}</span>
<span class="sp">
@ -110,6 +110,24 @@
</div>
</div>
</span>
<span class="upload">
<div class="upload_left">生产许可证</div>
<div class="upload_right">
<div
v-for="(item,index) in qualification.licenceList"
:key="index"
>
<a class="txt" v-if="getType(item)" :href="item.url" target="downloadFile" download>{{ item.name }}</a>
<div class="pictrue" v-else>
<el-image
style="width: 60px; height: 60px;"
:src="item.url"
:preview-src-list="[item.url]"
/>
</div>
</div>
</div>
</span>
<span class="upload">
<div class="upload_left">商标注册证</div>
<div class="upload_right">
@ -316,7 +334,8 @@
</el-table-column>
<el-table-column v-for="(item,iii) in attrValue" :key="iii" :label="formThead[iii].title" align="center" min-width="120">
<template slot-scope="scope">
<span class="priceBox" v-text="scope.row[iii]" />
<a v-if="iii==='gist_url'" :href="scope.row[iii]" target="_blank">{{ scope.row[iii] }}</a>
<span v-else class="priceBox" v-text="scope.row[iii]" />
</template>
</el-table-column>
<template v-if="projectData.extension_type === 1">
@ -372,10 +391,11 @@
</el-tab-pane>
</el-tabs>
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="80px" class="demo-ruleForm">
<el-form-item label="审核状态" prop="status">
<el-form-item :label="projectData.status == 15?'解锁状态':'审核状态'" prop="status">
<el-radio-group v-model="ruleForm.status">
<el-radio :label="1">通过</el-radio>
<el-radio :label="-1">拒绝</el-radio>
<el-radio v-if="projectData.status == 0" :label="-1">拒绝</el-radio>
<el-radio v-if="projectData.status == 10 || projectData.status == 11" :label="15">锁定</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="佐证图片" prop="status_img" label-width="80px">
@ -428,7 +448,7 @@
</div>
</div>
</el-form-item> -->
<el-form-item v-if="ruleForm.status===-1" label="原因" prop="refusal">
<el-form-item v-if="ruleForm.status===-1 || ruleForm.status===15" :label="projectData.status != 0 ?'锁定原因':'拒绝原因'" prop="refusal">
<el-input v-model="ruleForm.refusal" type="textarea" placeholder="请输入原因" />
</el-form-item>
</el-form>
@ -449,7 +469,7 @@
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import { productDetailApi, productStatusApi,productStatusFirstApi,productStatusSecondApi } from '@/api/product'
import { productStatusUnlockApi,productDetailApi, productStatusApi,productStatusFirstApi,productStatusSecondApi } from '@/api/product'
const defaultObj = {
image: '',
slider_image: [],
@ -656,6 +676,10 @@ export default {
11: {
'api': productStatusApi,
'status':1
},
'15': {
'api': productStatusUnlockApi,
'status':10
}
}
this.$refs.ruleForm.validate(valid=>{
@ -663,7 +687,7 @@ export default {
this.isShow ? this.ruleForm.id = this.proId : this.ruleForm.id = this.ids
let params = {
...this.ruleForm,
status: this.ruleForm.status==-1?-1:mode[this.projectData.status].status,
status: this.ruleForm.status==-1?-1:this.ruleForm.status ==15?15:mode[this.projectData.status].status,
}
mode[this.projectData.status].api(params).then(res => {
this.$message.success(res.message)

View File

@ -145,7 +145,7 @@
</li>
</ul>
</div>
<div class="section">
<!-- <div class="section">
<ul class="list">
<li class="item" v-if="productData.refusal">
<div class="item-title">审核拒绝原因</div>
@ -156,7 +156,7 @@
<el-image v-for="(item,index) in productData.status_img" :key="index" :src="item" style="width:40px;height:40px;margin-right:12px;" :preview-src-list="productData.status_img" />
</li>
</ul>
</div>
</div> -->
<div class="section" style="margin-top: 50px;">
<div class="title">规格列表</div>
<div class="list">
@ -510,6 +510,20 @@
</div>
</div>
</el-tab-pane>
<el-tab-pane label="审核回复栏" name="audit">
<div class="section">
<ul class="list">
<li class="item" v-if="productData.refusal">
<div class="item-title">审核拒绝原因</div>
<div class="value">{{productData.refusal || ''}}</div>
</li>
<li class="item item100">
<div class="item-title">佐证图片</div>
<el-image v-for="(item,index) in productData.status_img" :key="index" :src="item" style="width:40px;height:40px;margin-right:12px;" :preview-src-list="productData.status_img" />
</li>
</ul>
</div>
</el-tab-pane>
<el-tab-pane label="资质信息" name="aptitude">
<span class="sp">商品名称
<el-radio-group v-model="qualification.commodity_type">
@ -537,6 +551,24 @@
</div>
</div>
</span>
<span class="upload">
<div class="upload_left">生产许可证</div>
<div class="upload_right">
<div
v-for="(item,index) in qualification.licenceList"
:key="index"
>
<a class="txt" v-if="getType(item)" :href="item.url" target="downloadFile" download>{{ item.name }}</a>
<div class="pictrue" v-else>
<el-image
style="width: 60px; height: 60px;"
:src="item.url"
:preview-src-list="[item.url]"
/>
</div>
</div>
</div>
</span>
<span class="upload">
<div class="upload_left">商标注册证</div>
<div class="upload_right">