|
@@ -540,11 +540,15 @@
|
|
|
that.gridList.goodsName == that.purchasePriceList[i]
|
|
|
.goodsName
|
|
|
) {
|
|
|
+ debugger
|
|
|
let count = (that.purchasePriceList[i].saleLimit -
|
|
|
response.data.data / 1000).toFixed(2)
|
|
|
- if (count <= 0) {
|
|
|
+ console.log(count,that.purchasePriceList[i].saleLimit,
|
|
|
+ response.data.data)
|
|
|
+
|
|
|
+ if (Number(count) <= 0) {
|
|
|
count = 0
|
|
|
- that.$api.msg('该客户累计销售' + this.gridList.goodsName + (
|
|
|
+ that.$api.msg('该客户累计销售' + that.gridList.goodsName + (
|
|
|
response.data.data / 1000).toFixed(2) +
|
|
|
'吨,还可售粮' +
|
|
|
count + '吨', )
|