瀏覽代碼

fix: pc留资部门回显

yangfeng 3 年之前
父節點
當前提交
581544e7c3

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

@@ -497,6 +497,7 @@ var vm = new Vue({
             _this.form.phone = res.data.phone ? res.data.phone : ''
             _this.form.mail = res.data.mail ? res.data.mail : ''
             _this.form.companyName = res.data.company ? res.data.company : ''
+            _this.form.branch = res.data.branch
             if (res.data.position) {
               if (jobJson.indexOf(res.data.position) == -1) {
                 // _this.form.job = '其他'

+ 2 - 1
src/web/staticres/js/pc-collect-bid-info.js

@@ -374,7 +374,7 @@ var vmbid = new Vue({
         phone: this.form.phone,
         company: this.form.companyName, // 公司名称
         position: this.form.job == '其他' ? ('其他/' + this.form.otherJob) : this.form.job,
-        branch: this.form.branch
+        branch: this.form.branch.indexOf('总裁') > -1 || this.form.branch.indexOf('总经理') > -1 ?  '' : this.form.branch
       }
       var _this = this
       $.ajax({
@@ -407,6 +407,7 @@ var vmbid = new Vue({
             _this.form.name = res.data.name ? res.data.name : ''
             _this.form.phone = res.data.phone ? res.data.phone : '' 
             _this.form.companyName = res.data.company ? res.data.company : ''
+            _this.form.branch = res.data.branch
             if (res.data.position) {
               if (jobJson.indexOf(res.data.position) == -1) {
                 // _this.form.job = '其他'