Compare commits
No commits in common. "e69209938d0d1ec4d06d3c2ab34b1da332c9101c" and "2c062ae2d71c7f9dd4816f6435356736665ce913" have entirely different histories.
e69209938d
...
2c062ae2d7
@ -177,26 +177,14 @@ 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] 存在
|
this.$message.warning('您的审核状态为待审核,请等待审核通过后发布~')
|
||||||
if (hasAuditInfo && dataList[0]) {
|
} else if (hasAuditInfo || !isCustomer) {
|
||||||
const auditStatus = dataList[0].audit_status
|
|
||||||
|
|
||||||
if (auditStatus === 'pending') {
|
|
||||||
this.$message.warning('您的审核状态为待审核,请等待审核通过后发布~')
|
|
||||||
} else if (auditStatus === 'rejected') {
|
|
||||||
this.$message.warning('您的审核状态为驳回,请重新提交~')
|
|
||||||
} else {
|
|
||||||
// 审核通过或其他状态,允许发布
|
|
||||||
this.publish_type = type
|
|
||||||
this.sendProductVisible = true
|
|
||||||
}
|
|
||||||
} else if (!isCustomer) {
|
|
||||||
// 非客户角色,允许发布
|
|
||||||
this.publish_type = type
|
this.publish_type = type
|
||||||
this.sendProductVisible = true
|
this.sendProductVisible = true
|
||||||
|
} else if(res.data.data[0].audit_status==='rejected') {
|
||||||
|
this.$message.warning('您的审核状态为驳回,请重新提交~')
|
||||||
} else {
|
} else {
|
||||||
// 没有审核信息且是客户角色,显示提示
|
|
||||||
this.showTip = true
|
this.showTip = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -43,16 +43,6 @@
|
|||||||
</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>
|
||||||
@ -337,7 +327,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;
|
||||||
@ -434,7 +424,6 @@ 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;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -473,10 +462,10 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|
||||||
|
|
||||||
.category-tag {
|
.category-tag {
|
||||||
|
|
||||||
padding: 3px 6px;
|
padding: 3px 6px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1px solid #e8e8e8;
|
border: 1px solid #e8e8e8;
|
||||||
@ -485,7 +474,6 @@ 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