Commit 70460e48 by Joey

feat(@gms/gms-plugin-billexpand): 凭证中心接口判断billDefine是否拼bill.

parent 266a87e0
...@@ -72,9 +72,10 @@ export default { ...@@ -72,9 +72,10 @@ export default {
        })         })
}, },
searchBillObj(billDefine, billId, index) { searchBillObj(billDefine, billId, index) {
!billDefine.startsWith('bill.') && (billDefine = 'bill.' + billDefine)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
GMS.$http.get( GMS.$http.get(
`/gms/bill/bill.${billDefine}/${billId}?withSubs=true` `/gms/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
......
...@@ -72,9 +72,10 @@ export default { ...@@ -72,9 +72,10 @@ export default {
        })         })
}, },
searchBillObj(billDefine, billId ,index) { searchBillObj(billDefine, billId ,index) {
!billDefine.startsWith('bill.') && (billDefine = 'bill.' + billDefine)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
GMS.$http.get( GMS.$http.get(
`/gms/bill/bill.${billDefine}/${billId}?withSubs=true` `/gms/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
......
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