|
|
@@ -155,6 +155,8 @@
|
|
|
:precision="0"
|
|
|
style="width: 100%"
|
|
|
@change="calculator(row)"
|
|
|
+ :disabled="row.inventoryFinancing == 0"
|
|
|
+ :max="row.inventoryFinancing"
|
|
|
/>
|
|
|
<span v-else>{{ row.sendNumFinancing }}</span>
|
|
|
</template>
|
|
|
@@ -167,6 +169,8 @@
|
|
|
:precision="0"
|
|
|
style="width: 100%"
|
|
|
@change="calculator(row)"
|
|
|
+ :disabled="row.inventoryHave == 0"
|
|
|
+ :max="row.inventoryHave"
|
|
|
/>
|
|
|
<span v-else>{{ row.sendNumHave }}</span>
|
|
|
</template>
|
|
|
@@ -1151,6 +1155,12 @@ export default {
|
|
|
for (let item of this.picihaolist) {
|
|
|
if (item.dot == value) {
|
|
|
this.$set(row, "inventory", item.balanceQuantity);
|
|
|
+ this.$set(row, "inventoryFinancing", item.balanceQuantityFinancing);
|
|
|
+ this.$set(row, "inventoryHave", item.balanceQuantityHave);
|
|
|
+ this.$set(row, "goodsNum", 0);
|
|
|
+ this.$set(row, "sendNumFinancing", 0);
|
|
|
+ this.$set(row, "sendNumHave", 0);
|
|
|
+ this.$set(row, "subTotalMoney", 0);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -1329,11 +1339,11 @@ export default {
|
|
|
},
|
|
|
calculator(row) {
|
|
|
if (row.sendNumFinancing > row.inventoryFinancing) {
|
|
|
- this.$set(row, "sendNumFinancing", null);
|
|
|
+ this.$set(row, "sendNumFinancing", 0);
|
|
|
this.$message.error("融资数量不能大于参考库存融资");
|
|
|
}
|
|
|
if (row.sendNumHave > row.inventoryHave) {
|
|
|
- this.$set(row, "sendNumHave", null);
|
|
|
+ this.$set(row, "sendNumHave", 0);
|
|
|
this.$message.error("自由数量不能大于参考库存自有");
|
|
|
}
|
|
|
row.goodsNum = Number(Number(row.sendNumFinancing) + Number(row.sendNumHave));
|
|
|
@@ -1341,7 +1351,7 @@ export default {
|
|
|
},
|
|
|
calculator2(row) {
|
|
|
if (row.goodsNum > row.inventory) {
|
|
|
- this.$set(row, "goodsNum", null);
|
|
|
+ this.$set(row, "goodsNum", 0);
|
|
|
this.$message.error("调拨数量不能大于库存");
|
|
|
}
|
|
|
row.subTotalMoney = row.goodsNum * row.price;
|