| | |
| | | <el-button slot="reference" type="primary" size="mini" plain>快捷下发</el-button> |
| | | </el-popover> |
| | | <el-button size="mini" plain type="success" @click="handleAdd">手动新增工单</el-button> |
| | | <el-popconfirm |
| | | @confirm="delDistribute" |
| | | title="确定要删除所选工单吗?" |
| | | > |
| | | <el-button size="mini" plain type="danger" class="op" slot="reference">批量删除</el-button> |
| | | </el-popconfirm> |
| | | <el-popconfirm |
| | | @confirm="allDistribute" |
| | | title="确定要下发所有工单吗?" |
| | | > |
| | | <el-button size="mini" plain type="danger" class="op" slot="reference">全部下发</el-button> |
| | | </el-popconfirm> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="page"></right-toolbar> |
| | | </el-row> |
| | | </el-row> |
| | |
| | | import {distributeWorkOrder, fastDistribute, addWorkOrder, updateWorkOrder, selectedIdsDistribute, errorTypeAll} from '@/api/platform/work-order' |
| | | import {workList} from "@/api/platform/unit"; |
| | | import { pointSelectData } from "@/api/platform/point"; |
| | | import {delWorkOrder} from "../../../../api/platform/work-order"; |
| | | import {delWorkOrder,delWorkOrderByIds} from "../../../../api/platform/work-order"; |
| | | export default { |
| | | dicts: ['error_type'], |
| | | name: 'Work-order-distribute', |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | delDistribute(){ |
| | | console.log(this.multipleSelection) |
| | | this.multipleSelection.forEach(item =>{ |
| | | console.log(item) |
| | | }) |
| | | delWorkOrderByIds(this.multipleSelection).then(res =>{ |
| | | if (res.code === 200){ |
| | | this.$message.success("删除成功!") |
| | | } |
| | | this.page(); |
| | | }) |
| | | }, |
| | | delWorkOrderClick(row){ |
| | | delWorkOrder(row.id) |
| | | this.page() |