|
@@ -4,6 +4,7 @@ import { getClassifyList } from '@/api/goods'
|
|
import { goodsMaterialList } from '@/api/commercialMaterial.js'
|
|
import { goodsMaterialList } from '@/api/commercialMaterial.js'
|
|
import { goodsPurchaseItemImportCode, goodsPurchaseDetail } from '@/api/goodsPurchasedStored.js'
|
|
import { goodsPurchaseItemImportCode, goodsPurchaseDetail } from '@/api/goodsPurchasedStored.js'
|
|
import { goodsMaterialDetail } from '@/api/commercialMaterial.js'
|
|
import { goodsMaterialDetail } from '@/api/commercialMaterial.js'
|
|
|
|
+import { goodsMoveQueryExistStorageGoodsNum } from '@/api/GoodsTransferPeceipt'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -172,6 +173,14 @@ export default {
|
|
onChange={val => {
|
|
onChange={val => {
|
|
this.shanchujichu(row, 3)
|
|
this.shanchujichu(row, 3)
|
|
if (val) {
|
|
if (val) {
|
|
|
|
+ goodsMoveQueryExistStorageGoodsNum({
|
|
|
|
+ goodsId: val,
|
|
|
|
+ inStorageId: this.formData.inStorageId,
|
|
|
|
+ outStorageId: this.formData.inStorageId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ row.inStorageQty = res.data.goodsInNum || 0
|
|
|
|
+ row.outStorageQty = res.data.goodsOutNum || 0
|
|
|
|
+ })
|
|
var data = this.goodsMaterialList
|
|
var data = this.goodsMaterialList
|
|
.filter(
|
|
.filter(
|
|
item =>
|
|
item =>
|
|
@@ -207,6 +216,8 @@ export default {
|
|
row['insideQty'] = ''
|
|
row['insideQty'] = ''
|
|
row['outQty'] = ''
|
|
row['outQty'] = ''
|
|
row['partsQty'] = ''
|
|
row['partsQty'] = ''
|
|
|
|
+ row.inStorageQty = ''
|
|
|
|
+ row.outStorageQty = ''
|
|
}
|
|
}
|
|
}}
|
|
}}
|
|
filterable={true}
|
|
filterable={true}
|
|
@@ -319,13 +330,13 @@ export default {
|
|
{
|
|
{
|
|
columnAttributes: {
|
|
columnAttributes: {
|
|
label: '配件数量',
|
|
label: '配件数量',
|
|
- prop: 'partsQty'
|
|
|
|
|
|
+ prop: 'inStorageQty'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
columnAttributes: {
|
|
columnAttributes: {
|
|
label: '调出库存数量',
|
|
label: '调出库存数量',
|
|
- prop: 'qty'
|
|
|
|
|
|
+ prop: 'outStorageQty'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -506,7 +517,9 @@ export default {
|
|
qty: '',
|
|
qty: '',
|
|
insideQty: '',
|
|
insideQty: '',
|
|
outQty: '',
|
|
outQty: '',
|
|
- partsQty: ''
|
|
|
|
|
|
+ partsQty: '',
|
|
|
|
+ inStorageQty: '',
|
|
|
|
+ outStorageQty: ''
|
|
})
|
|
})
|
|
this.isEditIndex = 0
|
|
this.isEditIndex = 0
|
|
}
|
|
}
|
|
@@ -526,7 +539,9 @@ export default {
|
|
qty: '',
|
|
qty: '',
|
|
insideQty: '',
|
|
insideQty: '',
|
|
outQty: '',
|
|
outQty: '',
|
|
- partsQty: ''
|
|
|
|
|
|
+ partsQty: '',
|
|
|
|
+ inStorageQty: '',
|
|
|
|
+ outStorageQty: ''
|
|
})
|
|
})
|
|
this.isEditIndex = 0
|
|
this.isEditIndex = 0
|
|
}
|
|
}
|