| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row class="op-warp" type="flex" justify="left" > |
| | | <el-col :span="24"> |
| | | <el-button size="small" type="info" @click="selectedDistribute" class="op">下发选中工单</el-button> |
| | | <el-row class="op-warp"> |
| | | <el-row v-show="showSearch"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true"> |
| | | <el-form-item label="关键词" prop="keyword"> |
| | | <el-input |
| | | v-model="queryParams.menuName" |
| | | placeholder="关键词搜索" |
| | | clearable |
| | | @keyup.enter.native="page" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="下发状态" prop="status"> |
| | | <el-select v-model="queryParams.status" @change="page" placeholder="下发状态" clearable> |
| | | <el-option label="未下发" value="WAIT_DISTRIBUTE"/> |
| | | <el-option label="已下发" value="DISTRIBUTED"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="page">搜索</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-button size="mini" plain type="info" @click="selectedDistribute" class="op">下发选中工单</el-button> |
| | | <el-popconfirm |
| | | @confirm="allDistribute" |
| | | title="确定要下发所有工单吗?" |
| | | > |
| | | <el-button size="small" type="danger" class="op" slot="reference">全部下发</el-button> |
| | | <el-button size="mini" plain type="danger" class="op" slot="reference">全部下发</el-button> |
| | | </el-popconfirm> |
| | | |
| | | <el-popover |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="数量限制" prop="fastNumLimit"> |
| | | <el-input v-model="fastDistributeForm.fastNumLimit" size="small" type="number" placeholder="此次工单下发最大数量"></el-input> |
| | | <el-input v-model="fastDistributeForm.fastNumLimit" type="number" placeholder="此次工单下发最大数量"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" size="small" @click="fastDistribute">立即下发</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-button slot="reference" type="primary" size="small">快捷下发</el-button> |
| | | <el-button slot="reference" type="primary" size="mini" plain>快捷下发</el-button> |
| | | </el-popover> |
| | | <el-button size="small" type="primary" @click="page">刷新</el-button> |
| | | <el-button size="small" type="primary" @click="handleAdd">新增</el-button> |
| | | </el-col> |
| | | <el-button size="mini" plain type="success" @click="handleAdd">手动新增工单</el-button> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="page"></right-toolbar> |
| | | </el-row> |
| | | </el-row> |
| | | |
| | | <el-row class="content-warp" type="flex" justify="left"> |
| | |
| | | name: 'index', |
| | | data() { |
| | | return { |
| | | showSearch: true, |
| | | selectedIdsDistributeForm: { |
| | | ids: [], |
| | | unitId: null |
| | |
| | | }, |
| | | queryParams: { |
| | | unitId: null, |
| | | keyword: '', |
| | | status: 'WAIT_DISTRIBUTE', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | |
| | | this.page(); |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | // 选中工单下发 |
| | | selectedDistribute() { |
| | | if (this.multipleSelection.length < 1) { |
| | | this.$message.warning("请先选择要下发的工单") |
| | | return |
| | | } |
| | | } |
| | | this.selectedIdsDistributeForm.unitId = this.unitId; |
| | | this.selectedIdsDistributeForm.ids = this.multipleSelection; |
| | | selectedIdsDistribute(this.selectedIdsDistributeForm).then(res => { |