|
@@ -139,6 +139,9 @@
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
<el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')">编辑</el-button>
|
|
<el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')">编辑</el-button>
|
|
<el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审批</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.parentId)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
|
|
|
|
+ <el-button slot="reference" type="text">弃审</el-button>
|
|
|
|
+ </el-popconfirm>
|
|
<el-button type="text" @click="toReturn(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus !== 'FAIL'">退订</el-button>
|
|
<el-button type="text" @click="toReturn(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus !== 'FAIL'">退订</el-button>
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
<el-popconfirm style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.parentId)" v-if="$checkBtnRole('del', $route.meta.roles)">
|
|
<el-popconfirm style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.parentId)" v-if="$checkBtnRole('del', $route.meta.roles)">
|
|
@@ -175,7 +178,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getOrderList, applyHome, withdrawHome, deleteHome, editDateHome } from "@/api/supply/engin";
|
|
|
|
|
|
+import { getOrderList, applyHome, withdrawHome, deleteHome, editDateHome, abandonHome } from "@/api/supply/engin";
|
|
import HomeDetail from "@/views/supply/engin/components/home_detail";
|
|
import HomeDetail from "@/views/supply/engin/components/home_detail";
|
|
import HomeForm from "@/views/supply/engin/components/home_form";
|
|
import HomeForm from "@/views/supply/engin/components/home_form";
|
|
import HomeExamine from "@/views/supply/engin/components/home_examine";
|
|
import HomeExamine from "@/views/supply/engin/components/home_examine";
|
|
@@ -376,6 +379,14 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ // 弃审
|
|
|
|
+ handleAbandon(id) {
|
|
|
|
+ abandonHome({id}).then(res => {
|
|
|
|
+ this.$successMsg();
|
|
|
|
+ this.getList();
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
// 删除
|
|
// 删除
|
|
handleDelete(id) {
|
|
handleDelete(id) {
|
|
deleteHome({ids: id}).then(res => {
|
|
deleteHome({ids: id}).then(res => {
|