commit
e69209938d
@ -177,14 +177,26 @@ export default Vue.extend({
|
|||||||
const hasAuditInfo = Array.isArray(dataList) && dataList.length !== 0
|
const hasAuditInfo = Array.isArray(dataList) && dataList.length !== 0
|
||||||
const roles = sessionStorage.getItem('jueseNew')
|
const roles = sessionStorage.getItem('jueseNew')
|
||||||
const isCustomer = roles ? roles.includes('客户') : true
|
const isCustomer = roles ? roles.includes('客户') : true
|
||||||
if(res.data.data[0].audit_status==='pending') {
|
|
||||||
|
// 安全检查:确保 data[0] 存在
|
||||||
|
if (hasAuditInfo && dataList[0]) {
|
||||||
|
const auditStatus = dataList[0].audit_status
|
||||||
|
|
||||||
|
if (auditStatus === 'pending') {
|
||||||
this.$message.warning('您的审核状态为待审核,请等待审核通过后发布~')
|
this.$message.warning('您的审核状态为待审核,请等待审核通过后发布~')
|
||||||
} else if (hasAuditInfo || !isCustomer) {
|
} else if (auditStatus === 'rejected') {
|
||||||
this.publish_type = type
|
|
||||||
this.sendProductVisible = true
|
|
||||||
} else if(res.data.data[0].audit_status==='rejected') {
|
|
||||||
this.$message.warning('您的审核状态为驳回,请重新提交~')
|
this.$message.warning('您的审核状态为驳回,请重新提交~')
|
||||||
} else {
|
} else {
|
||||||
|
// 审核通过或其他状态,允许发布
|
||||||
|
this.publish_type = type
|
||||||
|
this.sendProductVisible = true
|
||||||
|
}
|
||||||
|
} else if (!isCustomer) {
|
||||||
|
// 非客户角色,允许发布
|
||||||
|
this.publish_type = type
|
||||||
|
this.sendProductVisible = true
|
||||||
|
} else {
|
||||||
|
// 没有审核信息且是客户角色,显示提示
|
||||||
this.showTip = true
|
this.showTip = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -43,6 +43,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="category-section">
|
||||||
|
<div class="category-title">所属品类</div>
|
||||||
|
<div class="category-tags">
|
||||||
|
<span v-for="category in typeList" :key="category.id"
|
||||||
|
:class="['category-tag', { active: selectedCategory === category.value }]"
|
||||||
|
@click="selectCategory(category.value)">
|
||||||
|
{{ category.label }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- 公司类别 -->
|
<!-- 公司类别 -->
|
||||||
<div class="category-section">
|
<div class="category-section">
|
||||||
<div class="category-title">公司类别</div>
|
<div class="category-title">公司类别</div>
|
||||||
@ -327,7 +337,7 @@ export default {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #e8e8e8;
|
border: 1px solid #e8e8e8;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
font-size: 16px!important;
|
font-size: 16px !important;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
@ -424,6 +434,7 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
max-width: 1600px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -474,6 +485,7 @@ export default {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: #1890ff;
|
border-color: #1890ff;
|
||||||
color: #1890ff;
|
color: #1890ff;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user