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. 284
      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

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

@ -87,7 +87,7 @@
<el-button type="primary" @click="menuButtonFlag"> <el-button type="primary" @click="menuButtonFlag">
主菜单<i class="el-icon-arrow-down el-icon--right"></i> 主菜单<i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </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 class="customer-li" command="0" :disabled="menuButton.prdButton"><span>生产订单</span>
</el-dropdown-item> </el-dropdown-item>
<hr width="95%"/> <hr width="95%"/>
@ -220,6 +220,7 @@ export default {
data() { data() {
return { return {
height: 800, height: 800,
menuShow:false,
showOperatorFlag: false, showOperatorFlag: false,
showReportFlag: false, showReportFlag: false,
fqcShowReportFlag: false, fqcShowReportFlag: false,
@ -1065,6 +1066,7 @@ export default {
methods: { methods: {
// //
menuButtonFlag() { menuButtonFlag() {
this.menuShow = false
if (JSON.stringify(this.currentRow) == '{}') { if (JSON.stringify(this.currentRow) == '{}') {
this.menuButton.prdButton = true this.menuButton.prdButton = true
this.menuButton.openButton = true this.menuButton.openButton = true
@ -1079,167 +1081,173 @@ export default {
this.menuButton.canceledAllPrdButton = true this.menuButton.canceledAllPrdButton = true
this.menuButton.createRecheckButton = true this.menuButton.createRecheckButton = true
} else { } else {
let currentRow = null
// //
let searchOrder = { let searchOrder = {
orderNo: this.currentRow.orderNo, orderNo: this.currentRow.orderNo,
seqNo: this.currentRow.seqNo, seqNo: this.currentRow.seqNo,
site: this.currentRow.site, 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];
});
this.menuButton.canceledAllPrdButton = false
this.menuButton.createRecheckButton = false
//
this.menuButton.prdButton = false
//
if (this.currentRow.closedFlag == 'N') {
let data = {
userSpecialSecurityNo: 230,
username: this.$store.state.user.name,
currentRow = data.rows[0];
if (currentRow == null){
return;
} }
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.closedButton = false
} else {
this.menuButton.closedButton = true
this.menuButton.canceledAllPrdButton = false
this.menuButton.createRecheckButton = false
//
this.menuButton.prdButton = false
//
if (currentRow.closedFlag == 'N') {
let data = {
userSpecialSecurityNo: 230,
username: this.$store.state.user.name,
} }
})
} else {
this.menuButton.closedButton = true
}
//
if (this.currentRow.closedFlag == 'Y') {
let data = {
userSpecialSecurityNo: 231,
username: this.$store.state.user.name,
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.closedButton = false
} else {
this.menuButton.closedButton = true
}
})
} else {
this.menuButton.closedButton = true
} }
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.openButton = false
} else {
this.menuButton.openButton = true
//
if (currentRow.closedFlag == 'Y') {
let data = {
userSpecialSecurityNo: 231,
username: this.$store.state.user.name,
} }
})
} else {
this.menuButton.openButton = true
}
//
if (this.currentRow.closedFlag == 'N' && this.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 (this.currentRow.costRollUpFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 238,
username: this.$store.state.user.name,
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.openButton = false
} else {
this.menuButton.openButton = true
}
})
} else {
this.menuButton.openButton = true
} }
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.costRollUpFlagButton = false
} else {
this.menuButton.costRollUpFlagButton = true
//
if (currentRow.closedFlag == 'N' && currentRow.parkFlag == 'N') {
this.menuButton.pauseButton = false
this.menuButton.openReverseButton = true
}
//
if (currentRow.closedFlag == 'N' & currentRow.parkFlag == 'Y') {
menuButton.openReverseButton = false
menuButton.pauseButton = true
}
//
if (currentRow.costRollUpFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 238,
username: this.$store.state.user.name,
} }
})
} else {
this.menuButton.costRollUpFlagButton = true
}
//
if (this.currentRow.costRollUpFlag == 'Y') {
//
let data = {
userSpecialSecurityNo: 238,
username: this.$store.state.user.name,
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.costRollUpFlagButton = false
} else {
this.menuButton.costRollUpFlagButton = true
}
})
} else {
this.menuButton.costRollUpFlagButton = true
} }
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.canceledCostRollUpFlagButton = false
} else {
this.menuButton.canceledCostRollUpFlagButton = true
//
if (currentRow.costRollUpFlag == 'Y') {
//
let data = {
userSpecialSecurityNo: 238,
username: this.$store.state.user.name,
} }
})
} else {
this.menuButton.canceledCostRollUpFlagButton = true
}
//
if (this.currentRow.manualFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 258,
username: this.$store.state.user.name,
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.canceledCostRollUpFlagButton = false
} else {
this.menuButton.canceledCostRollUpFlagButton = true
}
})
} else {
this.menuButton.canceledCostRollUpFlagButton = true
} }
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.manualFlagButton = false
} else {
this.menuButton.manualFlagButton = true
//
if (currentRow.manualFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 258,
username: this.$store.state.user.name,
} }
})
} else {
this.menuButton.manualFlagButton = true
}
//
if (this.currentRow.manualFlag == 'Y') {
//
let canceledAllPrdData = {
userSpecialSecurityNo: 259,
username: this.$store.state.user.name,
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.manualFlagButton = false
} else {
this.menuButton.manualFlagButton = true
}
})
} else {
this.menuButton.manualFlagButton = true
} }
getUserSpecialSecurity(canceledAllPrdData).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.canceledManualFlagButton = false
} else {
this.menuButton.canceledManualFlagButton = true
//
if (currentRow.manualFlag == 'Y') {
//
let canceledAllPrdData = {
userSpecialSecurityNo: 259,
username: this.$store.state.user.name,
} }
})
} else {
this.menuButton.canceledManualFlagButton = true
}
//
if (this.currentRow.repairSOFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 259,
username: this.$store.state.user.name,
getUserSpecialSecurity(canceledAllPrdData).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.canceledManualFlagButton = false
} else {
this.menuButton.canceledManualFlagButton = true
}
})
} else {
this.menuButton.canceledManualFlagButton = true
} }
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.repairSOFlagButton = false
} else {
this.menuButton.repairSOFlagButton = true
//
if (currentRow.repairSOFlag == 'N') {
//
let data = {
userSpecialSecurityNo: 259,
username: this.$store.state.user.name,
} }
})
} else {
this.menuButton.repairSOFlagButton = true
}
//
if (this.currentRow.repairSOFlag == 'Y') {
//
let data = {
userSpecialSecurityNo: 259,
username: this.$store.state.user.name,
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.repairSOFlagButton = false
} else {
this.menuButton.repairSOFlagButton = true
}
})
} else {
this.menuButton.repairSOFlagButton = true
} }
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.canceledRepairSOFlagButton = false
} else {
this.menuButton.canceledRepairSOFlagButton = true
//
if (currentRow.repairSOFlag == 'Y') {
//
let data = {
userSpecialSecurityNo: 259,
username: this.$store.state.user.name,
} }
})
} else {
this.menuButton.canceledRepairSOFlagButton = true
}
getUserSpecialSecurity(data).then(({data}) => {
if (data.userSpecialSecurity == 'Y') {
this.menuButton.canceledRepairSOFlagButton = false
} else {
this.menuButton.canceledRepairSOFlagButton = true
}
})
} else {
this.menuButton.canceledRepairSOFlagButton = true
}
this.menuShow=true
});
} }
}, },
/*区分不同的菜单 调用不同的方法 调用不同的方法*/ /*区分不同的菜单 调用不同的方法 调用不同的方法*/
handleCommand(val) { handleCommand(val) {

Loading…
Cancel
Save