|
@@ -118,6 +118,13 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
|
<el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审批</el-button>
|
|
|
+ <el-popconfirm
|
|
|
+ style="margin-left: 10px;"
|
|
|
+ title="确定弃审吗?"
|
|
|
+ @onConfirm="handleAbandon(scope.row.id)"
|
|
|
+ v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
|
|
|
+ <el-button slot="reference" type="text">弃审</el-button>
|
|
|
+ </el-popconfirm>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -147,7 +154,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getList, examineJudge, examineBatch } from "@/api/supply/sales";
|
|
|
+import { getList, examineJudge, examineBatch, abandonData } from "@/api/supply/sales";
|
|
|
import SalesDetail from "@/views/supply/sales/components/sales_detail";
|
|
|
import SalesExamine from "@/views/supply/sales/components/sales_examine";
|
|
|
import ExamineDialog from "@/components/Common/examine-dialog";
|
|
@@ -206,7 +213,7 @@ export default {
|
|
|
examineForm: {
|
|
|
status: '',
|
|
|
remark: '',
|
|
|
- }
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -346,6 +353,14 @@ export default {
|
|
|
this.$successMsg('修改成功');
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ // 弃审
|
|
|
+ handleAbandon(id) {
|
|
|
+ abandonData({id}).then(res => {
|
|
|
+ this.$successMsg();
|
|
|
+ this.getList();
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|