yyb
2 天以前 1d24a0047b8043c85d5c27720a6f672bbc4d7238
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) {