From 6eded3ab5ab0cf0fc757e03680df995e1fff9fab Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 15 Jul 2024 15:45:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8B=86=E5=8C=85=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/qty/numberBox.vue | 208 ++++++++++++++++++ .../package/record/splitPackageRecord.vue | 16 +- src/pages/point/index.vue | 2 + 3 files changed, 217 insertions(+), 9 deletions(-) create mode 100644 src/mycomponents/qty/numberBox.vue diff --git a/src/mycomponents/qty/numberBox.vue b/src/mycomponents/qty/numberBox.vue new file mode 100644 index 00000000..737b7fe9 --- /dev/null +++ b/src/mycomponents/qty/numberBox.vue @@ -0,0 +1,208 @@ + + + + diff --git a/src/pages/package/record/splitPackageRecord.vue b/src/pages/package/record/splitPackageRecord.vue index 8975100e..04aff03d 100644 --- a/src/pages/package/record/splitPackageRecord.vue +++ b/src/pages/package/record/splitPackageRecord.vue @@ -17,8 +17,8 @@ 拆出数量 : - - + + @@ -82,7 +82,7 @@ import comPackageRecord from '@/pages/package/coms/comPackageRecord.vue' import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue' import uom from '@/mycomponents/qty/uom.vue' - + import numberBox from '@/mycomponents/qty/numberBox.vue' export default { components: { winScanButton, @@ -95,7 +95,8 @@ recordComDetailCard, comPackageRecord, winComScanBalance, - uom + uom, + numberBox }, data() { return { @@ -264,8 +265,8 @@ commit() { if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { - if(this.splitCount==0){ - this.showErrorMessage("拆出数量不能等于0") + if(this.splitCount<=0){ + this.showErrorMessage("拆出数量必须大于0") return; } if(this.splitCount>=this.detailSource[0].qty){ @@ -393,9 +394,6 @@ calcQty(val) { this.splitCount =val; - // if(val<=0){ - // this.showErrorMessage("数量必须大于0") - // } }, } diff --git a/src/pages/point/index.vue b/src/pages/point/index.vue index 6f8e1706..d37f6815 100644 --- a/src/pages/point/index.vue +++ b/src/pages/point/index.vue @@ -126,6 +126,8 @@ _this.isLoadFinish = true uni.hideLoading(); + }else { + console.log(index); } }).catch(err => { console.log(err);