From e806fedef9b929077d1f765ae901fa3e196723fc Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Mon, 13 Feb 2023 16:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=86=9C=E4=BA=8B=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=86=9C=E4=BA=8B=E7=B1=BB=E5=9E=8B=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=86=9C=E8=B5=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/add_farming.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index d6c8508..ba4fbad 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -295,7 +295,8 @@ export default { if(!this.formData.farmingType){ uni.showToast({title:"农资类型必选!",icon:"none"}) return false - }else if(this.formData.inputList.length<=0){ + //农事类型 为播种、施肥、用药 必选添加农资 + }else if(/^1$|^3$|^5$/.test(this.formData.farmingType) && this.formData.inputList.length<=0){ uni.showToast({title:"请添加农资!",icon:"none"}) return false }