|
@@ -1561,7 +1561,8 @@ export default {
|
|
selectGoodsNum({
|
|
selectGoodsNum({
|
|
goodsId: event.id,
|
|
goodsId: event.id,
|
|
itemType: event.typeno,
|
|
itemType: event.typeno,
|
|
- tradeType: 'GN'
|
|
|
|
|
|
+ tradeType: 'GN',
|
|
|
|
+ warehouseId: this.form.storageId
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(res);
|
|
console.log(res);
|
|
row.storageQuantityList = res.data.data
|
|
row.storageQuantityList = res.data.data
|
|
@@ -1805,7 +1806,7 @@ export default {
|
|
},
|
|
},
|
|
//商品编辑
|
|
//商品编辑
|
|
rowCell(row, index) {
|
|
rowCell(row, index) {
|
|
- console.log("1111111111111111")
|
|
|
|
|
|
+ console.log(this.goodsShowData[row.$index])
|
|
if (row.$cellEdit) {
|
|
if (row.$cellEdit) {
|
|
if (Number(row.orderQuantity) < Number(row.actualQuantity)) {
|
|
if (Number(row.orderQuantity) < Number(row.actualQuantity)) {
|
|
return this.$message.error('订货数量不能小于发货数量')
|
|
return this.$message.error('订货数量不能小于发货数量')
|
|
@@ -1818,9 +1819,7 @@ export default {
|
|
tradeType: 'GN',
|
|
tradeType: 'GN',
|
|
warehouseId: selectedValue
|
|
warehouseId: selectedValue
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log(this.goodsShowData[row.$index]);
|
|
|
|
this.goodsShowData[row.$index].storageQuantityList = res.data.data;
|
|
this.goodsShowData[row.$index].storageQuantityList = res.data.data;
|
|
- console.log(this.goodsShowData[row.$index])
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.$refs.crudContact.rowCell(row, row.$index)
|
|
this.$refs.crudContact.rowCell(row, row.$index)
|
|
@@ -2253,7 +2252,8 @@ export default {
|
|
selectGoodsNum({
|
|
selectGoodsNum({
|
|
goodsId: event[0].id,
|
|
goodsId: event[0].id,
|
|
itemType: event[0].typeno,
|
|
itemType: event[0].typeno,
|
|
- tradeType: 'GN'
|
|
|
|
|
|
+ tradeType: 'GN',
|
|
|
|
+ warehouseId: this.form.storageId
|
|
}).then(res => {
|
|
}).then(res => {
|
|
row.storageQuantityList = res.data.data
|
|
row.storageQuantityList = res.data.data
|
|
|
|
|
|
@@ -2284,7 +2284,8 @@ export default {
|
|
selectGoodsNum({
|
|
selectGoodsNum({
|
|
goodsId: this.tableData[0].id,
|
|
goodsId: this.tableData[0].id,
|
|
itemType: this.tableData[0].typeno,
|
|
itemType: this.tableData[0].typeno,
|
|
- tradeType: 'GN'
|
|
|
|
|
|
+ tradeType: 'GN',
|
|
|
|
+ warehouseId: this.form.storageId
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.goodsShowData[this.choiceIndexT].storageQuantityList = res.data.data
|
|
this.goodsShowData[this.choiceIndexT].storageQuantityList = res.data.data
|
|
})
|
|
})
|
|
@@ -2351,7 +2352,8 @@ export default {
|
|
selectGoodsNum({
|
|
selectGoodsNum({
|
|
goodsId: this.goodsListSave[item].id,
|
|
goodsId: this.goodsListSave[item].id,
|
|
itemType: this.goodsListSave[item].typeno,
|
|
itemType: this.goodsListSave[item].typeno,
|
|
- tradeType: 'GN'
|
|
|
|
|
|
+ tradeType: 'GN',
|
|
|
|
+ warehouseId: this.form.storageId
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.$set(this.goodsListSave[item], 'storageQuantityList', res.data.data)
|
|
this.$set(this.goodsListSave[item], 'storageQuantityList', res.data.data)
|
|
// this.goodsListSave[item].storageQuantity = res.data.data
|
|
// this.goodsListSave[item].storageQuantity = res.data.data
|
|
@@ -2642,7 +2644,8 @@ export default {
|
|
selectGoodsNum({
|
|
selectGoodsNum({
|
|
goodsId: list[item].itemId,
|
|
goodsId: list[item].itemId,
|
|
itemType: list[item].typeno,
|
|
itemType: list[item].typeno,
|
|
- tradeType: 'GN'
|
|
|
|
|
|
+ tradeType: 'GN',
|
|
|
|
+ warehouseId: this.form.storageId
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(2);
|
|
console.log(2);
|
|
this.$set(list[item], 'storageQuantityList', res.data.data)
|
|
this.$set(list[item], 'storageQuantityList', res.data.data)
|