diff --git a/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue b/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue index e3a00ee1..12934fb7 100644 --- a/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue +++ b/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue @@ -126,12 +126,12 @@ @@ -760,6 +760,23 @@ export default { this.attachmentList.splice(sum, 1) this.baseInfo.inspectAttachmentList.splice(sum, 1) }, + patternValue(row){ + row.deliveryNum = row.deliveryNum.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1') + setTimeout(()=>{ + if(Number(row.deliveryNum)>Number(row.orderNum)){ + row.deliveryNum = row.orderNum + } + },500) + + }, + patternValue2(row){ + row.qualifiedNum = row.qualifiedNum.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1') + setTimeout(()=>{ + if(Number(row.qualifiedNum)>Number(row.deliveryNum)){ + row.qualifiedNum = row.deliveryNum + } + },500) + }, //日期 formatDate(date) { // 格式化为 YYYY-MM-DD