Prechádzať zdrojové kódy

fix: 修复底部按钮显示逻辑,确保在添加状态下也能显示

xieyong 3 týždňov pred
rodič
commit
edabb048c6

+ 1 - 1
src/views/entrust/components/goodsDetail.vue

@@ -62,7 +62,7 @@
       </template>
     </ele-pro-table>
 
-    <template v-slot:footer v-if="type != 'detail' && itemData.sendStatus != 4 && !isReceiptDetail">
+    <template v-slot:footer v-if="type != 'detail' && itemData.sendStatus != 4 && (!isReceiptDetail || type === 'add')">
       <el-button @click="cancel">取消</el-button>
       <el-button @click="rejectReason" type="primary" v-if="type == 'receipt'"
         >驳回</el-button