Browse Source

1.修改关于终端客户信息相关的问题

GouGengquan 1 năm trước cách đây
mục cha
commit
cab35d99d8
1 tập tin đã thay đổi với 6 bổ sung8 xóa
  1. 6 8
      src/views/assets/orderDetail.vue

+ 6 - 8
src/views/assets/orderDetail.vue

@@ -261,12 +261,11 @@
                         v-else /> -->
                     </el-form-item>
                   </el-col>
-                  <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType === '个人'">
+                  <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType">
                     <el-form-item label="终端联系人:" prop="terminalClienteleContactId" label-width="120px"
                       class="postInfo-container-item">
-                      <div v-if="couldEdit">
                         <el-select v-model="assetsForm.terminalClienteleContactId" placeholder="请选择(可搜索)" clearable
-                          filterable @change="" style="width:80%" readonly disabled>
+                          filterable style="width:80%" readonly disabled>
                           <!-- <el-option v-for="(c, id) in tCustomerContract" :label="c.name" :value="c.id"
                             :key="c.id"></el-option> -->
                           <el-option :label="tLinkmanInfo.name" :value="tLinkmanInfo.id"
@@ -276,9 +275,6 @@
                           <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
                             @click="createTlinkman()">新增</span>
                         </el-tooltip> -->
-                      </div>
-                      <el-input :value="assetsForm.tterminalClienteleContactName" class="filter-item"
-                        style=" width: 225px" v-else />
                     </el-form-item>
                   </el-col>
                   <el-col :xs="24" :sm="12" :lg="6" :span="6">
@@ -3393,8 +3389,10 @@ export default {
       if (this.assetsForm.terminalClienteleContactId) {
         this.$api.customerLinkman.detail(this.assetsForm.terminalClienteleContactId).then(res => {
           if (res.code === 200) {
-            this.tLinkmanInfo = res.data; mobile
+            this.tLinkmanInfo = res.data;
+            this.$forceUpdate();
             this.assetsForm.tmobile = this.tLinkmanInfo.mobile;
+            console.log(this.tLinkmanInfo)
           }
         })
       }
@@ -3402,7 +3400,7 @@ export default {
         this.$api.customerCompany.detail(this.assetsForm.terminalClienteleId).then(res => {
           if (res.code === 200) {
             this.tCustomerInfo = res.data;
-            this.assetsForm.tmobile = this.tCustomerInfo.phone;
+            // this.assetsForm.tmobile = this.tCustomerInfo.phone;
           }
         })
       }