瀏覽代碼

中间人-页面字段调整

jingbb 4 天之前
父節點
當前提交
c04050a41b

+ 71 - 94
src/views/cuspCode/CustomerProfile/CuspCustomerProfile.data.ts

@@ -7,198 +7,175 @@ import { getWeekMonthQuarterYear } from '/@/utils';
 //列表数据
 export const columns: BasicColumn[] = [
    {
-    title: '状态(1-启用,0-停用)',
-    align:"center",
-    dataIndex: 'status'
-   },
-   {
-    title: '编码',
+    title: '编码(code)',
     align:"center",
     dataIndex: 'code'
    },
    {
-    title: '名称',
+    title: '名称(name)',
     align:"center",
     dataIndex: 'name'
    },
    {
-    title: '简称',
-    align:"center",
-    dataIndex: 'abbreviation'
-   },
-   {
-    title: '曾用名',
+    title: '简称(abbreviation)',
     align:"center",
-    dataIndex: 'nameUsedBefore'
+    dataIndex: 'abbreviation',
    },
+  //  {
+  //   title: '曾用名',
+  //   align:"center",
+  //   dataIndex: 'nameUsedBefore'
+  //  },
    {
-    title: '税号',
+    title: '税号(duty paragraph)',
     align:"center",
     dataIndex: 'dutyParagraph'
    },
    {
-    title: '法人',
+    title: '法人(legal person)',
     align:"center",
     dataIndex: 'legalPerson'
    },
    {
-    title: '联系人',
+    title: '联系人(contacts)',
     align:"center",
     dataIndex: 'contacts'
    },
    {
-    title: '联系电话',
+    title: '联系电话(phone)',
     align:"center",
     dataIndex: 'phone'
    },
    {
-    title: '邮箱',
-    align:"center",
-    dataIndex: 'email'
-   },
-   {
-    title: '注册地址',
-    align:"center",
-    dataIndex: 'registerAddress'
-   },
-   {
-    title: '办公地址',
-    align:"center",
-    dataIndex: 'officeAddress'
-   },
-   {
-    title: '发票地址',
-    align:"center",
-    dataIndex: 'invoiceAddress'
-   },
-   {
-    title: '币种',
-    align:"center",
-    dataIndex: 'currency'
-   },
-   {
-    title: '国家',
+    title: '国家(country)',
     align:"center",
     dataIndex: 'country'
    },
    {
-    title: '付款条件',
-    align:"center",
-    dataIndex: 'paymentTerms_dictText'
-   },
-   {
-    title: '信用额度',
+    title: '中间人(intermediator)',
     align:"center",
-    dataIndex: 'creditLimit'
+    dataIndex: 'intermediator'
    },
    {
-    title: '折扣',
+    title: '折扣(discount)',
     align:"center",
     dataIndex: 'discount'
    },
    {
-    title: '佣金',
+    title: '佣金(commission)',
     align:"center",
     dataIndex: 'commission'
    },
+  
    {
-    title: '中间人',
-    align:"center",
-    dataIndex: 'intermediator'
-   },
-   {
-    title: '中间人佣金',
+    title: '中间人佣金(intermediator commission)',
     align:"center",
     dataIndex: 'intermediatorCommission'
    },
    {
-    title: '优先级',
+    title: '信用额度(credit limit)',
     align:"center",
-    dataIndex: 'priority_dictText'
+    dataIndex: 'creditLimit'
    },
+   
    {
-    title: '备注',
+    title: '优先级(priority)',
     align:"center",
-    dataIndex: 'notes'
+    dataIndex: 'priority_dictText'
    },
    {
-    title: '文件',
+    title: '状态(status)',
+    key: 'status',
+    dataIndex: 'status',
     align:"center",
-    dataIndex: 'files'
-   },
+    customRender:function (t, r, index) {
+      if(t.text==1){
+        return '启用(enable)'
+      }else if(t.text==0){
+        return '停用(disable)'
+      }else{
+        return ''
+      } 
+    }
+  },
 ];
 //查询数据
 export const searchFormSchema: FormSchema[] = [
 	{
-      label: "状态(1-启用,0-停用)",
-      field: "status",
-      component: 'InputNumber',
-      //colProps: {span: 6},
- 	},
-	{
-      label: "编码",
+      label: "编码(code)",
       field: "code",
       component: 'Input',
       //colProps: {span: 6},
  	},
 	{
-      label: "名称",
+      label: "名称(name)",
       field: "name",
       component: 'Input',
       //colProps: {span: 6},
  	},
 	{
-      label: "简称",
+      label: "简称(abbreviation)",
       field: "abbreviation",
       component: 'Input',
+      labelWidth: 150,
+
       //colProps: {span: 6},
  	},
 	{
-      label: "税号",
+      label: "税号(duty paragraph)",
       field: "dutyParagraph",
       component: 'Input',
+      labelWidth: 150,
       //colProps: {span: 6},
  	},
 	{
-      label: "联系人",
+      label: "联系人(contacts)",
       field: "contacts",
       component: 'Input',
+      labelWidth: 120,
+
       //colProps: {span: 6},
  	},
 	{
-      label: "联系电话",
+      label: "联系电话(phone)",
       field: "phone",
       component: 'Input',
+      labelWidth: 120,
+
       //colProps: {span: 6},
  	},
 	{
-      label: "国家",
+      label: "国家(country)",
       field: "country",
       component: 'Input',
       //colProps: {span: 6},
  	},
+   {
+    label: "优先级(priority)",
+    field: "priority",
+    component: 'JSelectMultiple',
+    componentProps:{
+    },
+    //colProps: {span: 6},
+ },
+ {
+    label: "中间人(intermediator)",
+    field: "intermediator",
+    component: 'Input',
+    labelWidth: 150,
+    //colProps: {span: 6},
+  },
 	{
-      label: "付款条件",
+      label: "付款条件(payment terms)",
       field: "paymentTerms",
       component: 'JSelectMultiple',
+      labelWidth: 180,
       componentProps:{
       },
       //colProps: {span: 6},
  	},
-	{
-      label: "中间人",
-      field: "intermediator",
-      component: 'Input',
-      //colProps: {span: 6},
- 	},
-	{
-      label: "优先级",
-      field: "priority",
-      component: 'JSelectMultiple',
-      componentProps:{
-      },
-      //colProps: {span: 6},
- 	},
+	
+	
 ];
 //表单数据
 export const formSchema: FormSchema[] = [

+ 6 - 6
src/views/cuspCode/CustomerProfile/CuspCustomerProfileList.vue

@@ -4,24 +4,24 @@
    <BasicTable @register="registerTable" :rowSelection="rowSelection">
      <!--插槽:table标题-->
       <template #tableTitle>
-          <a-button type="primary" v-auth="'cuspCode:cusp_customer_profile:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
-          <a-button  type="primary" v-auth="'cuspCode:cusp_customer_profile:exportXls'"  preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
-          <j-upload-button  type="primary" v-auth="'cuspCode:cusp_customer_profile:importExcel'"  preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
+          <a-button type="primary" v-auth="'cuspCode:cusp_customer_profile:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
+          <a-button  type="primary" v-auth="'cuspCode:cusp_customer_profile:exportXls'"  preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
+          <!-- <j-upload-button  type="primary" v-auth="'cuspCode:cusp_customer_profile: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>
-                    删除
+                    删除(delete)
                   </a-menu-item>
                 </a-menu>
               </template>
-              <a-button v-auth="'cuspCode:cusp_customer_profile:deleteBatch'">批量操作
+              <a-button v-auth="'cuspCode:cusp_customer_profile:deleteBatch'">批量操作(batch operation)
                 <Icon icon="mdi:chevron-down"></Icon>
               </a-button>
         </a-dropdown>
         <!-- 高级查询 -->
-        <super-query :config="superQueryConfig" @search="handleSuperQuery" />
+        <!-- <super-query :config="superQueryConfig" @search="handleSuperQuery" /> -->
       </template>
        <!--操作栏-->
       <template #action="{ record }">

+ 1 - 1
src/views/cuspCode/CustomerProfile/components/CuspCustomerProfileForm.vue

@@ -49,7 +49,7 @@
     },
     setup(props){
       const [registerForm, { setFieldsValue, setProps }] = useForm({
-        labelWidth: 150,
+        labelWidth: 190,
         schemas: getBpmFormSchema(props.formData),
         showActionButtonGroup: false,
         baseColProps: {span: 8}

+ 5 - 5
src/views/cuspCode/Intermediator/CuspIntermediatorList.vue

@@ -5,7 +5,7 @@
       <a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
         <a-row :gutter="24">
           <a-col :lg="6">
-            <a-form-item name="code">
+            <a-form-item name="code"  labelWidth="150">
               <template #label><span title="编码">编码(code)</span></template>
               <a-input placeholder="请输入" v-model:value="queryParam.code" allow-clear ></a-input>
             </a-form-item>
@@ -18,13 +18,13 @@
           </a-col>
           <template v-if="toggleSearchStatus">
             <a-col :lg="6">
-              <a-form-item name="abbreviation" :label-col="labelCol1" :wrapper-col="wrapperCol1">
+              <a-form-item name="abbreviation" :label-col="labelCol1" :wrapper-col="wrapperCol1" labelWidth="150">
                 <template #label><span title="简称">简称(abbreviation)</span></template>
                 <a-input placeholder="请输入简称" v-model:value="queryParam.abbreviation" allow-clear ></a-input>
               </a-form-item>
             </a-col>
             <a-col :lg="6">
-              <a-form-item name="dutyParagraph" :label-col="labelCol1" :wrapper-col="wrapperCol1">
+              <a-form-item name="dutyParagraph" :label-col="labelCol1" :wrapper-col="wrapperCol1" >
                 <template #label><span title="税号">税号(dutyParagraph)</span></template>
                 <a-input placeholder="请输入税号" v-model:value="queryParam.dutyParagraph" allow-clear ></a-input>
               </a-form-item>
@@ -156,11 +156,11 @@
   });
   const labelCol1 = ref({
     xs: { span: 24 },
-    sm: { span: 9 },
+    sm: { span: 8 },
     });
   const wrapperCol1 = ref({
     xs: { span: 24 },
-    sm: { span: 15 },
+    sm: { span: 16 },
   });
 
   // 高级查询配置