소스 검색

修复bug

zhh 3 년 전
부모
커밋
92688fcb5f
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      kmall-admin/src/main/webapp/js/cashier/salerecord.js

+ 1 - 2
kmall-admin/src/main/webapp/js/cashier/salerecord.js

@@ -10,8 +10,7 @@ $(function () {
 			{label: '店员名称', name: 'sallerName', index: 'sallerName',align: 'center', width: 120},
 			{label: '门店名称', name: 'storeName', index: 'storeName',align: 'center', width: 120},
 			{label: '活动id', name: 'discountId', index: 'discount_id', align: 'center', width: 120,formatter:function(value){
-				console.log(typeof value);
-				if(value === '0'){
+				if(value === '0' || value == null){
 					return '-';
 				}
 				return value;