|
@@ -12,6 +12,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
multi_url: 'goods/multi',
|
|
|
import_url: 'goods/import',
|
|
|
bind_url: 'goods/bind_goods',
|
|
|
+ statistics_url: 'goods/goods_statistics',
|
|
|
table: 'goods',
|
|
|
}
|
|
|
});
|
|
@@ -53,6 +54,20 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return true;
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ text: __('数据统计'),
|
|
|
+ title: __('数据统计'),
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ icon: 'fa',
|
|
|
+ url: extend.statistics_url,
|
|
|
+ extend:`data-area='["700px","80%"]'`,
|
|
|
+ callback: function (data) {
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
]}
|
|
|
]
|
|
|
],
|
|
@@ -79,6 +94,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
this.editor()
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ goods_statistics(){
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
editor(){
|
|
|
$('.btnAddSku').click(function (){
|
|
|
let a=$($('.skuItem')[0].outerHTML),key=Date.now()
|