|
|
@ -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%; |
|
|
|