Parcourir la source

fix: 更新收货数量输入框和底部按钮的禁用逻辑,确保在收货详情时正确处理状态

xieyong il y a 1 mois
Parent
commit
b21f1d9d3b
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      src/views/entrust/components/goodsDetail.vue

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

@@ -41,7 +41,7 @@
         <el-input
           placeholder=""
           v-model="row.receiveQuantity"
-          :disabled="type == 'receipt' && (itemData.sendStatus == 4 || itemData.sendStatus == 3)"
+          :disabled="(type == 'receipt' && (itemData.sendStatus == 4 || itemData.sendStatus == 3)) || isReceiptDetail"
         >
           <template slot="append">{{ row.measuringUnit }}</template>
         </el-input>
@@ -62,7 +62,7 @@
       </template>
     </ele-pro-table>
 
-    <template v-slot:footer v-if="type != 'detail' && itemData.sendStatus != 4">
+    <template v-slot:footer v-if="type != 'detail' && itemData.sendStatus != 4 && !isReceiptDetail">
       <el-button @click="cancel">取消</el-button>
       <el-button @click="rejectReason" type="primary" v-if="type == 'receipt'"
         >驳回</el-button
@@ -231,7 +231,7 @@
             label: '是否收货',
             align: 'center',
             showOverflowTooltip: true,
-            show: this.type == 'receipt' && !this.isReceiptDetail ? true : false
+            show: this.type == 'receipt' && this.isReceiptDetail
           }
         ];
       }