Browse Source

客户接口子表参数调整;

001295 1 year ago
parent
commit
bf4b4b3f56

+ 1 - 4
src/views/business/spd/cm/customers/columns.js

@@ -249,10 +249,7 @@ export default function useColumns() {
   const DepartmentInfoColumns = [
     {
       item: { key: "name", title: "科室名称" },
-      attr: {
-        is: "el-dict-tag",
-        dictName: "mk_bo_section",
-      },
+      attr: {},
     },
     {
       item: { key: "customersName", title: "客户名称" },

+ 3 - 7
src/views/business/spd/cm/customers/index.vue

@@ -961,15 +961,11 @@ export default {
       const id1 = id || this.ids;
       getCustomers(id1).then((response) => {
         this.form = response.data;
-        this.mkCmCustomersResponsiblePersonList =
-          response.data.mkCmCustomersResponsiblePersonList;
-        this.mkCmCustomersDepartmentList =
-          response.data.mkCmCustomersDepartmentList;
+        this.mkCmCustomersResponsiblePersonList = response.data.staffs;
+        this.mkCmCustomersDepartmentList = response.data.depts;
+        this.mkCmCustomersContactList = response.data.contacts;
         this.openState = "check";
       });
-      getContactInfo(id1).then((response) => {
-        this.mkCmCustomersContactList = response.data;
-      });
     },
     /** Add查看按钮操作 */
     handleCheckAdd(row, type) {

+ 3 - 6
src/views/business/spd/cm/customersDepartment/columns.js

@@ -3,14 +3,11 @@ export default function useColumns() {
   // 科室信息
   const FormColumns = [
     {
-      item: { key: "name", title: "科室名称", required: true, },
+      item: { key: "name", title: "科室名称", required: true },
       attr: {
         is: "el-input",
-        // is: "el-select",
-        // dictName: "mk_bo_section",
-        placeholder: "请输入科室名称",
         clearable: true,
-        filterable: true,
+        placeholder: "请输入科室名称",
       },
     },
     {
@@ -35,7 +32,7 @@ export default function useColumns() {
       },
     },
     {
-      item: { key: "phone", title: "联系人手机", required: true, },
+      item: { key: "phone", title: "联系人手机", },
       attr: {
         is: "el-input",
         clearable: true,