|
@@ -172,13 +172,24 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
[
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'logo', title: __('商品图片'),formatter: Table.api.formatter.image,events:Table.api.events.image,operate: false},
|
|
|
- {field: 'goods_name', title: __('商品名称'),operate: false,formatter: Table.api.formatter.content,width:200},
|
|
|
+ {field: 'goods_name', title: __('商品名称'),operate: false,formatter(name,orderInfo,index){
|
|
|
+ let a=[]
|
|
|
+ a.push(`<div>${name}</div>`)
|
|
|
+ if(orderInfo.refund){
|
|
|
+ a.push(`<div>
|
|
|
+ <span class="label label-default">${refund_type[orderInfo.refund.refund_type]}</span>
|
|
|
+ <span class="label label-danger">${refundStatus[orderInfo.refund.refund_status]}</span>
|
|
|
+ </div>`)
|
|
|
+ }
|
|
|
+ return a.join('')
|
|
|
+ },width:200},
|
|
|
{field: 'sku_name', title: __('商品规格'),operate: false},
|
|
|
{field: 'amount_total', title: __('Amount_total'), operate:'BETWEEN'},
|
|
|
{field: 'amount_pay', title: __('Amount_pay'), operate:'BETWEEN'},
|
|
|
{field: 'amount_install', title: __('Amount_install'), operate:'BETWEEN'},
|
|
|
{field: 'num', title: __('购买数量'),operate: 'between'},
|
|
|
{field: 'num_install', title: __('安装数量'),operate: 'between'},
|
|
|
+ //{field: 'refund.refund_status', title: __('售后'),operate: 'eq',formatter: Table.api.formatter.label,searchList:refundStatus},
|
|
|
]
|
|
|
],
|
|
|
onLoadSuccess(){
|