Browse Source

feat:结构化数据pc留资判断

malin 3 years ago
parent
commit
ebbe5002c9
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/web/staticres/common-module/pc-dialog/js/leave-info-dialog.js

+ 7 - 1
src/web/staticres/common-module/pc-dialog/js/leave-info-dialog.js

@@ -227,7 +227,7 @@ var vm = new Vue({
       if(value === '') {
         return callback(new Error('职位不能为空'));
       } else {
-        if (value === '其他' && vmbid.form.otherJob === '') {
+        if (value === '其他' && this.form.otherJob === '') {
           return callback(new Error('请输入职位'));
         } else {
           callback();
@@ -236,6 +236,7 @@ var vm = new Vue({
     }
     var validBranch = function(rule,value,callback) {
       if(this.form.job.indexOf('总裁') > -1 || this.form.job.indexOf('总经理') > -1){
+        this.from.branch = ""
         return true
       } else {
         if(value === '') {
@@ -459,6 +460,11 @@ var vm = new Vue({
           source: source
         },
         success:function (res) {
+          // 判断当前信息否在其他页面留资  如果全部留资 直接弹窗提交成功
+          if(res.info.branch && res.info.company && res.info.name && res.info.phone &&res.info.position&&res.info.mail){
+            _this.showSuccess=true
+            return true
+          }
           if (res.data) {
             if (res.data.retainedCapital) {
               _this.showForm = true