|
@@ -261,17 +261,28 @@
|
|
|
content+="<div style='color: #ffffff;line-height: 14px;padding: 4px;font-size: 14px'>";
|
|
|
content+="<div style='"+corner2+"'></div>";
|
|
|
content+="<div class=''>";
|
|
|
- if(pos.price != null)
|
|
|
- content+= "¥" + pos.price.toString();
|
|
|
- else if(pos.costPrice != null)
|
|
|
- content+= "¥" + pos.costPrice.toString();
|
|
|
+ // if(pos.price != null) {
|
|
|
+ // content+= "¥" + pos.price.toString();
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ if(pos.giveDiscount) {
|
|
|
+ content+= "¥" + (pos.electricityPrice+pos.discountServicePrice).toString();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ content+= "¥" + (pos.electricityPrice+pos.servicePrice).toString();
|
|
|
+ }
|
|
|
|
|
|
content+="</div>";
|
|
|
content+="<div class=''>";
|
|
|
- if(pos.idleNum != null)
|
|
|
+ // console.log(pos)
|
|
|
+ if(pos.idleNum != null) {
|
|
|
content+="空闲" + pos.idleNum.toString();
|
|
|
- else if(pos.availableNum != null)
|
|
|
+ }
|
|
|
+ else if(pos.availableNum != null) {
|
|
|
content+="空闲" + pos.availableNum.toString();
|
|
|
+ } else {
|
|
|
+ content+="空闲" + (pos.fastAvailableNum+pos.slowAvailableNum).toString();
|
|
|
+ }
|
|
|
content+="</div>"
|
|
|
content+="</div>";
|
|
|
content+="</div>";
|