Commit 2b79b371 authored by 沈翠玲's avatar 沈翠玲

销售出库

parent 061a8636
...@@ -110,12 +110,36 @@ export default { ...@@ -110,12 +110,36 @@ export default {
saleOutNo: this.order saleOutNo: this.order
}) })
.then(({data}) => { .then(({data}) => {
data = {
"applyNo": "20250315003",
"data": [
{
"materialNo": "G000000015",
"materialName": "1A7312932M(焊丝)",
"planOutDate": "20250401",
"unit": "Kg",
"deliverQuantity": 1660.000000
},
{
"materialNo": "G000000015",
"materialName": "1A7312932M(焊丝)",
"planOutDate": "20250401",
"unit": "Kg",
"deliverQuantity": 2694.000000
},
{
"materialNo": "G000000015",
"materialName": "1A7312932M(焊丝)",
"planOutDate": "20250401",
"unit": "Kg",
"deliverQuantity": 646.000000
}
]
}
if (data && data.applyNo) { if (data && data.applyNo) {
this.applyNo = data.applyNo this.applyNo = data.applyNo
this.list = data.data this.list = data.data
data.data.forEach(v => { data.data.forEach(v => {
const index = this.goodlist.findIndex(i => i.materialNo === v.materialNo)
if (index < 0){
this.goodlist.push({ this.goodlist.push({
"materialName": v.materialName, "materialName": v.materialName,
"deliverQuantity": v.deliverQuantity, "deliverQuantity": v.deliverQuantity,
...@@ -123,7 +147,6 @@ export default { ...@@ -123,7 +147,6 @@ export default {
"planOutDate": v.planOutDate, "planOutDate": v.planOutDate,
"unit": v.unit "unit": v.unit
}) })
}
}) })
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment