From acf6a4e6d049e09b94b4102fe277656af64a4cf8 Mon Sep 17 00:00:00 2001
From: OathK1per <zhangypg@gmail.com>
Date: Tue, 15 Nov 2022 17:59:04 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=BC=98?=
 =?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../resources/templates/admin/project_estimate_edit.ftl    | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/main/resources/templates/admin/project_estimate_edit.ftl b/src/main/resources/templates/admin/project_estimate_edit.ftl
index 1f84ee6..61e4ddb 100644
--- a/src/main/resources/templates/admin/project_estimate_edit.ftl
+++ b/src/main/resources/templates/admin/project_estimate_edit.ftl
@@ -711,6 +711,7 @@
         var endTime = $("#endDate").val();
         var underwrittenMode = $("#underwrittenMode").val();
         var collaborator = $("#collaborator").val();
+        var collaboratorUrl = $("#collaboratorUrl").val();
         var advanceInterestAmount = $("#advanceInterestAmount").val();
         var advancePeakAmount = $("#advancePeakAmount").val();
         var contractAmount = $("#contractAmount").val();
@@ -796,6 +797,12 @@
             return;
         }
 
+        if (cooperateType == 1 && (collaboratorUrl == undefined || collaboratorUrl.length <= 0 )) {
+            window.confirm('合作对象附件不能为空');
+            check = 1;
+            return;
+        }
+
 
         if (underwrittenMode > 2 && (advanceInterestAmount == undefined || advanceInterestAmount.length <= 0)) {
             window.confirm('垫资利息不能为空');