gjy 3 years ago
parent
commit
bbd4bc2a6a

+ 2 - 3
pages/erpbusiness/acquisitionInspection/grossWeightDetail.vue

@@ -102,9 +102,8 @@
 										) {
 											let count = (that.purchasePriceList[i].saleLimit -
 												res.data.data / 1000).toFixed(2)
-											if (count <= 0) {
-												count = 0
-												that.$api.msg('该客户累计销售' + this.detailData.goodsName + (
+											if (Number(count) - that.detailData.grossWeight / 1000 <= 0) {
+												that.$api.msg('该客户累计销售' + that.detailData.goodsName + (
 														res.data.data / 1000).toFixed(2) +
 													'吨,还可售粮' +
 													count + '吨', )

+ 6 - 2
pages/erpbusiness/add_quality_testing.vue

@@ -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 + '吨', )