Commit d0a46a94 authored by yanzhengyang's avatar yanzhengyang

出差申请-去报销bug修复

parent 5fd1bf47
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<el-tooltip content="去报销" placement="top"> <el-tooltip content="去报销" placement="top">
<el-button link type="text" @click="handleReimbursement(scope.row)" v-if="!printDis(scope.row)"> <el-button link type="text" @click="handleReimbursement(scope.row)" v-if="!printDis(scope.row)" :disabled="goReimburse(scope.row)">
<img src="@/assets/icons/common/reimbursement.png" height="32" width="32"/> <img src="@/assets/icons/common/reimbursement.png" height="32" width="32"/>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
...@@ -212,6 +212,10 @@ const isExpanded = ref(false); ...@@ -212,6 +212,10 @@ const isExpanded = ref(false);
const printDis = (row) => { const printDis = (row) => {
return row.status !== 3; return row.status !== 3;
} }
//是否禁用按钮
const goReimburse = (row) => {
return row.amount !== 0;
}
const data = reactive({ const data = reactive({
form: {}, form: {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment