|
@@ -263,7 +263,6 @@ const handleOpen = (index) => {
|
|
|
const clickRemove = (index) => {
|
|
|
formData.data.productionExceedReceiveSkuList[index].exceptionSkuSpecId = "";
|
|
|
formData.data.productionExceedReceiveSkuList[index].exceptionSkuSpecCode = "";
|
|
|
- queryBOM();
|
|
|
};
|
|
|
const selectProduct = (item) => {
|
|
|
if (item.id) {
|
|
@@ -271,17 +270,16 @@ const selectProduct = (item) => {
|
|
|
formData.data.productionExceedReceiveSkuList[rowIndex.value].exceptionSkuSpecCode = item.code;
|
|
|
ElMessage({ message: "选择完成", type: "success" });
|
|
|
openSKU.value = false;
|
|
|
- queryBOM();
|
|
|
}
|
|
|
};
|
|
|
const queryBOM = () => {
|
|
|
- let list = formData.data.productionExceedReceiveSkuList.filter((item) => item.quantity > 0 && item.exceptionSkuSpecId);
|
|
|
+ let list = formData.data.productionExceedReceiveSkuList.filter((item) => item.quantity > 0);
|
|
|
if (list && list.length > 0) {
|
|
|
proxy
|
|
|
.post("/productionExceedReceive/getSkuSpecMaterialList", {
|
|
|
skuSpecList: list.map((item) => {
|
|
|
return {
|
|
|
- skuSpecId: item.exceptionSkuSpecId,
|
|
|
+ skuSpecId: item.skuSpecId,
|
|
|
quantity: item.quantity,
|
|
|
};
|
|
|
}),
|