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


Loading…
Cancel
Save