diff --git a/src/components/basic-container/main.vue b/src/components/basic-container/main.vue index b6a2657..b7231bc 100644 --- a/src/components/basic-container/main.vue +++ b/src/components/basic-container/main.vue @@ -37,6 +37,7 @@ export default { .basic-container { padding: 10px 6px; box-sizing: border-box; + height: 100%; &--block { height: 100%; @@ -51,7 +52,11 @@ export default { &:first-child { padding-top: 0; + height: 100%; } + .basic-container__card { + height: 100%; + } } diff --git a/src/views/processManagement/bathRefine/components/planCheckDialog.vue b/src/views/processManagement/bathRefine/components/planCheckDialog.vue index bbb479b..4cb50fb 100644 --- a/src/views/processManagement/bathRefine/components/planCheckDialog.vue +++ b/src/views/processManagement/bathRefine/components/planCheckDialog.vue @@ -5,7 +5,7 @@ @@ -28,6 +28,7 @@ export default { return { obj: {}, openShow: false, + submitLoading: false, option: { submitBtn: false, emptyBtn: false, @@ -64,29 +65,34 @@ export default { submit() { this.$refs.form.validate((valid, done, msg) => { if (valid) { + this.submitLoading = true; // 室主任审核 - if (this.rowItem.approvalStatus == '-1') { - directorApproval({...this.obj,id:this.rowItem.id}).then(res => { + if (this.rowItem.approvalStatus == '-1' || this.rowItem.approvalStatus == 1) { + directorApproval({ ...this.obj, id: this.rowItem.id }).then(res => { this.$message({ type: 'success', message: '操作成功!', }); this.closeDialog(); + this.submitLoading = false; }); } // 厂长审核 - if (this.rowItem.approvalStatus == '2') { - factoryApproval({...this.obj,id:this.rowItem.id}).then(res=>{ - this.$message({ + if (this.rowItem.approvalStatus == 2) { + factoryApproval({ ...this.obj, id: this.rowItem.id }).then(res => { + this.$message({ type: 'success', message: '操作成功!', }); - this.closeDialog() - }) - } + this.closeDialog(); + this.submitLoading = false; + }); + } + this.submitLoading = false; done(); } else { console.log('error submit!!'); + this.submitLoading = false; return false; } }); diff --git a/src/views/processManagement/bathRefine/planClass.vue b/src/views/processManagement/bathRefine/planClass.vue index 53bc07e..79d4426 100644 --- a/src/views/processManagement/bathRefine/planClass.vue +++ b/src/views/processManagement/bathRefine/planClass.vue @@ -17,7 +17,6 @@ @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" - > @@ -155,7 +159,7 @@ export default { headerAlign: 'center', align: 'center', searchLabelWidth: 80, - hide:true, + hide: true, dicUrl: `/blade-desk/BA/WorkTank/listForSelect?workstationId={{wcId}}`, props: { label: 'name', @@ -168,10 +172,9 @@ export default { trigger: 'blur', }, ], - change: (value)=> { + change: value => { this.form.batchNoName = value.item.name; }, - }, { label: '维护内容', @@ -202,8 +205,8 @@ export default { headerAlign: 'center', align: 'center', searchLabelWidth: 80, - addDisplay:false, - editDisplay:false, + addDisplay: false, + editDisplay: false, }, { label: '安排日期', @@ -244,7 +247,7 @@ export default { searchLabelWidth: 80, searchOrder: 20, dicData: [ - { + { value: 1, label: '待审核', }, @@ -264,7 +267,6 @@ export default { value: 5, label: '厂长审核未通过', }, - ], rules: [ { @@ -327,7 +329,7 @@ export default { }); }, rowSave(row, done, loading) { - row.arrangeTime = row.arrangeTime+' 00:00:00'; + row.arrangeTime = row.arrangeTime + ' 00:00:00'; add([{ ...row, bbpType: 1 }]).then( () => { this.onLoad(this.page); @@ -344,7 +346,7 @@ export default { ); }, rowUpdate(row, index, done, loading) { - row.arrangeTime = row.arrangeTime+' 00:00:00'; + row.arrangeTime = row.arrangeTime + ' 00:00:00'; update([row]).then( () => { this.onLoad(this.page); @@ -360,7 +362,7 @@ export default { } ); }, - rowDel(row){ + rowDel(row) { this.$confirm('确定将选择数据删除?', { confirmButtonText: '确定', cancelButtonText: '取消', diff --git a/src/views/processManagement/components/addBasicProcessesDialog.vue b/src/views/processManagement/components/addBasicProcessesDialog.vue index b7101cb..ae7d6e6 100644 --- a/src/views/processManagement/components/addBasicProcessesDialog.vue +++ b/src/views/processManagement/components/addBasicProcessesDialog.vue @@ -195,6 +195,7 @@ export default { tableData: [], ruleForm: { cycle: 0, + isCheckout:'0' }, rules: { code: [{ required: true, message: '请输入', trigger: 'blur' }], diff --git a/src/views/productionManagement/productionMonitoring/index.vue b/src/views/productionManagement/productionMonitoring/index.vue index 31e6a84..0ae8533 100644 --- a/src/views/productionManagement/productionMonitoring/index.vue +++ b/src/views/productionManagement/productionMonitoring/index.vue @@ -30,39 +30,56 @@ @@ -90,7 +107,7 @@ :itemData="itemData" @closeDialog="closeDialog" > - + - + @@ -131,8 +153,8 @@ import batchesDialog from '../components/batchesDialog.vue'; import closedDialog from '../components/abnormalDialog.vue'; import abnormalDialog from '../components/abnormalDialog.vue'; import productionMonitoringDialog from '../components/productionMonitoringDialog.vue'; -import workRate from "@/views/workRate/index.vue"; -import { getList,turnType } from '@/api/productionManagement/productionMonitoring'; +import workRate from '@/views/workRate/index.vue'; +import { getList, turnType } from '@/api/productionManagement/productionMonitoring'; export default { components: { @@ -188,7 +210,7 @@ export default { editBtnText: '修改', viewBtnText: '详情', labelWidth: 120, - menuWidth: 380, + menuWidth: 240, dialogWidth: 1200, dialogClickModal: false, searchEnter: true, @@ -215,7 +237,7 @@ export default { sortable: true, overHidden: true, fixed: 'left', - width: 180, + width: 130, }, { @@ -410,7 +432,6 @@ export default { overHidden: true, width: 150, // searchLabelWidth: 100, - }, { label: '订单优先级', @@ -421,7 +442,7 @@ export default { overHidden: true, width: 150, // searchLabelWidth: 100, - hide:true, + hide: true, dicUrl: '/blade-system/dict/dictionary?code=orderPriority', props: { label: 'dictValue', @@ -594,8 +615,8 @@ export default { }, mounted() {}, methods: { - printCraftCard_new(row){ - window.open(window.PROCESS_FLOW_CARD_HEAT_METER+'?woId='+row.woId,'_blank'); + printCraftCard_new(row) { + window.open(window.PROCESS_FLOW_CARD_HEAT_METER + '?woId=' + row.woId, '_blank'); }, // 优先级调整 priorityFn(row) { @@ -648,9 +669,9 @@ export default { id: row.woId, yieldType: '12001', }; - turnType(query).then((res) => { - this.$message.success('转烧结成功'); - this.onLoad(this.page, this.query); + turnType(query).then(res => { + this.$message.success('转烧结成功'); + this.onLoad(this.page, this.query); }); }); }, @@ -707,7 +728,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) {