2
3
Просмотр исходного кода

前端: 审批意见或备注内容长度限制降低为2个字

baichengfei 5 лет назад
Родитель
Сommit
ce73576ce0

+ 8 - 8
src/dashoo.cn/frontend_web/src/components/oilcontract/submitPopup.vue

@@ -198,7 +198,7 @@ export default {
         MajorDept: ''
       },
       btnloading: false,
-      textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
+      textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容)',
 
       // 专业科室接收
       ProfessionalAudit: '',
@@ -278,17 +278,17 @@ export default {
     // 选择审批选项
     radioChange () {
       if (this.shenheForm.SuccessStatus === 1) {
-        // this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
+        // this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容)'
         if (this.formData.Status === '5') {
           this.textplaceholder = '请填写审批意见'
         } else {
-          this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
+          this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容)'
         }
       } else {
         if (this.formData.Status === '5') {
           this.textplaceholder = ''
         } else {
-          this.textplaceholder = '退回意见不能少于5个字'
+          this.textplaceholder = '退回意见不能少于2个字'
         }
         this.shenheForm.AuditorRemark = ''
       }
@@ -365,11 +365,11 @@ export default {
             }
           }
         }
-        if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData
+        if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData
           .Status !== '5' && this.formData.Status !== '10') {
           this.$message({
             type: 'warning',
-            message: '审批意见不能低于20个字符!'
+            message: '审批意见不能少于2个字!'
           })
           return false
         }
@@ -384,11 +384,11 @@ export default {
         if (this.formData.Status === '10') {
           this.shenheForm.AuditorRemark = this.backRemark
         }
-        if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData
+        if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData
           .Status !== '5') {
           this.$message({
             type: 'warning',
-            message: '退回意见不能低于5个字符!'
+            message: '退回意见不能少于2个字!'
           })
           return
         }

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/basisdataopera.vue

@@ -1569,7 +1569,7 @@
           if (this.shenheForm.AuditorRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '退回意见不能少于2个字!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }

+ 17 - 17
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/techoperation.vue

@@ -722,7 +722,7 @@
           </el-col>
           <el-col :span="24" v-if="shenheForm.SuccessStatus == 0">
             <el-form-item label="退回原因">
-              <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="退回意见不能少于5个字">
+              <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="退回意见不能少于2个字">
               </el-input>
             </el-form-item>
           </el-col>
@@ -780,7 +780,7 @@
           </el-col>
           <el-col :span="24" v-if="shenheForm.SuccessStatus == 0">
             <el-form-item label="退回原因">
-              <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="退回意见不能少于5个字">
+              <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="退回意见不能少于2个字">
               </el-input>
             </el-form-item>
           </el-col>
@@ -1061,7 +1061,7 @@
         auditerName: '',
         fushenauditer: '',
         auditBtn: false,
-        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
+        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容)',
         audithistoryshow: false,
         dialogProfAudit: false,
         canUpdateSupplier: true,
@@ -1579,10 +1579,10 @@
             })
             return
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 20) {
+          if (this.shenheForm.AuditorRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return false
           }
@@ -1594,10 +1594,10 @@
             })
             return false
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 5) {
+          if (this.shenheForm.AuditorRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }
@@ -1760,9 +1760,9 @@
       },
       radioChange () {
         if (this.shenheForm.SuccessStatus === 1) {
-          this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
+          this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容)'
         } else {
-          this.textplaceholder = '退回意见不能少于5个字'
+          this.textplaceholder = '退回意见不能少于2个字'
         }
       },
       SetFormData (fdata) {
@@ -2445,20 +2445,20 @@
       },
       commonAuditParamsCheck () {
         if (this.shenheForm.SuccessStatus === 1) {
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.AnnualStatus && this.AnnualStatus !== '10') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.AnnualStatus && this.AnnualStatus !== '10') {
             if (this.AnnualStatus !== '5') {
               this.$message({
                 type: 'warning',
-                message: '审批意见不能低于20个字符!'
+                message: '审批意见不能少于2个字!'
               })
               return false
             }
           }
         } else {
-          if (this.shenheForm.AuditorRemark.trim().length < 5) {
+          if (this.shenheForm.AuditorRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return false
           }
@@ -2566,20 +2566,20 @@
               return
             }
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.AnnualStatus && this.AnnualStatus !== '10') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.AnnualStatus && this.AnnualStatus !== '10') {
             if (this.AnnualStatus !== '5') {
               this.$message({
                 type: 'warning',
-                message: '审批意见不能低于20个字符!'
+                message: '审批意见不能少于2个字!'
               })
               return
             }
           }
         } else {
-          if (this.shenheForm.AuditorRemark.trim().length < 5) {
+          if (this.shenheForm.AuditorRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/auditoperation.vue

@@ -1798,7 +1798,7 @@
           }
         } else {
           this.shenheForm.AuditorRemark = ''
-          this.textplaceholder = '退回意见不能少于5个字'
+          this.textplaceholder = '退回意见不能少于2个字'
         }
       },
 
@@ -1869,10 +1869,10 @@
             return
           }
         } else {
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.InfoStatus && this.InfoStatus !== '3') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.InfoStatus && this.InfoStatus !== '3') {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }

+ 7 - 7
src/dashoo.cn/frontend_web/src/pages/oilsupplier/qualchange/_opera/auditoperation.vue

@@ -178,7 +178,7 @@
 
     data() {
       return {
-        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
+        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容)',
         businessList: [], //准入业务
         serviceId: '',
         certId: '',
@@ -336,18 +336,18 @@
        //审核通过
       makeSure() {
         if (this.shenheForm.SuccessStatus === 1) {
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3') {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return
           }
         } else {
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3') {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }
@@ -392,9 +392,9 @@
 
       radioChange() {
         if (this.shenheForm.SuccessStatus === 1) {
-          this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
+          this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容)'
         } else {
-          this.textplaceholder = '退回意见不能少于5个字'
+          this.textplaceholder = '退回意见不能少于2个字'
         }
       },
 

+ 18 - 18
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/basisedit.vue

@@ -484,7 +484,7 @@
         backRemark: '',
         ProfessionalAudit: '', // 业务处室专业审批人id
         chooseAuditorVisible: false,
-        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
+        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容)',
         equipmentList: [], // 企业主要装备情况
         performanceList: [], // 近三年主要工程业绩
         patentList: [], // 专利及专有技术
@@ -698,15 +698,15 @@
             if (this.formData.Status == '5') {
               this.textplaceholder = ''
             } else {
-              this.textplaceholder = '退回意见不能少于5个字'
+              this.textplaceholder = '退回意见不能少于2个字'
             }
             this.shenheForm.AuditorRemark = ''
           }
         } else {
           if (this.shenheForm.SuccessStatus === 1) {
-            this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
+            this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容)'
           } else {
-            this.textplaceholder = '退回意见不能少于5个字'
+            this.textplaceholder = '退回意见不能少于2个字'
           }
         }
       },
@@ -1155,10 +1155,10 @@
           })
           return false
         }
-        if (this.shenheForm.AuditorRemark.trim().length < 5) {
+        if (this.shenheForm.AuditorRemark.trim().length < 2) {
           this.$message({
             type: 'warning',
-            message: '审批意见不能低于5个字符!'
+            message: '审批意见不能少于2个字!'
           })
           return
         }
@@ -1229,10 +1229,10 @@
       },
       commonAuditParamsCheck () {
         if (this.shenheForm.SuccessStatus === 1) {
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return false
           }
@@ -1244,10 +1244,10 @@
             return false
           }
         } else {
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData.Status !== '5') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5') {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }
@@ -1398,10 +1398,10 @@
             })
             return
           }
-          if (this.auditform.AuditRemark.trim().length < 20) {
+          if (this.auditform.AuditRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return false
           } */
@@ -1414,10 +1414,10 @@
             })
             return false
           }
-          if (this.auditform.AuditRemark.trim().length < 5) {
+          if (this.auditform.AuditRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }
@@ -1522,10 +1522,10 @@
               }
             }
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return
           }
@@ -1547,10 +1547,10 @@
           if (this.formData.Status === '10') {
             this.shenheForm.AuditorRemark = this.backRemark
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData.Status !== '5') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5') {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }

+ 18 - 18
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/goodsedit.vue

@@ -416,7 +416,7 @@
         loading: false,
         btnstatus: '',
         backRemark: '',
-        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
+        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容)',
         auditer: '',
         ProfessionalAudit: '', // 业务处室专业审批人id
         auditerName: '',
@@ -622,16 +622,16 @@
             if (this.formData.Status == '5') {
               this.textplaceholder = ''
             } else {
-              this.textplaceholder = '退回意见不能少于5个字'
+              this.textplaceholder = '退回意见不能少于2个字'
             }
             this.shenheForm.AuditorRemark = ''
           }
         } else {
           if (this.shenheForm.SuccessStatus === 1) {
             console.log('初审')
-            this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
+            this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容)'
           } else {
-            this.textplaceholder = '退回意见不能少于5个字'
+            this.textplaceholder = '退回意见不能少于2个字'
           }
         }
       },
@@ -1026,10 +1026,10 @@
       },
       commonAuditParamsCheck () {
         if (this.shenheForm.SuccessStatus === 1) {
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return false
           }
@@ -1041,10 +1041,10 @@
             return false
           }
         } else {
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData.Status !== '5') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5') {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }
@@ -1137,10 +1137,10 @@
             })
             return
           }
-          if (this.auditform.AuditRemark.trim().length < 20) {
+          if (this.auditform.AuditRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return false
           } */
@@ -1153,10 +1153,10 @@
             })
             return false
           }
-          if (this.auditform.AuditRemark.trim().length < 5) {
+          if (this.auditform.AuditRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }
@@ -1187,10 +1187,10 @@
           })
           return false
         }
-        if (this.shenheForm.AuditorRemark.trim().length < 5) {
+        if (this.shenheForm.AuditorRemark.trim().length < 2) {
           this.$message({
             type: 'warning',
-            message: '审批意见不能低于5个字符!'
+            message: '审批意见不能少于2个字!'
           })
           return
         }
@@ -1374,10 +1374,10 @@
               }
             }
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return
           }
@@ -1399,10 +1399,10 @@
           if (this.formData.Status === '10') {
             this.shenheForm.AuditorRemark = this.backRemark
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData.Status !== '5') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5') {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }

+ 18 - 18
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/techedit.vue

@@ -438,7 +438,7 @@
         loading: false,
         btnstatus: '',
         backRemark: '',
-        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
+        textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容)',
         equipmentList: [], // 企业主要装备情况
         performanceList: [], // 近三年主要工程业绩
         patentList: [], // 专利及专有技术
@@ -641,15 +641,15 @@
             if (this.formData.Status == '5') {
               this.textplaceholder = ''
             } else {
-              this.textplaceholder = '退回意见不能少于5个字'
+              this.textplaceholder = '退回意见不能少于2个字'
             }
             this.shenheForm.AuditorRemark = ''
           }
         } else {
           if (this.shenheForm.SuccessStatus === 1) {
-            this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
+            this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容)'
           } else {
-            this.textplaceholder = '退回意见不能少于5个字'
+            this.textplaceholder = '退回意见不能少于2个字'
           }
         }
       },
@@ -1095,10 +1095,10 @@
             })
             return
           }
-          if (this.auditform.AuditRemark.trim().length < 20) {
+          if (this.auditform.AuditRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return false
           } */
@@ -1111,10 +1111,10 @@
             })
             return false
           }
-          if (this.auditform.AuditRemark.trim().length < 5) {
+          if (this.auditform.AuditRemark.trim().length < 2) {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }
@@ -1161,10 +1161,10 @@
       },
       commonAuditParamsCheck () {
         if (this.shenheForm.SuccessStatus === 1) {
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return false
           }
@@ -1176,10 +1176,10 @@
             return false
           }
         } else {
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData.Status !== '5') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5') {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }
@@ -1218,10 +1218,10 @@
           })
           return false
         }
-        if (this.shenheForm.AuditorRemark.trim().length < 5) {
+        if (this.shenheForm.AuditorRemark.trim().length < 2) {
           this.$message({
             type: 'warning',
-            message: '审批意见不能低于5个字符!'
+            message: '审批意见不能少于2个字!'
           })
           return
         }
@@ -1407,10 +1407,10 @@
               }
             }
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5' && this.formData.Status !== '10') {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '审批意见不能少于2个字!'
             })
             return
           }
@@ -1425,10 +1425,10 @@
           if (this.formData.Status === '10') {
             this.shenheForm.AuditorRemark = this.backRemark
           }
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData.Status !== '5') {
+          if (this.shenheForm.AuditorRemark.trim().length < 2 && this.formData.Status !== '3' && this.formData.Status !== '5') {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '退回意见不能少于2个字!'
             })
             return
           }