|
@@ -1179,86 +1179,86 @@ var p = new common.grid({ |
|
@@ -1179,86 +1179,86 @@ var p = new common.grid({ |
1179
|
}
|
1179
|
}
|
1180
|
return newPriceHtml + '<div style="color: #999;">' + item.oldProductPriceBo.sales_price + '</div>';
|
1180
|
return newPriceHtml + '<div style="color: #999;">' + item.oldProductPriceBo.sales_price + '</div>';
|
1181
|
}},
|
1181
|
}},
|
1182
|
- {display: 'VIP折扣类型', render: function(item) {
|
|
|
1183
|
- return '<p>'+ENUM.vipType[item.newProductPriceBo.vip_discount_type] + '</p>'+
|
|
|
1184
|
- '<div style="color: #999;">' + ENUM.vipType[item.oldProductPriceBo.vip_discount_type] + '</div>';
|
|
|
1185
|
- }},
|
|
|
1186
|
- {display: 'VIP价', render: function(item) {
|
|
|
1187
|
- var newPrice = item.newProductPriceBo,
|
|
|
1188
|
- newPriceHtml = '';
|
|
|
1189
|
- if (newPrice.vip_price) {
|
|
|
1190
|
- if (newPrice.vip_price < (newPrice.retail_price / 2)) {
|
|
|
1191
|
- newPriceHtml = '<p style="color: red">' + newPrice.vip_price + '</p>';
|
|
|
1192
|
- }else{
|
|
|
1193
|
- newPriceHtml = '<p>'+newPrice.vip_price+'</p>';
|
|
|
1194
|
- }
|
|
|
1195
|
- } else {
|
|
|
1196
|
- newPriceHtml = '<p>-</p>'
|
|
|
1197
|
- }
|
|
|
1198
|
- if(item.oldProductPriceBo.vip_price){
|
|
|
1199
|
- newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.vip_price + '</div>';
|
|
|
1200
|
- }else{
|
|
|
1201
|
- newPriceHtml += '<div>-</div>';
|
|
|
1202
|
- }
|
|
|
1203
|
- return newPriceHtml;
|
|
|
1204
|
- }},
|
|
|
1205
|
- {display: '白金价', render: function(item) {
|
|
|
1206
|
- var newPrice = item.newProductPriceBo,
|
|
|
1207
|
- newPriceHtml = '';
|
|
|
1208
|
- if (newPrice.vip3_price){
|
|
|
1209
|
- if (newPrice.vip3_price < (newPrice.retail_price / 2)) {
|
|
|
1210
|
- newPriceHtml = '<p style="color: red">' + newPrice.vip3_price + '</p>';
|
|
|
1211
|
- }else{
|
|
|
1212
|
- newPriceHtml = '<p>'+newPrice.vip3_price+'</p>';
|
|
|
1213
|
- }
|
|
|
1214
|
- }else{
|
|
|
1215
|
- newPriceHtml = '<p>-</p>'
|
|
|
1216
|
- }
|
|
|
1217
|
- if(item.oldProductPriceBo.vip3_price){
|
|
|
1218
|
- newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.vip3_price + '</div>';
|
|
|
1219
|
- }else{
|
|
|
1220
|
- newPriceHtml += '<div>-</div>';
|
|
|
1221
|
- }
|
|
|
1222
|
- return newPriceHtml;
|
|
|
1223
|
- }},
|
|
|
1224
|
- {display: '金卡价', render: function(item) {
|
|
|
1225
|
- var newPrice = item.newProductPriceBo,
|
|
|
1226
|
- newPriceHtml = '';
|
|
|
1227
|
- if (newPrice.vip2_price){
|
|
|
1228
|
- if (newPrice.vip2_price < (newPrice.retail_price / 2)) {
|
|
|
1229
|
- newPriceHtml = '<p style="color: red">' + newPrice.vip2_price + '</p>';
|
|
|
1230
|
- }else {
|
|
|
1231
|
- newPriceHtml = '<p>'+newPrice.vip2_price+'</p>';
|
|
|
1232
|
- }
|
|
|
1233
|
- }else{
|
|
|
1234
|
- newPriceHtml = '<p>-</p>'
|
|
|
1235
|
- }
|
|
|
1236
|
- if(item.oldProductPriceBo.vip2_price){
|
|
|
1237
|
- newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.vip2_price + '</div>';
|
|
|
1238
|
- }else{
|
|
|
1239
|
- newPriceHtml += '<div>-</div>';
|
|
|
1240
|
- }
|
|
|
1241
|
- return newPriceHtml;
|
|
|
1242
|
- }},
|
|
|
1243
|
- {display: '银卡价', render: function(item) {
|
|
|
1244
|
- var newPrice = item.newProductPriceBo,
|
|
|
1245
|
- newPriceHtml = '';
|
|
|
1246
|
- if (newPrice.vip1_price){
|
|
|
1247
|
- if (newPrice.vip1_price < (newPrice.retail_price / 2)) {
|
|
|
1248
|
- newPriceHtml = '<p style="color: red">' + newPrice.vip1_price + '</p>';
|
|
|
1249
|
- }else{
|
|
|
1250
|
- newPriceHtml = '<p>'+newPrice.vip1_price+'</p>';
|
|
|
1251
|
- }
|
|
|
1252
|
- }else{
|
|
|
1253
|
- newPriceHtml = '<p>-</p>'
|
|
|
1254
|
- }
|
|
|
1255
|
- if(item.oldProductPriceBo.vip1_price){
|
|
|
1256
|
- newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.vip1_price + '</div>';
|
|
|
1257
|
- }else{
|
|
|
1258
|
- newPriceHtml += '<div>-</div>';
|
|
|
1259
|
- }
|
|
|
1260
|
- return newPriceHtml;
|
|
|
1261
|
- }},
|
1182
|
+// {display: 'VIP折扣类型', render: function(item) {
|
|
|
1183
|
+// return '<p>'+ENUM.vipType[item.newProductPriceBo.vip_discount_type] + '</p>'+
|
|
|
1184
|
+// '<div style="color: #999;">' + ENUM.vipType[item.oldProductPriceBo.vip_discount_type] + '</div>';
|
|
|
1185
|
+// }},
|
|
|
1186
|
+// {display: 'VIP价', render: function(item) {
|
|
|
1187
|
+// var newPrice = item.newProductPriceBo,
|
|
|
1188
|
+// newPriceHtml = '';
|
|
|
1189
|
+// if (newPrice.vip_price) {
|
|
|
1190
|
+// if (newPrice.vip_price < (newPrice.retail_price / 2)) {
|
|
|
1191
|
+// newPriceHtml = '<p style="color: red">' + newPrice.vip_price + '</p>';
|
|
|
1192
|
+// }else{
|
|
|
1193
|
+// newPriceHtml = '<p>'+newPrice.vip_price+'</p>';
|
|
|
1194
|
+// }
|
|
|
1195
|
+// } else {
|
|
|
1196
|
+// newPriceHtml = '<p>-</p>'
|
|
|
1197
|
+// }
|
|
|
1198
|
+// if(item.oldProductPriceBo.vip_price){
|
|
|
1199
|
+// newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.vip_price + '</div>';
|
|
|
1200
|
+// }else{
|
|
|
1201
|
+// newPriceHtml += '<div>-</div>';
|
|
|
1202
|
+// }
|
|
|
1203
|
+// return newPriceHtml;
|
|
|
1204
|
+// }},
|
|
|
1205
|
+// {display: '白金价', render: function(item) {
|
|
|
1206
|
+// var newPrice = item.newProductPriceBo,
|
|
|
1207
|
+// newPriceHtml = '';
|
|
|
1208
|
+// if (newPrice.vip3_price){
|
|
|
1209
|
+// if (newPrice.vip3_price < (newPrice.retail_price / 2)) {
|
|
|
1210
|
+// newPriceHtml = '<p style="color: red">' + newPrice.vip3_price + '</p>';
|
|
|
1211
|
+// }else{
|
|
|
1212
|
+// newPriceHtml = '<p>'+newPrice.vip3_price+'</p>';
|
|
|
1213
|
+// }
|
|
|
1214
|
+// }else{
|
|
|
1215
|
+// newPriceHtml = '<p>-</p>'
|
|
|
1216
|
+// }
|
|
|
1217
|
+// if(item.oldProductPriceBo.vip3_price){
|
|
|
1218
|
+// newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.vip3_price + '</div>';
|
|
|
1219
|
+// }else{
|
|
|
1220
|
+// newPriceHtml += '<div>-</div>';
|
|
|
1221
|
+// }
|
|
|
1222
|
+// return newPriceHtml;
|
|
|
1223
|
+// }},
|
|
|
1224
|
+// {display: '金卡价', render: function(item) {
|
|
|
1225
|
+// var newPrice = item.newProductPriceBo,
|
|
|
1226
|
+// newPriceHtml = '';
|
|
|
1227
|
+// if (newPrice.vip2_price){
|
|
|
1228
|
+// if (newPrice.vip2_price < (newPrice.retail_price / 2)) {
|
|
|
1229
|
+// newPriceHtml = '<p style="color: red">' + newPrice.vip2_price + '</p>';
|
|
|
1230
|
+// }else {
|
|
|
1231
|
+// newPriceHtml = '<p>'+newPrice.vip2_price+'</p>';
|
|
|
1232
|
+// }
|
|
|
1233
|
+// }else{
|
|
|
1234
|
+// newPriceHtml = '<p>-</p>'
|
|
|
1235
|
+// }
|
|
|
1236
|
+// if(item.oldProductPriceBo.vip2_price){
|
|
|
1237
|
+// newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.vip2_price + '</div>';
|
|
|
1238
|
+// }else{
|
|
|
1239
|
+// newPriceHtml += '<div>-</div>';
|
|
|
1240
|
+// }
|
|
|
1241
|
+// return newPriceHtml;
|
|
|
1242
|
+// }},
|
|
|
1243
|
+// {display: '银卡价', render: function(item) {
|
|
|
1244
|
+// var newPrice = item.newProductPriceBo,
|
|
|
1245
|
+// newPriceHtml = '';
|
|
|
1246
|
+// if (newPrice.vip1_price){
|
|
|
1247
|
+// if (newPrice.vip1_price < (newPrice.retail_price / 2)) {
|
|
|
1248
|
+// newPriceHtml = '<p style="color: red">' + newPrice.vip1_price + '</p>';
|
|
|
1249
|
+// }else{
|
|
|
1250
|
+// newPriceHtml = '<p>'+newPrice.vip1_price+'</p>';
|
|
|
1251
|
+// }
|
|
|
1252
|
+// }else{
|
|
|
1253
|
+// newPriceHtml = '<p>-</p>'
|
|
|
1254
|
+// }
|
|
|
1255
|
+// if(item.oldProductPriceBo.vip1_price){
|
|
|
1256
|
+// newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.vip1_price + '</div>';
|
|
|
1257
|
+// }else{
|
|
|
1258
|
+// newPriceHtml += '<div>-</div>';
|
|
|
1259
|
+// }
|
|
|
1260
|
+// return newPriceHtml;
|
|
|
1261
|
+// }},
|
1262
|
{display: '操作', render: function(item) {
|
1262
|
{display: '操作', render: function(item) {
|
1263
|
return '<a class="btn btn-danger btn-xs deleteImport" data-idx="' + item.__index + '" href="javascript:;">删除</a>';
|
1263
|
return '<a class="btn btn-danger btn-xs deleteImport" data-idx="' + item.__index + '" href="javascript:;">删除</a>';
|
1264
|
}}
|
1264
|
}}
|