|
@@ -1,8 +1,15 @@
|
|
|
const _Http = getApp().globalData.http,
|
|
|
- file = require("../../../../utils/FormatTheAttachment");
|
|
|
+ file = require("../../../../utils/FormatTheAttachment"),
|
|
|
+ currency = require("../../../../utils/currency"),
|
|
|
+ CNY = num => currency(num, {
|
|
|
+ symbol: "¥",
|
|
|
+ precision: 2
|
|
|
+ }).format();
|
|
|
+
|
|
|
let queue = [],
|
|
|
downCounter = null,
|
|
|
Counter = null;
|
|
|
+
|
|
|
Component({
|
|
|
properties: {
|
|
|
disabled: Boolean, //禁用
|
|
@@ -50,7 +57,10 @@ Component({
|
|
|
let image = value.attinfos.find(v => v.fileType == "image");
|
|
|
value.cover = image ? image.cover : "";
|
|
|
}
|
|
|
- value.amount = value.amount * obj.toolcount;
|
|
|
+ value.amount =CNY(value.defaultamount);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
value.qty = value.qty * obj.toolcount;
|
|
|
return value;
|
|
|
})
|