Explorar o código

fix:优化退款管理申请类型逾期时,申请类型退款禁用功能

lazy hai 6 meses
pai
achega
600276ed05
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/views/refundManage/components/refundApplyContent.vue

+ 3 - 2
src/views/refundManage/components/refundApplyContent.vue

@@ -47,7 +47,7 @@
         <cy-info-title style="margin-top: 20px">{{ getApplyDetailsDesc(item) }}</cy-info-title>
         <el-form-item label="申请类型" class="form-required">
           <el-radio-group v-model="item.applyType">
-            <el-radio :label="1" :disabled="disabled">退款</el-radio>
+            <el-radio :label="1" :disabled="disabled || (item.firstApplayDisable && item.firstApplayDisable === true)">退款</el-radio>
             <el-radio :label="2" :disabled="disabled">抵扣</el-radio>
           </el-radio-group>
         </el-form-item>
@@ -379,8 +379,9 @@ export default {
         console.log(res)
         if (res.data && res.data.length) {
           for (let i = 0; i < res.data.length; i++) {
-            // 如果默认抵扣的话那么只显示申请类型其他信息隐藏
+            // 如果默认抵扣的话那么只显示申请类型其他信息隐藏 + 如果默认抵扣的话退款类型禁用
             if (res.data[i] && res.data[i].overdue) {
+              res.data[i].firstApplayDisable = true
               res.data[i].applyType = 2
             }
           }