diff --git a/src/api/maintenance/maintenance.js b/src/api/maintenance/maintenance.js
new file mode 100644
index 0000000..64557ac
--- /dev/null
+++ b/src/api/maintenance/maintenance.js
@@ -0,0 +1,67 @@
+import request from '@/utils/request';
+
+// 设备运维规则配置
+export function getMaintainConfigList(params) {
+ return request({
+ url: '/api/admin/equipment-maintain-config/index',
+ method: 'get',
+ params
+ });
+}
+
+export function getMaintainConfigDetail(params) {
+ return request({
+ url: '/api/admin/equipment-maintain-config/show',
+ method: 'get',
+ params
+ });
+}
+
+export function saveMaintainConfig(data) {
+ return request({
+ url: '/api/admin/equipment-maintain-config/save',
+ method: 'post',
+ data
+ });
+}
+
+export function deleteMaintainConfig(params) {
+ return request({
+ url: '/api/admin/equipment-maintain-config/destroy',
+ method: 'get',
+ params
+ });
+}
+
+// 设备运维记录
+export function getOperationList(params) {
+ return request({
+ url: '/api/admin/equipment-operation/index',
+ method: 'get',
+ params
+ });
+}
+
+export function getOperationDetail(params) {
+ return request({
+ url: '/api/admin/equipment-operation/show',
+ method: 'get',
+ params
+ });
+}
+
+export function saveOperation(data) {
+ return request({
+ url: '/api/admin/equipment-operation/save',
+ method: 'post',
+ data
+ });
+}
+
+export function deleteOperation(params) {
+ return request({
+ url: '/api/admin/equipment-operation/destroy',
+ method: 'get',
+ params
+ });
+}
diff --git a/src/api/stocks-item.js b/src/api/stocks-item.js
new file mode 100644
index 0000000..a0db1eb
--- /dev/null
+++ b/src/api/stocks-item.js
@@ -0,0 +1,10 @@
+import request from '@/utils/request';
+
+// 绑定/更新物资与运维规则的关系
+export function saveStocksItem(data) {
+ return request({
+ url: '/api/admin/stocks-item/save',
+ method: 'post',
+ data
+ });
+}
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 6f749c4..5449bad 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -40,31 +40,31 @@ export const constantRoutes = [{
path: '/404',
component: () => import('@/views/404'),
hidden: true
- },
- {
- path: '/stocks',
- component: () => import('@/views/stocks/index'),
- hidden: true
- },
- {
- path: '/outbounds',
- component: () => import('@/views/outbounds/index'),
- hidden: true
- },
- // {
- // path: '/inventorys',
- // component: () => import('@/views/inventorys/index'),
- // hidden: true
- // },
- // {
- // path: '/inventorys/stocks',
- // component: () => import('@/views/inventorys/stocks'),
- // hidden: true
- // },
- // {
- // path: '/inventorys/outbounds',
- // component: () => import('@/views/inventorys/outbounds'),
- // hidden: true
+ },
+ {
+ path: '/stocks',
+ component: () => import('@/views/stocks/index'),
+ hidden: true
+ },
+ {
+ path: '/outbounds',
+ component: () => import('@/views/outbounds/index'),
+ hidden: true
+ },
+ // {
+ // path: '/inventorys',
+ // component: () => import('@/views/inventorys/index'),
+ // hidden: true
+ // },
+ // {
+ // path: '/inventorys/stocks',
+ // component: () => import('@/views/inventorys/stocks'),
+ // hidden: true
+ // },
+ // {
+ // path: '/inventorys/outbounds',
+ // component: () => import('@/views/inventorys/outbounds'),
+ // hidden: true
// },
{
path: '/info',
@@ -102,8 +102,6 @@ export const constantRoutes = [{
* the routes that need to be dynamically loaded based on user roles
*/
export const asyncRoutes = [
-
-
// 404 page must be placed at the end !!!
{
path: '*',
@@ -128,4 +126,4 @@ export function resetRouter() {
router.matcher = newRouter.matcher // reset router
}
-export default router
+export default router
diff --git a/src/views/inventorys/stocktaking.vue b/src/views/inventorys/stocktaking.vue
new file mode 100644
index 0000000..946f237
--- /dev/null
+++ b/src/views/inventorys/stocktaking.vue
@@ -0,0 +1,891 @@
+
+
+
+
+
+
+
+
+
+ 关键词:
+
+
+
+ 计划日期:
+
+
+
+ 状态:
+
+
+
+
+
+
+
+
+
+
+
+ {{ getStatusText(row.status) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关键词:
+
+
+
+ 所属计划:
+
+
+
+ 状态:
+
+
+
+
+
+
+
+
+
+
+
+ {{ getInventoryStatusText(row.status) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/maintenance/maintenance_records.vue b/src/views/maintenance/maintenance_records.vue
new file mode 100644
index 0000000..499cb2b
--- /dev/null
+++ b/src/views/maintenance/maintenance_records.vue
@@ -0,0 +1,1129 @@
+
+
+
+
+
+
+
+ 仓库:
+
+
+
+ 状态:
+
+
+
+ 计划日期:
+
+ -
+
+
+
+ 关键词:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
全部记录
+
{{ stats.total }}
+
+
+
未完成
+
{{ stats.pending }}
+
+
+
已完成
+
{{ stats.completed }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.maintenance_date }}
+
+
+
+ {{ getBadgeText(scope.row.planned_maintenance_date) }}
+
+
+
+
+
+
+
+ {{ getStatusText(scope.row.status) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
diff --git a/src/views/maintenance/maintenance_rules.vue b/src/views/maintenance/maintenance_rules.vue
new file mode 100644
index 0000000..ee9ef36
--- /dev/null
+++ b/src/views/maintenance/maintenance_rules.vue
@@ -0,0 +1,783 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/storages/components/addFixAssets.vue b/src/views/storages/components/addFixAssets.vue
index 1a70304..ea878ca 100644
--- a/src/views/storages/components/addFixAssets.vue
+++ b/src/views/storages/components/addFixAssets.vue
@@ -49,8 +49,8 @@
-
+
+
+
+