张涛 1 year ago
parent
commit
d6cad6b14f
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      config/proxy.js
  2. 2
    1
      src/pages/invoiceFill/components/BasicInfo.jsx

+ 1
- 1
config/proxy.js View File

11
     // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
11
     // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
12
     '/api/': {
12
     '/api/': {
13
       // 要代理的地址
13
       // 要代理的地址
14
-      target: 'http://192.168.89.147:7081',
14
+      target: 'http://192.168.89.25:7081',
15
       changeOrigin: true,
15
       changeOrigin: true,
16
       headers: {
16
       headers: {
17
         origin: 'http://192.168.89.147:7081',
17
         origin: 'http://192.168.89.147:7081',

+ 2
- 1
src/pages/invoiceFill/components/BasicInfo.jsx View File

37
 
37
 
38
   //保存班次
38
   //保存班次
39
   const onSubmit = (data) => {
39
   const onSubmit = (data) => {
40
-    var newData = { ...data, endDate: moment(data.endDate).format('YYYY-MM-DD HH:mm:ss') };
40
+    var newData = { ...data, endDate: moment(data.endDate).format('YYYY-MM-DDTHH:mm:ss') };
41
     setLoading(true);
41
     setLoading(true);
42
     if (invoiceId) {
42
     if (invoiceId) {
43
       updateInvoiceFill(invoiceId, newData)
43
       updateInvoiceFill(invoiceId, newData)
51
           message.error(err.message || err);
51
           message.error(err.message || err);
52
         });
52
         });
53
     } else {
53
     } else {
54
+      console.log(newData)
54
       saveInvoiceFill(newData)
55
       saveInvoiceFill(newData)
55
         .then((res) => {
56
         .then((res) => {
56
           setLoading(false);
57
           setLoading(false);