From c70ba0fa29945f5c9e83e4ddc1568f107b174970 Mon Sep 17 00:00:00 2001 From: wangxy Date: Wed, 17 Nov 2021 12:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E8=A3=85=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/pkg.vue | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/views/quality/pkg.vue b/src/views/quality/pkg.vue index 019a7db..8a1bc52 100644 --- a/src/views/quality/pkg.vue +++ b/src/views/quality/pkg.vue @@ -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%;