Browse Source

换包装页面 sxm 2022-3-28

master
[li_she] 4 years ago
parent
commit
718d31ac2b
  1. 3662
      src/views/modules/yieldReport/otherReport/change_packaging.vue
  2. 46
      src/views/modules/yieldReport/produce_order.vue

3662
src/views/modules/yieldReport/otherReport/change_packaging.vue
File diff suppressed because it is too large
View File

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

@ -87,7 +87,7 @@
<el-button type="primary" @click="menuButtonFlag">
主菜单<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-menu v-show="menuShow" slot="dropdown">
<el-dropdown-item class="customer-li" command="0" :disabled="menuButton.prdButton"><span>生产订单</span>
</el-dropdown-item>
<hr width="95%"/>
@ -220,6 +220,7 @@ export default {
data() {
return {
height: 800,
menuShow:false,
showOperatorFlag: false,
showReportFlag: false,
fqcShowReportFlag: false,
@ -1065,6 +1066,7 @@ export default {
methods: {
//
menuButtonFlag() {
this.menuShow = false
if (JSON.stringify(this.currentRow) == '{}') {
this.menuButton.prdButton = true
this.menuButton.openButton = true
@ -1079,23 +1081,28 @@ export default {
this.menuButton.canceledAllPrdButton = true
this.menuButton.createRecheckButton = true
} else {
let currentRow = null
//
let searchOrder = {
orderNo: this.currentRow.orderNo,
seqNo: this.currentRow.seqNo,
site: this.currentRow.site,
searchFlag:true
username: this.$store.state.user.name,
searchFlag: true
}
getProduceScheduleList(searchOrder).then(({data}) => {
currentRow = getProduceScheduleList(searchOrder).then(({data}) => {
//
this.currentRow = data.rows[0];
});
currentRow = data.rows[0];
if (currentRow == null){
return;
}
this.menuButton.canceledAllPrdButton = false
this.menuButton.createRecheckButton = false
//
//
this.menuButton.prdButton = false
//
if (this.currentRow.closedFlag == 'N') {
if (currentRow.closedFlag == 'N') {
let data = {
userSpecialSecurityNo: 230,
username: this.$store.state.user.name,
@ -1111,7 +1118,7 @@ export default {
this.menuButton.closedButton = true
}
//
if (this.currentRow.closedFlag == 'Y') {
if (currentRow.closedFlag == 'Y') {
let data = {
userSpecialSecurityNo: 231,
username: this.$store.state.user.name,
@ -1127,17 +1134,17 @@ export default {
this.menuButton.openButton = true
}
//
if (this.currentRow.closedFlag == 'N' && this.currentRow.parkFlag == 'N') {
if (currentRow.closedFlag == 'N' && currentRow.parkFlag == 'N') {
this.menuButton.pauseButton = false
this.menuButton.openReverseButton = true
}
//
if (this.currentRow.closedFlag == 'N' & this.currentRow.parkFlag == 'Y') {
this.menuButton.openReverseButton = false
this.menuButton.pauseButton = true
if (currentRow.closedFlag == 'N' & currentRow.parkFlag == 'Y') {
menuButton.openReverseButton = false
menuButton.pauseButton = true
}
//
if (this.currentRow.costRollUpFlag == 'N') {
if (currentRow.costRollUpFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 238,
@ -1154,7 +1161,7 @@ export default {
this.menuButton.costRollUpFlagButton = true
}
//
if (this.currentRow.costRollUpFlag == 'Y') {
if (currentRow.costRollUpFlag == 'Y') {
//
let data = {
userSpecialSecurityNo: 238,
@ -1171,7 +1178,7 @@ export default {
this.menuButton.canceledCostRollUpFlagButton = true
}
//
if (this.currentRow.manualFlag == 'N') {
if (currentRow.manualFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 258,
@ -1188,7 +1195,7 @@ export default {
this.menuButton.manualFlagButton = true
}
//
if (this.currentRow.manualFlag == 'Y') {
if (currentRow.manualFlag == 'Y') {
//
let canceledAllPrdData = {
userSpecialSecurityNo: 259,
@ -1205,7 +1212,7 @@ export default {
this.menuButton.canceledManualFlagButton = true
}
//
if (this.currentRow.repairSOFlag == 'N') {
if (currentRow.repairSOFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 259,
@ -1222,7 +1229,7 @@ export default {
this.menuButton.repairSOFlagButton = true
}
//
if (this.currentRow.repairSOFlag == 'Y') {
if (currentRow.repairSOFlag == 'Y') {
//
let data = {
userSpecialSecurityNo: 259,
@ -1238,8 +1245,9 @@ export default {
} else {
this.menuButton.canceledRepairSOFlagButton = true
}
this.menuShow=true
});
}
},
/*区分不同的菜单 调用不同的方法 调用不同的方法*/
handleCommand(val) {

Loading…
Cancel
Save