|
@@ -787,7 +787,7 @@ export default {
|
|
|
rowCell(row, index) {
|
|
|
console.log(row)
|
|
|
if (row.$cellEdit) {
|
|
|
- if (Number(row.orderQuantity) < Number(row.actualQuantity)) {
|
|
|
+ if (Number(row.purchaseQuantity) < Number(row.actualQuantity)) {
|
|
|
return this.$message.error('订货数量不能小于发货数量')
|
|
|
}
|
|
|
}
|
|
@@ -836,7 +836,7 @@ export default {
|
|
|
this.contactsData[this.choiceIndexT].specificationAndModel = this.tableData[0].specificationAndModel
|
|
|
this.contactsData[this.choiceIndexT].itemId = this.tableData[0].id
|
|
|
this.contactsData[this.choiceIndexT].priceCategory = this.tableData[0].goodsTypeName
|
|
|
- this.contactsData[this.choiceIndexT].orderQuantity = 0
|
|
|
+ this.contactsData[this.choiceIndexT].purchaseQuantity = 0
|
|
|
this.contactsData[this.choiceIndexT].price = 0
|
|
|
this.contactsData[this.choiceIndexT].amount = 0
|
|
|
selectGoodsNum({
|
|
@@ -888,13 +888,13 @@ export default {
|
|
|
goodsId: this.tableData[item].id,
|
|
|
typeno: this.tableData[item].specs
|
|
|
}).then(res => {
|
|
|
- this.tableData[item].storageQuantity = res.data.data
|
|
|
+ this.$set(this.tableData[item], 'storageQuantity', res.data.data)
|
|
|
this.tableData[item].itemId = this.tableData[item].id
|
|
|
this.tableData[item].priceCategory = this.tableData[item].goodsTypeName
|
|
|
delete this.tableData[item].id
|
|
|
this.$set(this.tableData[item], 'specificationAndModel', this.tableData[item].specs)
|
|
|
this.$set(this.tableData[item], 'priceType', '一般')
|
|
|
- this.$set(this.tableData[item], 'orderQuantity', 0)
|
|
|
+ this.$set(this.tableData[item], 'purchaseQuantity', 0)
|
|
|
this.$set(this.tableData[item], 'actualQuantity', 0)
|
|
|
this.tableData[item].price = 0
|
|
|
this.tableData[item].amount = 0
|
|
@@ -1119,7 +1119,7 @@ export default {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
for (let item in this.contactsData) {
|
|
|
- if (Number(this.contactsData[item].orderQuantity) < Number(this.contactsData[item].actualQuantity)) {
|
|
|
+ if (Number(this.contactsData[item].purchaseQuantity) < Number(this.contactsData[item].actualQuantity)) {
|
|
|
return this.$message.error('商品信息第'+ (parseInt(item) + 1) + '行订货数量不能小于发货数量')
|
|
|
}
|
|
|
}
|