瀏覽代碼

公司抬头 - 字段修改/页面修改

jingbb 6 月之前
父節點
當前提交
89bf86ca9f

+ 19 - 34
src/views/baseCode/CompanyInformation/BaseCompanyInformation.data.ts

@@ -6,98 +6,83 @@ import { getWeekMonthQuarterYear } from '/@/utils';
 //列表数据
 export const columns: BasicColumn[] = [
    {
-    title: '状态(1-启用,0-停用)',
-    align:"center",
-    dataIndex: 'status'
-   },
-   {
-    title: '名称',
+    title: '名称(name)',
     align:"center",
     dataIndex: 'name'
    },
    {
-    title: '编码',
-    align:"center",
-    dataIndex: 'code'
-   },
-   {
-    title: '税号',
+    title: '税号(taxcode)',
     align:"center",
     dataIndex: 'taxcode'
    },
    {
-    title: '单位地址',
+    title: '单位地址(address)',
     align:"center",
     dataIndex: 'address'
    },
    {
-    title: '电话',
+    title: '电话(telphone)',
     align:"center",
     dataIndex: 'telphone'
    },
    {
-    title: '开户行',
+    title: '开户行(bank)',
     align:"center",
     dataIndex: 'bank'
    },
    {
-    title: '银行账户',
+    title: '银行账户(bank account)',
     align:"center",
     dataIndex: 'bankAccount'
    },
    {
-    title: '排序号',
+    title: '排序号(order)',
     align:"center",
     dataIndex: 'reorder'
    },
 ];
 //查询数据
 export const searchFormSchema: FormSchema[] = [
-];
-//表单数据
-export const formSchema: FormSchema[] = [
-  {
-    label: '状态(1-启用,0-停用)',
-    field: 'status',
-    component: 'InputNumber',
-  },
   {
-    label: '名称',
+    label: '名称(name)',
     field: 'name',
     component: 'Input',
   },
+];
+//表单数据
+export const formSchema: FormSchema[] = [
   {
-    label: '编码',
-    field: 'code',
+    label: '名称(name)',
+    field: 'name',
     component: 'Input',
   },
   {
-    label: '税号',
+    label: '税号(taxcode)',
     field: 'taxcode',
     component: 'Input',
   },
   {
-    label: '单位地址',
+    label: '单位地址(address)',
     field: 'address',
     component: 'Input',
   },
   {
-    label: '电话',
+    label: '电话(telphone)',
     field: 'telphone',
     component: 'Input',
   },
   {
-    label: '开户行',
+    label: '开户行(bank)',
     field: 'bank',
     component: 'Input',
   },
   {
-    label: '银行账户',
+    label: '银行账户(bank account)',
     field: 'bankAccount',
     component: 'Input',
   },
   {
-    label: '排序号',
+    label: '排序号(order)',
     field: 'reorder',
     component: 'InputNumber',
   },

+ 9 - 9
src/views/baseCode/CompanyInformation/BaseCompanyInformationList.vue

@@ -4,9 +4,9 @@
    <BasicTable @register="registerTable" :rowSelection="rowSelection">
      <!--插槽:table标题-->
       <template #tableTitle>
-          <a-button type="primary" v-auth="'baseCode:base_company_information:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
-          <a-button  type="primary" v-auth="'baseCode:base_company_information:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
-          <j-upload-button type="primary" v-auth="'baseCode:base_company_information:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
+          <a-button type="primary" v-auth="'baseCode:base_company_information:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
+          <a-button  type="primary" v-auth="'baseCode:base_company_information:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
+          <!-- <j-upload-button type="primary" v-auth="'baseCode:base_company_information:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
           <a-dropdown v-if="selectedRowKeys.length > 0">
               <template #overlay>
                 <a-menu>
@@ -19,9 +19,9 @@
               <a-button v-auth="'baseCode:base_company_information:deleteBatch'">批量操作
                 <Icon icon="mdi:chevron-down"></Icon>
               </a-button>
-        </a-dropdown>
+        </a-dropdown> -->
         <!-- 高级查询 -->
-        <super-query :config="superQueryConfig" @search="handleSuperQuery" />
+        <!-- <super-query :config="superQueryConfig" @search="handleSuperQuery" /> -->
       </template>
        <!--操作栏-->
       <template #action="{ record }">
@@ -69,7 +69,7 @@
               ],
             },
            actionColumn: {
-               width: 120,
+               width: 200,
                fixed:'right'
             },
             beforeFetch: (params) => {
@@ -154,7 +154,7 @@
   function getTableAction(record){
        return [
          {
-           label: '编辑',
+           label: '编辑(edit)',
            onClick: handleEdit.bind(null, record),
            auth: 'baseCode:base_company_information:edit'
          }
@@ -166,10 +166,10 @@
   function getDropDownAction(record){
        return [
          {
-           label: '详情',
+           label: '详情(detail)',
            onClick: handleDetail.bind(null, record),
          }, {
-           label: '删除',
+           label: '删除(delete)',
            popConfirm: {
              title: '是否确认删除',
              confirm: handleDelete.bind(null, record),

+ 2 - 2
src/views/baseCode/CompanyInformation/components/BaseCompanyInformationModal.vue

@@ -1,5 +1,5 @@
 <template>
-  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit">
+  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="1000" @ok="handleSubmit">
       <BasicForm @register="registerForm" name="BaseCompanyInformationForm" />
   </BasicModal>
 </template>
@@ -16,7 +16,7 @@
     const isDetail = ref(false);
     //表单配置
     const [registerForm, { setProps,resetFields, setFieldsValue, validate, scrollToField }] = useForm({
-        labelWidth: 150,
+        labelWidth: 200,
         schemas: formSchema,
         showActionButtonGroup: false,
         baseColProps: {span: 24}