|
@@ -182,9 +182,9 @@ export default {
|
|
|
if (this.formDialogType == 0) {
|
|
|
row['specsName'] = res?.specsName
|
|
|
row['unit'] = res?.unit
|
|
|
- row['insideQty'] = res?.insideQty
|
|
|
- row['outQty'] = res?.outQty
|
|
|
- row['partsQty'] = res?.partsQty
|
|
|
+ row['insideQty'] = Number(res?.insideQty) * Number(row?.qty)
|
|
|
+ row['outQty'] = Number(res?.outQty) * Number(row?.qty)
|
|
|
+ row['partsQty'] = Number(res?.partsQty) * Number(row?.qty)
|
|
|
row['stockQty'] = res?.stockQty
|
|
|
}
|
|
|
})
|
|
@@ -251,6 +251,21 @@ export default {
|
|
|
value={row[column.columnAttributes.prop]}
|
|
|
onInput={val => {
|
|
|
row[column.columnAttributes.prop] = val <= 0 ? 0 : Number(val)
|
|
|
+ this.getGoodsDetl(
|
|
|
+ this.goodsMaterialList
|
|
|
+ .filter(
|
|
|
+ item =>
|
|
|
+ item.brandId === row.brandId && item.mainId === row.mainId && item.smallId === row.smallId
|
|
|
+ )
|
|
|
+ .find(item => item.id == row.goodsMaterialId),
|
|
|
+ res => {
|
|
|
+ if (this.formDialogType == 0) {
|
|
|
+ row['insideQty'] = Number(res?.insideQty) * row[column.columnAttributes.prop]
|
|
|
+ row['outQty'] = Number(res?.outQty) * row[column.columnAttributes.prop]
|
|
|
+ row['partsQty'] = Number(res?.partsQty) * row[column.columnAttributes.prop]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
}}
|
|
|
type="number"
|
|
|
placeholder="请输入"
|