Browse Source

换包装页面 sxm 2022-3-28

master
[li_she] 4 years ago
parent
commit
d68ad0ca8c
  1. 5
      build/webpack.dev.conf.js
  2. 45
      src/views/modules/yieldReport/produce_order.vue

5
build/webpack.dev.conf.js

@ -26,7 +26,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
compress: true, compress: true,
host: HOST || config.dev.host, host: HOST || config.dev.host,
port: PORT || config.dev.port, port: PORT || config.dev.port,
open: config.dev.autoOpenBrowser,
open: false,//config.dev.autoOpenBrowser,
overlay: config.dev.errorOverlay overlay: config.dev.errorOverlay
? { warnings: false, errors: true } ? { warnings: false, errors: true }
: false, : false,
@ -67,7 +67,8 @@ module.exports = new Promise((resolve, reject) => {
// Add FriendlyErrorsPlugin // Add FriendlyErrorsPlugin
devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
compilationSuccessInfo: { compilationSuccessInfo: {
messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
messages: [ `Local: http://localhost:${port}`,
`Network: http://${require('ip').address()}:${port}`,],
}, },
onErrors: config.dev.notifyOnErrors onErrors: config.dev.notifyOnErrors
? utils.createNotifierCallback() ? utils.createNotifierCallback()

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

@ -186,6 +186,9 @@
:visible.sync="fqcRollShowReportFlag" ref="fqcSplitRollReport"></fqcSplitRollReport> :visible.sync="fqcRollShowReportFlag" ref="fqcSplitRollReport"></fqcSplitRollReport>
<!-- 创建重检派工单 --> <!-- 创建重检派工单 -->
<createRecheck ref="createRecheck"></createRecheck> <createRecheck ref="createRecheck"></createRecheck>
<!-- 换包装 -->
<changePackaging :close-on-click-modal="false"
:visible.sync="changePackagingFlag" ref="changePackaging"></changePackaging>
</div> </div>
</template> </template>
@ -210,6 +213,7 @@ import comFinishSchedule from "./com_finish_schedule";/*结束派工的组件*/
import fqcProduceReportNormal from "./otherReport/fqc_produce_report_normal";/*结束派工的组件*/ import fqcProduceReportNormal from "./otherReport/fqc_produce_report_normal";/*结束派工的组件*/
import reworkInspectReport from "./otherReport/rework_inspect_report";/*结束派工的组件*/ import reworkInspectReport from "./otherReport/rework_inspect_report";/*结束派工的组件*/
import fqcSplitRollReport from "./otherReport/fqc_split_roll_report";/*结束派工的组件*/ import fqcSplitRollReport from "./otherReport/fqc_split_roll_report";/*结束派工的组件*/
import changePackaging from "./otherReport/change_packaging";/*结束派工的组件*/
import createRecheck from './com_create_recheck' import createRecheck from './com_create_recheck'
export default { export default {
@ -222,6 +226,7 @@ export default {
reworkShowReportFlag: false, reworkShowReportFlag: false,
fqcRollShowReportFlag: false, fqcRollShowReportFlag: false,
showFinishScheduleFlag: false, showFinishScheduleFlag: false,
changePackagingFlag: false,
searchData: { searchData: {
site: this.$store.state.user.site, site: this.$store.state.user.site,
resourceId: '', resourceId: '',
@ -1048,7 +1053,9 @@ export default {
fqcProduceReportNormal, /*FQC报工*/ fqcProduceReportNormal, /*FQC报工*/
reworkInspectReport, /*返工重建*/ reworkInspectReport, /*返工重建*/
fqcSplitRollReport, /*FQC分卷*/ fqcSplitRollReport, /*FQC分卷*/
createRecheck /*创建重检派工单*/
createRecheck,/*创建重检派工单*/
changePackaging, /*换包装*/
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
@ -1072,6 +1079,17 @@ export default {
this.menuButton.canceledAllPrdButton = true this.menuButton.canceledAllPrdButton = true
this.menuButton.createRecheckButton = true this.menuButton.createRecheckButton = true
} else { } else {
//
let searchOrder = {
orderNo: this.currentRow.orderNo,
seqNo: this.currentRow.seqNo,
site: this.currentRow.site,
searchFlag:true
}
getProduceScheduleList(searchOrder).then(({data}) => {
//
this.currentRow = data.rows[0];
});
this.menuButton.canceledAllPrdButton = false this.menuButton.canceledAllPrdButton = false
this.menuButton.createRecheckButton = false this.menuButton.createRecheckButton = false
// //
@ -1176,7 +1194,7 @@ export default {
userSpecialSecurityNo: 259, userSpecialSecurityNo: 259,
username: this.$store.state.user.name, username: this.$store.state.user.name,
} }
getUserSpecialSecurity(data).then(({data}) => {
getUserSpecialSecurity(canceledAllPrdData).then(({data}) => {
if (data.userSpecialSecurity == 'Y') { if (data.userSpecialSecurity == 'Y') {
this.menuButton.canceledManualFlagButton = false this.menuButton.canceledManualFlagButton = false
} else { } else {
@ -1557,7 +1575,16 @@ export default {
}, },
// //
changePackaging() { changePackaging() {
//
if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!');
return false;
}
//
this.changePackagingFlag = true;
this.$nextTick(() => {
this.$refs.changePackaging.init(this.currentRow.seqNo, this.operatorData);
});
}, },
/*查询派工单*/ /*查询派工单*/
getProduceScheduleList() { getProduceScheduleList() {
@ -1601,6 +1628,10 @@ export default {
//fqc //fqc
this.fqcSplitRollModal(); this.fqcSplitRollModal();
} }
if (operatorData.reportType == 4) {
//
this.changePackaging();
}
}, },
notInitOperatorData(val) { notInitOperatorData(val) {
@ -1627,9 +1658,11 @@ export default {
//fqc //fqc
this.fqcSplitRollModal(); this.fqcSplitRollModal();
} }
if (val == 4) {
//fqc
this.changePackaging();
}
}, },
//modal //modal
switchOperatorModal(val) { switchOperatorModal(val) {
@ -1680,7 +1713,6 @@ export default {
} }
}, },
//modal //modal
switchProduceReportModal() { switchProduceReportModal() {
// //
@ -1850,6 +1882,5 @@ hr {
} }
/*控制上下间距*/ /*控制上下间距*/
</style> </style>
Loading…
Cancel
Save