diff --git a/src/stores/Invoice.js b/src/stores/Invoice.js index 7cca86d..ba2bcff 100644 --- a/src/stores/Invoice.js +++ b/src/stores/Invoice.js @@ -47,6 +47,7 @@ class Invoice { .append("TotalNum", 0) .append("PageSize", 2000) .append("PageIndex", 1) + .append("token",this.root.authStore.login.token) .build(); return fetchJSON(fetchUrl).then(json => { @@ -92,6 +93,7 @@ class Invoice { .append("GMD_SN", GMDSN) .append("LGC", 1) .append("Bill", 1) + .append("token",this.root.authStore.login.token) .build(); return fetchJSON(fetchUrl).then(json => { @@ -113,6 +115,7 @@ class Invoice { getInvoicekImages(VEI_SN, GRI_SN) { let url = `/service-fileServer/ListFile`; url += `?GRI_SN=${GRI_SN}&VEI_SN=${VEI_SN}&FilePathName=invoice`; + url += `&token=${this.root.authStore.login.token}`; fetch(config.HT_HOST + url) .then(response => response.json()) .then(json => { @@ -199,6 +202,7 @@ class Invoice { formData.append("PayDate", isNotEmpty(PayDate) ? PayDate : ""); formData.append("Pic", Pic); formData.append("Memo", Memo); + formData.append("token",this.root.authStore.login.token); return postForm(postUrl, formData).then(json => { console.info(json); @@ -217,6 +221,7 @@ class Invoice { formData.append("PayDate", isNotEmpty(PayDate) ? PayDate : ""); formData.append("Pic", Pic); formData.append("Memo", Memo); + formData.append("token",this.root.authStore.login.token); return postForm(postUrl, formData).then(json => { console.info(json); return json;