|
@@ -156,6 +156,13 @@
|
|
v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
|
|
v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
|
|
<el-button slot="reference" type="text">撤回</el-button>
|
|
<el-button slot="reference" type="text">撤回</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ style="margin-right: 10px;"
|
|
|
|
+ title="确定弃审吗?"
|
|
|
|
+ @onConfirm="handleAbandon(scope.row.enginInfoId)"
|
|
|
|
+ v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
|
|
|
|
+ <el-button slot="reference" type="text">弃审</el-button>
|
|
|
|
+ </el-popconfirm>
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
@click="toForm(scope.row)"
|
|
@click="toForm(scope.row)"
|
|
@@ -210,7 +217,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getEnginList, applyEngin, withdrawEngin, deleteEngin, editDateEngin } from "@/api/supply/engin";
|
|
|
|
|
|
+import { getEnginList, applyEngin, withdrawEngin, deleteEngin, editDateEngin, abandonEngin } from "@/api/supply/engin";
|
|
import { getSalesmanList } from '@/api/common'
|
|
import { getSalesmanList } from '@/api/common'
|
|
import EnginDetail from "@/views/supply/engin/components/engin_detail";
|
|
import EnginDetail from "@/views/supply/engin/components/engin_detail";
|
|
import EnginForm from "@/views/supply/engin/components/engin_form";
|
|
import EnginForm from "@/views/supply/engin/components/engin_form";
|
|
@@ -412,6 +419,14 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ // 弃审
|
|
|
|
+ handleAbandon(id) {
|
|
|
|
+ abandonEngin({id}).then(res => {
|
|
|
|
+ this.$successMsg();
|
|
|
|
+ this.getList();
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
// 删除
|
|
// 删除
|
|
handleDelete(id) {
|
|
handleDelete(id) {
|
|
deleteEngin({ids: id}).then(res => {
|
|
deleteEngin({ids: id}).then(res => {
|