Sfoglia il codice sorgente

feat(客户管理): 客户管理页面优化

qihao 2 anni fa
parent
commit
5f7e395458

+ 7 - 1
src/views/saleManage/contact/components/contactDetailDialog.vue

@@ -23,7 +23,7 @@
                 label="客户分类:"
                 prop="categoryId"
               >
-                {{form.categoryId}}
+                {{form.categoryName}}
               </el-form-item>
             </el-col>
             <el-col :span="8">
@@ -273,6 +273,7 @@
 <script>
 import {contactDetail} from '@/api/saleManage/contact';
 import {getFile} from '@/api/system/file';
+import {getInfoById as getCategoryInfo} from '@/api/classifyManage/index';
 import fileUpload from '@/components/upload/fileUpload';
 import dictMixins from '@/mixins/dictMixins';
 import deptSelect from '@/components/CommomSelect/dept-select.vue';
@@ -299,6 +300,7 @@ export default {
           businessLicenseFile: {},
           businessScope: '',
           categoryId: '',
+          categoryName: '',
           companyCategoryId: '',
           companyCategoryName: '',
           hasParentGroup: 0,
@@ -471,6 +473,10 @@ export default {
         if(this.tableLinkData && this.tableLinkData.length > 0){
           this.tableLinkData.forEach(e => e.status = e.status+"");
         }
+
+        await getCategoryInfo(this.form.categoryId).then((res) => {
+          this.$set(this.form,'categoryName', res.data.name)
+        });
       },
 
       downloadFile(file){