生产管理接口联调

dev-scheduling
zhangdi 3 months ago
parent 5083171a9c
commit 375d08dd1c
  1. 10
      src/api/productionManagement/productionMonitoring.js
  2. 69
      src/views/productionManagement/blbWorkOrder/components/glass.vue
  3. 104
      src/views/productionManagement/blbWorkOrder/components/others.vue
  4. 26
      src/views/productionManagement/components/batchesDialog.vue
  5. 42
      src/views/productionManagement/components/outsourceDialog.vue
  6. 8
      src/views/productionManagement/components/productionMonitoringDialog.vue
  7. 66
      src/views/productionManagement/productionMonitoring.vue
  8. 47
      src/views/productionManagement/sinTerWorkOrder/index.vue

@ -63,3 +63,13 @@ export const updateStatus = data => {
data: data,
});
};
// 转烧结
export const turnType = data => {
return request({
url: '/blade-desk/workOrder/turnType',
method: 'post',
data: data,
});
};

@ -19,19 +19,19 @@
>
<template #menu-left>
<el-button type="primary" @click="handlePrintTags">过程记录打印</el-button>
<el-button type="primary" @click="priorityFn">优先级调整</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>
<!-- <el-button type="primary" @click="queryOrdersHandle('')">全部</el-button> -->
</template>
<template #menu="scope">
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
<el-button type="text" @click="handleClose(scope.row)" v-show="scope.row.runStatus < 15"
>关闭</el-button
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2"
>优先级调整</el-button
>
<el-button
type="text"
@ -39,13 +39,15 @@
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"
>分批</el-button
>
<!-- <el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2">优先级调整</el-button> -->
<el-button
type="text"
@click="handleAbnormal(scope.row)"
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4"
>异常申报</el-button
>
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15"
>关闭</el-button
>
</template>
</avue-crud>
<el-dialog append-to-body v-model="printDialog" title="打印标签">
@ -72,16 +74,29 @@
@closeDialog="closeDialog"
></production-dialog>
<!-- 分批弹窗 -->
<batches-dialog :show-batches="showBatches" @closeDialog="closeDialog"></batches-dialog>
<batches-dialog
v-if="showBatches"
:show-batches="showBatches"
:itemData="itemData"
@closeDialog="closeDialog"
></batches-dialog>
<!-- 关闭弹窗 -->
<closed-dialog :show-close="showClose" @closeDialog="closeDialog"></closed-dialog>
<closed-dialog
v-if="showClose"
:show-close="showClose"
@closeDialog="closeDialog"
:itemData="itemData"
></closed-dialog>
<!-- 异常申报 -->
<abnormalDialog :show-abnormal="showAbnormal" @closeDialog="closeDialog"></abnormalDialog>
<abnormalDialog
v-if="showAbnormal"
:show-abnormal="showAbnormal"
@closeDialog="closeDialog"
></abnormalDialog>
<productionMonitoringDialog
:showDialog="isPriorityOpen"
v-if="isPriorityOpen"
@closeDialog="closeDialog"
@submitPriority="handlePrioritySubmit"
></productionMonitoringDialog>
</div>
</template>
@ -105,9 +120,9 @@ export default {
},
data() {
return {
itemData: [], //
isPriorityOpen: false,
showAbnormal: false,
showRadio: true,
monitorDialog: false,
showBatches: false,
showClose: false,
@ -172,7 +187,6 @@ export default {
align: 'center',
column: [
{
label: '当前工序',
prop: 'wpId',
fixed: 'left',
@ -460,7 +474,6 @@ export default {
},
mounted() {},
methods: {
//3546
queryOrdersHandle(status) {
this.query = {
@ -470,25 +483,20 @@ export default {
},
//
priorityFn(row) {
this.rowItem = row;
console.log(row.runStatus, 123);
this.itemData = [row];
this.isPriorityOpen = true;
// console.log(runStatus,123)
},
handlePrioritySubmit(data) {
this.$message.success(
`优先级已调整为${data.priority === 1 ? '一级' : data.priority === 2 ? '二级' : '三级'}`
);
},
selectionChange(val) {
this.selectionList = val;
},
//
handleBatches() {
handleBatches(row) {
this.itemData = [row];
this.showBatches = true;
},
//
handleClose() {
handleClose(row) {
this.itemData = [row];
this.showClose = true;
},
//
@ -515,17 +523,9 @@ export default {
}
});
},
//
handlePrint() {},
processingHandle() {
const targetStatuses = [3, 5, 4, 6];
const filteredData = this.data.filter(item => targetStatuses.includes(item.runStatus));
const originalData = [...this.data];
this.data = filteredData;
this.$message.success(`已筛选出${filteredData.length}条符合条件的订单`);
},
//
handleAbnormal() {
handleAbnormal(row) {
this.itemData = [row];
this.showAbnormal = true;
},
//
@ -535,12 +535,15 @@ export default {
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);
@ -548,7 +551,7 @@ export default {
searchReset() {
this.query = {};
this.treeDeptId = '';
this.onLoad(this.page);
this.onLoad(this.page, this.query);
},
searchChange(params, done) {
this.query = params;

@ -19,19 +19,19 @@
>
<template #menu-left>
<el-button type="primary" @click="handlePrintTags">过程记录打印</el-button>
<el-button type="primary" @click="priorityFn">优先级调整</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>
<!-- <el-button type="primary" @click="queryOrdersHandle('')">全部</el-button> -->
</template>
<template #menu="scope">
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
<el-button type="text" @click="handleClose(scope.row)" v-show="scope.row.runStatus < 15"
>关闭</el-button
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2"
>优先级调整</el-button
>
<el-button
type="text"
@ -39,46 +39,16 @@
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"
>分批</el-button
>
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2"
>优先级调整</el-button
>
<el-button
type="text"
@click="handleAbnormal(scope.row)"
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4"
>异常申报</el-button
>
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15"
>关闭</el-button
>
</template>
<template #tsName="{ row }">{{ row.makeTeam && row.makeTeam.tsName }}</template>
<template #ppsName="{ row }">{{ row.procedureSet && row.procedureSet.ppsName }}</template>
<template #planTime1="{ row }">
{{ Array.isArray(row.planTime1) ? row.planTime1.join(' ~ ') : row.planTime1 || '-' }}
</template>
<template #planTime="{ row }">
{{ Array.isArray(row.planTime) ? row.planTime.join(' ~ ') : row.planTime || '-' }}
</template>
<template #putStoreTime="{ row }">
{{
Array.isArray(row.putStoreTime) ? row.putStoreTime.join(' ~ ') : row.putStoreTime || '-'
}}
</template>
<template #partCode="{ row }">{{ row.pjYieldOrder && row.pjYieldOrder.partCode }}</template>
<template #prodIdent="{ row }">{{ row.pjYieldOrder && row.pjYieldOrder.prodIdent }}</template>
<template #partName="{ row }">{{ row.pjYieldOrder && row.pjYieldOrder.partName }}</template>
<template #plate="{ row }">{{ row.pjYieldOrder && row.pjYieldOrder.plate }}</template>
<template #productType="{ row }">{{
row.pjYieldOrder && row.pjYieldOrder.productType
}}</template>
<template #useDept="{ row }">{{ row.pjYieldOrder && row.pjYieldOrder.useDept }}</template>
<template #poArea="{ row }">{{ row.pjYieldOrder && row.pjYieldOrder.poArea }}</template>
<template #userName="{ row }">{{ row.dispatcher && row.dispatcher.userName }}</template>
<template #nextPpsName="{ row }">{{
row.nextProcedureSet && row.nextProcedureSet.ppsName
}}</template>
<template #nextTeamName="{ row }">{{ row.nextMakeTeam && row.nextMakeTeam.tsName }}</template>
<template #failureMan="{ row }">{{
row.pjYieldOrder && row.pjYieldOrder.failureMan && row.pjYieldOrder.failureMan.userName
}}</template>
</avue-crud>
<el-dialog append-to-body v-model="printDialog" title="打印标签">
<el-form ref="printForm" :model="printForm" :rules="printRules">
@ -104,16 +74,29 @@
@closeDialog="closeDialog"
></production-dialog>
<!-- 分批弹窗 -->
<batches-dialog :show-batches="showBatches" @closeDialog="closeDialog"></batches-dialog>
<batches-dialog
v-if="showBatches"
:show-batches="showBatches"
:itemData="itemData"
@closeDialog="closeDialog"
></batches-dialog>
<!-- 关闭弹窗 -->
<closed-dialog :show-close="showClose" @closeDialog="closeDialog"></closed-dialog>
<!-- 异常处理 -->
<abnormalDialog :show-abnormal="showAbnormal" @closeDialog="closeDialog"></abnormalDialog>
<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"
@submitPriority="handlePrioritySubmit"
></productionMonitoringDialog>
</div>
</template>
@ -122,10 +105,11 @@
import productionDialog from '../../components/productionDialog.vue';
import batchesDialog from '../../components/batchesDialog.vue';
import closedDialog from '../../components/closedDialog.vue';
import abnormalDialog from '../../components/abnormalDialog.vue';
import abnormalDialog from './abnormalDialog.vue';
import productionMonitoringDialog from '../../components/productionMonitoringDialog.vue';
import { getList } from '@/api/productionManagement/sinTerWorkOrder';
export default {
components: {
productionDialog,
@ -136,9 +120,9 @@ export default {
},
data() {
return {
itemData: [], //
isPriorityOpen: false,
showAbnormal: false,
showRadio: true,
monitorDialog: false,
showBatches: false,
showClose: false,
@ -499,25 +483,20 @@ export default {
},
//
priorityFn(row) {
this.rowItem = row;
console.log(row.runStatus, 123);
this.itemData = [row];
this.isPriorityOpen = true;
// console.log(runStatus,123)
},
handlePrioritySubmit(data) {
this.$message.success(
`优先级已调整为${data.priority === 1 ? '一级' : data.priority === 2 ? '二级' : '三级'}`
);
},
selectionChange(val) {
this.selectionList = val;
},
//
handleBatches() {
handleBatches(row) {
this.itemData = [row];
this.showBatches = true;
},
//
handleClose() {
handleClose(row) {
this.itemData = [row];
this.showClose = true;
},
//
@ -544,17 +523,9 @@ export default {
}
});
},
//
handlePrint() {},
processingHandle() {
const targetStatuses = [3, 5, 4, 6];
const filteredData = this.data.filter(item => targetStatuses.includes(item.runStatus));
const originalData = [...this.data];
this.data = filteredData;
this.$message.success(`已筛选出${filteredData.length}条符合条件的订单`);
},
//
handleAbnormal() {
handleAbnormal(row) {
this.itemData = [row];
this.showAbnormal = true;
},
//
@ -564,12 +535,15 @@ export default {
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);
@ -577,7 +551,7 @@ export default {
searchReset() {
this.query = {};
this.treeDeptId = '';
this.onLoad(this.page);
this.onLoad(this.page, this.query);
},
searchChange(params, done) {
this.query = params;

@ -37,8 +37,8 @@
:min="1"
></el-input-number>
</el-form-item>
<el-form-item label="分批原因" prop="reason">
<el-select placeholder="请选择分批原因" v-model="batchesForm.reason">
<el-form-item label="分批原因" prop="batchReason">
<el-select placeholder="请选择分批原因" v-model="batchesForm.batchReason">
<el-option value="1" label="返工"></el-option>
<el-option value="2" label="关闭"></el-option>
<el-option value="3" label="其他"></el-option>
@ -73,7 +73,7 @@ export default {
batchesForm: {},
batchesRules: {
makeQty: [{ required: true, message: '请输入分批数量', trigger: 'blur' }],
reason: [{ required: true, message: '请选择分批原因', trigger: 'blur' }],
batchReason: [{ required: true, message: '请选择分批原因', trigger: 'blur' }],
},
};
},
@ -87,12 +87,20 @@ export default {
submit() {
this.$refs.batchesForm.validate(valid => {
if (valid) {
// inBatches(this.batchesForm).then((res) => {
// if (res.code == 200) {
// this.$message.success('');
// this.closeDialog();
// }
// });
let query = {
id: this.itemData[0].woId,
batchNo: this.itemData[0].batchNo,
cardNo: this.itemData[0].cardNo,
woCode: this.itemData[0].woCode,
makeQty: this.batchesForm.makeQty,
batchReason: this.batchesForm.batchReason,
};
inBatches(query).then((res) => {
if (res.code == 200) {
this.$message.success('操作成功');
this.closeDialog();
}
});
} else {
console.log('error submit!!');
return false;

@ -4,13 +4,18 @@
title="转外协"
append-to-body
:modelValue="showDialog"
width="90%"
width="60%"
@close="closeDialog"
@open="handleOpen"
>
<el-form :model="outsourceForm" :rules="outsourceRules" label-width="100px">
<el-form-item label="备注" prop="memo">
<el-input placeholder="请输入备注" v-model="outsourceForm.memo" type="textarea"></el-input>
<el-form :model="outsourceForm" :rules="outsourceRules" label-width="70px">
<el-form-item label="备注:" prop="memo">
<el-input
placeholder="请输入备注"
v-model="outsourceForm.memo"
type="textarea"
style="width: 40%"
></el-input>
</el-form-item>
</el-form>
<el-table :data="outsourceData">
@ -54,22 +59,23 @@
</template>
<script>
import { getListProProcess, transferBill } from '@/api/productionManagement/productionMonitoring';
export default {
props: {
showDialog: {
type: Boolean,
default: false,
},
showRadio: {
type: Boolean,
default: false,
itemData: {
type: Array,
default: [],
},
},
data() {
return {
outsourceForm: {},
outsourceRules: {
memo: [{ required: true, message: '请输入转外协备注', trigger: 'blur' }],
memo: [{ required: true, message: '请输入', trigger: 'blur' }],
},
outsourceData: [],
craftData: [
@ -118,6 +124,15 @@ export default {
},
mounted() {},
methods: {
getListProProcess() {
let params = {
woIds: this.itemData.map(item => item.woId),
runType: 1, //1-2-
};
getListProProcess(params).then(res => {
this.outsourceData = res.data;
});
},
closeDialog() {
this.$emit('closeDialog');
},
@ -131,7 +146,7 @@ export default {
}
}
},
//
//
turnOem() {
if (this.outsourceData.length == 0) {
this.$message.error('当前数据列表为空');
@ -155,7 +170,16 @@ export default {
this.$message.error('请勾选需要外协的工序');
return;
}
let query={
workOrderRuns:this.itemData,
workPlanRuns:this.outsourceData
}
transferBill(query).then(res => {
this.$message.success('操作成功');
this.closeDialog();
});
},
handleOpen() {
this.outsourceData = [

@ -26,6 +26,8 @@
</el-dialog>
</template>
<script>
import { updatePrioritye } from '@/api/productionManagement/productionMonitoring';
export default {
props: {
showDialog: {
@ -77,8 +79,12 @@ export default {
//msg
this.$refs.form.validate((valid, done, msg) => {
if (valid) {
this.$emit('submitPriority', this.form);
// this.$emit('submitPriority', this.form);
updatePrioritye().then((res) => {
this.$message.success('操作成功');
this.closeDialog();
});
} else {
console.log('error submit!!');
return false;

@ -52,6 +52,12 @@
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"
>转外协</el-button
>
<el-button
type="text"
@click="handleSintering(scope.row)"
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"
>转烧结</el-button
>
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15"
>关闭</el-button
@ -80,7 +86,6 @@
<outsource-dialog
v-if="showOemDialog"
:show-dialog="showOemDialog"
:show-radio="showRadio"
:itemData="itemData"
@closeDialog="closeDialog"
></outsource-dialog>
@ -115,7 +120,6 @@
:showDialog="isPriorityOpen"
v-if="isPriorityOpen"
@closeDialog="closeDialog"
@submitPriority="handlePrioritySubmit"
></productionMonitoringDialog>
</basic-container>
</template>
@ -125,8 +129,6 @@ import outsourceDialog from './components/outsourceDialog.vue';
import productionDialog from './components/productionDialog.vue';
import batchesDialog from './components/batchesDialog.vue';
import closedDialog from './components/closedDialog.vue';
import returnDialog from './components/returnDialog.vue';
import schedulingDialog from './components/schedulingDialog.vue';
import abnormalDialog from './components/abnormalDialog.vue';
import productionMonitoringDialog from './components/productionMonitoringDialog.vue';
@ -138,8 +140,6 @@ export default {
productionDialog,
batchesDialog,
closedDialog,
returnDialog,
schedulingDialog,
abnormalDialog,
productionMonitoringDialog,
},
@ -147,13 +147,10 @@ export default {
return {
isPriorityOpen: false,
showAbnormal: false,
showOemDialog: true,
showRadio: true,
showOemDialog: false,
monitorDialog: false,
showBatches: false,
showClose: false,
showReturn: false,
showScheduling: false,
data: [],
printForm: {},
printRules: {
@ -600,16 +597,6 @@ export default {
this.itemData = this.selectionList;
this.isPriorityOpen = true;
},
handlePrioritySubmit(data) {
console.log('优先级调整', this.itemData);
// updatePrioritye().then(res=>{
// })
// this.$message.success(
// `${data.priority === 1 ? '' : data.priority === 2 ? '' : ''}`
// );
},
selectionChange(val) {
this.selectionList = val;
},
@ -627,27 +614,11 @@ export default {
this.showOemDialog = true;
}
},
// 退
handleReturn() {
this.showReturn = true;
},
//
handleIssued() {
this.$confirm('确认下达车间订单吗?', '确认消息', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {});
},
//
handleBatches(row) {
this.itemData = [row];
this.showBatches = true;
},
//
handleScheduling() {
this.showScheduling = true;
},
//
handleClose(row) {
this.itemData = [row];
@ -655,12 +626,21 @@ export default {
},
//
handleSintering() {
handleSintering(row) {
this.$confirm('确定将此订单转到烧结中心吗?', '是否继续', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {});
}).then(() => {
let query = {
id: row.woId,
yieldType: 'sintering',
};
// turnType(query).then((res) => {
// this.$message.success('');
// this.onLoad(this.page, this.query);
// });
});
},
//
clickProduction(row) {
@ -702,7 +682,8 @@ export default {
},
//
handleAbnormal() {
handleAbnormal(row) {
this.itemData = [row];
this.showAbnormal = true;
},
//
@ -711,8 +692,6 @@ export default {
this.monitorDialog = false;
this.showBatches = false;
this.showClose = false;
this.showReturn = false;
this.showScheduling = false;
this.showAbnormal = false;
this.isPriorityOpen = false;
if (type) {
@ -721,17 +700,18 @@ export default {
},
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.onLoad(this.page, this.query);
},
searchChange(params, done) {
this.query = params;

@ -21,19 +21,17 @@
<el-button type="primary" @click="handlePrintTags">过程记录打印</el-button>
<el-button type="primary" @click="handlePrintTags">打印标签</el-button>
<el-button type="primary" @click="handlePrint">配套单打印</el-button>
<el-button type="primary" @click="priorityFnBatch">优先级调整</el-button>
</template>
<template #menu-right>
<el-button type="success" plain @click="queryOrdersHandle('3,4,5,6')">在制品</el-button>
<el-button type="primary" 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-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
<el-button type="text" @click="handleClose(scope.row)" v-show="scope.row.runStatus < 15"
>关闭</el-button
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2"
>优先级调整</el-button
>
<el-button
type="text"
@ -41,15 +39,15 @@
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"
>分批</el-button
>
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2"
>优先级调整</el-button
>
<el-button
type="text"
@click="handleAbnormal(scope.row)"
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4"
>异常申报</el-button
>
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15"
>关闭</el-button
>
</template>
</avue-crud>
<el-dialog append-to-body v-model="printDialog" title="打印标签">
@ -76,7 +74,10 @@
@closeDialog="closeDialog"
></production-dialog>
<!-- 分批弹窗 -->
<batches-dialog :show-batches="showBatches" @closeDialog="closeDialog"></batches-dialog>
<batches-dialog v-if="showBatches"
:show-batches="showBatches"
:itemData="itemData"
@closeDialog="closeDialog"></batches-dialog>
<!-- 关闭弹窗 -->
<closed-dialog
v-if="showClose"
@ -85,13 +86,14 @@
:itemData="itemData"
></closed-dialog>
<!-- 异常处理 -->
<abnormalDialog :show-abnormal="showAbnormal" @closeDialog="closeDialog"></abnormalDialog>
<abnormalDialog v-if="showAbnormal"
:show-abnormal="showAbnormal"
@closeDialog="closeDialog"></abnormalDialog>
<!-- 优先级调整 -->
<productionMonitoringDialog
:showDialog="isPriorityOpen"
v-if="isPriorityOpen"
@closeDialog="closeDialog"
@submitPriority="handlePrioritySubmit"
></productionMonitoringDialog>
</basic-container>
</template>
@ -490,20 +492,17 @@ export default {
this.itemData = this.selectionList;
this.isPriorityOpen = true;
},
handlePrioritySubmit(data) {
this.$message.success(
`优先级已调整为${data.priority === 1 ? '一级' : data.priority === 2 ? '二级' : '三级'}`
);
},
selectionChange(val) {
this.selectionList = val;
},
//
handleBatches() {
handleBatches(row) {
this.itemData = [row];
this.showBatches = true;
},
//
handleClose() {
handleClose(row) {
this.itemData = [row];
this.showClose = true;
},
//
@ -541,15 +540,9 @@ export default {
this.printDialog = true;
}
},
processingHandle() {
const targetStatuses = [3, 5, 4, 6];
const filteredData = this.data.filter(item => targetStatuses.includes(item.runStatus));
const originalData = [...this.data];
this.data = filteredData;
this.$message.success(`已筛选出${filteredData.length}条符合条件的订单`);
},
//
handleAbnormal() {
handleAbnormal(row) {
this.itemData = [row];
this.showAbnormal = true;
},
//
@ -565,9 +558,11 @@ export default {
},
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);

Loading…
Cancel
Save