|
@@ -106,19 +106,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
|
|
|
let columns=[
|
|
|
{checkbox: true},
|
|
|
- {field: 'id', title: __('ID'),operate:false,},
|
|
|
+ // {field: 'id', title: __('ID'),operate:false,},
|
|
|
{field: 'order_no', title: __('订单号'),visible:false,operate: 'like'},
|
|
|
- {field: 'pay_no', title: __('支付单号'),visible: false,operate: '='},
|
|
|
-
|
|
|
+ {field: 'logistics_numbers', title: __('支付单号'),visible: false,operate: '='},
|
|
|
{field: 'pay_type', title: __('支付方式'),searchList: payType,visible: false, operate: is_proxy_operate},
|
|
|
{field: 'no', title: __('手机号'),visible: false,operate: 'LIKE'},
|
|
|
{field: 'phone', title: __('收货人手机'),visible: false,operate: 'LIKE'},
|
|
|
{field: 'name', title: __('收货人'),visible: false,operate: 'LIKE'},
|
|
|
{field: 'id_no', title: __('收货人身份证'),visible: false,operate: "like"},
|
|
|
- {field: 'pay_mid_wechat', title: __('微信商户号'),visible: false, operate: is_proxy_operate},
|
|
|
- {field: 'pay_mid_alipay', title: __('支付宝商户号'),visible: false,operate: is_proxy_operate},
|
|
|
- {field: 'pay_mid_dy', title: __('抖音商户号'),visible: false,operate: is_proxy_operate},
|
|
|
- {field: 'pay_mid_ks', title: __('快手商户号'),visible: false,operate: is_proxy_operate},
|
|
|
+ {field: 'is_auto', title: __('是否是自动订单'),visible: false},
|
|
|
+ {field: 'no', title: __('订单来源'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'produce_is_recharge', title: __('是否首充'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'produce_activation', title: __('激活状态'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'no', title: __('外部订单号'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'no', title: __('商品编码'),visible: false,operate: 'LIKE'},
|
|
|
+ {field: 'no', 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>订单号:<b class="btn-order_link" data-link="${order.order_no}">${order.order_no}</b></div>`)
|
|
@@ -144,7 +147,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
// a.push(`<div>备注:${order.info?order.info.mobile.remark:''}</div>`)
|
|
|
// a.push(`<a class="btn btn-success btn-sm btn-order_link" data-link="${a.join('')}">点击复制</a>`)
|
|
|
return `<div style="max-width: 250px;word-wrap: break-word;word-break: break-all;white-space: normal;text-align: left;">${a.join('')}</div>`
|
|
|
- },width:250,valign:'top',align:'left'},
|
|
|
+ },width:'20%',valign:'top',align:'left'},
|
|
|
{field: 'order_no', title: __('收货人'),operate: false,formatter(_,order){
|
|
|
let a=[]
|
|
|
a.push(`<div class="btn-order_link" data-link="${order.name}">收货人:${order.name}</div>`)
|
|
@@ -162,7 +165,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
a.push(`<div>快递单号:${order.trans_no}</div>`)
|
|
|
a.push(`<a class="btn btn-link btn-click-show-open" style="color: #00a2ff;" data-id="${order.id}" data-open="${order.open_uploaded}">查看资料</a>`)
|
|
|
return `<div style="max-width: 200px;text-align: left;" class="break-words">${a.join('')}</div>`
|
|
|
- },width:200,valign:'top',align:'left'},
|
|
|
+ },width:'20%',valign:'top',align:'left'},
|
|
|
{field: 'create_time', title: __('订单状态'),operate: false,formatter(_,order){
|
|
|
let a=[]
|
|
|
a.push(`<div class="btn-order_link" data-link="${order.name}">订单状态:</div>`)
|
|
@@ -173,7 +176,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
a.push(`<div>更新时间:${order.update_time}</div>`)
|
|
|
// a.push(`<a class="btn btn-link btn-click-show-open" style="color: #00a2ff;" data-id="${order.id}" data-open="${order.open_uploaded}">查看资料</a>`)
|
|
|
return `<div style="max-width: 200px;text-align: left;" class="break-words">${a.join('')}</div>`
|
|
|
- },width:200,valign:'top',align:'left'},
|
|
|
+ },width:'15%',valign:'top',align:'left'},
|
|
|
{field: 'create_time', title: __('生产信息'),operate: false,formatter(_,order){
|
|
|
let a=[]
|
|
|
a.push(`<div class="btn-order_link" data-link="${order.name}">生产号码:</div>`)
|
|
@@ -183,7 +186,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
a.push(`<div>物流状态:</div>`)
|
|
|
// a.push(`<a class="btn btn-link btn-click-show-open" style="color: #00a2ff;" data-id="${order.id}" data-open="${order.open_uploaded}">查看资料</a>`)
|
|
|
return `<div style="max-width: 200px;text-align: left;" class="break-words">${a.join('')}</div>`
|
|
|
- },width:200,valign:'top',align:'left'},
|
|
|
+ },width:'15%',valign:'top',align:'left'},
|
|
|
{field: 'remark', title: '失败原因&备注',operate: 'range'},
|
|
|
// {field: 'remark', title: '失败原因&备注',formatter: Table.api.formatter.datetime,addClass:'datetimerange',operate: 'range'},
|
|
|
{field: 'trans_no', title: __('Trans_no'),visible: false,operate: "like"},
|
|
@@ -191,6 +194,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
field: 'operate',
|
|
|
title: __('Operate'),
|
|
|
table: table,
|
|
|
+ width: '5%',
|
|
|
events: Table.api.events.buttons,
|
|
|
formatter: Table.api.formatter.buttons,
|
|
|
buttons:[
|
|
@@ -206,30 +210,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
return $('#table').data('add_operation');
|
|
|
}
|
|
|
},
|
|
|
- // {
|
|
|
- // name: 'detail',
|
|
|
- // text: __('退款'),
|
|
|
- // title: __('退款'),
|
|
|
- // classname: 'btn btn-xs btn-danger btn-dialog period',
|
|
|
- // url: 'mobile_order/refund?a=1',
|
|
|
- // callback: function (data) {
|
|
|
- // },
|
|
|
- // visible: function (row) {
|
|
|
- // return $('#table').data('mobile_order_refund') && row.status>0 && row.status!=90;
|
|
|
- // }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: 'detail',
|
|
|
- // text: __('发货'),
|
|
|
- // title: __('发货'),
|
|
|
- // classname: 'btn btn-xs btn-info btn-dialog period',
|
|
|
- // url: 'mobile_order/send?a=1',
|
|
|
- // callback: function (data) {
|
|
|
- // },
|
|
|
- // visible: function (row) {
|
|
|
- // return $('#table').data('mobile_order_send') && row.status>0;
|
|
|
- // }
|
|
|
- // },
|
|
|
{
|
|
|
name:'detail',
|
|
|
title:'查看物流',
|
|
@@ -240,69 +220,36 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
|
|
|
return $('#table').data('see_logistics') && row.trans_id>0 && row.trans_no
|
|
|
}
|
|
|
},
|
|
|
- // {
|
|
|
- // name: 'detail',
|
|
|
- // text: __('上架'),
|
|
|
- // title: __('上架'),
|
|
|
- // classname: 'btn btn-xs btn-success btn-dialog period',
|
|
|
- // url: 'mobile_order/mobile_up?a=1',
|
|
|
- // callback: function (data) {
|
|
|
- // if(data && data.say){
|
|
|
- // parent.layer.alert(data.say)
|
|
|
- // }
|
|
|
- // },
|
|
|
- // visible: function (row) {
|
|
|
- // return $('#table').data('auth-mobile_up') && [90].indexOf(row.status)>-1;
|
|
|
- // },
|
|
|
- // disable(row){
|
|
|
- // return row.mobile_can_up
|
|
|
- // }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: 'detail',
|
|
|
- // text: __('抖音结算'),
|
|
|
- // title: __('抖音结算'),
|
|
|
- // classname: 'btn btn-xs btn-success btn-ajax',
|
|
|
- // url: 'mobile_order/dy_settle',
|
|
|
- // confirm:'确认结算吗?',
|
|
|
- // callback: function (data) {
|
|
|
- // },
|
|
|
- // visible: function (row) {
|
|
|
- // return $('#table').data('auth-dy_settle') && row.pay_type===4 && row.pay_time>0 && row.payment && row.payment.settle_status===0;
|
|
|
- // },
|
|
|
- // disable(row){
|
|
|
- // }
|
|
|
- // },
|
|
|
- {
|
|
|
- name: 'detail',
|
|
|
- title: __('复制上传资料链接'),
|
|
|
- text: __('复制上传资料链接'),
|
|
|
- classname: 'btn btn-xs btn-info btn-copy-obj',
|
|
|
- click: function (data,row) {
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ title: __('复制上传资料链接'),
|
|
|
+ text: __('复制上传资料链接'),
|
|
|
+ classname: 'btn btn-xs btn-info btn-copy-obj',
|
|
|
+ click: function (data,row) {
|
|
|
|
|
|
- },
|
|
|
- visible: function (row) {
|
|
|
- return true;
|
|
|
- }
|
|
|
},
|
|
|
- {
|
|
|
- name: 'resubmit',
|
|
|
- title: __('重新提交'),
|
|
|
- text: __('重新提交'),
|
|
|
- classname: 'btn btn-xs btn-success btn-magic btn-ajax',
|
|
|
- confirm: '确认重新提交吗?',
|
|
|
- url: 'produceorder/resubmit',
|
|
|
- success: function (data, ret) {
|
|
|
- Layer.alert('操作成功');
|
|
|
- //如果需要阻止成功提示,则必须使用return false;
|
|
|
- //return false;
|
|
|
- },
|
|
|
- error: function (data, ret) {
|
|
|
- console.log(data, ret);
|
|
|
- Layer.alert(ret.msg);
|
|
|
- return false;
|
|
|
- }
|
|
|
+ visible: function (row) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'resubmit',
|
|
|
+ title: __('再次提交'),
|
|
|
+ text: __('再次提交'),
|
|
|
+ classname: 'btn btn-xs btn-success btn-magic btn-ajax',
|
|
|
+ confirm: '确认再次提交吗?',
|
|
|
+ url: 'produceorder/resubmit',
|
|
|
+ success: function (data, ret) {
|
|
|
+ Layer.alert('操作成功');
|
|
|
+ //如果需要阻止成功提示,则必须使用return false;
|
|
|
+ //return false;
|
|
|
},
|
|
|
+ error: function (data, ret) {
|
|
|
+ console.log(data, ret);
|
|
|
+ Layer.alert(ret.msg);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ },
|
|
|
]
|
|
|
}
|
|
|
]
|