李志伟 2 anni fa
parent
commit
b231a6eb79

+ 4
- 3
src/components/Upload/UploadExcel.jsx Vedi File

@@ -18,13 +18,13 @@ function beforeUpload(file) {
18 18
 
19 19
 
20 20
 export default (props) => {
21
-  const { onChange, id ,refrash } = props;
21
+  const { onChange, id, refrash } = props;
22 22
 
23 23
   const [loading, setLoading] = useState(false);
24 24
 
25 25
   const handleChange = info => {
26 26
     if (info.file.status === 'uploading') {
27
-      setLoading(true); 
27
+      setLoading(true);
28 28
       return;
29 29
     }
30 30
     if (info.file.status === 'error') {
@@ -58,7 +58,8 @@ export default (props) => {
58 58
       beforeUpload={beforeUpload}
59 59
       onChange={handleChange}
60 60
     >
61
-      <Button type="primary" disabled={loading} icon={loading ? <LoadingOutlined /> : <UploadOutlined />}>上传</Button>
61
+      <Button type="primary" disabled={loading} icon={loading ?
62
+        <LoadingOutlined /> : <UploadOutlined />}>上传</Button>
62 63
     </Upload>
63 64
   );
64 65
 }

+ 2
- 5
src/pages/invoiceFill/components/BasicInfo.jsx Vedi File

@@ -29,12 +29,9 @@ export default (props) => {
29 29
 
30 30
 
31 31
   const qrcodeText = useMemo(() =>
32
-    // initialState.report_url + '#resume-work-form?org=' + 
33
-    'https://www.baidu.com/#resume-work-form?org=' +
32
+    'http://h5.njyunzhi.com/state-grid/invoice-filling-h5/index.html?invoiceId=' +
34 33
     invoiceId,
35
-    [invoiceId
36
-      // , initialState.report_url
37
-    ]
34
+    [invoiceId]
38 35
   )
39 36
 
40 37