Browse Source

项目档案字段调整

jingbb 6 months ago
parent
commit
d68cda7eb1

+ 49 - 47
src/views/baseCode/ProjectArchive/BaseProjectArchive.data.ts

@@ -5,44 +5,62 @@ import { render } from '/@/utils/common/renderUtils';
 import { getWeekMonthQuarterYear } from '/@/utils';
 //列表数据
 export const columns: BasicColumn[] = [
-   {
-    title: '状态(1-启用,0-停用)',
+  {
+    title: '编码(code)',
     align:"center",
-    dataIndex: 'status'
+    dataIndex: 'code'
    },
    {
-    title: '名称',
+    title: '名称(name)',
     align:"center",
     dataIndex: 'name'
    },
+  
    {
-    title: '编码',
+    title: '客户(customer)',
     align:"center",
-    dataIndex: 'code'
+    dataIndex: 'customerId'
    },
    {
-    title: '客户',
+    title: '备注(notes)',
     align:"center",
-    dataIndex: 'customerId'
+    dataIndex: 'notes'
    },
    {
-    title: '备注',
+    title: '创建时间(create time)',
     align:"center",
-    dataIndex: 'notes'
+    dataIndex: 'createTime'
+   },
+   {
+    title: '创建人(create by)',
+    align:"center",
+    dataIndex: 'createBy'
    },
 ];
 //查询数据
 export const searchFormSchema: FormSchema[] = [
-	{
-      label: "创建人",
-      field: 'createBy',
-      component: 'JSelectUser',
+	  {
+      label: "编码(code)",
+      field: 'code',
+      component: 'Input',
       componentProps:{
       },
       //colProps: {span: 6},
- 	},
+ 	  },
+   {
+      label: "名称(name)",
+      field: 'name',
+      component: 'Input',
+        //colProps: {span: 6},
+    },
+    {
+      label: "客户(customer)",
+      field: 'customerId',
+      component: 'Input',
+      //colProps: {span: 6},
+ 	  },
      {
-      label: "创建时间",
+      label: "创建时间(create time)",
       field: "createTime",
       component: 'RangePicker',
       componentProps: {
@@ -52,58 +70,42 @@ export const searchFormSchema: FormSchema[] = [
       //colProps: {span: 6},
 	},
 	{
-      label: "名称",
-      field: 'name',
-      component: 'Input',
-      //colProps: {span: 6},
- 	},
-	{
-      label: "编码",
-      field: 'code',
-      component: 'Input',
-      //colProps: {span: 6},
- 	},
-	{
-      label: "客户",
-      field: 'customerId',
-      component: 'Input',
-      //colProps: {span: 6},
- 	},
+    label: "创建人(create by)",
+    field: 'createBy',
+    component: 'Input',
+    //colProps: {span: 6},
+   },
+	
 ];
 //表单数据
 export const formSchema: FormSchema[] = [
   {
-    label: '状态(1-启用,0-停用)',
-    field: 'status',
-    component: 'InputNumber',
-  },
-  {
-    label: '名称',
-    field: 'name',
+    label: '客户(customer)',
+    field: 'customerId',
     component: 'Input',
     dynamicRules: ({model,schema}) => {
           return [
-                 { required: true, message: '请输入名称!'},
+                 { required: true, message: '请输入客户!'},
           ];
      },
   },
   {
-    label: '编码',
+    label: '编码(code)',
     field: 'code',
     component: 'Input',
   },
   {
-    label: '客户',
-    field: 'customerId',
+    label: '名称(name)',
+    field: 'name',
     component: 'Input',
     dynamicRules: ({model,schema}) => {
           return [
-                 { required: true, message: '请输入客户!'},
+                 { required: true, message: '请输入名称!'},
           ];
      },
-  },
+  }, 
   {
-    label: '备注',
+    label: '备注(notes)',
     field: 'notes',
     component: 'Input',
   },

+ 0 - 16
src/views/baseCode/ProjectArchive/BaseProjectArchiveList.vue

@@ -6,22 +6,6 @@
       <template #tableTitle>
           <a-button type="primary" v-auth="'baseCode:base_project_archive:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
           <a-button  type="primary" v-auth="'baseCode:base_project_archive:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
-          <j-upload-button type="primary" v-auth="'baseCode:base_project_archive:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
-          <a-dropdown v-if="selectedRowKeys.length > 0">
-              <template #overlay>
-                <a-menu>
-                  <a-menu-item key="1" @click="batchHandleDelete">
-                    <Icon icon="ant-design:delete-outlined"></Icon>
-                    删除
-                  </a-menu-item>
-                </a-menu>
-              </template>
-              <a-button v-auth="'baseCode:base_project_archive:deleteBatch'">批量操作
-                <Icon icon="mdi:chevron-down"></Icon>
-              </a-button>
-        </a-dropdown>
-        <!-- 高级查询 -->
-        <super-query :config="superQueryConfig" @search="handleSuperQuery" />
       </template>
        <!--操作栏-->
       <template #action="{ record }">