|
@@ -189,7 +189,7 @@
|
|
|
<span v-hasPermi="['order:viewers:tuikuai']" style="display: inline-block;">
|
|
|
<el-button
|
|
|
style="margin-left: 10px;"
|
|
|
- v-if="(scope.row.status == 3 || scope.row.status == 6 || scope.row.status == 7 || scope.row.status == 8) && (scope.row.source != 6 && scope.row.ifReSubmit != 1)" size="mini" type="text"
|
|
|
+ v-if="isShowBtn(scope.row)" size="mini" type="text"
|
|
|
@click="openRefundSubmitModel([scope.row])"
|
|
|
>退款</el-button>
|
|
|
</span>
|
|
@@ -749,6 +749,16 @@ export default {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
+ // 判断退款按钮 显示
|
|
|
+ isShowBtn(row) {
|
|
|
+ let isshow = false;
|
|
|
+ if((row.status == 3 || row.status == 6 || row.status == 7 || row.status == 8) && (row.source == 6 && row.ifReSubmit != 1)){
|
|
|
+ isshow = true
|
|
|
+ } else if((row.status == 3 || row.status == 6 || row.status == 7 || row.status == 8) && (row.source != 6)){
|
|
|
+ isshow = true
|
|
|
+ }
|
|
|
+ return isshow
|
|
|
+ },
|
|
|
/** 打开弹窗 */
|
|
|
openRefundSubmitModel(data, type) {
|
|
|
// 判断是否需要弹出确认框
|