Commit 496df23e by qiaoyanqi

凭证中心

parent dd5c5194
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
generateVoucher(list,context){ generateVoucher(list,context){
axios({ axios({
          method: 'POST',           method: 'POST',
          url:GMS.url+'/mechanismVchr/singleCreateVchr',//单张生成接口           url:'/mechanismVchr/singleCreateVchr',//单张生成接口
          headers: {           headers: {
              Authorization:GMS.token,               Authorization:GMS.token,
          },           },
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
searchBillObj(billDefine, billId, index) { searchBillObj(billDefine, billId, index) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
GMS.$http.get( GMS.$http.get(
`/gms/bill/${billDefine}/${billId}?withSubs=true` `/gms/bill/bill.${billDefine}/${billId}?withSubs=true`
).then((data) => { ).then((data) => {
if (data.status == 200 && data.data.code == 0) { if (data.status == 200 && data.data.code == 0) {
let obj = data.data.content let obj = data.data.content
......
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
generateVoucher(list,context){ generateVoucher(list,context){
axios({ axios({
          method: 'POST',           method: 'POST',
url:GMS.url+'/mechanismVchr/combineCreateVchr',//汇总生成 url:'/mechanismVchr/combineCreateVchr',//汇总生成
          headers: {           headers: {
              Authorization:GMS.token,               Authorization:GMS.token,
          },           },
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
searchBillObj(billDefine, billId ,index) { searchBillObj(billDefine, billId ,index) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
GMS.$http.get( GMS.$http.get(
`/gms/bill/${billDefine}/${billId}?withSubs=true` `/gms/bill/bill.${billDefine}/${billId}?withSubs=true`
).then((data) => { ).then((data) => {
if (data.status == 200 && data.data.code == 0) { if (data.status == 200 && data.data.code == 0) {
let obj = data.data.content let obj = data.data.content
......
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
deleteVchrAsync(list,context){ deleteVchrAsync(list,context){
axios({ axios({
          method: 'POST',           method: 'POST',
          url:GMS.url+'/mechanismVchr/deleteVchr',//撤销凭证           url:'/mechanismVchr/deleteVchr',//撤销凭证
          headers: {           headers: {
              Authorization:GMS.token,               Authorization:GMS.token,
          },           },
......
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
showVchrAsync(obj,context){ showVchrAsync(obj,context){
axios({ axios({
          method: 'POST',           method: 'POST',
          url:GMS.url+'/mechanismVchr/showVchr',//查看凭证           url:'/mechanismVchr/showVchr',//查看凭证
          headers: {           headers: {
              Authorization:GMS.token,               Authorization:GMS.token,
          },           },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment