Kaynağa Gözat

客户审核

yusheng 1 yıl önce
ebeveyn
işleme
def63636bc

+ 9 - 1
src/api/bpm/components/saleManage/contact.js

@@ -113,4 +113,12 @@ export async function listByContactId(data) {
     return res.data.data;
   }
   return Promise.reject(new Error(res.data.message));
-}
+}
+//根据多个ID查询分类详情系信息
+export async function getInfoByIds (id) {
+  const res = await request.get(`/main/categoryLevel/getByIds/${id}`);
+  if (res.data.code == 0) {
+    return res.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}

+ 17 - 7
src/views/bpm/handleTask/components/contact/contactDetailDialog.vue

@@ -257,7 +257,7 @@
           </template>
         </ele-pro-table>
       </el-tab-pane>
-      <el-tab-pane label="其他信息" name="other">
+      <!-- <el-tab-pane label="其他信息" name="other">
         <el-form
           label-width="160px"
           ref="otherFormRef"
@@ -304,7 +304,7 @@
             </el-col>
           </el-row>
         </el-form>
-      </el-tab-pane>
+      </el-tab-pane> -->
       <el-tab-pane label="证书资质" name="certificate">
         <ele-pro-table ref="certificateTable"
                        :row-class-name="({row})=>row.id==this.businessId?'isGreen':''"
@@ -353,7 +353,7 @@
 </template>
 
 <script>
-import {contactDetail, getInfoById} from '@/api/bpm/components/saleManage/contact';
+import {contactDetail, getInfoByIds} from '@/api/bpm/components/saleManage/contact';
 import {getFile} from '@/api/system/file';
 import dictMixins from '@/mixins/dictMixins';
 import {copyObj} from '@/utils/util';
@@ -365,7 +365,11 @@ import fileMain from "@/components/addDoc/index.vue";
 
 
 export default {
-
+  props:{
+      businessId:{
+        default:""
+      }
+    },
   mixins: [dictMixins],
   components: {fileMain, certificateQualificationsDialog},
   data() {
@@ -599,7 +603,9 @@ export default {
       ],
     };
   },
-
+  created() {
+      this._getById(this.businessId);
+  },
   methods: {
     cancel() {
       this.$nextTick(() => {
@@ -642,6 +648,9 @@ export default {
       this.$refs.certificateTable.reload({page: 1, where});
     },
     async _getById(id) {
+      if(!id){
+ return
+      }
       const data = await contactDetail(id);
       this.form = data.base;
       this.otherForm = data.other;
@@ -652,8 +661,9 @@ export default {
         this.tableLinkData.forEach(e => e.status = e.status + "");
       }
 
-      await getInfoById(this.form.categoryId).then((res) => {
-        this.$set(this.form, 'categoryName', res.data.name)
+      await getInfoByIds(this.form.categoryId).then((res) => {
+        let categoryName = res.data.map((item) => item.name)?.join(',');
+        this.$set(this.form, 'categoryName', categoryName);
       });
     },
 

+ 2 - 2
src/views/bpm/handleTask/components/contactQC/contactDetailDialog.vue

@@ -240,7 +240,7 @@
           </template>
         </ele-pro-table>
       </el-tab-pane>
-      <el-tab-pane label="其他信息" name="other">
+      <!-- <el-tab-pane label="其他信息" name="other">
         <el-form
           label-width="160px"
           ref="otherFormRef"
@@ -286,7 +286,7 @@
             </el-col>
           </el-row>
         </el-form>
-      </el-tab-pane>
+      </el-tab-pane> -->
       <el-tab-pane label="证书资质" name="certificate">
         <ele-pro-table
           ref="certificateTable"