From e4be5ba9eea9fe8408f3a7048a315b3767b33f49 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 23 二月 2024 09:54:38 +0800
Subject: [PATCH] mrshi

---
 company/src/components/business/OperaApplyChangeCheckWindow.vue |   44 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 40 insertions(+), 4 deletions(-)

diff --git a/company/src/components/business/OperaApplyChangeCheckWindow.vue b/company/src/components/business/OperaApplyChangeCheckWindow.vue
index 08a4444..fbabe10 100644
--- a/company/src/components/business/OperaApplyChangeCheckWindow.vue
+++ b/company/src/components/business/OperaApplyChangeCheckWindow.vue
@@ -30,7 +30,7 @@
                         </el-radio-group>
                     </div>
                 </div>
-                <div class="form_item">
+                <div class="form_item" v-if="form.selectRadio === 1">
                     <div class="form_item_label"><span>*</span>鎵瑰崟鐢熸晥璧锋湡锛�</div>
                     <div class="form_item_val">
                         <el-date-picker
@@ -52,7 +52,7 @@
                     </div>
                 </div>
                 <div class="form_item">
-                    <div class="form_item_label">涓婁紶鎵瑰崟锛�</div>
+                    <div class="form_item_label"><span>*</span>涓婁紶鎵瑰崟锛�</div>
                     <div class="form_item_val">
                       <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" />
                     </div>
@@ -200,14 +200,50 @@
      },
     doSubmit(){
       if (this.flag == 1) {
+          if (!this.form.backCheckInfo) {
+              this.$message.warning('璇疯緭鍏ラ��鍥炶鏄�')
+              return
+          }
         this.backDo()
       } else if (this.flag == 3) {
+          if (this.form.selectRadio === 1 && !this.form.applyStartTime) {
+              this.$message.warning('璇烽�夋嫨鎵瑰崟鐢熸晥璧锋湡')
+              return
+          }
+          if (!this.form.validCode) {
+              this.$message.warning('璇疯緭鍏ユ壒鍗曞彿')
+              return
+          }
+          if (!this.form.pidanFile) {
+              this.$message.warning('璇蜂笂浼犳壒鍗�')
+              return
+          }
         this.uploadPidan()
       } else if (this.flag == 4) {
+          if (!this.form.editValidCode) {
+              this.$message.warning('璇疯緭鍏ユ壒鍗曞彿')
+              return
+          }
+          if (!this.form.editPidanFile) {
+              this.$message.warning('璇蜂笂浼犳壒鍗�')
+              return
+          }
+          if (!this.form.editCheckInfo) {
+              this.$message.warning('璇疯緭鍏ヤ慨鏀瑰師鍥�')
+              return
+          }
         this.editPidan()
       } else if (this.flag == 5) {
+          if (!this.form.dealBackInfo) {
+              this.$message.warning('璇疯緭鍏ヨ鏄�')
+              return
+          }
         this.dealBackApply(1)
       } else if (this.flag == 6) {
+          if (!this.form.dealBackInfo) {
+              this.$message.warning('璇疯緭鍏ラ��鍥炶鏄�')
+              return
+          }
         this.dealBackApply(0)
       }
     },
@@ -215,7 +251,7 @@
        if(this.form.selectRadio == 0){
          this.form.applyStartTime = this.model.validTime
        }else{
-
+        this.form.applyStartTime = ''
        }
     },
     baoxianFileUploaded(data){
@@ -343,7 +379,7 @@
             }
             .form_item_label {
                 flex-shrink: 0;
-                width: 170px;
+                width: 150px;
                 color: black;
                 font-size: 14px;
                 span {

--
Gitblit v1.9.3