|
@@ -31,6 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
|
|
|
let status = await $.getJSON('mobile_order/status')
|
|
|
let payType = await $.getJSON('mobile_order/pay_type')
|
|
|
+ let mobileRules = await $.getJSON('mobile/mobile_rules')
|
|
|
table.on('load-success.bs.table', function (_, data) {
|
|
|
let e=data.extend;
|
|
|
$('#orderAmount').html(`收入:${e.total}支付宝:${e.alipay}微信:${e.wechat}京东:${e.jd}成本:${e.di}利润:${e.profit}退款:${e.refund}`)
|
|
@@ -61,6 +62,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
{field: 'order_no', title: __('订单号'),visible:false,operate: 'like'},
|
|
|
{field: 's_id', title: __('来源渠道')},
|
|
|
{field: 'pay_type', title: __('支付方式'),searchList: payType,visible: false},
|
|
|
+ {field: 'pay_mid_wechat', title: __('微信商户号'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'pay_mid_alipay', title: __('支付宝商户号'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'name', title: __('收货人'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'phone', title: __('收货人手机'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'no', title: __('手机号'),visible: false,operate: 'LIKE'},
|
|
|
{field: 'order_no', title: __('订单信息'),operate: false,formatter(_,order){
|
|
|
let a=[]
|
|
|
a.push(`<div>订单号:${order.order_no}</div>`)
|
|
@@ -89,6 +95,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
return `<div style="max-width: 200px;text-align: left;" class="break-words">${a.join('')}</div>`
|
|
|
},width:200,valign:'top',align:'left'},
|
|
|
{field: 'status', title: __('Status'),formatter: Table.api.formatter.label,searchList:status},
|
|
|
+ {field: 'rule', title: __('类型'),visible: false,searchList:mobileRules},
|
|
|
{field: 'remark_backend', title: __('备注'),formatter: Table.api.formatter.content,operate:false,align: 'left',valign: 'top'},
|
|
|
//{field: 'remark_sub', title: __('分站备注'),formatter: Table.api.formatter.content,operate:false},
|
|
|
{field: '', title: __('退款记录'),formatter(_,order){
|
|
@@ -140,10 +147,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
{field: 'open_name', title: __('开卡人姓名')},
|
|
|
{field: 'open_id_no', title: __('开卡人身份证号码')},
|
|
|
{field: 'open_phone', title: __('开卡人手机号')},*/
|
|
|
- {field: 'trans_no', title: __('Trans_no'),visible: false},
|
|
|
- {field: 'phone', title: __('收货人手机'),visible: false},
|
|
|
- {field: 'name', title: __('收货人姓名'),visible: false},
|
|
|
- {field: 'id_no', title: __('收货人身份证'),visible: false},
|
|
|
+ {field: 'trans_no', title: __('Trans_no'),visible: false,operate: "like"},
|
|
|
+ {field: 'id_no', title: __('收货人身份证'),visible: false,operate: "like"},
|
|
|
{
|
|
|
field: 'operate',
|
|
|
title: __('Operate'),
|