Explorar o código

待验货物列表api更改

panxingxin %!s(int64=5) %!d(string=hai) anos
pai
achega
50f6cdbcb0
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      src/providers/user-data.ts

+ 7 - 2
src/providers/user-data.ts

@@ -339,7 +339,12 @@ export class UserData {
   // 获取待验货物列表
   async getStorePendingList(form): Promise<any> {
     return new Promise((resolve, reject) => {
-      this.api.request('get',`${environment.APP_SERVE_URL}/inventory/qc/mobile/Pending`,form,{}).then((data)=>{
+      let back_url = ''
+      for(let i in form) {
+        back_url += `&${i}=${form[i]}`
+      }
+      back_url = back_url.substring(1,back_url.length)
+      this.api.request('get',`${environment.APP_SERVE_URL}/inventory/qc/mobile/Pending?${back_url}`,{},{}).then((data)=>{
         resolve(data['data'].records)
       }).catch(e => {console.log(e)})
     });
@@ -385,7 +390,7 @@ export class UserData {
   // 获取QC验货初检报告列表
   async getQCList(form): Promise<any> {
     return new Promise((resolve, reject) => {
-      this.api.request('get',`${environment.APP_SERVE_URL}/inventory/qc/mobile`,form,{}).then((data)=>{
+      this.api.request('get',`${environment.APP_SERVE_URL}/inventory/qc/mobile?current=${form.current}&size=${form.size}&scpCode=${form.scpCode}&sscCode=${form.sscCode}&scpCustomercode=${form.scpCustomercode}&poCode=${form.poCode}`,{},{}).then((data)=>{
         resolve(data)
       }).catch(e => {console.log(e)})
     });