yyb
2 天以前 1d24a0047b8043c85d5c27720a6f672bbc4d7238
新增保养项目字段至设备管理表单和详情页,优化设备信息展示
已修改2个文件
14 ■■■■■ 文件已修改
src/pages/equipmentManagement/upkeep/add.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/equipmentManagement/upkeep/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/equipmentManagement/upkeep/add.vue
@@ -41,6 +41,14 @@
                </template>
            </u-form-item>
            
            <u-form-item label="保养项目" prop="maintenanceLocation" border-bottom>
                <u-input
                    v-model="form.maintenanceLocation"
                    placeholder="请输入保养项目"
                    clearable
                />
            </u-form-item>
            <!-- 提交按钮 -->
            <view class="footer-btns">
                <u-button class="cancel-btn" @click="goBack">取消</u-button>
@@ -122,6 +130,7 @@
    deviceLedgerId: undefined, // 设备ID
    deviceModel: undefined, // 规格型号
    maintenancePlanTime: dayjs().format("YYYY-MM-DD"), // 计划保养日期
    maintenanceLocation: undefined, // 保养项目
});
// 加载设备列表
@@ -144,6 +153,7 @@
                form.value.deviceLedgerId = data.deviceLedgerId;
                form.value.deviceModel = data.deviceModel;
                form.value.maintenancePlanTime = dayjs(data.maintenancePlanTime).format("YYYY-MM-DD");
                form.value.maintenanceLocation = data.maintenanceLocation;
                // 设置设备名称显示
                const device = deviceOptions.value.find(item => item.id === data.deviceLedgerId);
                if (device) {
src/pages/equipmentManagement/upkeep/index.vue
@@ -55,6 +55,10 @@
              <text class="detail-value">{{ formatDate(item.maintenancePlanTime) || '-' }}</text>
            </view>
            <view class="detail-row">
              <text class="detail-label">保养项目</text>
              <text class="detail-value">{{ item.maintenanceLocation || '-' }}</text>
            </view>
            <view class="detail-row">
              <text class="detail-label">录入人</text>
              <text class="detail-value">{{ item.createUserName || '-' }}</text>
            </view>