李志伟 2 年之前
父節點
當前提交
c40daeaf23

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

3
 export default defineConfig({
3
 export default defineConfig({
4
   define: {
4
   define: {
5
     API_BASE: '',
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
   plugins: [
10
   plugins: [

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

9
 export default defineConfig({
9
 export default defineConfig({
10
   define: {
10
   define: {
11
     API_BASE: 'http://invoice-filling.stategrid.njyunzhi.com',
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
   base: '/',  // 路由跳转必须加 admin
15
   base: '/',  // 路由跳转必须加 admin
14
   publicPath: './', // 静态文件相对路径
16
   publicPath: './', // 静态文件相对路径

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

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

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

7
 
7
 
8
 const FormItem = Form.Item;
8
 const FormItem = Form.Item;
9
 const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 } };
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
 export default (props) => {
11
 export default (props) => {
13
   const { invoiceId } = props
12
   const { invoiceId } = props
51
   }
50
   }
52
   const downloadExcel=()=>{
51
   const downloadExcel=()=>{
53
     const link=document.createElement('a')
52
     const link=document.createElement('a')
54
-    link.href=modelUrl
53
+    link.href=MODEL_URL
55
     link.click()
54
     link.click()
56
   }
55
   }
57
   const actions = () => [
56
   const actions = () => [