Browse Source

船舶档案-关联客户显示字段/船类型船厂修改为下拉框

jingbb 3 months ago
parent
commit
3111a6fc1b
1 changed files with 13 additions and 3 deletions
  1. 13 3
      src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

+ 13 - 3
src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

@@ -36,7 +36,7 @@ export const columns: BasicColumn[] = [
   {
     title: '关联客户(relate customer)',
     align: 'center',
-    dataIndex: 'relateCustomer_dictText',
+    dataIndex: 'relateCustomer',
   },
 ];
 //查询数据
@@ -170,12 +170,22 @@ export const formSchema: FormSchema[] = [
   {
     label: '船类型(ship type)',
     field: 'shipType',
-    component: 'Input',
+    component: 'JDictSelectTag',
+    componentProps: {
+      dictCode: 'ship_type',
+      showSearch: true,
+      getPopupContainer: (node) => document.body,
+    },
   },
   {
     label: '船厂(ship factory)',
     field: 'shipFactory',
-    component: 'Input',
+    component: 'JDictSelectTag',
+    componentProps: {
+        dictCode: 'ship_factory',
+        showSearch: true,
+        getPopupContainer: (node) => document.body,
+    },
   },
   {
     label: '造船日期(ship date)',