소스 검색

fix: 服务记录可以选过去的日期+联系人、客户名称修改

outaozhen 5 년 전
부모
커밋
54740b7314
3개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 8 8
      config/routes.js
  2. 2 2
      src/locales/zh-CN/menu.js
  3. 1 1
      src/pages/Customer/Client/components/ClientDetail/AddRecord.jsx

+ 8 - 8
config/routes.js

@@ -42,14 +42,6 @@ export default [
         redirect: '/customer/company'
       },
       {
-        path: '/customer/company',
-        name: 'company',
-        icon: 'icon-building',
-        component: './Customer/Company',
-        access: 'authRouteFilter',
-        validatePerm: true
-      },
-      {
         path: '/customer/client',
         name: 'client',
         icon: 'icon-address-book',
@@ -58,6 +50,14 @@ export default [
         validatePerm: true
       },
       {
+        path: '/customer/company',
+        name: 'company',
+        icon: 'icon-building',
+        component: './Customer/Company',
+        access: 'authRouteFilter',
+        validatePerm: true
+      },
+      {
         path: '/customer/business',
         name: 'business',
         icon: 'icon-usd-circle',

+ 2 - 2
src/locales/zh-CN/menu.js

@@ -3,8 +3,8 @@ export default {
   'menu.workbench.dashboard': '仪表盘',
   'menu.workbench.workbench': '代办事项',
   'menu.customer': '客户',
-  'menu.customer.client': '联系人',
-  'menu.customer.company': '客户',
+  'menu.customer.client': '客户',
+  'menu.customer.company': '单位',
   'menu.customer.business': '商机',
   'menu.customer.test': '测试',
   'menu.product': '产品',

+ 1 - 1
src/pages/Customer/Client/components/ClientDetail/AddRecord.jsx

@@ -55,7 +55,7 @@ const AddRecord = props => {
         </Radio.Group>
       </Form.Item>
       <Form.Item name="date" label="服务日期" initialValue={dayjs(new Date())}>
-        <DatePicker style={{ width: '100%' }} disabledDate={disabledDate} />
+        <DatePicker style={{ width: '100%' }} />
       </Form.Item>
       <ProFormTextArea name="mark" label="内容" />