Showing
1 changed file
with
52 additions
and
11 deletions
@@ -130,13 +130,28 @@ var g = new common.grid({ | @@ -130,13 +130,28 @@ var g = new common.grid({ | ||
130 | } | 130 | } |
131 | }, | 131 | }, |
132 | columns: [ | 132 | columns: [ |
133 | - {display: '图片', name: 'product_skn'}, | 133 | + { |
134 | + display: '图片', | ||
135 | + name: 'product_pic_url', | ||
136 | + render: function (item) { | ||
137 | + if (item.product_pic_url) { | ||
138 | + return '<a class="list-img" target="_blank" href="' + item.product_pic_url + '">' + | ||
139 | + '<img src="' + item.product_pic_url + '"></a>'; | ||
140 | + } else { | ||
141 | + return ''; | ||
142 | + } | ||
143 | + | ||
144 | + }}, | ||
134 | {display: '商品信息', render: function(item) { | 145 | {display: '商品信息', render: function(item) { |
135 | - var html = '<p>名称:' + item.product_name + '</p><p>品牌:' + item.brand_name + '</p>' + | ||
136 | - '<div>类目:'+ item.middle_sort_name; | 146 | + var html = '<p>SKN:'+item.product_skn +'</p><p>名称:' + item.product_name + '</p><p>品牌:' + item.brand_name + '</p>' + |
147 | + '<div>类目:'+'<br>'+ item.middle_sort_name; | ||
137 | if(item.middle_sort_name) {html += ' > ' + item.middle_sort_name;} | 148 | if(item.middle_sort_name) {html += ' > ' + item.middle_sort_name;} |
138 | if(item.small_sort_name) {html += ' > ' + item.small_sort_name;} | 149 | if(item.small_sort_name) {html += ' > ' + item.small_sort_name;} |
139 | - return html + "</div>"; | 150 | + html += "</div><p>"; |
151 | + html += '<p>性别:'+ENUM.gender[item.gender]+'</p>'; | ||
152 | + html += '<p>货品年:'+item.goodsYears+'</p>'; | ||
153 | + html += '<p>货品季:'+item.goodsSeason+'</p>'; | ||
154 | + return html; | ||
140 | }}, | 155 | }}, |
141 | {display: '供应商/店铺', render: function(item) { | 156 | {display: '供应商/店铺', render: function(item) { |
142 | var html = ''; | 157 | var html = ''; |
@@ -148,17 +163,43 @@ var g = new common.grid({ | @@ -148,17 +163,43 @@ var g = new common.grid({ | ||
148 | return html; | 163 | return html; |
149 | }}, | 164 | }}, |
150 | {display: '日期信息', render: function(item) { | 165 | {display: '日期信息', render: function(item) { |
151 | - return ENUM.gender[item.gender]; | 166 | + var html = '<p>预计上架时间:'+'<br>'+item.updateTime +'</p>'; |
167 | + html += '<p>最近入库:'+'<br>'+item.updateTime +'</p>'; | ||
168 | + html += '<p>最近一次变价时间:'+'<br>'+item.updateTime +'</p>'; | ||
169 | + return html; | ||
170 | + }}, | ||
171 | + {display: '累计数据', render: function(item) { | ||
172 | + var html = '<p>进货量:'+'<br>'+0 +'</p>'; | ||
173 | + html += '<p>售罄率:'+'<br>'+0 +'</p>'; | ||
174 | + return html; | ||
175 | + }}, | ||
176 | + {display: '近15天信息', render: function(item) { | ||
177 | + var html = '<p>销售量:'+'<br>'+0 +'</p>'; | ||
178 | + html += '<p>成交天数:'+'<br>'+0 +'</p>'; | ||
179 | + return html; | ||
180 | + }}, | ||
181 | + {display: '库存信息', render: function(item) { | ||
182 | + var html = '<p>库存量:'+'<br>'+0 +'</p>'; | ||
183 | + html += '<p>周转天数:'+'<br>'+0 +'</p>'; | ||
184 | + return html; | ||
152 | }}, | 185 | }}, |
153 | - {display: '累计数据', name: 'retail_price'}, | ||
154 | - {display: '近14天信息', name: 'sales_price'}, | ||
155 | - {display: '库存信息', name: 'student_price'}, | ||
156 | {display: '当前售价', render: function(item) { | 186 | {display: '当前售价', render: function(item) { |
187 | + var html = '<p>吊牌价:'+item.retail_price +'</p>'; | ||
188 | + html += '<p>销售价:'+item.sales_price +'</p>'; | ||
189 | + if (item.student_price) {html += '<p>学生价:'+item.student_price +'</p>';} | ||
190 | + return html; | ||
191 | + }}, | ||
192 | + {display: 'VIP折扣类型', render: function(item) { | ||
157 | return ENUM.vipType[item.vip_discount_type]; | 193 | return ENUM.vipType[item.vip_discount_type]; |
158 | }}, | 194 | }}, |
159 | - {display: 'VIP折扣类型', name: 'vip_price'}, | ||
160 | - {display: '会员价', name: 'vip3_price'}, | ||
161 | - {display: '库存成本价', name: 'vip2_price'}, | 195 | + {display: '会员价', render: function(item) { |
196 | + var html = '<p>VIP价:'+item.vip_price +'</p>'; | ||
197 | + html += '<p>白金:'+item.vip3_price +'</p>'; | ||
198 | + html += '<p>金卡:'+item.vip2_price +'</p>'; | ||
199 | + html += '<p>银卡:'+item.vip1_price +'</p>'; | ||
200 | + return html; | ||
201 | + }}, | ||
202 | + {display: '库存成本价', name: ''}, | ||
162 | {display: '操作信息', render: function(item) { | 203 | {display: '操作信息', render: function(item) { |
163 | var html = ''; | 204 | var html = ''; |
164 | if (item.founder_name) {html += '<p>' + item.founder_name + '</p>';} | 205 | if (item.founder_name) {html += '<p>' + item.founder_name + '</p>';} |
-
Please register or login to post a comment