|
@@ -1172,14 +1172,14 @@ export class UserData {
|
|
}
|
|
}
|
|
|
|
|
|
// 获取QC验货初检报告列表
|
|
// 获取QC验货初检报告列表
|
|
- async getQCList(current: number, size: number): Promise<any> {
|
|
|
|
|
|
+ async getQCList(form): Promise<any> {
|
|
const token = await this.getToken();
|
|
const token = await this.getToken();
|
|
const loading = await this.loadingCtrl.create();
|
|
const loading = await this.loadingCtrl.create();
|
|
await loading.present();
|
|
await loading.present();
|
|
this.nativeHttp.setDataSerializer('json');
|
|
this.nativeHttp.setDataSerializer('json');
|
|
const headers = { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json;charset=UTF-8' };
|
|
const headers = { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json;charset=UTF-8' };
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/qc/mobile?current=${current}&size=${size}`, {},
|
|
|
|
|
|
+ from(this.nativeHttp.get(`${environment.APP_SERVE_URL}/inventory/qc/mobile`, form,
|
|
headers)).pipe(
|
|
headers)).pipe(
|
|
finalize(() => loading.dismiss())
|
|
finalize(() => loading.dismiss())
|
|
).subscribe(async data => {
|
|
).subscribe(async data => {
|