|
@@ -356,14 +356,12 @@ export class UserData {
|
|
|
// 获取样品单QA详情
|
|
|
async getSampleQAlog(sdpId: Number): Promise<any> {
|
|
|
const token = await this.getToken();
|
|
|
- let 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}/production/samples/mobile/qalog/${sdpId}`, {},
|
|
|
headers)).pipe(
|
|
|
- finalize(() => loading.dismiss())
|
|
|
+ finalize(() => {})
|
|
|
).subscribe(async data => {
|
|
|
resolve(data.data);
|
|
|
}, async err => {
|