|
@@ -227,7 +227,7 @@ var vm = new Vue({
|
|
if(value === '') {
|
|
if(value === '') {
|
|
return callback(new Error('职位不能为空'));
|
|
return callback(new Error('职位不能为空'));
|
|
} else {
|
|
} else {
|
|
- if (value === '其他' && vmbid.form.otherJob === '') {
|
|
|
|
|
|
+ if (value === '其他' && this.form.otherJob === '') {
|
|
return callback(new Error('请输入职位'));
|
|
return callback(new Error('请输入职位'));
|
|
} else {
|
|
} else {
|
|
callback();
|
|
callback();
|
|
@@ -236,6 +236,7 @@ var vm = new Vue({
|
|
}
|
|
}
|
|
var validBranch = function(rule,value,callback) {
|
|
var validBranch = function(rule,value,callback) {
|
|
if(this.form.job.indexOf('总裁') > -1 || this.form.job.indexOf('总经理') > -1){
|
|
if(this.form.job.indexOf('总裁') > -1 || this.form.job.indexOf('总经理') > -1){
|
|
|
|
+ this.from.branch = ""
|
|
return true
|
|
return true
|
|
} else {
|
|
} else {
|
|
if(value === '') {
|
|
if(value === '') {
|
|
@@ -459,6 +460,11 @@ var vm = new Vue({
|
|
source: source
|
|
source: source
|
|
},
|
|
},
|
|
success:function (res) {
|
|
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) {
|
|
if (res.data.retainedCapital) {
|
|
if (res.data.retainedCapital) {
|
|
_this.showForm = true
|
|
_this.showForm = true
|