shish 3 năm trước cách đây
mục cha
commit
1142e3dae4

+ 3 - 3
ghsApp/src/pagesStorehouse/inventory/details.vue

@@ -41,15 +41,15 @@
 								</view>
 								<view v-else-if="column.custom == 'stock'" @click.stop="goToStockDetail(item.id)" style="color: #333333;">
 									<text>{{ item.bigNumStock }}扎</text>
-									<text>{{ item.smallNumStock }}支</text>
+									<text v-if="Number(item.smallNumStock)>0">{{ item.smallNumStock }}支</text>
 								</view>
 								<view v-else-if="column.custom == 'inventory'" @click.stop="goToStockDetail(item.id)" style="color: #333333;">
 									<text>{{ item.bigNum }}扎</text>
-									<text>{{ item.smallNum }}支</text>
+									<text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
 								</view>
 								<view v-else-if="column.custom == 'profit'" @click.stop="goToStockDetail(item.id)" style="color: #333333;">
 									<text>{{ item.bigNumProfitLoss }}扎</text>
-									<text>{{ item.smallNumProfitLoss }}支</text>
+									<text v-if="Number(item.smallNumProfitLoss)>0">{{ item.smallNumProfitLoss }}支</text>
 								</view>
 								<view v-else @click.stop="goToStockDetail(item.id)" style="color: #333333;">{{ item[column.dataIndex] || "" }}</view>
 							</t-td>

+ 1 - 1
ghsApp/src/pagesStorehouse/inventory/list.vue

@@ -12,7 +12,7 @@
 						</view>
 						<view style="margin-bottom: 10upx">
 							<text class="info-time" style="margin: 0">数量:{{item.bigNum}}扎</text>
-							<text class="info-time" style="margin: 0">{{ item.smallNum }}支</text>
+							<text class="info-time" style="margin: 0" v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
 						</view>
 					</view>
 				</view>