|
@@ -804,14 +804,14 @@ export class UserData {
|
|
|
}
|
|
|
|
|
|
// 获取货架列表
|
|
|
- async getStoreSampleList(current: number, size: number): Promise<any> {
|
|
|
+ async getStoreSampleList(size: number): Promise<any> {
|
|
|
const token = await this.getToken();
|
|
|
const loading = await this.loadingCtrl.create();
|
|
|
await loading.present();
|
|
|
this.nativeHttp.setDataSerializer('json');
|
|
|
const headers = { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json;charset=UTF-8' };
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/shelf/mobile?${current}&${size}`, {},
|
|
|
+ from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/shelf/mobile?size=${size}`, {},
|
|
|
headers)).pipe(
|
|
|
finalize(() => loading.dismiss())
|
|
|
).subscribe(async data => {
|
|
@@ -996,7 +996,7 @@ export class UserData {
|
|
|
this.nativeHttp.setDataSerializer('json');
|
|
|
const headers = { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json;charset=UTF-8' };
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/qc/mobile/Pending?${current}&${size}`, {},
|
|
|
+ from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/qc/mobile/Pending?current=${current}&size=${size}`, {},
|
|
|
headers)).pipe(
|
|
|
finalize(() => loading.dismiss())
|
|
|
).subscribe(async data => {
|
|
@@ -1030,7 +1030,7 @@ export class UserData {
|
|
|
this.nativeHttp.setDataSerializer('json');
|
|
|
const headers = { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json;charset=UTF-8' };
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/shelf/mobile/pending?${current}&${size}`, {},
|
|
|
+ from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/shelf/mobile/pending?current=${current}&size=${size}`, {},
|
|
|
headers)).pipe(
|
|
|
finalize(() => loading.dismiss())
|
|
|
).subscribe(async data => {
|
|
@@ -1098,7 +1098,7 @@ export class UserData {
|
|
|
this.nativeHttp.setDataSerializer('json');
|
|
|
const headers = { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json;charset=UTF-8' };
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/warehouse/mobile/pending?${current}&${size}`, {},
|
|
|
+ from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/warehouse/mobile/pending?current=${current}&size=${size}`, {},
|
|
|
headers)).pipe(
|
|
|
finalize(() => loading.dismiss())
|
|
|
).subscribe(async data => {
|
|
@@ -1178,7 +1178,7 @@ export class UserData {
|
|
|
this.nativeHttp.setDataSerializer('json');
|
|
|
const headers = { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json;charset=UTF-8' };
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/qc/mobile?${current}&${size}`, {},
|
|
|
+ from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/qc/mobile?current=${current}&size=${size}`, {},
|
|
|
headers)).pipe(
|
|
|
finalize(() => loading.dismiss())
|
|
|
).subscribe(async data => {
|