李志伟 2 年前
父节点
当前提交
c40daeaf23

+ 2
- 0
config/config.dev.js 查看文件

@@ -3,6 +3,8 @@ import { defineConfig } from 'umi';
3 3
 export default defineConfig({
4 4
   define: {
5 5
     API_BASE: '',
6
+    H5_URL:'http://h5.njyunzhi.com/state-grid/invoice-filling-h5/index.html',
7
+    MODEL_URL:'https://h5.njyunzhi.com/assets/%E6%8A%A5%E9%94%80%E4%BA%BA%E5%91%98%E6%A8%A1%E6%9D%BF.xlsx'
6 8
   },
7 9
   //
8 10
   plugins: [

+ 2
- 0
config/config.js 查看文件

@@ -9,6 +9,8 @@ const { REACT_APP_ENV } = process.env;
9 9
 export default defineConfig({
10 10
   define: {
11 11
     API_BASE: 'http://invoice-filling.stategrid.njyunzhi.com',
12
+    H5_URL:'http://h5.njyunzhi.com/state-grid/invoice-filling-h5/index.html',
13
+    MODEL_URL:'https://h5.njyunzhi.com/assets/%E6%8A%A5%E9%94%80%E4%BA%BA%E5%91%98%E6%A8%A1%E6%9D%BF.xlsx'
12 14
   },
13 15
   base: '/',  // 路由跳转必须加 admin
14 16
   publicPath: './', // 静态文件相对路径

+ 1
- 1
src/pages/invoiceFill/components/BasicInfo.jsx 查看文件

@@ -29,7 +29,7 @@ export default (props) => {
29 29
 
30 30
 
31 31
   const qrcodeText = useMemo(() =>
32
-    'http://h5.njyunzhi.com/state-grid/invoice-filling-h5/index.html?invoiceId=' +
32
+    H5_URL + '?invoiceId=' +
33 33
     invoiceId,
34 34
     [invoiceId]
35 35
   )

+ 1
- 2
src/pages/invoiceFill/components/ReimbursementPerson.jsx 查看文件

@@ -7,7 +7,6 @@ import { getInvoicePersonList, saveInvoicePerson, deleteInvoicePerson } from '@/
7 7
 
8 8
 const FormItem = Form.Item;
9 9
 const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 } };
10
-const modelUrl='https://h5.njyunzhi.com/assets/%E6%8A%A5%E9%94%80%E4%BA%BA%E5%91%98%E6%A8%A1%E6%9D%BF.xlsx'
11 10
 
12 11
 export default (props) => {
13 12
   const { invoiceId } = props
@@ -51,7 +50,7 @@ export default (props) => {
51 50
   }
52 51
   const downloadExcel=()=>{
53 52
     const link=document.createElement('a')
54
-    link.href=modelUrl
53
+    link.href=MODEL_URL
55 54
     link.click()
56 55
   }
57 56
   const actions = () => [