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