|
|
@@ -21,8 +21,8 @@ import Filter from '../../components/filterTable/index.vue';
|
|
|
import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
import { queryTableList } from '../../../setup';
|
|
|
import { handleInitTypeAndTime } from '@/views/report/setup';
|
|
|
-import { qryAreaSpotplReport } from '@/services/go/ermcp/report';
|
|
|
-import { Ermcp3AreaSpotPLReport } from '@/services/go/ermcp/report/interface';
|
|
|
+import { qryAreaSpotplReport, qryAreaStockReport } from '@/services/go/ermcp/report';
|
|
|
+import { Ermcp3AreaSpotPLReport, Ermcp3AreaStockReport } from '@/services/go/ermcp/report/interface';
|
|
|
import { TypeAndTime } from '@/views/report/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
@@ -40,16 +40,16 @@ export default defineComponent({
|
|
|
// // 表格操作按钮列表
|
|
|
// const { commonBtn, forDataBtn } = getBtnList('warehouse_info_normal', true);
|
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList<Ermcp3AreaSpotPLReport>(qryAreaSpotplReport);
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<Ermcp3AreaStockReport>(qryAreaStockReport);
|
|
|
initData(() => {
|
|
|
const { getInitTime, getInitType } = handleInitTypeAndTime();
|
|
|
// 获取列表数据
|
|
|
- queryTable({ cycletype: getInitType(), cycletime: getInitTime() });
|
|
|
+ queryTable({ cycletype: getInitType(), cycletime: getInitTime() }, { sumfields: '2' });
|
|
|
// 注册表头信息 过滤
|
|
|
registerColumn('table_pcweb_warehouse_category_report', []);
|
|
|
});
|
|
|
function update(value: TypeAndTime) {
|
|
|
- queryTable(value);
|
|
|
+ queryTable(value, { sumfields: '2' });
|
|
|
}
|
|
|
// 查询
|
|
|
function search(value: any) {
|