瀏覽代碼

项目价格问题

twt 3 年之前
父節點
當前提交
d756046b88
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      pages/module/maintain.vue

+ 8 - 2
pages/module/maintain.vue

@@ -81,7 +81,7 @@
 											<view class="goodsItemName">{{v.itemName}}</view>
 										</view>
 										<view class="goodsCOntBOttom">
-											<view class="salePrice" >¥{{v.salePrice?v.salePrice:0}}</view>
+											<view class="salePrice" >¥{{v.salePrice?v.salePrice:'-'}}</view>
 											<view class="itemNum">x1</view>
 										</view>
 									</view>
@@ -145,7 +145,7 @@
 								<view class="goodsItemRight" >
 									<view class="goodsItemName">{{v.itemName}}</view>
 									<view class="goodsItemBottom">
-										<view class="goodssalePrice">¥{{v.salePrice?v.salePrice:0}}</view>
+										<view class="goodssalePrice">¥{{v.salePrice?v.salePrice:'-'}}</view>
 										<view class="goodsNum">x{{v.qty}}</view>
 									</view>
 								</view>
@@ -365,6 +365,9 @@ export default {
 									}else{
 									   this.isNull=false
 							     	}
+									if(goods[0].salePrice==null){
+										this.isNull=false
+									}
 									obj.listGoodsAll.push(goods[0])
 									
 								
@@ -387,6 +390,9 @@ export default {
 								}else{
 									this.isNull=false
 								}
+								if(xm.salePrice==null){
+									this.isNull=false
+								}
 								//xm.salePrice=1;
 								
 							})