From f61bfeb37b2d1e61a318d1579aed70c774ba4898 Mon Sep 17 00:00:00 2001 From: "DESKTOP-A1SENDA\\HUzy" <472860318@qq.com> Date: Tue, 11 May 2021 16:08:14 +0800 Subject: [PATCH] --- --- pages/purchase/create/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/purchase/create/index.js b/pages/purchase/create/index.js index c7e9ce2..d80a979 100644 --- a/pages/purchase/create/index.js +++ b/pages/purchase/create/index.js @@ -203,7 +203,7 @@ Page({ if(!util.isEmpty(this.data.form.unitPrice) && !this.data.kg){ this.data.form.unitPrice = math.divide(this.data.form.unitPrice, 1000) } - if(!util.isEmpty(this.data.form.unitPrice) && !this.data.kg){ + if(!util.isEmpty(this.data.form.purchaseQuantity) && !this.data.kg){ this.data.form.purchaseQuantity = math.times(this.data.form.purchaseQuantity, 1000) } this.setData({ requesting: true })