Browse Source

包装代码优化

pull/66/head
wangxy 3 years ago
parent
commit
0e9bfc1f19
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/views/quality/pkg.vue

+ 4
- 4
src/views/quality/pkg.vue View File

@ -151,7 +151,7 @@ export default {
},
choosePkg(PackOrderId) { //
this.activePkg = PackOrderId
this.actPkgObj = this.pkgs.filter((pkg) => pkg.PackOrderId == PackOrderId)[0] || null
this.actPkgObj = this.pkgs.filter((pkg) => pkg.PackOrderId == PackOrderId)[0] || {}
this.packorderitemlst() //
this.$nextTick(() => {
if (this.$refs[`${PackOrderId}`])
@ -166,7 +166,7 @@ export default {
// let newPkgsArray = this.tableData.filter((el) => el['LOG_PackOrderItemlst-Status'] !== 80)
// if (newPkgsArray.length === 0) {
// this.activePkg = ''
// this.actPkgObj = null
// this.actPkgObj = {}
// this.tableData = []
// this.getPackorder()
// }
@ -245,11 +245,11 @@ export default {
this.pkgs = res.data || []
if (this.pkgs.length > 0) {
this.activePkg = this.pkgs[0]['LOG_PackOrder-PackOrderId']
this.actPkgObj = this.pkgs[0] || null
this.actPkgObj = this.pkgs[0] || {}
this.packorderitemlst()
} else {
this.activePkg = ''
this.actPkgObj = null
this.actPkgObj = {}
this.tableData = []
}
})


Loading…
Cancel
Save