tangning 5 ay önce
ebeveyn
işleme
b975b44733
2 değiştirilmiş dosya ile 34 ekleme ve 35 silme
  1. 25 26
      src/views/empower/AddModal.vue
  2. 9 9
      src/views/empower/index.vue

+ 25 - 26
src/views/empower/AddModal.vue

@@ -79,30 +79,30 @@
           required: true,
           required: true,
           colProps: { span: 20 },
           colProps: { span: 20 },
         },
         },
-        {
-          field: 'customerType',
-          component: 'Select',
-          label: '客户类别',
-          required: true,
-          colProps: { span: 20 },
-          componentProps: {
-            options: [
-              {
-                label: '直销',
-                value: 0,
-                key: '0',
-              },
-              {
-                label: '经销',
-                value: 1,
-                key: '1',
-              },
-            ],
-            onChange: (value) => {
-              updateSchema({ field: 'agentId', ifShow: value == '1' });
-            },
-          },
-        },
+        // {
+        //   field: 'customerType',
+        //   component: 'Select',
+        //   label: '客户类别',
+        //   required: true,
+        //   colProps: { span: 20 },
+        //   componentProps: {
+        //     options: [
+        //       {
+        //         label: '直销',
+        //         value: 0,
+        //         key: '0',
+        //       },
+        //       {
+        //         label: '经销',
+        //         value: 1,
+        //         key: '1',
+        //       },
+        //     ],
+        //     onChange: (value) => {
+        //       updateSchema({ field: 'agentId', ifShow: value == '1' });
+        //     },
+        //   },
+        // },
         {
         {
           field: 'endCustomer',
           field: 'endCustomer',
           component: 'Input',
           component: 'Input',
@@ -251,7 +251,6 @@
               },
               },
             },
             },
           },
           },
-          { field: 'agentId', ifShow: data.customerType == '1' },
           {
           {
             field: 'projectNum',
             field: 'projectNum',
             ifShow: data.useType == '4',
             ifShow: data.useType == '4',
@@ -277,7 +276,7 @@
           console.log(params);
           console.log(params);
           // let authorizeTime = params.authorizeTime;
           // let authorizeTime = params.authorizeTime;
           const apiData = {
           const apiData = {
-            agentId: agent.value.id,
+            // agentId: agent.value.id,
             ...params,
             ...params,
             // authorizeStartTime: authorizeTime[0],
             // authorizeStartTime: authorizeTime[0],
             // authorizeEndTime: authorizeTime[1],
             // authorizeEndTime: authorizeTime[1],

+ 9 - 9
src/views/empower/index.vue

@@ -69,15 +69,15 @@
           ellipsis: true,
           ellipsis: true,
           width: 250,
           width: 250,
         },
         },
-        {
-          title: '客户类别',
-          dataIndex: 'customerType',
-          ellipsis: true,
-          width: 80,
-          customRender: ({ record }) => {
-            return record.customerType == 1 ? '经销' : '直销';
-          },
-        },
+        // {
+        //   title: '客户类别',
+        //   dataIndex: 'customerType',
+        //   ellipsis: true,
+        //   width: 80,
+        //   customRender: ({ record }) => {
+        //     return record.customerType == 1 ? '经销' : '直销';
+        //   },
+        // },
         {
         {
           title: '终端客户',
           title: '终端客户',
           ellipsis: true,
           ellipsis: true,