Commit d6aaa099f8ab6e9b4ef08ffa73101935f6a1807b
Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main
Showing
118 changed files
with
450 additions
and
160 deletions
Too many changes to show.
To preserve performance only 100 of 118 files are displayed.
.umirc.ts
| @@ -22,10 +22,10 @@ export default defineConfig({ | @@ -22,10 +22,10 @@ export default defineConfig({ | ||
| 22 | path: "/loginMobile", | 22 | path: "/loginMobile", |
| 23 | component: "@/routes/mobile/login/LoginMobile", | 23 | component: "@/routes/mobile/login/LoginMobile", |
| 24 | }, | 24 | }, |
| 25 | - | 25 | + |
| 26 | { | 26 | { |
| 27 | - path: '/indexMobile', | ||
| 28 | - component:'@/routes/mobile/IndexMobile', | 27 | + path: "/indexMobile", |
| 28 | + component: "@/routes/mobile/IndexMobile", | ||
| 29 | routes: [{ path: "*" }], | 29 | routes: [{ path: "*" }], |
| 30 | }, | 30 | }, |
| 31 | ], | 31 | ], |
| @@ -36,4 +36,5 @@ export default defineConfig({ | @@ -36,4 +36,5 @@ export default defineConfig({ | ||
| 36 | include: getIcons(), | 36 | include: getIcons(), |
| 37 | }, | 37 | }, |
| 38 | plugins: ["@umijs/plugins/dist/dva"], | 38 | plugins: ["@umijs/plugins/dist/dva"], |
| 39 | + mfsu: false, | ||
| 39 | }); | 40 | }); |
package.json
| @@ -18,6 +18,7 @@ | @@ -18,6 +18,7 @@ | ||
| 18 | "@js-preview/pdf": "^2.0.10", | 18 | "@js-preview/pdf": "^2.0.10", |
| 19 | "antd": "^5.24.3", | 19 | "antd": "^5.24.3", |
| 20 | "antd-mobile": "5.37.1", | 20 | "antd-mobile": "5.37.1", |
| 21 | + "antd-mobile-icons": "^0.3.0", | ||
| 21 | "antd-mobile-v2": "2.3.4", | 22 | "antd-mobile-v2": "2.3.4", |
| 22 | "antd-v4": "npm:antd@4.24.16", | 23 | "antd-v4": "npm:antd@4.24.16", |
| 23 | "braft-editor": "^2.3.9", | 24 | "braft-editor": "^2.3.9", |
src/components/AuditInformation/AuditInformation.js
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | // , Switch, Icon | 5 | // , Switch, Icon |
| 6 | import React, { Component } from 'react'; | 6 | import React, { Component } from 'react'; |
| 7 | import { Form } from '@ant-design/compatible'; | 7 | import { Form } from '@ant-design/compatible'; |
| 8 | -import '@ant-design/compatible/assets/index.css'; | 8 | +// import '@ant-design/compatible/assets/index.css'; |
| 9 | import { Layout, Spin, Tabs, Avatar, message, Select, Input, Button } from 'antd-v4'; | 9 | import { Layout, Spin, Tabs, Avatar, message, Select, Input, Button } from 'antd-v4'; |
| 10 | import * as commonFunc from './../Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 10 | import * as commonFunc from './../Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
| 11 | import StaticEditTable from '../Common/CommonTable';/* 可编辑表格 */ | 11 | import StaticEditTable from '../Common/CommonTable';/* 可编辑表格 */ |
src/components/Common/CommonBill/index.js
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import { UploadOutlined } from '@ant-design/icons'; | 4 | import { UploadOutlined } from '@ant-design/icons'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | -import '@ant-design/compatible/assets/index.css'; | 6 | +// import '@ant-design/compatible/assets/index.css'; |
| 7 | import { | 7 | import { |
| 8 | Row, | 8 | Row, |
| 9 | Col, | 9 | Col, |
src/components/Common/CommonBillDeliver.js
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import { UploadOutlined } from '@ant-design/icons'; | 4 | import { UploadOutlined } from '@ant-design/icons'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | -import '@ant-design/compatible/assets/index.css'; | 6 | +// import '@ant-design/compatible/assets/index.css'; |
| 7 | import { Row, Col, Checkbox, Layout, Spin, Tabs, Avatar, Button, message, Table, Input, Upload } from 'antd-v4'; | 7 | import { Row, Col, Checkbox, Layout, Spin, Tabs, Avatar, Button, message, Table, Input, Upload } from 'antd-v4'; |
| 8 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 8 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
| 9 | import Toolbar from '@/components/Common/ToolBar/ToolBarNew'; | 9 | import Toolbar from '@/components/Common/ToolBar/ToolBarNew'; |
src/components/Common/CommonCalculator.js
| 1 | /* eslint-disable function-paren-newline */ | 1 | /* eslint-disable function-paren-newline */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Row, Col, Button } from 'antd-v4'; | 5 | import { Row, Col, Button } from 'antd-v4'; |
| 6 | import * as commonUtils from '../../utils/utils'; | 6 | import * as commonUtils from '../../utils/utils'; |
| 7 | import commonConfig from '../../utils/config'; | 7 | import commonConfig from '../../utils/config'; |
src/components/Common/CommonCheckBill/index.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { UploadOutlined } from '@ant-design/icons'; | 3 | import { UploadOutlined } from '@ant-design/icons'; |
| 4 | import { Form } from '@ant-design/compatible'; | 4 | import { Form } from '@ant-design/compatible'; |
| 5 | -import '@ant-design/compatible/assets/index.css'; | 5 | +// import '@ant-design/compatible/assets/index.css'; |
| 6 | import { | 6 | import { |
| 7 | Row, | 7 | Row, |
| 8 | Col, | 8 | Col, |
src/components/Common/CommonColumnList.js
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | */ | 7 | */ |
| 8 | import React, { Component } from 'react'; | 8 | import React, { Component } from 'react'; |
| 9 | import { Form } from '@ant-design/compatible'; | 9 | import { Form } from '@ant-design/compatible'; |
| 10 | -import '@ant-design/compatible/assets/index.css'; | 10 | +// import '@ant-design/compatible/assets/index.css'; |
| 11 | import { Layout, Spin } from 'antd-v4'; | 11 | import { Layout, Spin } from 'antd-v4'; |
| 12 | import CommonListEvent from './CommonListEvent';/* 继承销售模块业务功能 */ | 12 | import CommonListEvent from './CommonListEvent';/* 继承销售模块业务功能 */ |
| 13 | import * as commonFunc from './commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 13 | import * as commonFunc from './commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/CommonComponent/index.js
| 1 | import moment from 'moment'; | 1 | import moment from 'moment'; |
| 2 | import React, { Component, createRef } from 'react'; | 2 | import React, { Component, createRef } from 'react'; |
| 3 | import reactComponentDebounce from '@/components/Common/ReactDebounce'; | 3 | import reactComponentDebounce from '@/components/Common/ReactDebounce'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { | 5 | import { |
| 6 | InputNumber, | 6 | InputNumber, |
| 7 | Checkbox, | 7 | Checkbox, |
src/components/Common/CommonComponent/index_new.js
| @@ -2,7 +2,7 @@ import moment from 'moment'; | @@ -2,7 +2,7 @@ import moment from 'moment'; | ||
| 2 | import React, { useState, useEffect } from 'react'; | 2 | import React, { useState, useEffect } from 'react'; |
| 3 | import { useMount, useUnmount } from 'ahooks'; | 3 | import { useMount, useUnmount } from 'ahooks'; |
| 4 | // import reactComponentDebounce from 'react-component-debounce'; | 4 | // import reactComponentDebounce from 'react-component-debounce'; |
| 5 | -import '@ant-design/compatible/assets/index.css'; | 5 | +// import '@ant-design/compatible/assets/index.css'; |
| 6 | import { | 6 | import { |
| 7 | InputNumber, | 7 | InputNumber, |
| 8 | Checkbox, | 8 | Checkbox, |
src/components/Common/CommonCostomTabBill.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | ||
| 3 | import React, { Component, useEffect, useState, useRef } from "react"; | 3 | import React, { Component, useEffect, useState, useRef } from "react"; |
| 4 | import { Form } from "@ant-design/compatible"; | 4 | import { Form } from "@ant-design/compatible"; |
| 5 | -import "@ant-design/compatible/assets/index.css"; | 5 | +// import "@ant-design/compatible/assets/index.css"; |
| 6 | import { | 6 | import { |
| 7 | Row, | 7 | Row, |
| 8 | Col, | 8 | Col, |
src/components/Common/CommonGroupBill.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import { Form } from '@ant-design/compatible'; | 4 | import { Form } from '@ant-design/compatible'; |
| 5 | -import '@ant-design/compatible/assets/index.css'; | 5 | +// import '@ant-design/compatible/assets/index.css'; |
| 6 | import {Row, Col, Checkbox, Layout, Spin, Tabs, Dropdown, Avatar, Button, message, Menu, Table, Upload} from 'antd-v4'; | 6 | import {Row, Col, Checkbox, Layout, Spin, Tabs, Dropdown, Avatar, Button, message, Menu, Table, Upload} from 'antd-v4'; |
| 7 | import {DownOutlined, UploadOutlined,} from '@ant-design/icons'; | 7 | import {DownOutlined, UploadOutlined,} from '@ant-design/icons'; |
| 8 | import CommonNewSales from '@/components/Common/CommonGroupBillEvent';/* 继承销售模块业务功能 */ | 8 | import CommonNewSales from '@/components/Common/CommonGroupBillEvent';/* 继承销售模块业务功能 */ |
src/components/Common/CommonList.js
| 1 | import React, { Component, useMemo, useState } from 'react'; | 1 | import React, { Component, useMemo, useState } from 'react'; |
| 2 | import { Form } from '@ant-design/compatible'; | 2 | import { Form } from '@ant-design/compatible'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import { Layout, Spin, Slider, Button } from 'antd-v4'; | 4 | import { Layout, Spin, Slider, Button } from 'antd-v4'; |
| 5 | import { MessageOutlined, MinusOutlined } from '@ant-design/icons'; | 5 | import { MessageOutlined, MinusOutlined } from '@ant-design/icons'; |
| 6 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ | 6 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ |
src/components/Common/CommonListA.js
| 1 | /* 此组件作用是 列表绕开注册 */ | 1 | /* 此组件作用是 列表绕开注册 */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Slider } from 'antd-v4'; | 5 | import { Layout, Spin, Slider } from 'antd-v4'; |
| 6 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ | 6 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ |
| 7 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 7 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/CommonListEdit.js
| 1 | /* 此组件作用是 可编辑列表 */ | 1 | /* 此组件作用是 可编辑列表 */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Slider } from 'antd-v4'; | 5 | import { Layout, Spin, Slider } from 'antd-v4'; |
| 6 | import CommonListEvent from '@/components/Common/CommonListEditEvent';/* 继承销售模块业务功能 */ | 6 | import CommonListEvent from '@/components/Common/CommonListEditEvent';/* 继承销售模块业务功能 */ |
| 7 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 7 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/CommonListLeft.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form, Icon } from '@ant-design/compatible'; | 3 | import { Form, Icon } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Slider, Button, Input, message, Tooltip } from 'antd-v4'; | 5 | import { Layout, Spin, Slider, Button, Input, message, Tooltip } from 'antd-v4'; |
| 6 | import { MessageOutlined, MinusOutlined, NodeExpandOutlined } from '@ant-design/icons'; | 6 | import { MessageOutlined, MinusOutlined, NodeExpandOutlined } from '@ant-design/icons'; |
| 7 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ | 7 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ |
src/components/Common/CommonListLeft/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form, Icon } from '@ant-design/compatible'; | 3 | import { Form, Icon } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Slider, Button } from 'antd-v4'; | 5 | import { Layout, Spin, Slider, Button } from 'antd-v4'; |
| 6 | import { MessageOutlined, MinusOutlined } from '@ant-design/icons'; | 6 | import { MessageOutlined, MinusOutlined } from '@ant-design/icons'; |
| 7 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ | 7 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ |
src/components/Common/CommonListSelect/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { UploadOutlined } from '@ant-design/icons'; | 5 | import { UploadOutlined } from '@ant-design/icons'; |
| 6 | import { Layout, Spin, Button, message, Upload, Modal } from 'antd-v4'; | 6 | import { Layout, Spin, Button, message, Upload, Modal } from 'antd-v4'; |
| 7 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ | 7 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ |
src/components/Common/CommonListSelectAssignment.js
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | 3 | ||
| 4 | import React, { Component } from 'react'; | 4 | import React, { Component } from 'react'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | -import '@ant-design/compatible/assets/index.css'; | 6 | +// import '@ant-design/compatible/assets/index.css'; |
| 7 | import { Layout, Spin, Button, Row, Col } from 'antd-v4'; | 7 | import { Layout, Spin, Button, Row, Col } from 'antd-v4'; |
| 8 | import CommonListEvent from './CommonListEvent';/* 继承销售模块业务功能 */ | 8 | import CommonListEvent from './CommonListEvent';/* 继承销售模块业务功能 */ |
| 9 | // import * as commonUtils from '../../utils/utils'; /* 通用方法 */ | 9 | // import * as commonUtils from '../../utils/utils'; /* 通用方法 */ |
src/components/Common/CommonListSelectFlex/EditTableCommonListSelectFlex/index.jsx
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { PureComponent } from "react"; | 2 | import React, { PureComponent } from "react"; |
| 3 | import { Form } from "@ant-design/compatible"; | 3 | import { Form } from "@ant-design/compatible"; |
| 4 | -import "@ant-design/compatible/assets/index.css"; | 4 | +// import "@ant-design/compatible/assets/index.css"; |
| 5 | import { Layout, Spin, Button, Row, Col } from "antd-v4"; | 5 | import { Layout, Spin, Button, Row, Col } from "antd-v4"; |
| 6 | import * as commonFunc from "@/components/Common/commonFunc"; /* 通用单据方法 */ /* 通用单据方法 */ | 6 | import * as commonFunc from "@/components/Common/commonFunc"; /* 通用单据方法 */ /* 通用单据方法 */ |
| 7 | import StaticEditTable from "@/components/Common//CommonTable"; /* 可编辑表格 */ | 7 | import StaticEditTable from "@/components/Common//CommonTable"; /* 可编辑表格 */ |
src/components/Common/CommonListSelectFlex/index.js
| 1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
| 2 | import { Form } from '@ant-design/compatible'; | 2 | import { Form } from '@ant-design/compatible'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import { Layout, Spin, Button, Row, Col, message } from 'antd-v4'; | 4 | import { Layout, Spin, Button, Row, Col, message } from 'antd-v4'; |
| 5 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 5 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
| 6 | import StaticEditTable from '@/components/Common//CommonTable';/* 可编辑表格 */ | 6 | import StaticEditTable from '@/components/Common//CommonTable';/* 可编辑表格 */ |
src/components/Common/CommonListSelectMulti/index.js
| 1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
| 2 | import { DownOutlined } from '@ant-design/icons'; | 2 | import { DownOutlined } from '@ant-design/icons'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Button, Row, Col, message } from 'antd-v4'; | 5 | import { Layout, Spin, Button, Row, Col, message } from 'antd-v4'; |
| 6 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ | 6 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ |
| 7 | // import * as commonUtils from '../../utils/utils'; /* 通用方法 */ | 7 | // import * as commonUtils from '../../utils/utils'; /* 通用方法 */ |
src/components/Common/CommonListSelectParam/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import { Form } from '@ant-design/compatible'; | 4 | import { Form } from '@ant-design/compatible'; |
| 5 | import { Spin, Tabs, message, Modal, Tooltip } from 'antd-v4'; | 5 | import { Spin, Tabs, message, Modal, Tooltip } from 'antd-v4'; |
| 6 | import * as commonUtils from '@/utils/utils';/* 通用方法 */ | 6 | import * as commonUtils from '@/utils/utils';/* 通用方法 */ |
src/components/Common/CommonListSelectProductMaterial.js
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | */ | 7 | */ |
| 8 | import React, { Component } from 'react'; | 8 | import React, { Component } from 'react'; |
| 9 | import { Form } from '@ant-design/compatible'; | 9 | import { Form } from '@ant-design/compatible'; |
| 10 | -import '@ant-design/compatible/assets/index.css'; | 10 | +// import '@ant-design/compatible/assets/index.css'; |
| 11 | import { Layout, Spin, Button, Row, Col } from 'antd-v4'; | 11 | import { Layout, Spin, Button, Row, Col } from 'antd-v4'; |
| 12 | import CommonListEvent from './CommonListEvent';/* 继承销售模块业务功能 */ | 12 | import CommonListEvent from './CommonListEvent';/* 继承销售模块业务功能 */ |
| 13 | import * as commonFunc from './commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 13 | import * as commonFunc from './commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/CommonListSelectTree/index.js
| 1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
| 2 | import { DownOutlined } from '@ant-design/icons'; | 2 | import { DownOutlined } from '@ant-design/icons'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Button, Row, Col, message } from 'antd-v4'; | 5 | import { Layout, Spin, Button, Row, Col, message } from 'antd-v4'; |
| 6 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ | 6 | import CommonListEvent from '@/components/Common/CommonListEvent';/* 继承销售模块业务功能 */ |
| 7 | // import * as commonUtils from '../../utils/utils'; /* 通用方法 */ | 7 | // import * as commonUtils from '../../utils/utils'; /* 通用方法 */ |
src/components/Common/CommonListTab/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Slider, Tabs, Row, Col, Card } from 'antd-v4'; | 5 | import { Layout, Spin, Slider, Tabs, Row, Col, Card } from 'antd-v4'; |
| 6 | import baseChar from '@/components/Common/baseChar'; /* 获取图表配置及数据 */ | 6 | import baseChar from '@/components/Common/baseChar'; /* 获取图表配置及数据 */ |
| 7 | import CommonListTabEvent from '@/components/Common/CommonListTabEvent';/* 继承销售模块业务功能 */ | 7 | import CommonListTabEvent from '@/components/Common/CommonListTabEvent';/* 继承销售模块业务功能 */ |
src/components/Common/CommonListTree/index.js
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | /* eslint-disable */ | 8 | /* eslint-disable */ |
| 9 | import React, { Component } from 'react'; | 9 | import React, { Component } from 'react'; |
| 10 | import { Form } from '@ant-design/compatible'; | 10 | import { Form } from '@ant-design/compatible'; |
| 11 | -import '@ant-design/compatible/assets/index.css'; | 11 | +// import '@ant-design/compatible/assets/index.css'; |
| 12 | import { Layout, Spin } from 'antd-v4'; | 12 | import { Layout, Spin } from 'antd-v4'; |
| 13 | import CommonListTreeEvent from '../CommonListTreeEvent';/* 继承销售模块业务功能 */ | 13 | import CommonListTreeEvent from '../CommonListTreeEvent';/* 继承销售模块业务功能 */ |
| 14 | import * as commonFunc from '../commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 14 | import * as commonFunc from '../commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/CommonListTreeSelect/index.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | */ | 4 | */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Layout, Spin, Button, message } from 'antd-v4'; | 8 | import { Layout, Spin, Button, message } from 'antd-v4'; |
| 9 | import CommonListTreeEvent from '@/components/Common/CommonListTreeEvent';/* 继承销售模块业务功能 */ | 9 | import CommonListTreeEvent from '@/components/Common/CommonListTreeEvent';/* 继承销售模块业务功能 */ |
| 10 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 10 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/CommonNewBill.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | ||
| 3 | import React, { Component, useState, useRef, useEffect } from 'react'; | 3 | import React, { Component, useState, useRef, useEffect } from 'react'; |
| 4 | import { Form } from '@ant-design/compatible'; | 4 | import { Form } from '@ant-design/compatible'; |
| 5 | -import '@ant-design/compatible/assets/index.css'; | 5 | +// import '@ant-design/compatible/assets/index.css'; |
| 6 | import {Row, Col, Checkbox, Layout, Spin, Tabs, Dropdown, Avatar, Button, Menu, Table, Upload} from 'antd-v4'; | 6 | import {Row, Col, Checkbox, Layout, Spin, Tabs, Dropdown, Avatar, Button, Menu, Table, Upload} from 'antd-v4'; |
| 7 | import { message } from '@/utils/common/message'; | 7 | import { message } from '@/utils/common/message'; |
| 8 | import {DownOutlined, UploadOutlined,} from '@ant-design/icons'; | 8 | import {DownOutlined, UploadOutlined,} from '@ant-design/icons'; |
src/components/Common/CommonNewListBill.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import { Form } from '@ant-design/compatible'; | 4 | import { Form } from '@ant-design/compatible'; |
| 5 | -import '@ant-design/compatible/assets/index.css'; | 5 | +// import '@ant-design/compatible/assets/index.css'; |
| 6 | import {Row, Col, Checkbox, Layout, Spin, Tabs, Dropdown, Avatar, Button, message, Menu, Table, Upload} from 'antd-v4'; | 6 | import {Row, Col, Checkbox, Layout, Spin, Tabs, Dropdown, Avatar, Button, message, Menu, Table, Upload} from 'antd-v4'; |
| 7 | import {DownOutlined, UploadOutlined,} from '@ant-design/icons'; | 7 | import {DownOutlined, UploadOutlined,} from '@ant-design/icons'; |
| 8 | import CommonNewSales from '@/components/Common/CommonNewTabBillEvent';/* 继承销售模块业务功能 */ | 8 | import CommonNewSales from '@/components/Common/CommonNewTabBillEvent';/* 继承销售模块业务功能 */ |
src/components/Common/CommonNewTabBill.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import { Form } from '@ant-design/compatible'; | 4 | import { Form } from '@ant-design/compatible'; |
| 5 | -import '@ant-design/compatible/assets/index.css'; | 5 | +// import '@ant-design/compatible/assets/index.css'; |
| 6 | import {Row, Col, Checkbox, Layout, Spin, Tabs, Dropdown, Avatar, Button, message, Menu, Table, Upload} from 'antd-v4'; | 6 | import {Row, Col, Checkbox, Layout, Spin, Tabs, Dropdown, Avatar, Button, message, Menu, Table, Upload} from 'antd-v4'; |
| 7 | import {DownOutlined, UploadOutlined,} from '@ant-design/icons'; | 7 | import {DownOutlined, UploadOutlined,} from '@ant-design/icons'; |
| 8 | import CommonNewSales from '@/components/Common/CommonNewTabBillEvent';/* 继承销售模块业务功能 */ | 8 | import CommonNewSales from '@/components/Common/CommonNewTabBillEvent';/* 继承销售模块业务功能 */ |
src/components/Common/CommonSubBill.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | import React, { Component } from 'react'; | 4 | import React, { Component } from 'react'; |
| 5 | import { UploadOutlined } from '@ant-design/icons'; | 5 | import { UploadOutlined } from '@ant-design/icons'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Row, Col, Checkbox, Layout, Spin, Tabs, Avatar, Button, Table, Input, Upload } from 'antd-v4'; | 8 | import { Row, Col, Checkbox, Layout, Spin, Tabs, Avatar, Button, Table, Input, Upload } from 'antd-v4'; |
| 9 | import { message } from '@/utils/common/message'; | 9 | import { message } from '@/utils/common/message'; |
| 10 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 10 | import * as commonFunc from '@/components/Common/commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/CommonTable/index.js
| @@ -29,7 +29,7 @@ import { | @@ -29,7 +29,7 @@ import { | ||
| 29 | PlaySquareOutlined | 29 | PlaySquareOutlined |
| 30 | } from '@ant-design/icons'; | 30 | } from '@ant-design/icons'; |
| 31 | import { Icon as LegacyIcon } from '@ant-design/compatible'; | 31 | import { Icon as LegacyIcon } from '@ant-design/compatible'; |
| 32 | -import '@ant-design/compatible/assets/index.css'; | 32 | +// import '@ant-design/compatible/assets/index.css'; |
| 33 | import lodash from 'lodash'; | 33 | import lodash from 'lodash'; |
| 34 | import { Table, Input, Checkbox, Button, Upload, message, Popover, Spin, Space, Form, Tooltip, Row, Progress,Modal, Col, Pagination } from 'antd-v4'; | 34 | import { Table, Input, Checkbox, Button, Upload, message, Popover, Spin, Space, Form, Tooltip, Row, Progress,Modal, Col, Pagination } from 'antd-v4'; |
| 35 | import { DndProvider, DropTarget, DragSource } from 'react-dnd'; | 35 | import { DndProvider, DropTarget, DragSource } from 'react-dnd'; |
| @@ -1266,6 +1266,11 @@ class CommonTableRc extends React.Component { | @@ -1266,6 +1266,11 @@ class CommonTableRc extends React.Component { | ||
| 1266 | }) | 1266 | }) |
| 1267 | } | 1267 | } |
| 1268 | 1268 | ||
| 1269 | + this.props.onCostomColums?.([ | ||
| 1270 | + ...tableColumn, | ||
| 1271 | + ...subTableColumn | ||
| 1272 | + ]); | ||
| 1273 | + | ||
| 1269 | // 判断工序状态 | 1274 | // 判断工序状态 |
| 1270 | if (commonUtils.isNotEmptyArr(sPartNameStatus) && commonUtils.isNotEmptyArr(dataSource)) { | 1275 | if (commonUtils.isNotEmptyArr(sPartNameStatus) && commonUtils.isNotEmptyArr(dataSource)) { |
| 1271 | this.useVListNew = true; | 1276 | this.useVListNew = true; |
src/components/Common/CommonView/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | /* eslint-disable object-curly-newline,prefer-destructuring */ | 2 | /* eslint-disable object-curly-newline,prefer-destructuring */ |
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import {Row, Col, Form, Tooltip, Divider} from 'antd-v4'; | 5 | import {Row, Col, Form, Tooltip, Divider} from 'antd-v4'; |
| 6 | import { DoubleRightOutlined } from '@ant-design/icons'; | 6 | import { DoubleRightOutlined } from '@ant-design/icons'; |
| 7 | import commonConfig from '@/utils/config'; | 7 | import commonConfig from '@/utils/config'; |
| @@ -378,9 +378,9 @@ export default class CommonView extends Component { | @@ -378,9 +378,9 @@ export default class CommonView extends Component { | ||
| 378 | enabledNew = true; | 378 | enabledNew = true; |
| 379 | } | 379 | } |
| 380 | // 设备信息页面修改MES系统PLC编号,控制是否输入 | 380 | // 设备信息页面修改MES系统PLC编号,控制是否输入 |
| 381 | - if (sModelsType === 'element/machineInfo' && child.sName === 'iPlcNo') { | ||
| 382 | - enabledNew = isEnabledPlcNo; | ||
| 383 | - } | 381 | + // if (sModelsType === 'element/machineInfo' && child.sName === 'iPlcNo') { |
| 382 | + // enabledNew = isEnabledPlcNo; | ||
| 383 | + // } | ||
| 384 | 384 | ||
| 385 | /* 红冲中的单据 不可修改 */ | 385 | /* 红冲中的单据 不可修改 */ |
| 386 | if (commonUtils.isNotEmptyObject(masterData) && ((commonUtils.isNotEmptyObject(masterData.sMinusSrcId)) || commonUtils.isNotEmptyObject(masterData.sMinusUsed))) { | 386 | if (commonUtils.isNotEmptyObject(masterData) && ((commonUtils.isNotEmptyObject(masterData.sMinusSrcId)) || commonUtils.isNotEmptyObject(masterData.sMinusUsed))) { |
src/components/Common/CommonViewDrag/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { Component } from "react"; | 2 | import React, { Component } from "react"; |
| 3 | -import "@ant-design/compatible/assets/index.css"; | 3 | +// import "@ant-design/compatible/assets/index.css"; |
| 4 | import { Col, Tabs, Tooltip } from "antd-v4"; | 4 | import { Col, Tabs, Tooltip } from "antd-v4"; |
| 5 | import ShowType from "@/components/Common/CommonComponent"; | 5 | import ShowType from "@/components/Common/CommonComponent"; |
| 6 | import AntdDraggableModal from "@/components/Common/AntdDraggableModal"; | 6 | import AntdDraggableModal from "@/components/Common/AntdDraggableModal"; |
src/components/Common/CommonViewDragable/index.js
| @@ -6,7 +6,7 @@ import React, { | @@ -6,7 +6,7 @@ import React, { | ||
| 6 | useRef, | 6 | useRef, |
| 7 | useState | 7 | useState |
| 8 | } from "react"; | 8 | } from "react"; |
| 9 | -import "@ant-design/compatible/assets/index.css"; | 9 | +// import "@ant-design/compatible/assets/index.css"; |
| 10 | import { Tabs, Tooltip, message } from "antd-v4"; | 10 | import { Tabs, Tooltip, message } from "antd-v4"; |
| 11 | import ShowType from "@/components/Common/CommonComponent"; | 11 | import ShowType from "@/components/Common/CommonComponent"; |
| 12 | import * as commonBusiness from "@/components/Common/commonBusiness"; | 12 | import * as commonBusiness from "@/components/Common/commonBusiness"; |
src/components/Common/CommonViewFlex/index.js
| 1 | /* eslint-disable object-curly-newline,prefer-destructuring */ | 1 | /* eslint-disable object-curly-newline,prefer-destructuring */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import { Row, Col, Form } from 'antd-v4'; | 4 | import { Row, Col, Form } from 'antd-v4'; |
| 5 | import ShowType from '@/components/Common/CommonComponent'; | 5 | import ShowType from '@/components/Common/CommonComponent'; |
| 6 | import AntdDraggableModal from '@/components/Common/AntdDraggableModal'; | 6 | import AntdDraggableModal from '@/components/Common/AntdDraggableModal'; |
src/components/Common/CommonViewNew.js
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { UploadOutlined } from '@ant-design/icons'; | 6 | import { UploadOutlined } from '@ant-design/icons'; |
| 7 | import { Form } from '@ant-design/compatible'; | 7 | import { Form } from '@ant-design/compatible'; |
| 8 | -import '@ant-design/compatible/assets/index.css'; | 8 | +// import '@ant-design/compatible/assets/index.css'; |
| 9 | import { Row, Col, Button, Upload } from 'antd-v4'; | 9 | import { Row, Col, Button, Upload } from 'antd-v4'; |
| 10 | import config from '@/utils/config'; | 10 | import config from '@/utils/config'; |
| 11 | import * as commonUtils from '@/utils/utils';/* 通用方法 */ | 11 | import * as commonUtils from '@/utils/utils';/* 通用方法 */ |
src/components/Common/CommonViewTable/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | /* eslint-disable object-curly-newline,prefer-destructuring */ | 2 | /* eslint-disable object-curly-newline,prefer-destructuring */ |
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Row, Col, Divider, Tooltip } from 'antd-v4'; | 5 | import { Row, Col, Divider, Tooltip } from 'antd-v4'; |
| 6 | import ShowType from '@/components/Common/CommonComponent'; | 6 | import ShowType from '@/components/Common/CommonComponent'; |
| 7 | import AntdDraggableModal from '@/components/Common/AntdDraggableModal'; | 7 | import AntdDraggableModal from '@/components/Common/AntdDraggableModal'; |
| @@ -389,7 +389,7 @@ export default class CommonViewTable extends Component { | @@ -389,7 +389,7 @@ export default class CommonViewTable extends Component { | ||
| 389 | onViewClick: this.handleViewClick, | 389 | onViewClick: this.handleViewClick, |
| 390 | onFieldDoubleClick: this.props.handleFieldDoubleClick, | 390 | onFieldDoubleClick: this.props.handleFieldDoubleClick, |
| 391 | getDateFormat: this.props.getDateFormat, | 391 | getDateFormat: this.props.getDateFormat, |
| 392 | - onFieldPopupModal: this.handleFieldPopupModal, | 392 | + onFieldPopupModal: this.props.onFieldPopupModal || this.handleFieldPopupModal, |
| 393 | onCostomChange: this.props.onCostomChange, // 控件后自定义按钮事件 | 393 | onCostomChange: this.props.onCostomChange, // 控件后自定义按钮事件 |
| 394 | sBtnSendDialogConfigList: this.props.sBtnSendDialogConfigList, // 校验并获取物料主数据按钮配置 | 394 | sBtnSendDialogConfigList: this.props.sBtnSendDialogConfigList, // 校验并获取物料主数据按钮配置 |
| 395 | onToolBarBtnClick: this.props.onToolBarBtnClick, // 工具栏按钮事件 | 395 | onToolBarBtnClick: this.props.onToolBarBtnClick, // 工具栏按钮事件 |
src/components/Common/ContextMenuModal.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ | 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Row, Col, Radio } from 'antd-v4'; | 8 | import { Row, Col, Radio } from 'antd-v4'; |
| 9 | import * as commonUtils from '../../utils/utils'; | 9 | import * as commonUtils from '../../utils/utils'; |
| 10 | import ShowType from './CommonComponent';/* 通用方法 */ | 10 | import ShowType from './CommonComponent';/* 通用方法 */ |
src/components/Common/EditorModal/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import AntdDraggableModal from '@/components/Common/AntdDraggableModal'; | 4 | import AntdDraggableModal from '@/components/Common/AntdDraggableModal'; |
| 5 | import BraftEditor from 'braft-editor' | 5 | import BraftEditor from 'braft-editor' |
| 6 | import 'braft-editor/dist/index.css' | 6 | import 'braft-editor/dist/index.css' |
src/components/Common/Gatte/CommonGatte.js
| 1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
| 2 | import { Form } from '@ant-design/compatible'; | 2 | import { Form } from '@ant-design/compatible'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import { Layout, Spin } from 'antd-v4'; | 4 | import { Layout, Spin } from 'antd-v4'; |
| 5 | import CommonListEvent from '../CommonListEvent';/* 继承销售模块业务功能 */ | 5 | import CommonListEvent from '../CommonListEvent';/* 继承销售模块业务功能 */ |
| 6 | import * as commonFunc from '../commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 6 | import * as commonFunc from '../commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/MaterialRequirementsPlanning.js
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | */ | 7 | */ |
| 8 | import React, { Component } from 'react'; | 8 | import React, { Component } from 'react'; |
| 9 | import { Form } from '@ant-design/compatible'; | 9 | import { Form } from '@ant-design/compatible'; |
| 10 | -import '@ant-design/compatible/assets/index.css'; | 10 | +// import '@ant-design/compatible/assets/index.css'; |
| 11 | import { Layout, Spin } from 'antd-v4'; | 11 | import { Layout, Spin } from 'antd-v4'; |
| 12 | import CommonListEvent from './CommonListEvent';/* 继承销售模块业务功能 */ | 12 | import CommonListEvent from './CommonListEvent';/* 继承销售模块业务功能 */ |
| 13 | import * as commonFunc from './commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ | 13 | import * as commonFunc from './commonFunc';/* 通用单据方法 */ /* 通用单据方法 */ |
src/components/Common/PersonCenter/PersonCenter.js
| @@ -15,7 +15,7 @@ import { | @@ -15,7 +15,7 @@ import { | ||
| 15 | } from '@ant-design/icons'; | 15 | } from '@ant-design/icons'; |
| 16 | 16 | ||
| 17 | import { Form } from '@ant-design/compatible'; | 17 | import { Form } from '@ant-design/compatible'; |
| 18 | -import '@ant-design/compatible/assets/index.css'; | 18 | +// import '@ant-design/compatible/assets/index.css'; |
| 19 | 19 | ||
| 20 | import { Button, Input, Modal, Menu, Badge, message, Dropdown, Space, notification, Popover, Tabs } from 'antd-v4'; | 20 | import { Button, Input, Modal, Menu, Badge, message, Dropdown, Space, notification, Popover, Tabs } from 'antd-v4'; |
| 21 | import styles from '@/routes/indexPage.less'; | 21 | import styles from '@/routes/indexPage.less'; |
src/components/Common/SearchComponent/index.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { MinusCircleOutlined, PlusOutlined, SettingOutlined } from '@ant-design/icons'; | 3 | import { MinusCircleOutlined, PlusOutlined, SettingOutlined } from '@ant-design/icons'; |
| 4 | import { Form, Icon as LegacyIcon } from '@ant-design/compatible'; | 4 | import { Form, Icon as LegacyIcon } from '@ant-design/compatible'; |
| 5 | -import '@ant-design/compatible/assets/index.css'; | 5 | +// import '@ant-design/compatible/assets/index.css'; |
| 6 | import { Row, Col, Button, message, Space } from 'antd-v4'; | 6 | import { Row, Col, Button, message, Space } from 'antd-v4'; |
| 7 | import moment from 'moment'; | 7 | import moment from 'moment'; |
| 8 | import commonConfig from '@/utils/config'; | 8 | import commonConfig from '@/utils/config'; |
src/components/Common/SearchComponent_backup.js
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { MinusCircleOutlined, PlusOutlined, SettingOutlined } from '@ant-design/icons'; | 6 | import { MinusCircleOutlined, PlusOutlined, SettingOutlined } from '@ant-design/icons'; |
| 7 | import { Form, Icon as LegacyIcon } from '@ant-design/compatible'; | 7 | import { Form, Icon as LegacyIcon } from '@ant-design/compatible'; |
| 8 | -import '@ant-design/compatible/assets/index.css'; | 8 | +// import '@ant-design/compatible/assets/index.css'; |
| 9 | import { Row, Col, Button, message } from 'antd-v4'; | 9 | import { Row, Col, Button, message } from 'antd-v4'; |
| 10 | import moment from 'moment'; | 10 | import moment from 'moment'; |
| 11 | import commonConfig from '../../utils/config'; | 11 | import commonConfig from '../../utils/config'; |
src/components/Common/ShowTablEdit.js
| 1 | /* eslint-disable no-trailing-spaces */ | 1 | /* eslint-disable no-trailing-spaces */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Input } from 'antd-v4'; | 5 | import { Input } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | 7 |
src/components/Common/ShowType/ShowTypeNew.js
| @@ -5,7 +5,7 @@ import moment from 'moment'; | @@ -5,7 +5,7 @@ import moment from 'moment'; | ||
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import reactComponentDebounce from 'react-component-debounce'; | 6 | import reactComponentDebounce from 'react-component-debounce'; |
| 7 | import { Form } from '@ant-design/compatible'; | 7 | import { Form } from '@ant-design/compatible'; |
| 8 | -import '@ant-design/compatible/assets/index.css'; | 8 | +// import '@ant-design/compatible/assets/index.css'; |
| 9 | import { InputNumber, Checkbox, DatePicker, Input, Cascader, Select, AutoComplete } from 'antd-v4'; | 9 | import { InputNumber, Checkbox, DatePicker, Input, Cascader, Select, AutoComplete } from 'antd-v4'; |
| 10 | import * as commonServices from '@/services/services'; | 10 | import * as commonServices from '@/services/services'; |
| 11 | import * as dropdownstatic from '@/utils/dropdownstatic'; | 11 | import * as dropdownstatic from '@/utils/dropdownstatic'; |
src/components/Common/SlaveMemo copy 2.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ | 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Input, message } from 'antd-v4'; | 8 | import { Input, message } from 'antd-v4'; |
| 9 | import * as commonUtils from '../../utils/utils'; | 9 | import * as commonUtils from '../../utils/utils'; |
| 10 | import ShowType from './CommonComponent';/* 通用方法 */ | 10 | import ShowType from './CommonComponent';/* 通用方法 */ |
src/components/Common/SlaveMemo copy.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ | 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Input, message } from 'antd-v4'; | 8 | import { Input, message } from 'antd-v4'; |
| 9 | import * as commonUtils from '../../utils/utils'; | 9 | import * as commonUtils from '../../utils/utils'; |
| 10 | import ShowType from './CommonComponent';/* 通用方法 */ | 10 | import ShowType from './CommonComponent';/* 通用方法 */ |
src/components/Common/SlaveMemo.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ | 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Input, message } from 'antd-v4'; | 8 | import { Input, message } from 'antd-v4'; |
| 9 | import * as commonUtils from '../../utils/utils'; | 9 | import * as commonUtils from '../../utils/utils'; |
| 10 | import ShowType from './CommonComponent';/* 通用方法 */ | 10 | import ShowType from './CommonComponent';/* 通用方法 */ |
src/components/Common/SlaveMemo1 copy 2.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ | 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Input } from 'antd-v4'; | 8 | import { Input } from 'antd-v4'; |
| 9 | import * as commonUtils from '../../utils/utils'; | 9 | import * as commonUtils from '../../utils/utils'; |
| 10 | import ShowType from './CommonComponent';/* 通用方法 */ | 10 | import ShowType from './CommonComponent';/* 通用方法 */ |
src/components/Common/SlaveMemo1 copy.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ | 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Input } from 'antd-v4'; | 8 | import { Input } from 'antd-v4'; |
| 9 | import * as commonUtils from '../../utils/utils'; | 9 | import * as commonUtils from '../../utils/utils'; |
| 10 | import ShowType from './CommonComponent';/* 通用方法 */ | 10 | import ShowType from './CommonComponent';/* 通用方法 */ |
src/components/Common/SlaveMemo1.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ | 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Input } from 'antd-v4'; | 8 | import { Input } from 'antd-v4'; |
| 9 | import * as commonUtils from '../../utils/utils'; | 9 | import * as commonUtils from '../../utils/utils'; |
| 10 | import ShowType from './CommonComponent';/* 通用方法 */ | 10 | import ShowType from './CommonComponent';/* 通用方法 */ |
src/components/Common/ToolBar/ToolBarNew.js
| @@ -2541,7 +2541,7 @@ class ToolBarComponent extends Component { | @@ -2541,7 +2541,7 @@ class ToolBarComponent extends Component { | ||
| 2541 | boxVisible: true, | 2541 | boxVisible: true, |
| 2542 | makeUpPDFRecord, | 2542 | makeUpPDFRecord, |
| 2543 | title: config.showName, | 2543 | title: config.showName, |
| 2544 | - | 2544 | + |
| 2545 | onCancel: () => { | 2545 | onCancel: () => { |
| 2546 | this.setState({ BtnBoxData: null, makeUpPDFRecord: undefined }); | 2546 | this.setState({ BtnBoxData: null, makeUpPDFRecord: undefined }); |
| 2547 | this.props.onSaveState({ | 2547 | this.props.onSaveState({ |
| @@ -2580,7 +2580,7 @@ class ToolBarComponent extends Component { | @@ -2580,7 +2580,7 @@ class ToolBarComponent extends Component { | ||
| 2580 | }); | 2580 | }); |
| 2581 | } else if (this.props.onButtonClick !== undefined) { | 2581 | } else if (this.props.onButtonClick !== undefined) { |
| 2582 | this.props.onButtonClick(key); | 2582 | this.props.onButtonClick(key); |
| 2583 | - } | 2583 | + } |
| 2584 | }; | 2584 | }; |
| 2585 | 2585 | ||
| 2586 | // 删除当前pane | 2586 | // 删除当前pane |
| @@ -3891,6 +3891,34 @@ class ToolBarComponent extends Component { | @@ -3891,6 +3891,34 @@ class ToolBarComponent extends Component { | ||
| 3891 | } | 3891 | } |
| 3892 | }; | 3892 | }; |
| 3893 | 3893 | ||
| 3894 | + | ||
| 3895 | + /* 通用上传各种文件 */ | ||
| 3896 | + handleUploadFilesChange = info => { | ||
| 3897 | + const { file,} = info; | ||
| 3898 | + if (file.response && file.response.code === 1) { | ||
| 3899 | + /* 刷新列表 */ | ||
| 3900 | + message.open({ | ||
| 3901 | + type: 'success', | ||
| 3902 | + content: '文件上传成功', | ||
| 3903 | + duration: 1 | ||
| 3904 | + }); | ||
| 3905 | + this.handleRefresh(); | ||
| 3906 | + }else if (file.response && file.response.code === -8) { | ||
| 3907 | + Modal.info({ | ||
| 3908 | + title: '温馨提示:', | ||
| 3909 | + content: ( | ||
| 3910 | + <div> | ||
| 3911 | + {this.handleGetMsg(file.response.msg)} | ||
| 3912 | + </div> | ||
| 3913 | + ), | ||
| 3914 | + okText: '确认', | ||
| 3915 | + onOk() {}, | ||
| 3916 | + }); | ||
| 3917 | + } else if (file.response && file.response.code === -1) { | ||
| 3918 | + message.error(file.response.msg); | ||
| 3919 | + } | ||
| 3920 | + }; | ||
| 3921 | + | ||
| 3894 | customRequest = option => { | 3922 | customRequest = option => { |
| 3895 | const { onSuccess, onError, file, action, data = {} } = option; | 3923 | const { onSuccess, onError, file, action, data = {} } = option; |
| 3896 | // 添加额外的参数 | 3924 | // 添加额外的参数 |
| @@ -4255,6 +4283,18 @@ class ToolBarComponent extends Component { | @@ -4255,6 +4283,18 @@ class ToolBarComponent extends Component { | ||
| 4255 | disabled: !this.props.enabled, | 4283 | disabled: !this.props.enabled, |
| 4256 | // beforeUpload: this.handleBeforeUpload, | 4284 | // beforeUpload: this.handleBeforeUpload, |
| 4257 | }; | 4285 | }; |
| 4286 | + const sBrandsId = userinfo?.sBrandsId; | ||
| 4287 | + const sSubsidiaryId = userinfo?.sSubsidiaryId; | ||
| 4288 | + /* 上传文件 */ | ||
| 4289 | + const uploadFilesProps = { | ||
| 4290 | + action: `${commonConfig.file_host}file/uploadMachinePlc?sModelsId=${sModelsId}&&sBrandsId=${sBrandsId}&sSubsidiaryId=${sSubsidiaryId}&token=${app.token}`, | ||
| 4291 | + onChange: this.handleUploadFilesChange, | ||
| 4292 | + accept: '*/*', | ||
| 4293 | + showUploadList: false, | ||
| 4294 | + disabled: false, | ||
| 4295 | + multiple:true, | ||
| 4296 | + // beforeUpload: this.handleBeforeUpload, | ||
| 4297 | + }; | ||
| 4258 | 4298 | ||
| 4259 | /* 发票上传 */ | 4299 | /* 发票上传 */ |
| 4260 | let invoiceBody = {}; | 4300 | let invoiceBody = {}; |
| @@ -4524,6 +4564,14 @@ class ToolBarComponent extends Component { | @@ -4524,6 +4564,14 @@ class ToolBarComponent extends Component { | ||
| 4524 | <span style={{ color: this.props.enabled ? "#fff" : "#a2a2a2" }}>{showNameNew}</span> | 4564 | <span style={{ color: this.props.enabled ? "#fff" : "#a2a2a2" }}>{showNameNew}</span> |
| 4525 | </Upload> | 4565 | </Upload> |
| 4526 | </div> | 4566 | </div> |
| 4567 | + ): commonUtils.isNotEmptyObject(item.sControlName) && item.sControlName.indexOf("BtnImportFile") > -1 ? ( | ||
| 4568 | + <div> | ||
| 4569 | + <Upload {...uploadFilesProps}> | ||
| 4570 | + <a className={styles.uploadlink} style={{ color: "#ffffff"}}> | ||
| 4571 | + <UploadOutlined fill="#fff"/> {showNameNew} | ||
| 4572 | + </a> | ||
| 4573 | + </Upload> | ||
| 4574 | + </div> | ||
| 4527 | ) : commonUtils.isNotEmptyObject(item.sControlName) && item.sControlName.indexOf("BtnDlPbOrder") > -1 ? ( | 4575 | ) : commonUtils.isNotEmptyObject(item.sControlName) && item.sControlName.indexOf("BtnDlPbOrder") > -1 ? ( |
| 4528 | <div className={styles.toolBarUpload}> | 4576 | <div className={styles.toolBarUpload}> |
| 4529 | <a {...this.getDisabledProps("BtnDlPbOrder")} onClick={() => this.handleBtnDownload()}> | 4577 | <a {...this.getDisabledProps("BtnDlPbOrder")} onClick={() => this.handleBtnDownload()}> |
src/components/Common/ToolBar/index.less
| @@ -45,6 +45,12 @@ | @@ -45,6 +45,12 @@ | ||
| 45 | fill: @disable_color!important; | 45 | fill: @disable_color!important; |
| 46 | stroke: @disable_color!important; | 46 | stroke: @disable_color!important; |
| 47 | } | 47 | } |
| 48 | + .uploadlink{ | ||
| 49 | + color: #ffffff; | ||
| 50 | + } | ||
| 51 | + .uploadlink:hover{ | ||
| 52 | + color:#1890FF!important; | ||
| 53 | + } | ||
| 48 | } | 54 | } |
| 49 | 55 | ||
| 50 | .xlyProcess { | 56 | .xlyProcess { |
src/components/Common/Tree/StaticTree.js
| @@ -6,7 +6,7 @@ import file from '@/assets/file.svg'; | @@ -6,7 +6,7 @@ import file from '@/assets/file.svg'; | ||
| 6 | import file_single from '@/assets/file_single.svg'; | 6 | import file_single from '@/assets/file_single.svg'; |
| 7 | import process from '@/assets/treeprocess.svg'; | 7 | import process from '@/assets/treeprocess.svg'; |
| 8 | import material from '@/assets/treematerial.svg'; | 8 | import material from '@/assets/treematerial.svg'; |
| 9 | -import '@ant-design/compatible/assets/index.css'; | 9 | +// import '@ant-design/compatible/assets/index.css'; |
| 10 | import { Tree, Button, Input, Checkbox } from 'antd-v4'; | 10 | import { Tree, Button, Input, Checkbox } from 'antd-v4'; |
| 11 | import StaticEditTable from '../CommonTable';/* 可编辑表格 */ | 11 | import StaticEditTable from '../CommonTable';/* 可编辑表格 */ |
| 12 | import * as commonUtils from '../../../utils/utils'; | 12 | import * as commonUtils from '../../../utils/utils'; |
src/components/CommonClassifyEvent/CommonClassify.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | /* eslint-disable array-callback-return,no-undef */ | 2 | /* eslint-disable array-callback-return,no-undef */ |
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import { Form } from '@ant-design/compatible'; | 4 | import { Form } from '@ant-design/compatible'; |
| 5 | -// import '@ant-design/compatible/assets/index.css'; | 5 | +// // import '@ant-design/compatible/assets/index.css'; |
| 6 | import { Layout, Spin } from 'antd-v4'; | 6 | import { Layout, Spin } from 'antd-v4'; |
| 7 | import styles from '@/index.less'; | 7 | import styles from '@/index.less'; |
| 8 | import Toolbar from '@/components/Common/ToolBar/ToolBarNew'; | 8 | import Toolbar from '@/components/Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/CheckModelInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/CheckPhaseInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/CustomerInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/ElemachineInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Tabs, Avatar } from 'antd-v4'; | 5 | import { Layout, Spin, Tabs, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/EleteamInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/EmployeeInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/FilfileManageInfo.js
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ | 4 | /* eslint-disable no-undef,import/first,prefer-destructuring,jsx-a11y/alt-text */ |
| 5 | import React, { Component } from 'react'; | 5 | import React, { Component } from 'react'; |
| 6 | import { Form } from '@ant-design/compatible'; | 6 | import { Form } from '@ant-design/compatible'; |
| 7 | -import '@ant-design/compatible/assets/index.css'; | 7 | +// import '@ant-design/compatible/assets/index.css'; |
| 8 | import { Button, Layout, message, Spin } from 'antd-v4'; | 8 | import { Button, Layout, message, Spin } from 'antd-v4'; |
| 9 | import StaticEditTable from '../Common/CommonTable'; | 9 | import StaticEditTable from '../Common/CommonTable'; |
| 10 | import * as commonBusiness from '../Common/commonBusiness'; | 10 | import * as commonBusiness from '../Common/commonBusiness'; |
src/components/CommonElementEvent/KnifeMouldInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar, message } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar, message } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/MaterialsInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/MonthEndingClosing.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin } from 'antd-v4'; | 5 | import { Layout, Spin } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | // import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | // import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/PaymentTermsInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin } from 'antd-v4'; | 5 | import { Layout, Spin } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/PrintInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar, message } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar, message } from 'antd-v4'; |
| 6 | import styles from '@/index.less'; | 6 | import styles from '@/index.less'; |
| 7 | import Toolbar from '@/components/Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '@/components/Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/ProcessInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/ProductClassifyInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/SftLoginInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import * as commonUtils from '@/utils/utils';/* 通用方法 */ | 6 | import * as commonUtils from '@/utils/utils';/* 通用方法 */ |
| 7 | import styles from '../../index.less'; | 7 | import styles from '../../index.less'; |
src/components/CommonElementEvent/SisCommonStyle.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/SisformulaInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Tabs, Row, Col } from 'antd-v4'; | 5 | import { Layout, Spin, Tabs, Row, Col } from 'antd-v4'; |
| 6 | import styles from '@/index.less'; | 6 | import styles from '@/index.less'; |
| 7 | import * as commonUtils from '@/utils/utils'; | 7 | import * as commonUtils from '@/utils/utils'; |
src/components/CommonElementEvent/SupplyInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/SysMsgInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin } from 'antd-v4';// Tabs, Form, | 5 | import { Layout, Spin } from 'antd-v4';// Tabs, Form, |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonElementEvent/TestStandInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Avatar } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/CommonImportDataEvent/importDataInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin } from 'antd-v4'; |
| 6 | import styles from '@/index.less'; | 6 | import styles from '@/index.less'; |
| 7 | import * as commonFunc from '@/components/Common/commonFunc'; | 7 | import * as commonFunc from '@/components/Common/commonFunc'; |
src/components/CommonSystemSettingEvent/CommonSystemSetting.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin, Tabs } from 'antd-v4'; | 5 | import { Layout, Spin, Tabs } from 'antd-v4'; |
| 6 | import styles from '@/index.less'; | 6 | import styles from '@/index.less'; |
| 7 | import * as commonUtils from '@/utils/utils';/* 通用方法 */ | 7 | import * as commonUtils from '@/utils/utils';/* 通用方法 */ |
src/components/CommonSystemSettingEvent/TabFinanceOffer.js
| 1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
| 2 | import { Form } from '@ant-design/compatible'; | 2 | import { Form } from '@ant-design/compatible'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import { Row, Col } from 'antd-v4'; | 4 | import { Row, Col } from 'antd-v4'; |
| 5 | import ShowType from '@/components/Common/CommonComponent'; | 5 | import ShowType from '@/components/Common/CommonComponent'; |
| 6 | import styles from '@/index.less'; | 6 | import styles from '@/index.less'; |
src/components/CommonSystemSettingEvent/TabFinancePeriod.js
| 1 | import moment from 'moment'; | 1 | import moment from 'moment'; |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Row, Col, message, DatePicker, Button } from 'antd-v4'; | 5 | import { Row, Col, message, DatePicker, Button } from 'antd-v4'; |
| 6 | import StaticEditTable from '@/components/Common/CommonTable';/* 可编辑表格 */ | 6 | import StaticEditTable from '@/components/Common/CommonTable';/* 可编辑表格 */ |
| 7 | import * as commonBusiness from '@/components/Common/commonBusiness';/* 单据业务功能 */ | 7 | import * as commonBusiness from '@/components/Common/commonBusiness';/* 单据业务功能 */ |
src/components/CommonSystemSettingEvent/TabSalesBuyer.js
| 1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
| 2 | import { Form } from '@ant-design/compatible'; | 2 | import { Form } from '@ant-design/compatible'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import { Row, Col } from 'antd-v4'; | 4 | import { Row, Col } from 'antd-v4'; |
| 5 | import ShowType from '@/components/Common/CommonComponent'; | 5 | import ShowType from '@/components/Common/CommonComponent'; |
| 6 | import styles from '@/index.less'; | 6 | import styles from '@/index.less'; |
src/components/CommonSystemSettingEvent/TabSysParam.js
| 1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
| 2 | import { Form } from '@ant-design/compatible'; | 2 | import { Form } from '@ant-design/compatible'; |
| 3 | -import '@ant-design/compatible/assets/index.css'; | 3 | +// import '@ant-design/compatible/assets/index.css'; |
| 4 | import { Row, Col } from 'antd-v4'; | 4 | import { Row, Col } from 'antd-v4'; |
| 5 | import ShowType from '@/components/Common/CommonComponent'; | 5 | import ShowType from '@/components/Common/CommonComponent'; |
| 6 | import styles from '@/index.less'; | 6 | import styles from '@/index.less'; |
src/components/FaceDetect/index.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { VideoCameraOutlined } from '@ant-design/icons'; | 3 | import { VideoCameraOutlined } from '@ant-design/icons'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Progress, message } from 'antd-v4'; | 5 | import { Progress, message } from 'antd-v4'; |
| 6 | import * as commonServices from "../../services/services"; | 6 | import * as commonServices from "../../services/services"; |
| 7 | import config from '@/utils/config'; | 7 | import config from '@/utils/config'; |
src/components/JurisdictionAllotEvent/SystemPermissionInfo.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Tabs, Spin, Row, Col, Input } from 'antd-v4'; | 5 | import { Layout, Tabs, Spin, Row, Col, Input } from 'antd-v4'; |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import selfstyles from './SystemPermissionInfo.less'; | 7 | import selfstyles from './SystemPermissionInfo.less'; |
src/components/Manufacture/ProcessCard/ProcessCard.js
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | 5 | ||
| 6 | import React, { Component } from 'react'; | 6 | import React, { Component } from 'react'; |
| 7 | import { Form } from '@ant-design/compatible'; | 7 | import { Form } from '@ant-design/compatible'; |
| 8 | -import '@ant-design/compatible/assets/index.css'; | 8 | +// import '@ant-design/compatible/assets/index.css'; |
| 9 | import { Modal, Layout, Spin, Avatar, Select, message, Button } from 'antd-v4'; | 9 | import { Modal, Layout, Spin, Avatar, Select, message, Button } from 'antd-v4'; |
| 10 | import ProcessUp from '../../../assets/processUp.svg'; | 10 | import ProcessUp from '../../../assets/processUp.svg'; |
| 11 | import ProcessDown from '../../../assets/processDown.svg'; | 11 | import ProcessDown from '../../../assets/processDown.svg'; |
src/components/Manufacture/ProcessCardPack/ProcessCardPack.js
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | 6 | ||
| 7 | import React, { Component } from 'react'; | 7 | import React, { Component } from 'react'; |
| 8 | import { Form } from '@ant-design/compatible'; | 8 | import { Form } from '@ant-design/compatible'; |
| 9 | -import '@ant-design/compatible/assets/index.css'; | 9 | +// import '@ant-design/compatible/assets/index.css'; |
| 10 | import { Modal, Layout, Spin, Avatar, Select, message, Button, Tabs } from 'antd-v4'; | 10 | import { Modal, Layout, Spin, Avatar, Select, message, Button, Tabs } from 'antd-v4'; |
| 11 | import AddIcon from '../../../assets/add.svg'; | 11 | import AddIcon from '../../../assets/add.svg'; |
| 12 | import DisableAddIcon from '../../../assets/disableadd.svg'; | 12 | import DisableAddIcon from '../../../assets/disableadd.svg'; |
src/components/Manufacture/ProcessCardPack/ProcessCardPackTableTree.js
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import moment from 'moment'; | 4 | import moment from 'moment'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | -import '@ant-design/compatible/assets/index.css'; | 6 | +// import '@ant-design/compatible/assets/index.css'; |
| 7 | import EjectRight from '@/assets/eject.svg';/* 弹出图标 */ | 7 | import EjectRight from '@/assets/eject.svg';/* 弹出图标 */ |
| 8 | import { | 8 | import { |
| 9 | RightOutlined, | 9 | RightOutlined, |
src/components/Manufacture/WorkOrder/SplitPaste.js
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | /* eslint-disable function-paren-newline */ | 2 | /* eslint-disable function-paren-newline */ |
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Row, Col, List, Card, Checkbox, Select, Form, Tree } from 'antd-v4'; | 5 | import { Row, Col, List, Card, Checkbox, Select, Form, Tree } from 'antd-v4'; |
| 6 | import ShowType from '@/components/Common/CommonComponent'; | 6 | import ShowType from '@/components/Common/CommonComponent'; |
| 7 | import * as commonUtils from '@/utils/utils'; | 7 | import * as commonUtils from '@/utils/utils'; |
src/components/Manufacture/WorkOrder/WorkOrder.js
| 1 | /* eslint-disable prefer-destructuring,no-loop-func */ | 1 | /* eslint-disable prefer-destructuring,no-loop-func */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import moment from 'moment'; | 3 | import moment from 'moment'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | import { | 6 | import { |
| 7 | Modal, | 7 | Modal, |
src/components/Manufacture/WorkOrderPack/WorkOrderPack.js
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import moment from 'moment'; | 4 | import moment from 'moment'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | -import '@ant-design/compatible/assets/index.css'; | 6 | +// import '@ant-design/compatible/assets/index.css'; |
| 7 | import { | 7 | import { |
| 8 | Modal, | 8 | Modal, |
| 9 | Layout, | 9 | Layout, |
src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import moment from 'moment'; | 4 | import moment from 'moment'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | -import '@ant-design/compatible/assets/index.css'; | 6 | +// import '@ant-design/compatible/assets/index.css'; |
| 7 | import { | 7 | import { |
| 8 | Modal, | 8 | Modal, |
| 9 | Layout, | 9 | Layout, |
src/components/Manufacture/WorkOrderPack/WorkOrderResearchTableTree.js
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import moment from 'moment'; | 4 | import moment from 'moment'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | -import '@ant-design/compatible/assets/index.css'; | 6 | +// import '@ant-design/compatible/assets/index.css'; |
| 7 | import { | 7 | import { |
| 8 | Modal, | 8 | Modal, |
| 9 | Layout, | 9 | Layout, |
src/components/PrintLabel/PrintLabel.js
| 1 | /* eslint-disable array-callback-return,no-undef */ | 1 | /* eslint-disable array-callback-return,no-undef */ |
| 2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
| 3 | import { Form } from '@ant-design/compatible'; | 3 | import { Form } from '@ant-design/compatible'; |
| 4 | -import '@ant-design/compatible/assets/index.css'; | 4 | +// import '@ant-design/compatible/assets/index.css'; |
| 5 | import { Layout, Spin } from 'antd-v4';// Tabs, Form, | 5 | import { Layout, Spin } from 'antd-v4';// Tabs, Form, |
| 6 | import styles from '../../index.less'; | 6 | import styles from '../../index.less'; |
| 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; | 7 | import Toolbar from '../Common/ToolBar/ToolBarNew'; |
src/components/ProductionPlan/ProductionPlan.js
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import { SearchOutlined, SettingOutlined } from '@ant-design/icons'; | 4 | import { SearchOutlined, SettingOutlined } from '@ant-design/icons'; |
| 5 | import { Form } from '@ant-design/compatible'; | 5 | import { Form } from '@ant-design/compatible'; |
| 6 | -import '@ant-design/compatible/assets/index.css'; | 6 | +// import '@ant-design/compatible/assets/index.css'; |
| 7 | import { | 7 | import { |
| 8 | message, | 8 | message, |
| 9 | Layout, | 9 | Layout, |
src/components/ProductionReport/ProductionReport.js
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | 6 | ||
| 7 | import React, { Component } from 'react'; | 7 | import React, { Component } from 'react'; |
| 8 | import { Form } from '@ant-design/compatible'; | 8 | import { Form } from '@ant-design/compatible'; |
| 9 | -import '@ant-design/compatible/assets/index.css'; | 9 | +// import '@ant-design/compatible/assets/index.css'; |
| 10 | import { | 10 | import { |
| 11 | Layout, | 11 | Layout, |
| 12 | Spin, | 12 | Spin, |
src/components/QuickQuote/index.jsx
| 1 | /* eslint-disable */ | 1 | /* eslint-disable */ |
| 2 | -import React, { useRef, useEffect, useState, useCallback } from "react"; | ||
| 3 | -import { Button, Divider, Tabs, Tree, Radio, Image, Modal, Input, message } from "antd-v4"; | 2 | +import { useRef, useEffect, useState, useCallback, useMemo } from "react"; |
| 3 | +import { Button, Divider, Tabs, Tree, Radio, Image, Modal, Input, message, Badge } from "antd-v4"; | ||
| 4 | import { ArrowLeftOutlined, FolderFilled, FolderOpenFilled, FileTextFilled, PlusOutlined, MinusOutlined } from "@ant-design/icons"; | 4 | import { ArrowLeftOutlined, FolderFilled, FolderOpenFilled, FileTextFilled, PlusOutlined, MinusOutlined } from "@ant-design/icons"; |
| 5 | import { cloneDeep } from "lodash"; | 5 | import { cloneDeep } from "lodash"; |
| 6 | import commonConfig from "@/utils/config"; | 6 | import commonConfig from "@/utils/config"; |
| @@ -11,6 +11,7 @@ import * as commonBusiness from "@/components/Common/commonBusiness"; | @@ -11,6 +11,7 @@ import * as commonBusiness from "@/components/Common/commonBusiness"; | ||
| 11 | import CommonViewTable from "@/components/Common/CommonViewTable"; | 11 | import CommonViewTable from "@/components/Common/CommonViewTable"; |
| 12 | import StaticEditTable from "@/components/Common/CommonTable"; | 12 | import StaticEditTable from "@/components/Common/CommonTable"; |
| 13 | import ShowImgM from "@/components/Common/BoxShowImgMaterial/indexNew"; | 13 | import ShowImgM from "@/components/Common/BoxShowImgMaterial/indexNew"; |
| 14 | +import AntdDraggableModal from "@/components/Common/AntdDraggableModal"; | ||
| 14 | import styles from "./index.less"; | 15 | import styles from "./index.less"; |
| 15 | import Typesetting from "@/components/Common/Typesetting/typesetting"; | 16 | import Typesetting from "@/components/Common/Typesetting/typesetting"; |
| 16 | import DynamicSVG from "@/components/Common/BoxDesignCompontent/svg"; | 17 | import DynamicSVG from "@/components/Common/BoxDesignCompontent/svg"; |
| @@ -189,6 +190,7 @@ const QuickQuoteEvent = props => { | @@ -189,6 +190,7 @@ const QuickQuoteEvent = props => { | ||
| 189 | } else if (name.includes("slave")) { | 190 | } else if (name.includes("slave")) { |
| 190 | const boxModel = name.replace("slaveUp", "").replace("slaveDown", ""); | 191 | const boxModel = name.replace("slaveUp", "").replace("slaveDown", ""); |
| 191 | if (sFieldName === "sName") { | 192 | if (sFieldName === "sName") { |
| 193 | + if (!changeValue.sName) return; | ||
| 192 | const dropDownDataSelected = dropDownData.find(item => item.sName === changeValue.sName); | 194 | const dropDownDataSelected = dropDownData.find(item => item.sName === changeValue.sName); |
| 193 | const { sColumnNameConfig, sColumnNameConfigExclusion, sColumnNameConfigPic } = dropDownDataSelected; | 195 | const { sColumnNameConfig, sColumnNameConfigExclusion, sColumnNameConfigPic } = dropDownDataSelected; |
| 194 | const upAbleConfigsExtra = commonUtils.convertStrToObj(sColumnNameConfig, []).map(item => ({ | 196 | const upAbleConfigsExtra = commonUtils.convertStrToObj(sColumnNameConfig, []).map(item => ({ |
| @@ -887,6 +889,13 @@ const QuickQuoteEvent = props => { | @@ -887,6 +889,13 @@ const QuickQuoteEvent = props => { | ||
| 887 | props.onAdd(); | 889 | props.onAdd(); |
| 888 | }; | 890 | }; |
| 889 | 891 | ||
| 892 | + // 选择盒型弹窗 | ||
| 893 | + addState.onFieldPopupModal = (showConfig, name) => { | ||
| 894 | + if (showConfig.sName === "sName") { | ||
| 895 | + props.onSaveState({ boxModelSelectedModalVisible: true, currentBoxModel: name }); | ||
| 896 | + } | ||
| 897 | + }; | ||
| 898 | + | ||
| 890 | return { | 899 | return { |
| 891 | ...props, | 900 | ...props, |
| 892 | onDataChange0: props.onDataChange, | 901 | onDataChange0: props.onDataChange, |
| @@ -932,6 +941,7 @@ const QuickQuote = baseProps => { | @@ -932,6 +941,7 @@ const QuickQuote = baseProps => { | ||
| 932 | <ContentComponent {...props} /> | 941 | <ContentComponent {...props} /> |
| 933 | </div> | 942 | </div> |
| 934 | </div> | 943 | </div> |
| 944 | + <BoxModelSelectedModal {...props} /> | ||
| 935 | </div> | 945 | </div> |
| 936 | ); | 946 | ); |
| 937 | }; | 947 | }; |
| @@ -1276,7 +1286,7 @@ const BoxComponent = props => { | @@ -1276,7 +1286,7 @@ const BoxComponent = props => { | ||
| 1276 | viewConfigs: newConfig, | 1286 | viewConfigs: newConfig, |
| 1277 | tableConfig: { ...slaveConfig, gdsconfigformslave: newConfig }, | 1287 | tableConfig: { ...slaveConfig, gdsconfigformslave: newConfig }, |
| 1278 | iColValueView: 24, | 1288 | iColValueView: 24, |
| 1279 | - viewRow: slaveRowData, | 1289 | + viewRow: { ...slaveRowData, sProductClassifyId: selectedNode.sId }, |
| 1280 | tableName: `slaveUp${boxModel}`, | 1290 | tableName: `slaveUp${boxModel}`, |
| 1281 | }; | 1291 | }; |
| 1282 | }; | 1292 | }; |
| @@ -1789,6 +1799,8 @@ const MaterialsComponent = props => { | @@ -1789,6 +1799,8 @@ const MaterialsComponent = props => { | ||
| 1789 | sName: "bComMaterials", | 1799 | sName: "bComMaterials", |
| 1790 | iColValue: 4, | 1800 | iColValue: 4, |
| 1791 | }; | 1801 | }; |
| 1802 | + } else { | ||
| 1803 | + return item; | ||
| 1792 | } | 1804 | } |
| 1793 | }); | 1805 | }); |
| 1794 | 1806 | ||
| @@ -2028,4 +2040,175 @@ const ManyComponent = props => { | @@ -2028,4 +2040,175 @@ const ManyComponent = props => { | ||
| 2028 | ); | 2040 | ); |
| 2029 | }; | 2041 | }; |
| 2030 | 2042 | ||
| 2043 | +// 选择盒型弹窗 | ||
| 2044 | +const BoxModelSelectedModal = props => { | ||
| 2045 | + const { boxModelSelectedModalVisible } = props; | ||
| 2046 | + if (!boxModelSelectedModalVisible) return ""; | ||
| 2047 | + | ||
| 2048 | + const onCancel = () => { | ||
| 2049 | + props.onSaveState({ | ||
| 2050 | + boxModelSelectedModalVisible: false, | ||
| 2051 | + }); | ||
| 2052 | + }; | ||
| 2053 | + | ||
| 2054 | + const [boxConfig, setBoxConfig] = useState({ gdsconfigformslave: [] }); | ||
| 2055 | + const [boxColumn, setBoxColumn] = useState([]); | ||
| 2056 | + const [boxTypeList, setBoxTypeList] = useState([]); | ||
| 2057 | + const [boxData, setBoxData] = useState([]); | ||
| 2058 | + const [treeClassName, setTreeClassName] = useState(""); | ||
| 2059 | + const [boxTypeSelected, setBoxTypeSelected] = useState("全部"); | ||
| 2060 | + | ||
| 2061 | + useEffect(() => { | ||
| 2062 | + const boxList = [ | ||
| 2063 | + ["sId", "唯一ID"], | ||
| 2064 | + ["iOrder", "#", 60], | ||
| 2065 | + // ["sBoxId", "盒型ID"], | ||
| 2066 | + ["sName", "名称", 119], | ||
| 2067 | + ["sPackDetailPath", "刀线图", 300], | ||
| 2068 | + ["sPackPath", "3D图", 300], | ||
| 2069 | + ["operation", "操作", 80], | ||
| 2070 | + ]; | ||
| 2071 | + | ||
| 2072 | + const config = { | ||
| 2073 | + sId: commonUtils.createSid(), | ||
| 2074 | + // bisMutiSelect: true, | ||
| 2075 | + gdsconfigformslave: boxList.map(item => ({ | ||
| 2076 | + sId: commonUtils.createSid(), | ||
| 2077 | + sName: item[0], | ||
| 2078 | + showName: item[1], | ||
| 2079 | + iFitWidth: item[2] || 120, | ||
| 2080 | + bVisible: item[0] !== "sId", | ||
| 2081 | + })), | ||
| 2082 | + }; | ||
| 2083 | + setBoxConfig(config); | ||
| 2084 | + const column = commonFunc.getHeaderConfig(config); | ||
| 2085 | + setBoxColumn(column); | ||
| 2086 | + | ||
| 2087 | + const getSqlDropDownData = async ({ sId }, cb) => { | ||
| 2088 | + const url = `${commonConfig.server_host}business/getSelectLimit/${sId}`; | ||
| 2089 | + const body = { | ||
| 2090 | + sKeyUpFilterName: "", | ||
| 2091 | + pageNum: 1, | ||
| 2092 | + pageSize: 1000, | ||
| 2093 | + }; | ||
| 2094 | + const retrunData = await commonServices.postValueService(props.app.token, body, url); | ||
| 2095 | + const dropDownData = retrunData.data?.dataset?.rows; | ||
| 2096 | + cb(dropDownData); | ||
| 2097 | + }; | ||
| 2098 | + | ||
| 2099 | + getSqlDropDownData({ sId: "17428091410008594700322758474000" }, dropDownData => { | ||
| 2100 | + const boxTypeList = Array.from(new Set(dropDownData.map(item => item.sBoxType || "其它"))); | ||
| 2101 | + setBoxTypeList(boxTypeList); | ||
| 2102 | + setBoxData( | ||
| 2103 | + dropDownData.map((item, index) => ({ | ||
| 2104 | + ...item, | ||
| 2105 | + iOrder: index + 1, | ||
| 2106 | + })) | ||
| 2107 | + ); | ||
| 2108 | + }); | ||
| 2109 | + }, []); | ||
| 2110 | + | ||
| 2111 | + const renderTreeNodes = useMemo( | ||
| 2112 | + () => | ||
| 2113 | + ["全部", ...boxTypeList].map(boxType => ( | ||
| 2114 | + <Tree.TreeNode | ||
| 2115 | + title={ | ||
| 2116 | + <Badge | ||
| 2117 | + count={boxType === "全部" ? boxData.length : boxData.filter(item => (item.sBoxType || "其它") === boxType).length} | ||
| 2118 | + offset={[20, 8]} | ||
| 2119 | + color="#faad14" | ||
| 2120 | + > | ||
| 2121 | + <span>{boxType}</span> | ||
| 2122 | + </Badge> | ||
| 2123 | + } | ||
| 2124 | + key={boxType === "全部" ? 0 : commonUtils.createSid()} | ||
| 2125 | + treeData={boxType} | ||
| 2126 | + switcherIcon={<FolderFilled style={{ color: "#f7cc4f", fontSize: 20 }} />} | ||
| 2127 | + ></Tree.TreeNode> | ||
| 2128 | + )), | ||
| 2129 | + [boxTypeList.length] | ||
| 2130 | + ); | ||
| 2131 | + | ||
| 2132 | + const tableProps = { | ||
| 2133 | + ...commonBusiness.getTableTypes("box", { | ||
| 2134 | + ...props, | ||
| 2135 | + boxData: boxData.filter(item => (boxTypeSelected === "全部" ? true : (item.sBoxType || "其它") === boxTypeSelected)), | ||
| 2136 | + boxConfig, | ||
| 2137 | + boxColumn, | ||
| 2138 | + }), | ||
| 2139 | + enabled: false, | ||
| 2140 | + fixedHeight: "calc(100vh - 365px)", | ||
| 2141 | + noVlistTable: true, | ||
| 2142 | + onCostomColums: columns => { | ||
| 2143 | + columns | ||
| 2144 | + .filter(item => item.dataIndex?.includes("Path")) | ||
| 2145 | + .forEach(column => { | ||
| 2146 | + column.render = (value, record, index) => (value ? <img src={value} alt="" width={270} height={270} /> : "暂无图片"); | ||
| 2147 | + }); | ||
| 2148 | + | ||
| 2149 | + columns | ||
| 2150 | + .filter(item => item.dataIndex === "operation") | ||
| 2151 | + .forEach(column => { | ||
| 2152 | + column.fixed = "right"; | ||
| 2153 | + column.render = (value, record, index) => ( | ||
| 2154 | + <Button | ||
| 2155 | + style={{ marginLeft: 8 }} | ||
| 2156 | + onClick={() => { | ||
| 2157 | + props.onDataChange(props.currentBoxModel, "sName", { sName: record.sName }, record.sId, boxData); | ||
| 2158 | + props.onSaveState({ | ||
| 2159 | + boxModelSelectedModalVisible: false, | ||
| 2160 | + }); | ||
| 2161 | + }} | ||
| 2162 | + > | ||
| 2163 | + 选择 | ||
| 2164 | + </Button> | ||
| 2165 | + ); | ||
| 2166 | + }); | ||
| 2167 | + }, | ||
| 2168 | + }; | ||
| 2169 | + | ||
| 2170 | + return ( | ||
| 2171 | + <AntdDraggableModal | ||
| 2172 | + width="min(calc(100vw - 350px), 1100px)" | ||
| 2173 | + title="盒型选择" | ||
| 2174 | + visible={boxModelSelectedModalVisible} | ||
| 2175 | + onCancel={onCancel} | ||
| 2176 | + footer={ | ||
| 2177 | + <Button type="primary" onClick={onCancel}> | ||
| 2178 | + 关闭 | ||
| 2179 | + </Button> | ||
| 2180 | + } | ||
| 2181 | + > | ||
| 2182 | + <div className={styles.boxModal}> | ||
| 2183 | + <div | ||
| 2184 | + className={`${styles.boxTree} ${treeClassName}`} | ||
| 2185 | + onMouseEnter={() => { | ||
| 2186 | + setTreeClassName(styles.overFlow); | ||
| 2187 | + }} | ||
| 2188 | + onMouseLeave={() => { | ||
| 2189 | + setTreeClassName(""); | ||
| 2190 | + }} | ||
| 2191 | + > | ||
| 2192 | + {boxTypeList.length && ( | ||
| 2193 | + <Tree | ||
| 2194 | + className={"hide-file-icon"} | ||
| 2195 | + defaultExpandAll={true} | ||
| 2196 | + defaultSelectedKeys={["0"]} | ||
| 2197 | + onSelect={(e, select) => { | ||
| 2198 | + const { treeData } = select.node; | ||
| 2199 | + setBoxTypeSelected(treeData); | ||
| 2200 | + }} | ||
| 2201 | + > | ||
| 2202 | + {renderTreeNodes} | ||
| 2203 | + </Tree> | ||
| 2204 | + )} | ||
| 2205 | + </div> | ||
| 2206 | + <div className={styles.boxTable} key={boxTypeSelected}> | ||
| 2207 | + <StaticEditTable {...tableProps} /> | ||
| 2208 | + </div> | ||
| 2209 | + </div> | ||
| 2210 | + </AntdDraggableModal> | ||
| 2211 | + ); | ||
| 2212 | +}; | ||
| 2213 | + | ||
| 2031 | export default QuickQuote; | 2214 | export default QuickQuote; |
src/components/QuickQuote/index.less
| @@ -13,6 +13,10 @@ | @@ -13,6 +13,10 @@ | ||
| 13 | .ant-btn-primary { | 13 | .ant-btn-primary { |
| 14 | border-radius: 5px; | 14 | border-radius: 5px; |
| 15 | } | 15 | } |
| 16 | + | ||
| 17 | + .ant-col-23 { | ||
| 18 | + display: flex !important; | ||
| 19 | + } | ||
| 16 | } | 20 | } |
| 17 | 21 | ||
| 18 | .back { | 22 | .back { |
| @@ -24,43 +28,6 @@ | @@ -24,43 +28,6 @@ | ||
| 24 | border-right-width: 0; | 28 | border-right-width: 0; |
| 25 | } | 29 | } |
| 26 | 30 | ||
| 27 | - .leftTree { | ||
| 28 | - width: 250px; | ||
| 29 | - height: 100%; | ||
| 30 | - background: #3274b7; | ||
| 31 | - padding: 10px 0 0 10px; | ||
| 32 | - overflow: hidden; | ||
| 33 | - | ||
| 34 | - :global { | ||
| 35 | - .ant-tree { | ||
| 36 | - background: transparent; | ||
| 37 | - | ||
| 38 | - .ant-tree-treenode { | ||
| 39 | - padding-bottom: 10px; | ||
| 40 | - } | ||
| 41 | - | ||
| 42 | - .ant-tree-title { | ||
| 43 | - color: #fff; | ||
| 44 | - font-size: 16px; | ||
| 45 | - font-weight: bold; | ||
| 46 | - } | ||
| 47 | - | ||
| 48 | - .ant-tree-node-content-wrapper.ant-tree-node-selected { | ||
| 49 | - background-color: #00a183; | ||
| 50 | - } | ||
| 51 | - | ||
| 52 | - .ant-tree-node-content-wrapper:hover { | ||
| 53 | - background-color: #009688; | ||
| 54 | - } | ||
| 55 | - } | ||
| 56 | - | ||
| 57 | - } | ||
| 58 | - } | ||
| 59 | - | ||
| 60 | - .overFlow { | ||
| 61 | - overflow: auto; | ||
| 62 | - } | ||
| 63 | - | ||
| 64 | .rightContent { | 31 | .rightContent { |
| 65 | flex: 1; | 32 | flex: 1; |
| 66 | background: #f8fafe; | 33 | background: #f8fafe; |
| @@ -368,4 +335,82 @@ | @@ -368,4 +335,82 @@ | ||
| 368 | } | 335 | } |
| 369 | } | 336 | } |
| 370 | } | 337 | } |
| 338 | +} | ||
| 339 | + | ||
| 340 | +.leftTree, | ||
| 341 | +.boxTree { | ||
| 342 | + width: 250px; | ||
| 343 | + height: 100%; | ||
| 344 | + background: #3274b7; | ||
| 345 | + padding: 10px 0 0 10px; | ||
| 346 | + overflow: hidden; | ||
| 347 | + | ||
| 348 | + :global { | ||
| 349 | + .ant-tree { | ||
| 350 | + background: transparent; | ||
| 351 | + | ||
| 352 | + .ant-tree-treenode { | ||
| 353 | + padding-bottom: 10px; | ||
| 354 | + } | ||
| 355 | + | ||
| 356 | + .ant-tree-title { | ||
| 357 | + color: #fff; | ||
| 358 | + font-size: 16px; | ||
| 359 | + font-weight: bold; | ||
| 360 | + } | ||
| 361 | + | ||
| 362 | + .ant-tree-node-content-wrapper.ant-tree-node-selected { | ||
| 363 | + background-color: #00a183; | ||
| 364 | + } | ||
| 365 | + | ||
| 366 | + .ant-tree-node-content-wrapper:hover { | ||
| 367 | + background-color: #009688; | ||
| 368 | + } | ||
| 369 | + } | ||
| 370 | + | ||
| 371 | + } | ||
| 372 | +} | ||
| 373 | + | ||
| 374 | +.boxTree { | ||
| 375 | + background: transparent; | ||
| 376 | + | ||
| 377 | + :global { | ||
| 378 | + .ant-tree { | ||
| 379 | + | ||
| 380 | + .ant-tree-title, | ||
| 381 | + .ant-badge { | ||
| 382 | + color: #5c6374; | ||
| 383 | + font-size: 16px; | ||
| 384 | + font-weight: bold; | ||
| 385 | + } | ||
| 386 | + | ||
| 387 | + .ant-tree-node-content-wrapper.ant-tree-node-selected { | ||
| 388 | + background-color: #bae7ff; | ||
| 389 | + } | ||
| 390 | + | ||
| 391 | + .ant-tree-node-content-wrapper:hover { | ||
| 392 | + background-color: #bae7ff; | ||
| 393 | + } | ||
| 394 | + } | ||
| 395 | + } | ||
| 396 | +} | ||
| 397 | + | ||
| 398 | +.overFlow { | ||
| 399 | + overflow: auto; | ||
| 400 | +} | ||
| 401 | + | ||
| 402 | +.boxModal { | ||
| 403 | + width: 100%; | ||
| 404 | + height: calc(100vh - 335px); | ||
| 405 | + display: flex; | ||
| 406 | + | ||
| 407 | + .boxTree { | ||
| 408 | + width: 200px; | ||
| 409 | + height: 100%; | ||
| 410 | + } | ||
| 411 | + | ||
| 412 | + .boxTable { | ||
| 413 | + width: calc(100% - 200px); | ||
| 414 | + height: 100%; | ||
| 415 | + } | ||
| 371 | } | 416 | } |
| 372 | \ No newline at end of file | 417 | \ No newline at end of file |
src/components/QuoQuotation/Quotation/Quotation.js
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | /* eslint-disable prefer-destructuring,no-loop-func */ | 2 | /* eslint-disable prefer-destructuring,no-loop-func */ |
| 3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
| 4 | import { Form } from '@ant-design/compatible'; | 4 | import { Form } from '@ant-design/compatible'; |
| 5 | -import '@ant-design/compatible/assets/index.css'; | 5 | +// import '@ant-design/compatible/assets/index.css'; |
| 6 | import { Modal, Layout, Spin, Avatar, Select, message, Button, Slider,Table, Checkbox,Row, Col, } from 'antd-v4'; | 6 | import { Modal, Layout, Spin, Avatar, Select, message, Button, Slider,Table, Checkbox,Row, Col, } from 'antd-v4'; |
| 7 | import AddIcon from '../../../assets/add.svg'; | 7 | import AddIcon from '../../../assets/add.svg'; |
| 8 | import DisableAddIcon from '../../../assets/disableadd.svg'; | 8 | import DisableAddIcon from '../../../assets/disableadd.svg'; |