From f81df3b428bf1cf4196929e1135f0d22ae066399 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 18 Oct 2024 10:08:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/qty/numbeIntegerrBox.vue | 3 ++- src/pages/issue/request/issueScanRequest.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mycomponents/qty/numbeIntegerrBox.vue b/src/mycomponents/qty/numbeIntegerrBox.vue index 4705aa9b..d3b3ce1f 100644 --- a/src/mycomponents/qty/numbeIntegerrBox.vue +++ b/src/mycomponents/qty/numbeIntegerrBox.vue @@ -78,7 +78,8 @@ var hint = event.detail.value; if (!Number.isInteger(hint)) { // 如果不是整数,则设置为上一个有效值 - this.inputValue = hint.toString().match(/^\d+/) || 0; + this.inputValue = hint.toString().match(/^\d+/) + // this.inputValue = hint.toString().match(/^\d+/) || 0; } else { // 如果是整数,则更新数据 this.inputValue = hint; diff --git a/src/pages/issue/request/issueScanRequest.vue b/src/pages/issue/request/issueScanRequest.vue index 710e652e..3a5322d0 100644 --- a/src/pages/issue/request/issueScanRequest.vue +++ b/src/pages/issue/request/issueScanRequest.vue @@ -177,7 +177,6 @@ } }, goScan() { - this.stopRefresh(); this.subList=[] this.detailSource={ subList: [] @@ -270,6 +269,7 @@ var params = this.setParams() console.log("提交参数", JSON.stringify(params)); issueRequestSubmit(params).then(res => { + this.stopRefresh() uni.hideLoading() if (res.data) { this.showCommitSuccessMessage("提交成功\n生成发料申请[" + res.data + "]") @@ -277,6 +277,7 @@ this.showCommitSuccessMessage("提交成功") } }).catch(error => { + this.stopRefresh() uni.hideLoading() this.showErrorMessage(error) })