Browse Source

2025-12-22

过站采集操作员切换【关闭】时不进机台工作台
master
fengyuan_yang 3 weeks ago
parent
commit
50dbb05687
  1. 28
      src/views/modules/qc/outboundNotification.vue
  2. 46
      src/views/modules/yieldReport/com_switch_operator.vue
  3. 12
      src/views/modules/yieldReport/produce_order.vue

28
src/views/modules/qc/outboundNotification.vue

@ -313,22 +313,22 @@
<el-table-column
prop="partNo"
header-align="center"
align="center"
min-width="80"
align="left"
min-width="120"
label="物料编码">
</el-table-column>
<el-table-column
prop="partDesc"
header-align="center"
align="left"
min-width="120"
min-width="200"
label="物料名称">
</el-table-column>
<el-table-column
prop="unit"
prop="umName"
header-align="center"
align="left"
min-width="120"
align="center"
min-width="100"
label="物料单位">
</el-table-column>
</el-table>
@ -421,33 +421,33 @@
<el-table-column
prop="relatedOrderNo"
header-align="center"
align="center"
min-width="80"
align="left"
min-width="150"
label="采购订单">
</el-table-column>
<el-table-column
prop="relatedOrderLineNo"
header-align="center"
align="right"
min-width="100"
align="left"
min-width="200"
label="行号">
</el-table-column>
<el-table-column
prop="partNo"
header-align="center"
align="center"
min-width="80"
align="left"
min-width="120"
label="物料编码">
</el-table-column>
<el-table-column
prop="partDesc"
header-align="center"
align="left"
min-width="150"
min-width="200"
label="物料名称">
</el-table-column>
<el-table-column
prop="unit"
prop="umName"
header-align="center"
align="center"
min-width="100"

46
src/views/modules/yieldReport/com_switch_operator.vue

@ -1,7 +1,7 @@
<template>
<!-- 操作员切换模块 -->
<div class="customer-css">
<el-dialog :title="titleCon" v-bind="$attrs" v-on="$listeners" width="800px" :close-on-click-modal="false">
<el-dialog :title="titleCon" v-bind="$attrs" v-on="$listeners" width="800px" :close-on-click-modal="false" :before-close="handleDialogClose">
<!-- 上部分添加操作员 -->
<el-form v-if="!isAttendanceMode" :inline="true" @submit.native.prevent label-position="top" label-width="100px" style="margin-bottom: 15px;">
<el-row>
@ -110,7 +110,7 @@
<!-- 底部保存和关闭按钮 -->
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveOperatorData">{{ buttons.saveButton }}</el-button>
<el-button @click="closeDialog">{{ buttons.closeButton }}</el-button>
<el-button @click="closeDialog(false)">{{ buttons.closeButton }}</el-button>
</div>
</el-dialog>
<!--列表的组件-->
@ -174,6 +174,8 @@ export default {
currentSchedule: {},
//
isAttendanceMode: false,
// truefalse
navigateOnClose: true,
buttons: {
saveButton: '保存',
closeButton: '关闭',
@ -273,8 +275,16 @@ export default {
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')} ${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}:${String(date.getSeconds()).padStart(2, '0')}`;
},
/*处理对话框关闭(点击右上角X按钮时触发)*/
handleDialogClose(done) {
//
this.closeDialog(false);
// done
done();
},
/*关闭modal*/
closeDialog() {
closeDialog(isSaveAction = false) {
//
this.$emit('update:visible', false);
@ -283,23 +293,33 @@ export default {
return;
}
// 使使
//
this.operatorData.operatorId = this.$store.state.user.name;
this.operatorData.operatorName = this.$store.state.user.userDisplay;
this.operatorData.status = 'Y';
//
// 1. isSaveAction = true
// 2. navigateOnClose
// - navigateOnClose = true
// - navigateOnClose = false
if (isSaveAction === true || this.navigateOnClose === true) {
//
this.operatorData.operatorId = this.$store.state.user.name;
this.operatorData.operatorName = this.$store.state.user.userDisplay;
this.operatorData.status = 'Y';
// ,
this.$emit('initOperatorData', this.operatorData);
// ,
this.$emit('initOperatorData', this.operatorData);
}
// navigateOnClose = false
},
//
init(val, scheduleRow, isAttendanceMode = false) {
init(val, scheduleRow, isAttendanceMode = false, navigateOnClose = true) {
//
this.currentSchedule = scheduleRow || {};
//
this.isAttendanceMode = isAttendanceMode;
// falsetrue
this.navigateOnClose = navigateOnClose;
//
this.operatorData.operatorName = this.$store.state.user.userDisplay;
@ -535,8 +555,8 @@ export default {
this.operatorData.status = 'Y';
this.operatorFlag = true;
//
this.closeDialog();
// true
this.closeDialog(true);
});
},

12
src/views/modules/yieldReport/produce_order.vue

@ -1923,7 +1923,7 @@ export default {
//
this.showOperatorFlag = true
this.$nextTick(() => {
this.$refs.comSwitchOperator.init(val, this.currentRow)
this.$refs.comSwitchOperator.init(val, this.currentRow, false, false)
})
}
if (data.code == 300) {
@ -1938,7 +1938,7 @@ export default {
//
this.showOperatorFlag = true
this.$nextTick(() => {
this.$refs.comSwitchOperator.init(val, this.currentRow)
this.$refs.comSwitchOperator.init(val, this.currentRow, false, false)
})
})
}
@ -1948,7 +1948,7 @@ export default {
let orderType = this.currentRow.orderType
if (orderType === 'D') {
this.showOperatorFlag = true
this.$refs.comSwitchOperator.init(val, this.currentRow)
this.$refs.comSwitchOperator.init(val, this.currentRow, false, false)
} else {
this.$message.error(this.labels.thisOrderIsNotSplitOrder)
return false
@ -1958,7 +1958,7 @@ export default {
let workCenterNo = this.currentRow.workCenterNo
if (workCenterNo === 'FQC' || nextItemNo == 0) {
this.showOperatorFlag = true
this.$refs.comSwitchOperator.init(val, this.currentRow)
this.$refs.comSwitchOperator.init(val, this.currentRow, false, false)
} else {
this.$message.error(this.labels.thisScheduleIsNotFqc)
return false
@ -1971,7 +1971,7 @@ export default {
//
this.showOperatorFlag = true
this.$nextTick(() => {
this.$refs.comSwitchOperator.init(val, this.currentRow)
this.$refs.comSwitchOperator.init(val, this.currentRow, false, false)
})
} else {
this.$alert(this.labels.thisOrderIsNotSpecialOrder, '提示', {
@ -1984,7 +1984,7 @@ export default {
//
this.showOperatorFlag = true
this.$nextTick(() => {
this.$refs.comSwitchOperator.init(val, this.currentRow)
this.$refs.comSwitchOperator.init(val, this.currentRow, false, false)
})
}
}

Loading…
Cancel
Save