#150 包装优化

Merged
Liwei merged 1 commits from feature_supplier into develop 3 years ago
  1. +5
    -10
      src/views/quality/pkg.vue

+ 5
- 10
src/views/quality/pkg.vue View File

@ -138,7 +138,7 @@ export default {
this.codeRules = res.data
})
},
getPackorder() { //
getPackorder(orderId) { //
this.loading = true
api.getPackorder().then((res) => {
if (res.data && res.data.length) {
@ -147,6 +147,9 @@ export default {
})
}
this.pkgs = res.data || []
if (orderId) { //
this.choosePkg(orderId)
}
this.loading = false
})
},
@ -164,13 +167,6 @@ export default {
api.packorderitemlst(this.activePkg).then((res) => {
this.tableData = res.data || []
this.tableLoading = false
// let newPkgsArray = this.tableData.filter((el) => el['LOG_PackOrderItemlst-Status'] !== 80)
// if (newPkgsArray.length === 0) {
// this.activePkg = ''
// this.actPkgObj = {}
// this.tableData = []
// this.getPackorder()
// }
})
},
checkCodeInPkgs(code) { //
@ -225,7 +221,7 @@ export default {
this.tempData = res.data.Items
})
} else if (res.data.InfoType === "success") { //
this.getPackorder() //
this.getPackorder(res.data.PackOrderId) //
this.msgSuccess(res.data.Message)
} else if (res.data.InfoType === "waiting") { //
this.msgError(res.data.Message)
@ -368,7 +364,6 @@ export default {
width: 100%;
height: calc(100% - 85px);
background: #F5F7FC;
// margin-top: 32px;
.pck-list-container { //
display: flex;
width: 100%;


Loading…
Cancel
Save