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