|
@@ -120,24 +120,21 @@
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
- <div class="form-btns-container" style="height: 40px">
|
|
|
+ <div class="form-btns-container" style="height: 40px" v-if="!stopUseBack">
|
|
|
<el-button size="small" icon="close" v-if="!isView || emptyForm.status !== 3"
|
|
|
style="float: right; margin-left: 12px; margin-right: 12px" @click="close">
|
|
|
取消
|
|
|
</el-button>
|
|
|
- <div v-if="!isView || emptyForm.status !== 3">
|
|
|
- <el-button type="primary" size="small" icon="Finished"
|
|
|
+
|
|
|
+ <el-button type="primary" size="small" icon="Finished" v-if="!isView || emptyForm.status !== 3"
|
|
|
v-hasPermi="['business:individualIncomeTaxDetail:saveDetail']" style="float: right" @click="handleSave">
|
|
|
保存
|
|
|
</el-button>
|
|
|
- </div>
|
|
|
- <div v-if="!stopUseBack" >
|
|
|
- <el-button v-hasPermi="['business:individualIncomeTaxDetail:deductionTurnBack']" icon="back" type="warning" size="small"
|
|
|
- style="float: right;" :disabled="(emptyForm == null || emptyForm.status !== 3) "
|
|
|
- @click="turnBack(emptyForm)">
|
|
|
- 退回
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
+ <el-button v-hasPermi="['business:individualIncomeTaxDetail:deductionTurnBack']" icon="back" type="warning"
|
|
|
+ size="small" style="float: right;" :disabled="(emptyForm == null || emptyForm.status !== 3) "
|
|
|
+ @click="turnBack(emptyForm)">
|
|
|
+ 退回
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -272,8 +269,6 @@
|
|
|
mainInfo.value.detail = response.data;
|
|
|
reportFiles.value = response.data.reportFiles;
|
|
|
emptyForm.value = response.data;
|
|
|
-
|
|
|
- console.log(123, emptyForm.value.status);
|
|
|
loadData(id);
|
|
|
});
|
|
|
}
|
|
@@ -323,7 +318,11 @@
|
|
|
const month = proxy.moment(currentMonth.value).format("MM");
|
|
|
|
|
|
if (nowyear + nowmonth == year + month) {
|
|
|
- isView.value = false
|
|
|
+ if(emptyForm.value.status === 3 ){
|
|
|
+ isView.value =true
|
|
|
+ }else{
|
|
|
+ isView.value =false
|
|
|
+ }
|
|
|
stopUseBack.value = false
|
|
|
} else {
|
|
|
stopUseBack.value = true
|