|
@@ -125,7 +125,7 @@ export async function queryDingInstanceExecute(params) {
|
|
body: params,
|
|
body: params,
|
|
});
|
|
});
|
|
if (res.data.errcode != 0) {
|
|
if (res.data.errcode != 0) {
|
|
- message.error('审批失败,请联系管理员。');
|
|
|
|
|
|
+ message.error("审批失败,请联系管理员。");
|
|
throw new Error(res.data.errmsg);
|
|
throw new Error(res.data.errmsg);
|
|
}
|
|
}
|
|
return res;
|
|
return res;
|
|
@@ -349,7 +349,7 @@ export async function uploadFile(data) {
|
|
ContentType: 'application/x-www-form-urlencoded',
|
|
ContentType: 'application/x-www-form-urlencoded',
|
|
},
|
|
},
|
|
});
|
|
});
|
|
- if (res.data.errmsg) {
|
|
|
|
|
|
+ if (!res.data.dentry) {
|
|
message.error(res.data.errmsg);
|
|
message.error(res.data.errmsg);
|
|
throw new Error(res.data.errmsg);
|
|
throw new Error(res.data.errmsg);
|
|
}
|
|
}
|
|
@@ -360,9 +360,6 @@ export async function bindDDCode(userId, code) {
|
|
let res = await request(`/api/v1/purchase/bom/ding/set-ding-user-code?ucode=${userId}:${code}`, {
|
|
let res = await request(`/api/v1/purchase/bom/ding/set-ding-user-code?ucode=${userId}:${code}`, {
|
|
method: 'GET',
|
|
method: 'GET',
|
|
});
|
|
});
|
|
- if (res.data.errmsg) {
|
|
|
|
- message.error(res.data.errmsg);
|
|
|
|
- throw new Error(res.data.errmsg);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
return res.data;
|
|
return res.data;
|
|
}
|
|
}
|