优化新购页面按钮不显示问题

This commit is contained in:
BianLzhaoMin 2024-06-07 13:34:00 +08:00
parent c57c539f51
commit 300c85c369
3 changed files with 35 additions and 15 deletions

View File

@ -0,0 +1,28 @@
<template>
<!-- 页头提示 -->
<el-page-header @back="goBack" :content="pageContent"> </el-page-header>
</template>
<script>
export default {
props: {
pageContent: {
type: String,
default: '详情',
},
},
methods: {
goBack() {
this.$emit('goBack')
},
},
}
</script>
<style>
.el-page-header {
padding-bottom: 5px;
margin-bottom: 10px;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}
</style>

View File

@ -180,7 +180,7 @@
v-if="
scope.row.purchasingStatus != '已入库' &&
scope.row.purchasingStatus != '已审核' &&
scope.row.purchasingStatus != '验收合格' &&
scope.row.purchasingStatus != '验收合格' &&
scope.row.purchasingStatus != '待审核' &&
scope.row.purchasingStatus != '验收不通过' &&
scope.row.purchasingStatus != '驳回'
@ -194,9 +194,8 @@
type="text"
icon="el-icon-edit"
v-if="
(scope.row.purchasingStatus == '已验收合格' ||
scope.row.purchasingStatus == '待审核') &&
scope.row.manageType != '1'
scope.row.purchasingId == 26 &&
scope.row.manageType == 0
"
@click="handleCode(scope.row)"
v-hasPermi="['newPurchase:tools:coding']"
@ -207,10 +206,8 @@
type="text"
icon="el-icon-edit"
v-if="
scope.row.purchasingStatus == '已验收合格' ||
scope.row.purchasingStatus == '已入库' ||
scope.row.purchasingStatus == '已审核' ||
scope.row.purchasingStatus == '待审核'
scope.row.purchasingId == 26 ||
scope.row.purchasingId == 28
"
@click="handlePrint(scope.row)"
>验收单</el-button
@ -220,12 +217,7 @@
size="mini"
type="text"
icon="el-icon-delete"
v-if="
scope.row.purchasingStatus != '已入库' &&
scope.row.purchasingStatus != '已审核' &&
scope.row.purchasingStatus != '已验收合格' &&
scope.row.purchasingStatus != '待审核'
"
v-if="scope.row.purchasingId == 25"
@click="handleDelete(scope.row)"
v-hasPermi="['newPurchase:tools:del']"
>删除</el-button

View File

@ -1,5 +1,5 @@
<template>
<div class="app-container" id="newDevicesAccept">
<div>
<el-form
:model="queryParams"
ref="queryForm"