浏览代码

数据版本问题

xiaohaizhao 1 年之前
父节点
当前提交
e11f0aff1c
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      packageA/orderForm/detail.js
  2. 1 0
      packageA/orderForm/modules/product/index.js

+ 1 - 0
packageA/orderForm/detail.js

@@ -341,6 +341,7 @@ Page({
 					title: res.msg,
 					title: res.msg,
 					icon: "none"
 					icon: "none"
 				});
 				});
+				this.getDetail(true)
 				resolve(res)
 				resolve(res)
 			})
 			})
 		})
 		})

+ 1 - 0
packageA/orderForm/modules/product/index.js

@@ -112,6 +112,7 @@ Component({
                     ...obj
                     ...obj
                 };
                 };
                 data.amount = CNY(currency(data.price).multiply(data.qty).format());
                 data.amount = CNY(currency(data.price).multiply(data.qty).format());
+                data.price = CNY(data.price)
                 this.setData({
                 this.setData({
                     [`list[${index}]`]: data
                     [`list[${index}]`]: data
                 })
                 })