|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<!--玻璃饼-->
|
|
|
|
|
<avue-crud
|
|
|
|
|
:option="option"
|
|
|
|
|
:table-loading="loading"
|
|
|
|
|
:data="data"
|
|
|
|
|
v-model="form"
|
|
|
|
|
v-model:page="page"
|
|
|
|
|
ref="crud"
|
|
|
|
|
@row-del="rowDel"
|
|
|
|
|
@search-change="searchChange"
|
|
|
|
|
@search-reset="searchReset"
|
|
|
|
|
@selection-change="selectionChange"
|
|
|
|
|
@current-change="currentChange"
|
|
|
|
|
@size-change="sizeChange"
|
|
|
|
|
@refresh-change="refreshChange"
|
|
|
|
|
@on-load="onLoad"
|
|
|
|
|
>
|
|
|
|
|
<template #menu-left>
|
|
|
|
|
<!-- <el-button type="primary" @click="handlePrintTags">过程记录打印</el-button> -->
|
|
|
|
|
<!-- <el-button type="primary" @click="priorityFn">优先级调整</el-button> -->
|
|
|
|
|
</template>
|
|
|
|
|
<template #menu-right>
|
|
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('3,4,5,6')">在制品</el-button>
|
|
|
|
|
<el-button type="warning" plain @click="queryOrdersHandle('3')">加工中</el-button>
|
|
|
|
|
<el-button type="danger" plain @click="queryOrdersHandle('4')">检验中</el-button>
|
|
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button>
|
|
|
|
|
<!-- <el-button type="primary" @click="queryOrdersHandle('')">全部</el-button> -->
|
|
|
|
|
</template>
|
|
|
|
|
<template #menu="scope">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">流程卡</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus === 2">
|
|
|
|
|
<el-button type="text" @click="priorityFn(scope.row)">优先级</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6" v-if="[2, 3, 4, 6].includes(scope.row.runStatus)">
|
|
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus < 15">
|
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)">关闭</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</template>
|
|
|
|
|
</avue-crud>
|
|
|
|
|
<el-dialog append-to-body v-model="printDialog" title="打印标签">
|
|
|
|
|
<el-form ref="printForm" :model="printForm" :rules="printRules">
|
|
|
|
|
<el-form-item label="数量" prop="quantity">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="printForm.quantity"
|
|
|
|
|
placeholder="请输入数量"
|
|
|
|
|
oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
<el-button @click="printDialog = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitPrint">打 印</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 生产监控 -->
|
|
|
|
|
<production-dialog
|
|
|
|
|
:monitor-dialog="monitorDialog"
|
|
|
|
|
:row-item="rowItem"
|
|
|
|
|
@closeDialog="closeDialog"
|
|
|
|
|
></production-dialog>
|
|
|
|
|
<!-- 分批弹窗 -->
|
|
|
|
|
<batches-dialog
|
|
|
|
|
v-if="showBatches"
|
|
|
|
|
:show-batches="showBatches"
|
|
|
|
|
:itemData="itemData"
|
|
|
|
|
@closeDialog="closeDialog"
|
|
|
|
|
></batches-dialog>
|
|
|
|
|
<!-- 关闭弹窗 -->
|
|
|
|
|
<closed-dialog
|
|
|
|
|
v-if="showClose"
|
|
|
|
|
:show-close="showClose"
|
|
|
|
|
@closeDialog="closeDialog"
|
|
|
|
|
:itemData="itemData"
|
|
|
|
|
></closed-dialog>
|
|
|
|
|
<!-- 异常申报 -->
|
|
|
|
|
<abnormalDialog
|
|
|
|
|
v-if="showAbnormal"
|
|
|
|
|
:show-abnormal="showAbnormal"
|
|
|
|
|
@closeDialog="closeDialog"
|
|
|
|
|
></abnormalDialog>
|
|
|
|
|
<productionMonitoringDialog
|
|
|
|
|
:showDialog="isPriorityOpen"
|
|
|
|
|
v-if="isPriorityOpen"
|
|
|
|
|
@closeDialog="closeDialog"
|
|
|
|
|
></productionMonitoringDialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import productionDialog from '../../components/productionDialog.vue';
|
|
|
|
|
import batchesDialog from '../../components/batchesDialog.vue';
|
|
|
|
|
import closedDialog from '../../components/closedDialog.vue';
|
|
|
|
|
import abnormalDialog from './abnormalDialog.vue';
|
|
|
|
|
import productionMonitoringDialog from '../../components/productionMonitoringDialog.vue';
|
|
|
|
|
|
|
|
|
|
import { getList } from '@/api/productionManagement/sinTerWorkOrder';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
productionDialog,
|
|
|
|
|
batchesDialog,
|
|
|
|
|
closedDialog,
|
|
|
|
|
abnormalDialog,
|
|
|
|
|
productionMonitoringDialog,
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
itemData: [], //存数据
|
|
|
|
|
isPriorityOpen: false,
|
|
|
|
|
showAbnormal: false,
|
|
|
|
|
monitorDialog: false,
|
|
|
|
|
showBatches: false,
|
|
|
|
|
showClose: false,
|
|
|
|
|
data: [],
|
|
|
|
|
printForm: {},
|
|
|
|
|
printRules: {
|
|
|
|
|
quantity: [{ required: true, message: '请输入数量', trigger: 'blur' }],
|
|
|
|
|
},
|
|
|
|
|
rowItem: {},
|
|
|
|
|
selectionList: [],
|
|
|
|
|
form: {},
|
|
|
|
|
loading: false,
|
|
|
|
|
printDialog: false,
|
|
|
|
|
page: {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
total: 0,
|
|
|
|
|
},
|
|
|
|
|
option: {
|
|
|
|
|
height: 'auto',
|
|
|
|
|
calcHeight: 32,
|
|
|
|
|
rowKey: 'cardNo',
|
|
|
|
|
tip: false,
|
|
|
|
|
simplePage: true,
|
|
|
|
|
searchShow: true,
|
|
|
|
|
searchMenuSpan: 6,
|
|
|
|
|
searchIcon: true,
|
|
|
|
|
searchIndex: 3,
|
|
|
|
|
tree: false,
|
|
|
|
|
border: true,
|
|
|
|
|
index: true,
|
|
|
|
|
selection: true,
|
|
|
|
|
viewBtn: false,
|
|
|
|
|
delBtn: false,
|
|
|
|
|
addBtn: false,
|
|
|
|
|
editBtn: false,
|
|
|
|
|
editBtnText: '修改',
|
|
|
|
|
addBtnIcon: ' ',
|
|
|
|
|
viewBtnIcon: ' ',
|
|
|
|
|
delBtnIcon: ' ',
|
|
|
|
|
editBtnIcon: ' ',
|
|
|
|
|
viewBtnText: '详情',
|
|
|
|
|
labelWidth: 120,
|
|
|
|
|
menuWidth: 220,
|
|
|
|
|
dialogWidth: 1200,
|
|
|
|
|
dialogClickModal: false,
|
|
|
|
|
searchEnter: true,
|
|
|
|
|
excelBtn: false,
|
|
|
|
|
filterBtn: true,
|
|
|
|
|
searchShowBtn: false,
|
|
|
|
|
columnSort: true,
|
|
|
|
|
excelBtn: true,
|
|
|
|
|
columnSort: true,
|
|
|
|
|
index: false,
|
|
|
|
|
showOverflowTooltip: true,
|
|
|
|
|
searchLabelPosition: 'left',
|
|
|
|
|
searchGutter: 24,
|
|
|
|
|
searchSpan: 6,
|
|
|
|
|
menuAlign: 'left',
|
|
|
|
|
gridBtn: false,
|
|
|
|
|
searchMenuPosition: 'right',
|
|
|
|
|
align: 'center',
|
|
|
|
|
column: [
|
|
|
|
|
{
|
|
|
|
|
label: '当前工序',
|
|
|
|
|
prop: 'wpId',
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '下一工序',
|
|
|
|
|
prop: 'ppsNameNext',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '订单状态',
|
|
|
|
|
prop: 'runStatusTitle',
|
|
|
|
|
type: 'select',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
dicUrl: '/blade-system/dict/dictionary?code=order_status',
|
|
|
|
|
props: {
|
|
|
|
|
label: 'dictValue',
|
|
|
|
|
value: 'dictKey',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '车间订单号',
|
|
|
|
|
prop: 'woCode',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '加工班组',
|
|
|
|
|
prop: 'tsId',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
hide: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '加工外协商',
|
|
|
|
|
prop: 'ocId',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
hide: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '生产订单号',
|
|
|
|
|
prop: 'yoCode',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '计划单号',
|
|
|
|
|
prop: 'poCode',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '返工单号',
|
|
|
|
|
prop: 'qcReworkCode',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '零件号',
|
|
|
|
|
prop: 'partCode',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '批次号',
|
|
|
|
|
prop: 'batchNo',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '产品型号',
|
|
|
|
|
prop: 'productModel',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '产品名称',
|
|
|
|
|
prop: 'false',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '流程卡号',
|
|
|
|
|
prop: 'cardNo',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
hide: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
label: 'MES流程卡号',
|
|
|
|
|
prop: 'mesCardNo',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '生产标识',
|
|
|
|
|
prop: 'productIdent',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '生产数量',
|
|
|
|
|
prop: 'makeQty',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '订单优先级',
|
|
|
|
|
prop: 'priorityName',
|
|
|
|
|
type: 'select',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
searchLabelWidth: 100,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '订单优先级',
|
|
|
|
|
prop: 'priority',
|
|
|
|
|
type: 'select',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
searchLabelWidth: 100,
|
|
|
|
|
hide:true,
|
|
|
|
|
dicUrl: '/blade-system/dict/dictionary?code=orderPriority',
|
|
|
|
|
props: {
|
|
|
|
|
label: 'dictValue',
|
|
|
|
|
value: 'dictKey',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '需求部门',
|
|
|
|
|
prop: 'useDept',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '需求交期',
|
|
|
|
|
prop: 'demandDate',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '会议要求周期',
|
|
|
|
|
prop: 'meetCycle',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '调度员',
|
|
|
|
|
prop: 'userName',
|
|
|
|
|
search: true,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
label: '计划下达时间',
|
|
|
|
|
prop: 'planTime',
|
|
|
|
|
sortable: true,
|
|
|
|
|
filter: true,
|
|
|
|
|
searchLabelWidth: 90,
|
|
|
|
|
span: 12,
|
|
|
|
|
search: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
searchSpan: 8,
|
|
|
|
|
type: 'datetimerange',
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
startPlaceholder: '开始日期',
|
|
|
|
|
endPlaceholder: '结束日期',
|
|
|
|
|
rangeSeparator: '-',
|
|
|
|
|
searchRange: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '计划完工时间',
|
|
|
|
|
prop: 'planTime1',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
type: 'datetimerange',
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
startPlaceholder: '时间日期开始',
|
|
|
|
|
endPlaceholder: '时间日期结束',
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '镀后入库时间',
|
|
|
|
|
prop: 'putStoreTime',
|
|
|
|
|
sortable: true,
|
|
|
|
|
filter: true,
|
|
|
|
|
span: 12,
|
|
|
|
|
search: true,
|
|
|
|
|
searchSpan: 8,
|
|
|
|
|
width: 150,
|
|
|
|
|
type: 'datetimerange',
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
startPlaceholder: '开始日期',
|
|
|
|
|
endPlaceholder: '结束日期',
|
|
|
|
|
rangeSeparator: '-',
|
|
|
|
|
searchRange: true,
|
|
|
|
|
searchLabelWidth: 90,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '生产数量',
|
|
|
|
|
prop: 'productionQuantity',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '入库数量',
|
|
|
|
|
prop: 'inventoryQty',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '试验数量',
|
|
|
|
|
prop: 'testQty',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '报废数量',
|
|
|
|
|
prop: 'scrapQty',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '备注',
|
|
|
|
|
prop: 'memo',
|
|
|
|
|
search: false,
|
|
|
|
|
sortable: true,
|
|
|
|
|
overHidden: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
methods: {
|
|
|
|
|
printCraftCard_new(row){
|
|
|
|
|
window.open(window.PROCESS_FLOW_CARD_HEAT_SINTER+'?woId='+row.woId);
|
|
|
|
|
},
|
|
|
|
|
//查询【生产中3、工艺变更5、检验中4、审理中6】状态的订单
|
|
|
|
|
queryOrdersHandle(status) {
|
|
|
|
|
this.query = {
|
|
|
|
|
runStatus: status,
|
|
|
|
|
};
|
|
|
|
|
this.onLoad(this.page, this.query);
|
|
|
|
|
},
|
|
|
|
|
// 优先级调整
|
|
|
|
|
priorityFn(row) {
|
|
|
|
|
this.itemData = [row];
|
|
|
|
|
this.isPriorityOpen = true;
|
|
|
|
|
},
|
|
|
|
|
selectionChange(val) {
|
|
|
|
|
this.selectionList = val;
|
|
|
|
|
},
|
|
|
|
|
// 分批
|
|
|
|
|
handleBatches(row) {
|
|
|
|
|
this.itemData = [row];
|
|
|
|
|
this.showBatches = true;
|
|
|
|
|
},
|
|
|
|
|
// 关闭
|
|
|
|
|
handleClose(row) {
|
|
|
|
|
this.itemData = [row];
|
|
|
|
|
this.showClose = true;
|
|
|
|
|
},
|
|
|
|
|
// 生产监控
|
|
|
|
|
clickProduction(row) {
|
|
|
|
|
this.rowItem = row;
|
|
|
|
|
this.monitorDialog = true;
|
|
|
|
|
},
|
|
|
|
|
// 打印标签
|
|
|
|
|
handlePrintTags() {
|
|
|
|
|
if (this.selectionList.length == 0) {
|
|
|
|
|
this.$message.error('请先选择数据');
|
|
|
|
|
} else {
|
|
|
|
|
this.printForm = {
|
|
|
|
|
quantity: 1,
|
|
|
|
|
};
|
|
|
|
|
this.printDialog = true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 确定打印
|
|
|
|
|
submitPrint() {
|
|
|
|
|
this.$refs.printForm.validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.printDialog = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 异常申报
|
|
|
|
|
handleAbnormal(row) {
|
|
|
|
|
this.itemData = [row];
|
|
|
|
|
this.showAbnormal = true;
|
|
|
|
|
},
|
|
|
|
|
// 关闭弹窗
|
|
|
|
|
closeDialog() {
|
|
|
|
|
this.monitorDialog = false;
|
|
|
|
|
this.showBatches = false;
|
|
|
|
|
this.showClose = false;
|
|
|
|
|
this.showAbnormal = false;
|
|
|
|
|
this.isPriorityOpen = false;
|
|
|
|
|
this.onLoad(this.page, this.query);
|
|
|
|
|
},
|
|
|
|
|
currentChange(currentPage) {
|
|
|
|
|
this.page.currentPage = currentPage;
|
|
|
|
|
this.onLoad(this.page, this.query);
|
|
|
|
|
},
|
|
|
|
|
sizeChange(pageSize) {
|
|
|
|
|
this.page.pageSize = pageSize;
|
|
|
|
|
this.onLoad(this.page, this.query);
|
|
|
|
|
},
|
|
|
|
|
refreshChange() {
|
|
|
|
|
this.onLoad(this.page, this.query);
|
|
|
|
|
},
|
|
|
|
|
searchReset() {
|
|
|
|
|
this.query = {};
|
|
|
|
|
this.treeDeptId = '';
|
|
|
|
|
this.onLoad(this.page, this.query);
|
|
|
|
|
},
|
|
|
|
|
searchChange(params, done) {
|
|
|
|
|
this.query = params;
|
|
|
|
|
this.page.currentPage = 1;
|
|
|
|
|
this.onLoad(this.page, params);
|
|
|
|
|
done();
|
|
|
|
|
},
|
|
|
|
|
selectionChange(list) {
|
|
|
|
|
this.selectionList = list;
|
|
|
|
|
},
|
|
|
|
|
selectionClear() {
|
|
|
|
|
this.selectionList = [];
|
|
|
|
|
this.$refs.crud.toggleSelection();
|
|
|
|
|
},
|
|
|
|
|
onLoad(page, params = {}) {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
getList(
|
|
|
|
|
page.currentPage,
|
|
|
|
|
page.pageSize,
|
|
|
|
|
Object.assign(params, this.query, { yieldType: '120003' })
|
|
|
|
|
).then(res => {
|
|
|
|
|
this.data = res.data.data.records;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.page.total = res.data.data.total;
|
|
|
|
|
this.selectionClear();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style></style>
|