支持移除猪栏

This commit is contained in:
2025-10-23 15:45:14 +08:00
parent 2191bf2bdf
commit 624592a63d
3 changed files with 24 additions and 14 deletions

View File

@@ -252,6 +252,20 @@ export default {
}
.batch-info-line .red-text {
color: red !important;
color: red !important; // src/api/pigBatch.js 中错误的部分
/**
* 从猪批次移除空栏
* @param {number} batchID - 猪批次ID
* @param {number} penID - 待移除的猪栏ID
* @returns {Promise<*>}
*/
export const removePenFromBatch = (batchID, penID) = > {
// BUG: URL中的参数顺序 ${penID}/${batchID} 与函数签名 (batchID, penID) 不一致
return http.
delete(` /api/ v1 /pig-batches/ remove-pen / ${penID} / ${batchID} `);
};
}
</style>