diff --git a/api.js b/api.js
index d5db354..546fc55 100644
--- a/api.js
+++ b/api.js
@@ -131,6 +131,54 @@ export function getInventoryMaterialList(data) {
})
}
+// 运维记录
+export function getMaintenanceRecord(data) {
+ const token = uni.getStorageSync('token')
+ return new Promise((resolve, reject) => {
+ uni.request({
+ url: BASE_API + 'api/admin/equipment-operation/index',
+ method: 'GET',
+ data: {
+ ...data,
+ token
+ },
+ success: resolve,
+ fail: reject
+ })
+ })
+}
+// 查看运维记录
+export function getMaintenanceRecordDetail(id) {
+ const token = uni.getStorageSync('token')
+ return new Promise((resolve, reject) => {
+ uni.request({
+ url: BASE_API + 'api/admin/equipment-operation/show',
+ method: 'GET',
+ data: { id, token },
+ success: resolve,
+ fail: reject
+ })
+ })
+}
+
+
+// 提交运维记录
+export function submitMaintenanceRecord(data) {
+ const token = uni.getStorageSync('token')
+ return new Promise((resolve, reject) => {
+ uni.request({
+ url: BASE_API + 'api/admin/equipment-operation/save',
+ method: 'POST',
+ data: {
+ ...data,
+ token
+ },
+ success: resolve,
+ fail: reject
+ })
+ })
+}
+
// 文件上传接口
export function uploadFile(filePath) {
const token = uni.getStorageSync('token')
diff --git a/pages/inventory/inventory.vue b/pages/inventory/inventory.vue
index 2b37b82..129782b 100644
--- a/pages/inventory/inventory.vue
+++ b/pages/inventory/inventory.vue
@@ -115,15 +115,91 @@
{{ maintenanceFrequency }}
-
+
+
+
+
+
+
+ 运维记录
+
+
+
+ 记录编号:
+ {{record.no || '-'}}
+
+
+ 计划维护日期:
+ {{formatDate(record.planned_maintenance_date) || '-'}}
+
+
+ 截止日期:
+ {{formatDate(record.end_date) || '-'}}
+
+
+ 负责人:
+ {{record.responsible_admin?record.responsible_admin.name : '-'}}
+
+
+ 运维内容:
+
+
+ {{ record.equipment_maintain_config.name }}
+
+
+ {{ record.content }}
+
+ -
+
+
+
+ 状态:
+ {{record.status === 1 ? '已完成' : '待处理'}}
+
+
+ 实际维护日期/状态:
+
+ {{formatDate(record.maintenance_date) || '-'}}
+
+ {{ getBadgeText(record.end_date) }}
+
+
+
+
+
+
+
+
+
+
+ 暂无运维记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
盘点数量
-
+
盘点备注
-
+
照片上传
@@ -138,13 +214,156 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 计划维护日期:
+ {{ formatDate(currentRecord.planned_maintenance_date) || '-' }}
+
+
+ 实际维护日期:
+ {{ formatDate(currentRecord.maintenance_date) || '-' }}
+
+
+ 负责人:
+ {{ currentRecord.responsible_admin?currentRecord.responsible_admin.name : '-' }}
+
+
+ 运维内容:
+ {{ currentRecord.content || '-' }}
+
+
+ 维护备注:
+ {{ currentRecord.maintenance_content || '-' }}
+
+
+ 维护照片:
+
+ f.url))"
+ />
+
+ -
+
+
+ 签名照片:
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 实际维护日期
+
+
+
+ {{ completeForm.actual_date || '请选择实际维护日期' }}
+
+
+
+
+
+
+ 维护备注
+
+
+
+
+ 上传图片
+
+
+
+
+ ×
+
+
+
+
+
+
+
+ 签名
+
+
+
+
+
+
+
+
+
+