生产管理测试问题修改

dev-scheduling
zhangdi 3 weeks ago
parent fb1e39ae12
commit 4531def5db
  1. 39
      src/views/productionManagement/blbWorkOrder/components/glass.vue
  2. 39
      src/views/productionManagement/blbWorkOrder/components/others.vue
  3. 60
      src/views/productionManagement/sinTerWorkOrder/index.vue
  4. 50
      src/views/productionSchedulingPlan/basic/principalProducer.vue

@ -29,26 +29,23 @@
<!-- <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="printCraftCard_new(scope.row)">工艺流程卡</el-button>
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2"
>优先级调整</el-button
>
<el-button
type="text"
@click="handleBatches(scope.row)"
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"
>分批</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
>
<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="打印标签">
@ -167,7 +164,7 @@ export default {
editBtnIcon: ' ',
viewBtnText: '详情',
labelWidth: 120,
menuWidth: 260,
menuWidth: 220,
dialogWidth: 1200,
dialogClickModal: false,
searchEnter: true,

@ -29,26 +29,23 @@
<!-- <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="printCraftCard_new(scope.row)">工艺流程卡</el-button>
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2"
>优先级调整</el-button
>
<el-button
type="text"
@click="handleBatches(scope.row)"
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"
>分批</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
>
<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="打印标签">
@ -167,7 +164,7 @@ export default {
editBtnIcon: ' ',
viewBtnText: '详情',
labelWidth: 120,
menuWidth: 260,
menuWidth: 220,
dialogWidth: 1200,
dialogClickModal: false,
searchEnter: true,

@ -30,27 +30,30 @@
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button>
</template>
<template #menu="scope">
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
<el-button type="text" @click="printCraftCard_new(scope.row)">工艺流程卡</el-button>
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2"
>优先级调整</el-button
>
<el-button
type="text"
@click="handleBatches(scope.row)"
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"
>分批</el-button
>
<el-button
<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>
<!-- <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>
<!-- 打印标签 -->
@ -114,7 +117,7 @@ import closedDialog from '../components/closedDialog.vue';
import abnormalDialog from '../components/abnormalDialog.vue';
import productionMonitoringDialog from '../components/productionMonitoringDialog.vue';
import { getList,interlocking } from '@/api/productionManagement/sinTerWorkOrder';
import { getList, interlocking } from '@/api/productionManagement/sinTerWorkOrder';
export default {
components: {
productionDialog,
@ -174,7 +177,7 @@ export default {
viewBtnText: '详情',
labelWidth: 120,
// searchLabelWidth: 120,
menuWidth: 260,
menuWidth: 220,
dialogWidth: 1200,
dialogClickModal: false,
searchEnter: true,
@ -341,7 +344,7 @@ export default {
overHidden: true,
width: 150,
},
{
{
label: '订单优先级',
prop: 'priorityName',
type: 'select',
@ -350,7 +353,6 @@ export default {
overHidden: true,
width: 150,
// searchLabelWidth: 100,
},
{
label: '订单优先级',
@ -361,7 +363,7 @@ export default {
overHidden: true,
width: 150,
searchLabelWidth: 100,
hide:true,
hide: true,
dicUrl: '/blade-system/dict/dictionary?code=orderPriority',
props: {
label: 'dictValue',
@ -498,8 +500,8 @@ export default {
},
mounted() {},
methods: {
printCraftCard_new(row){
window.open(window.PROCESS_FLOW_CARD_HEAT_SINTER+'?woId='+row.woId);
printCraftCard_new(row) {
window.open(window.PROCESS_FLOW_CARD_HEAT_SINTER + '?woId=' + row.woId);
},
//
handleInterlocking(row) {
@ -511,11 +513,11 @@ export default {
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
let ids= this.selectionList.map(item => item.woId);
let query = {
woIds:ids.join(','),
let ids = this.selectionList.map(item => item.woId);
let query = {
woIds: ids.join(','),
};
interlocking(query).then((res) => {
interlocking(query).then(res => {
this.$message.success('操作成功');
this.onLoad(this.page, this.query);
});
@ -601,7 +603,7 @@ export default {
this.showAbnormal = false;
this.isPriorityOpen = false;
// if (type) {
this.onLoad(this.page, this.query);
this.onLoad(this.page, this.query);
// }
},
currentChange(currentPage) {

@ -90,34 +90,34 @@ export default {
searchMenuPosition: 'right',
align: 'center',
column: [
{
label: '工序',
prop: 'processId',
search: true,
sortable: true,
span: 12,
type: 'select',
filterable: true,
dicUrl: '/blade-scheduling/processSet/findList',
props: {
label: 'name',
value: 'id',
},
rules: [
{
required: true,
message: '请选择',
trigger: 'blur',
},
],
change: (val, row) => {
this.onChangeData(val.item, 'processId');
},
},
// {
// label: '',
// prop: 'processId',
// search: true,
// sortable: true,
// span: 12,
// type: 'select',
// filterable: true,
// dicUrl: '/blade-scheduling/processSet/findList',
// props: {
// label: 'name',
// value: 'id',
// },
// rules: [
// {
// required: true,
// message: '',
// trigger: 'blur',
// },
// ],
// change: (val, row) => {
// this.onChangeData(val.item, 'processId');
// },
// },
{
label: '工序',
prop: 'processName',
search: false,
search: true,
sortable: true,
span: 12,
hide: true,

Loading…
Cancel
Save