|
@@ -91,10 +91,10 @@ export async function isHasGeneratedContractPI(id) {
|
|
|
*/
|
|
*/
|
|
|
export async function savePurchasePlanCutAPI(data) {
|
|
export async function savePurchasePlanCutAPI(data) {
|
|
|
const res = await request.post(`/eom/purchaseplan/savePurchasePlanCutDetails`,data);
|
|
const res = await request.post(`/eom/purchaseplan/savePurchasePlanCutDetails`,data);
|
|
|
- if (res.data.code == 0) {
|
|
|
|
|
- return res.data.data;
|
|
|
|
|
|
|
+ if (res.data) {
|
|
|
|
|
+ return res.data.code
|
|
|
}
|
|
}
|
|
|
- return Promise.resolve(0);
|
|
|
|
|
|
|
+ return Promise.resolve(false);
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
* 判断是否计划负责任
|
|
* 判断是否计划负责任
|