From 4934b92ae270511980af0f36caa92d4237593732 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Fri, 16 Dec 2022 17:37:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/codeReplace.vue | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/views/business/codeReplace.vue b/src/views/business/codeReplace.vue index bb77622..7f61ca7 100644 --- a/src/views/business/codeReplace.vue +++ b/src/views/business/codeReplace.vue @@ -258,13 +258,28 @@ export default { this.getCodeList(); }, handleCurrentChange(val) { - this.query.page = val; - this.getCodeList(); + this.query.page =val; + this.getCodeList1(); + }, + getCodeList1() { + this.loading = true; + this.query.corpOrderId = this.idQuery.id; + codeList(this.query) //查找该单号下的所有条码 + .then((response) => { + this.loading = false; + this.codeArry = response.data.list || []; + this.total = response.data.total || 0; + }) + .catch(() => { + this.loading = false; + this.list = []; + this.total = 0; + }); }, - getCodeList() { this.loading = true; this.query.corpOrderId = this.idQuery.id; + this.query.page=1 codeList(this.query) //查找该单号下的所有条码 .then((response) => { this.loading = false;