diff --git a/pages/formate.wxs b/pages/formate.wxs
index 0a74ffd..94892a3 100644
--- a/pages/formate.wxs
+++ b/pages/formate.wxs
@@ -63,6 +63,10 @@ function formateWeight(weight) {
return (parseFloat(weight) / 1000).toFixed(2)
}
+function formatePrice(weight) {
+ return (parseFloat(weight) * 1000).toFixed(0)
+}
+
function maxWeight(fweight, sweight) {
if(fweight && sweight){
if(fweight > sweight){
@@ -91,6 +95,7 @@ function minWeight(fweight, sweight) {
module.exports = {
formateAmount: formateAmount,
+ formatePrice: formatePrice,
formateWeight: formateWeight,
formatTime: formatTime,
formateDate: formateDate,
diff --git a/pages/storage/order-create/index.js b/pages/storage/order-create/index.js
index cc80a93..39dc46d 100644
--- a/pages/storage/order-create/index.js
+++ b/pages/storage/order-create/index.js
@@ -112,6 +112,12 @@ Scene({
onChange: function({detail}) {
this.setData({ activeNames: detail })
},
+ bindInput: function (e) {
+ this.data.form[e.currentTarget.id] = e.detail.value
+ },
+ onInputChange: function(e){
+ this.data.form[e.currentTarget.id] = e.detail
+ },
submitForm: function(){
if(util.isEmpty(this.data.form.factoryName)){
util.showToast('请选择出货方名称')
diff --git a/pages/storage/order-create/index.wxml b/pages/storage/order-create/index.wxml
index 03b0ae2..b9018d2 100644
--- a/pages/storage/order-create/index.wxml
+++ b/pages/storage/order-create/index.wxml
@@ -48,7 +48,6 @@
placeholder="请输司机姓名" value="{{form.driverName || ''}}" bindinput="bindInput" />
-
@@ -84,7 +83,7 @@
净重(公斤)
- {{form.netWeight}}
+ {{poundInfo.netWeight}}
diff --git a/pages/storage/order-info/index.wxml b/pages/storage/order-info/index.wxml
index 8acee68..414004e 100644
--- a/pages/storage/order-info/index.wxml
+++ b/pages/storage/order-info/index.wxml
@@ -20,10 +20,10 @@
{{orderInfo.productName || ''}}
-
+
纸品包数
- {{orderInfo.packageNumber || ''}}
+ {{orderInfo.packageQuantity || ''}}
@@ -98,7 +98,7 @@
结算单价(元/吨)
- {{orderInfo.settleUnitPrice || ''}}
+ {{formate.formatePrice(orderInfo.settleUnitPrice)}}
diff --git a/pages/storage/order-settlement/index.wxml b/pages/storage/order-settlement/index.wxml
index bc17c35..70566a3 100644
--- a/pages/storage/order-settlement/index.wxml
+++ b/pages/storage/order-settlement/index.wxml
@@ -138,7 +138,7 @@
净重(公斤)
- {{form.netWeight}}
+ {{poundInfo.netWeight}}