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) })