Procházet zdrojové kódy

增加外来人员单位必填限制

cyy před 11 měsíci
rodič
revize
3f9b6d380e

+ 6 - 1
src/views/platform/bpmn/alienRegistration/index.vue

@@ -20,6 +20,7 @@
                 />
                 <van-field
                     v-model="keHuMing"
+                    required
                     label="单位:"
                     placeholder="请输入单位"
                     label-width="7em"
@@ -395,7 +396,6 @@ export default {
       })
     },
     onSubmit() {
-      console
       if (this.statusCode === '1') {
         if (this.waiLaiRenYuan === '') {
           this.$toast({
@@ -427,6 +427,11 @@ export default {
             duration: 2000, // 持续展示 toast
             message: '接待人长度超出'
           })
+        } else if (this.keHuMing === '') {
+          this.$toast({
+            duration: 2000, // 持续展示 toast
+            message: '请输入外来人员单位'
+          })
         } else if (this.keHuMing.length > 1000) {
           this.$toast({
             duration: 2000, // 持续展示 toast