diff --git a/pages/deliver/coms/comDeliverRequestPopup.vue b/pages/deliver/coms/comDeliverRequestPopup.vue index f1d4db60..8e16f7f3 100644 --- a/pages/deliver/coms/comDeliverRequestPopup.vue +++ b/pages/deliver/coms/comDeliverRequestPopup.vue @@ -42,10 +42,13 @@ 数量 : - - + + + @@ -109,7 +112,9 @@ isModifiedPosition: true, customerList: [], customerName: "请选择客户", - customerCode:"" + customerCode:"", + maxlength:10, + stdPackInfo:undefined } }, props: { @@ -119,6 +124,21 @@ }, }, methods: { + checkNum(e) { + let value = e.detail.value; + let dot = value.indexOf('.'); //包含小数点 + let reg = /^[0-9]+$/; //正整数 + if (dot > -1) { + this.maxlength = dot + 7; //长度是小数点后两位 + if (value.length > dot + 7) { + + } + } + if (reg.test(value)) { //如果是正整数不包含小数点 + this.maxlength = 10; + } + this.change(value) + }, openRequestPopup(editPosition) { if (this.customerList.length == 0) { getBasicCustomerList().then(res => {