工艺管理问题修改

dev-scheduling
zhangdi 3 weeks ago
parent 5ddd42d697
commit b7ba420ad1
  1. 5
      src/components/basic-container/main.vue
  2. 16
      src/views/processManagement/bathRefine/components/planCheckDialog.vue
  3. 12
      src/views/processManagement/bathRefine/planClass.vue
  4. 1
      src/views/processManagement/components/addBasicProcessesDialog.vue
  5. 51
      src/views/productionManagement/productionMonitoring/index.vue

@ -37,6 +37,7 @@ export default {
.basic-container { .basic-container {
padding: 10px 6px; padding: 10px 6px;
box-sizing: border-box; box-sizing: border-box;
height: 100%;
&--block { &--block {
height: 100%; height: 100%;
@ -51,6 +52,10 @@ export default {
&:first-child { &:first-child {
padding-top: 0; padding-top: 0;
height: 100%;
}
.basic-container__card {
height: 100%;
} }
} }

@ -5,7 +5,7 @@
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="closeDialog"> </el-button> <el-button @click="closeDialog"> </el-button>
<el-button type="primary" @click="submit"> </el-button> <el-button type="primary" @click="submit" v-loading="submitLoading"> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
@ -28,6 +28,7 @@ export default {
return { return {
obj: {}, obj: {},
openShow: false, openShow: false,
submitLoading: false,
option: { option: {
submitBtn: false, submitBtn: false,
emptyBtn: false, emptyBtn: false,
@ -64,29 +65,34 @@ export default {
submit() { submit() {
this.$refs.form.validate((valid, done, msg) => { this.$refs.form.validate((valid, done, msg) => {
if (valid) { if (valid) {
this.submitLoading = true;
// //
if (this.rowItem.approvalStatus == '-1') { if (this.rowItem.approvalStatus == '-1' || this.rowItem.approvalStatus == 1) {
directorApproval({ ...this.obj, id: this.rowItem.id }).then(res => { directorApproval({ ...this.obj, id: this.rowItem.id }).then(res => {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!', message: '操作成功!',
}); });
this.closeDialog(); this.closeDialog();
this.submitLoading = false;
}); });
} }
// //
if (this.rowItem.approvalStatus == '2') { if (this.rowItem.approvalStatus == 2) {
factoryApproval({ ...this.obj, id: this.rowItem.id }).then(res => { factoryApproval({ ...this.obj, id: this.rowItem.id }).then(res => {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!', message: '操作成功!',
}); });
this.closeDialog() this.closeDialog();
}) this.submitLoading = false;
});
} }
this.submitLoading = false;
done(); done();
} else { } else {
console.log('error submit!!'); console.log('error submit!!');
this.submitLoading = false;
return false; return false;
} }
}); });

@ -17,7 +17,6 @@
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad" @on-load="onLoad"
> >
<template #menu="scope"> <template #menu="scope">
<!-- <el-button <!-- <el-button
@ -27,7 +26,12 @@
</el-button> --> </el-button> -->
<el-button <el-button
type="text" type="text"
v-if="scope.row.approvalStatus == 1" v-if="
scope.row.approvalStatus == 1 ||
scope.row.approvalStatus == 2 ||
scope.row.approvalStatus == 5 ||
scope.row.approvalStatus == 4
"
@click="checkFn(scope.row)" @click="checkFn(scope.row)"
>审批</el-button >审批</el-button
> >
@ -168,10 +172,9 @@ export default {
trigger: 'blur', trigger: 'blur',
}, },
], ],
change: (value)=> { change: value => {
this.form.batchNoName = value.item.name; this.form.batchNoName = value.item.name;
}, },
}, },
{ {
label: '维护内容', label: '维护内容',
@ -264,7 +267,6 @@ export default {
value: 5, value: 5,
label: '厂长审核未通过', label: '厂长审核未通过',
}, },
], ],
rules: [ rules: [
{ {

@ -195,6 +195,7 @@ export default {
tableData: [], tableData: [],
ruleForm: { ruleForm: {
cycle: 0, cycle: 0,
isCheckout:'0'
}, },
rules: { rules: {
code: [{ required: true, message: '请输入', trigger: 'blur' }], code: [{ required: true, message: '请输入', trigger: 'blur' }],

@ -30,39 +30,56 @@
</template> </template>
<template #menu="scope"> <template #menu="scope">
<el-row>
<el-col :span="6">
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> <el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
<el-button type="text" @click="printCraftCard_new(scope.row)">工艺流程卡</el-button> </el-col>
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2" <el-col :span="6">
>优先级调整</el-button <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 <el-button
type="text" type="text"
@click="handleBatches(scope.row)" @click="handleBatches(scope.row)"
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"
>分批</el-button >分批</el-button
> >
</el-col>
<el-col :span="6" v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4">
<el-button <el-button
type="text" type="text"
@click="handleAbnormal(scope.row)" @click="handleAbnormal(scope.row)"
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4"
>异常申报</el-button >异常申报</el-button
> >
</el-col>
<el-col :span="6" v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5">
<el-button <el-button
type="text" type="text"
@click="handleOutsource(scope.row)" @click="handleOutsource(scope.row)"
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"
>转外协</el-button >转外协</el-button
> >
</el-col>
<el-col :span="6" v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5">
<el-button <el-button
type="text" type="text"
@click="handleSintering(scope.row)" @click="handleSintering(scope.row)"
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"
>转烧结</el-button >转烧结</el-button
> >
</el-col>
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15" <el-col :span="6" v-if="scope.row.runStatus < 15">
<el-button type="text" @click="handleClose(scope.row)"
>关闭</el-button >关闭</el-button
> >
</el-col>
</el-row>
</template> </template>
</avue-crud> </avue-crud>
<!-- 打印标签 --> <!-- 打印标签 -->
@ -120,7 +137,12 @@
></productionMonitoringDialog> ></productionMonitoringDialog>
<!-- 生产监控 --> <!-- 生产监控 -->
<workRate v-if="isWorkRateOpen" :showDialog="isWorkRateOpen" @closeDialog="closeDialog" :rowItem="rowItem"></workRate> <workRate
v-if="isWorkRateOpen"
:showDialog="isWorkRateOpen"
@closeDialog="closeDialog"
:rowItem="rowItem"
></workRate>
</basic-container> </basic-container>
</template> </template>
@ -131,7 +153,7 @@ import batchesDialog from '../components/batchesDialog.vue';
import closedDialog from '../components/abnormalDialog.vue'; import closedDialog from '../components/abnormalDialog.vue';
import abnormalDialog from '../components/abnormalDialog.vue'; import abnormalDialog from '../components/abnormalDialog.vue';
import productionMonitoringDialog from '../components/productionMonitoringDialog.vue'; import productionMonitoringDialog from '../components/productionMonitoringDialog.vue';
import workRate from "@/views/workRate/index.vue"; import workRate from '@/views/workRate/index.vue';
import { getList, turnType } from '@/api/productionManagement/productionMonitoring'; import { getList, turnType } from '@/api/productionManagement/productionMonitoring';
export default { export default {
@ -188,7 +210,7 @@ export default {
editBtnText: '修改', editBtnText: '修改',
viewBtnText: '详情', viewBtnText: '详情',
labelWidth: 120, labelWidth: 120,
menuWidth: 380, menuWidth: 240,
dialogWidth: 1200, dialogWidth: 1200,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
@ -215,7 +237,7 @@ export default {
sortable: true, sortable: true,
overHidden: true, overHidden: true,
fixed: 'left', fixed: 'left',
width: 180, width: 130,
}, },
{ {
@ -410,7 +432,6 @@ export default {
overHidden: true, overHidden: true,
width: 150, width: 150,
// searchLabelWidth: 100, // searchLabelWidth: 100,
}, },
{ {
label: '订单优先级', label: '订单优先级',
@ -648,7 +669,7 @@ export default {
id: row.woId, id: row.woId,
yieldType: '12001', yieldType: '12001',
}; };
turnType(query).then((res) => { turnType(query).then(res => {
this.$message.success('转烧结成功'); this.$message.success('转烧结成功');
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}); });

Loading…
Cancel
Save