继续重构模块列表前端样式

This commit is contained in:
2021-03-17 03:15:10 +08:00
parent 181fa17fdd
commit cd3a44340e
192 changed files with 3321 additions and 4596 deletions
@@ -34,6 +34,15 @@ class AllocationController extends WorkflowController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => 0],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Allocation::$tabs;
$header['bys'] = Allocation::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -55,16 +64,6 @@ class AllocationController extends WorkflowController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
//['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Allocation::$tabs;
$header['bys'] = Allocation::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
+13 -14
View File
@@ -32,6 +32,19 @@ class CancelController extends WorkflowController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => 0],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['left_buttons'] = [
['name' => '批量编辑', 'color' => 'default', 'icon' => 'fa-pencil-square-o', 'action' => 'batchEdit', 'display' => $this->access['batchEdit']],
];
$header['cols'] = $cols;
$header['tabs'] = Cancel::$tabs;
$header['bys'] = Cancel::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,20 +66,6 @@ class CancelController extends WorkflowController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
//['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['left_buttons'] = [
['name' => '批量编辑', 'color' => 'default', 'icon' => 'fa-pencil-square-o', 'action' => 'batchEdit', 'display' => $this->access['batchEdit']],
];
$header['cols'] = $cols;
$header['tabs'] = Cancel::$tabs;
$header['bys'] = Cancel::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -31,6 +31,13 @@ class CategoryController extends DefaultController
'display' => $this->access['edit'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = StockCategory::$tabs;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,15 +60,6 @@ class CategoryController extends DefaultController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = StockCategory::$tabs;
$header['bys'] = StockCategory::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -49,6 +49,17 @@ class DeliveryController extends WorkflowController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['left_buttons'] = [
['name' => '批量编辑', 'color' => 'default', 'icon' => 'fa-pencil-square-o', 'action' => 'batchEdit', 'display' => $this->access['batchEdit']],
];
$header['cols'] = $cols;
$header['tabs'] = Delivery::$tabs;
$header['bys'] = Delivery::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -95,19 +106,6 @@ class DeliveryController extends WorkflowController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['left_buttons'] = [
['name' => '批量编辑', 'color' => 'default', 'icon' => 'fa-pencil-square-o', 'action' => 'batchEdit', 'display' => $this->access['batchEdit']],
];
$header['cols'] = $cols;
$header['tabs'] = Delivery::$tabs;
$header['bys'] = Delivery::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -130,6 +128,14 @@ class DeliveryController extends WorkflowController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Delivery::$tabs2;
$header['bys'] = Delivery::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -167,15 +173,6 @@ class DeliveryController extends WorkflowController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Delivery::$tabs2;
$header['bys'] = Delivery::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -32,6 +32,14 @@ class DirectController extends WorkflowController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Direct::$tabs;
$header['bys'] = Direct::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,15 +61,6 @@ class DirectController extends WorkflowController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Direct::$tabs;
$header['bys'] = Direct::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -31,6 +31,13 @@ class LocationController extends DefaultController
'display' => $this->access['edit'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = WarehouseLocation::$tabs;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,15 +60,6 @@ class LocationController extends DefaultController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
//['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = WarehouseLocation::$tabs;
$header['bys'] = WarehouseLocation::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -21,17 +21,26 @@ class Record01Controller extends AuditController
$header = Grid::header([
'code' => 'stock_record01',
'referer' => 1,
'search' => ['by' => ''],
'search' => ['by' => ''],
]);
$cols = $header['cols'];
$cols['actions']['options'] = [[
'name' => '显示',
'action' => 'show',
'action' => 'show',
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => 0],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record01::$tabs;
$header['bys'] = Record01::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,16 +62,6 @@ class Record01Controller extends AuditController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
//['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record01::$tabs;
$header['bys'] = Record01::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -32,6 +32,15 @@ class Record08Controller extends AuditController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => 0],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record08::$tabs;
$header['bys'] = Record08::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,16 +62,6 @@ class Record08Controller extends AuditController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
//['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record08::$tabs;
$header['bys'] = Record08::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -32,6 +32,15 @@ class Record09Controller extends WorkflowController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => 0],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record09::$tabs;
$header['bys'] = Record09::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,16 +62,6 @@ class Record09Controller extends WorkflowController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
//['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record09::$tabs;
$header['bys'] = Record09::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -32,6 +32,15 @@ class Record10Controller extends WorkflowController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => 0],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record10::$tabs;
$header['bys'] = Record10::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,16 +62,6 @@ class Record10Controller extends WorkflowController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
//['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record10::$tabs;
$header['bys'] = Record10::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -21,7 +21,7 @@ class Record11Controller extends AuditController
$header = Grid::header([
'code' => 'stock_record11',
'referer' => 1,
'search' => ['by' => ''],
'search' => ['by' => ''],
]);
$cols = $header['cols'];
@@ -32,6 +32,14 @@ class Record11Controller extends AuditController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record11::$tabs;
$header['bys'] = Record11::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,15 +61,6 @@ class Record11Controller extends AuditController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Record11::$tabs;
$header['bys'] = Record11::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -31,6 +31,14 @@ class TypeController extends DefaultController
'display' => $this->access['edit'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = StockType::$tabs;
$header['bys'] = StockType::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -53,15 +61,6 @@ class TypeController extends DefaultController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = StockType::$tabs;
$header['bys'] = StockType::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);