|
@@ -74,6 +74,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return table.data('operate-detail');
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name: 'edit',
|
|
|
+ text: __('上传发票'),
|
|
|
+ title: __('上传发票'),
|
|
|
+ classname: 'btn btn-xs btn-warning btn-dialog',
|
|
|
+ icon: 'fa',
|
|
|
+ url: 'orders/tax',
|
|
|
+ callback: function (data) {
|
|
|
+ //Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
+ $('.btn-refresh').trigger('click')
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ //返回true时按钮显示,返回false隐藏
|
|
|
+ return !row.tax_link && row.tax && table.data('operate-tax');
|
|
|
+ }
|
|
|
+ },
|
|
|
]}
|
|
|
]
|
|
|
]
|
|
@@ -88,6 +104,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
send: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ tax: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|