App设备管理确认

This commit is contained in:
huangchenhao 2025-11-24 12:01:28 +08:00
parent e7a73caf04
commit bc9e0d642c

View File

@ -698,38 +698,6 @@
/> />
</van-popup> </van-popup>
<!-- 设备管理员弹窗 -->
<van-popup
:show="showAdminPicker"
round
position="bottom"
close-on-click-overlay
@close="showAdminPicker = false"
>
<van-picker
title="选择设备管理员"
:columns="adminOptions"
@confirm="onAdminConfirm"
@cancel="showAdminPicker = false"
/>
</van-popup>
<!-- 操作员弹窗 -->
<van-popup
:show="showOperatorPicker"
round
position="bottom"
close-on-click-overlay
@close="showOperatorPicker = false"
>
<van-picker
title="选择操作员"
:columns="operatorOptions"
@confirm="operatorConfirm"
@cancel="showOperatorPicker = false"
/>
</van-popup>
<!-- 购置日期弹窗 --> <!-- 购置日期弹窗 -->
<van-popup <van-popup
:show="showTimePicker" :show="showTimePicker"
@ -800,6 +768,38 @@
</van-button> </van-button>
</div> </div>
</van-popup> </van-popup>
<!-- 设备管理员弹窗 -->
<van-popup
:show="showAdminPicker"
round
position="bottom"
close-on-click-overlay
@close="showAdminPicker = false"
>
<van-picker
title="选择设备管理员"
:columns="adminOptions"
@confirm="onAdminConfirm"
@cancel="showAdminPicker = false"
/>
</van-popup>
<!-- 操作员弹窗 -->
<van-popup
:show="showOperatorPicker"
round
position="bottom"
close-on-click-overlay
@close="showOperatorPicker = false"
>
<van-picker
title="选择操作员"
:columns="operatorOptions"
@confirm="operatorConfirm"
@cancel="showOperatorPicker = false"
/>
</van-popup>
</div> </div>
</template> </template>
@ -1057,15 +1057,14 @@ const getPersonList = async () => {
// //
const onEditPopupOpen = async () => { const onEditPopupOpen = async () => {
await getPersonList(); await getPersonList();
Object.assign(editForm, { editForm.equipment = JSON.parse(JSON.stringify(equipmentDetailInfo.value));
equipment: equipmentDetailInfo.value, editForm.photos = [...photos.value];
photos: photos.value,
});
fileList.value = photos.value.map((photo) => ({ fileList.value = photos.value.map((photo) => ({
url: photo.photoUrl, // URL url: photo.photoUrl,
status: "done", // status: "done",
message: "上传成功", // message: "上传成功",
serverUrl: photo.photoUrl, // URL serverUrl: photo.photoUrl,
})); }));
showEditPopup.value = true; showEditPopup.value = true;
}; };
@ -1332,17 +1331,15 @@ const notYHZConfirm = async () => {
const addToThisYHZPupup = ref(false); const addToThisYHZPupup = ref(false);
const addToThisYHZPopupOpen = async () => { const addToThisYHZPopupOpen = async () => {
await getPersonList(); await getPersonList();
Object.assign(editForm, { editForm.equipment = JSON.parse(JSON.stringify(equipmentDetailInfo.value));
equipment: equipmentDetailInfo.value, editForm.photos = [...photos.value];
photos: photos.value,
});
fileList.value = photos.value.map((photo) => ({
url: photo.photoUrl, // URL
status: "done", //
message: "上传成功", //
serverUrl: photo.photoUrl, // URL
}));
fileList.value = photos.value.map((photo) => ({
url: photo.photoUrl,
status: "done",
message: "上传成功",
serverUrl: photo.photoUrl,
}));
addToThisYHZPupup.value = true; addToThisYHZPupup.value = true;
}; };
const addToThisYHZPopupClose = () => { const addToThisYHZPopupClose = () => {