工艺管理问题修改

dev-scheduling
zhangdi 3 weeks ago
parent 5ddd42d697
commit b7ba420ad1
  1. 5
      src/components/basic-container/main.vue
  2. 24
      src/views/processManagement/bathRefine/components/planCheckDialog.vue
  3. 28
      src/views/processManagement/bathRefine/planClass.vue
  4. 1
      src/views/processManagement/components/addBasicProcessesDialog.vue
  5. 111
      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,7 +52,11 @@ 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,13 +26,18 @@
</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
> >
</template> </template>
<template #arrangeTime="scope"> <template #arrangeTime="scope">
{{ scope.row.arrangeTime ? scope.row.arrangeTime.substring(0, 10) : '' }} {{ scope.row.arrangeTime ? scope.row.arrangeTime.substring(0, 10) : '' }}
</template> </template>
</avue-crud> </avue-crud>
<!-- 审批 --> <!-- 审批 -->
@ -155,7 +159,7 @@ export default {
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
searchLabelWidth: 80, searchLabelWidth: 80,
hide:true, hide: true,
dicUrl: `/blade-desk/BA/WorkTank/listForSelect?workstationId={{wcId}}`, dicUrl: `/blade-desk/BA/WorkTank/listForSelect?workstationId={{wcId}}`,
props: { props: {
label: 'name', label: 'name',
@ -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: '维护内容',
@ -202,8 +205,8 @@ export default {
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
searchLabelWidth: 80, searchLabelWidth: 80,
addDisplay:false, addDisplay: false,
editDisplay:false, editDisplay: false,
}, },
{ {
label: '安排日期', label: '安排日期',
@ -244,7 +247,7 @@ export default {
searchLabelWidth: 80, searchLabelWidth: 80,
searchOrder: 20, searchOrder: 20,
dicData: [ dicData: [
{ {
value: 1, value: 1,
label: '待审核', label: '待审核',
}, },
@ -264,7 +267,6 @@ export default {
value: 5, value: 5,
label: '厂长审核未通过', label: '厂长审核未通过',
}, },
], ],
rules: [ rules: [
{ {
@ -327,7 +329,7 @@ export default {
}); });
}, },
rowSave(row, done, loading) { rowSave(row, done, loading) {
row.arrangeTime = row.arrangeTime+' 00:00:00'; row.arrangeTime = row.arrangeTime + ' 00:00:00';
add([{ ...row, bbpType: 1 }]).then( add([{ ...row, bbpType: 1 }]).then(
() => { () => {
this.onLoad(this.page); this.onLoad(this.page);
@ -344,7 +346,7 @@ export default {
); );
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
row.arrangeTime = row.arrangeTime+' 00:00:00'; row.arrangeTime = row.arrangeTime + ' 00:00:00';
update([row]).then( update([row]).then(
() => { () => {
this.onLoad(this.page); this.onLoad(this.page);
@ -360,7 +362,7 @@ export default {
} }
); );
}, },
rowDel(row){ rowDel(row) {
this.$confirm('确定将选择数据删除?', { this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',

@ -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-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> <el-row>
<el-button type="text" @click="printCraftCard_new(scope.row)">工艺流程卡</el-button> <el-col :span="6">
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2" <el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
>优先级调整</el-button </el-col>
> <el-col :span="6">
<el-button <el-button type="text" @click="printCraftCard_new(scope.row)">流程卡</el-button>
type="text" </el-col>
@click="handleBatches(scope.row)" <el-col :span="6" v-if="scope.row.runStatus === 2">
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)" <el-button type="text" @click="priorityFn(scope.row)"
>分批</el-button >优先级</el-button
> >
<el-button </el-col>
type="text" <el-col :span="6" v-if="[2, 3, 4, 6].includes(scope.row.runStatus)">
@click="handleAbnormal(scope.row)" <el-button
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4" type="text"
>异常申报</el-button @click="handleBatches(scope.row)"
>
<el-button
type="text"
@click="handleOutsource(scope.row)"
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
>关闭</el-button >
> </el-col>
<el-col :span="6" v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4">
<el-button
type="text"
@click="handleAbnormal(scope.row)"
>异常申报</el-button
>
</el-col>
<el-col :span="6" v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5">
<el-button
type="text"
@click="handleOutsource(scope.row)"
>转外协</el-button
>
</el-col>
<el-col :span="6" v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5">
<el-button
type="text"
@click="handleSintering(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> </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,8 +153,8 @@ 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 {
components: { components: {
@ -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: '订单优先级',
@ -421,7 +442,7 @@ export default {
overHidden: true, overHidden: true,
width: 150, width: 150,
// searchLabelWidth: 100, // searchLabelWidth: 100,
hide:true, hide: true,
dicUrl: '/blade-system/dict/dictionary?code=orderPriority', dicUrl: '/blade-system/dict/dictionary?code=orderPriority',
props: { props: {
label: 'dictValue', label: 'dictValue',
@ -594,8 +615,8 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
printCraftCard_new(row){ printCraftCard_new(row) {
window.open(window.PROCESS_FLOW_CARD_HEAT_METER+'?woId='+row.woId,'_blank'); window.open(window.PROCESS_FLOW_CARD_HEAT_METER + '?woId=' + row.woId, '_blank');
}, },
// //
priorityFn(row) { priorityFn(row) {
@ -648,9 +669,9 @@ 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);
}); });
}); });
}, },
@ -707,7 +728,7 @@ export default {
this.showAbnormal = false; this.showAbnormal = false;
this.isPriorityOpen = false; this.isPriorityOpen = false;
// if (type) { // if (type) {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
// } // }
}, },
currentChange(currentPage) { currentChange(currentPage) {

Loading…
Cancel
Save