ソースを参照

盘点显示异常

shish 3 年 前
コミット
7c51259b0a
1 ファイル変更8 行追加0 行削除
  1. 8 0
      ghsApp/src/pagesStorehouse/inventory/update.vue

+ 8 - 0
ghsApp/src/pagesStorehouse/inventory/update.vue

@@ -16,12 +16,16 @@
 									<view class="icon-info"> <view class="info-name"> {{ item.itemName }} </view> </view>
 								</view>
 								<view v-else-if="column.custom == 'stock'" style="width:150upx;color: #333333;">
+									<text :class="[Number(item.bigNum) != Number(item.bigCount) ? 'red-color' : '']">
 									<text>{{ item.bigNum }}扎</text>
 									<text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
+									</text>
 								</view>
 								<view v-else-if="column.custom == 'inventory'" style="width:150upx;color: #333333;">
+									<text :class="[Number(item.bigNum) != Number(item.bigCount) ? 'red-color' : '']">
 									<text>{{item.bigCount==99999?0:item.bigCount}}扎</text>
 									<text v-if="Number(item.smallCount)>0">{{ item.smallCount }}支</text>
+									</text>
 								</view>
 							</view>
 						</view>
@@ -283,6 +287,10 @@ export default {
 		border-bottom: 1upx solid #eeeeee;
 		color: #999999;
 		.table-td {
+			.red-color{
+				color:red;
+				font-weight:bold;
+			}
 			.warn {
 				color: #ffaf1d;
 			}