tangning 6 月之前
父節點
當前提交
edd4f59f6e
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      src/views/account/details/data.ts
  2. 4 4
      src/views/order/data.ts

+ 1 - 1
src/views/account/details/data.ts

@@ -209,7 +209,7 @@ export const equityColumns: BasicColumn[] = [
     dataIndex: 'customerTypeStr',
     width: 100,
     customRender: ({ record }) => {
-      return record.customerTypeStr ? record.customerTypeStr : '直销';
+      return record.customerType == 1 ? '经销' : '直销';
     },
   },
   {

+ 4 - 4
src/views/order/data.ts

@@ -376,7 +376,7 @@ export const dowmColumns: BasicColumn[] = [
     dataIndex: 'customerTypeStr',
     width: 100,
     customRender: ({ record }) => {
-      return record.customerTypeStr ? record.customerTypeStr : '直销';
+      return record.customerType == 1 ? '经销' : '直销';
     },
   },
   {
@@ -516,7 +516,7 @@ export const localCameraColumns: BasicColumn[] = [
     dataIndex: 'customerTypeStr',
     width: 100,
     customRender: ({ record }) => {
-      return record.customerTypeStr ? record.customerTypeStr : '直销';
+      return record.customerType == 1 ? '经销' : '直销';
     },
   },
   {
@@ -567,7 +567,7 @@ export const localCameraColumns: BasicColumn[] = [
   },
   {
     title: '相机SN',
-    dataIndex: 'snCode',
+    dataIndex: 'snCodes',
     width: 100,
   },
   {
@@ -637,7 +637,7 @@ export const differenceColumns: BasicColumn[] = [
     dataIndex: 'customerTypeStr',
     width: 100,
     customRender: ({ record }) => {
-      return record.customerTypeStr ? record.customerTypeStr : '直销';
+      return record.customerType == 1 ? '经销' : '直销';
     },
   },
   {