Fix Bug #577: AI修复
This commit is contained in:
@@ -61,11 +61,12 @@ const removeFromSelected = (item) => {
|
||||
|
||||
const submitRequest = async () => {
|
||||
try {
|
||||
await submitLabRequest(selectedItems.value);
|
||||
await submitLabRequest(selectedItems.value.map(i => i.id));
|
||||
ElMessage.success('检验申请提交成功');
|
||||
visible.value = false;
|
||||
selectedItems.value = [];
|
||||
} catch (error) {
|
||||
ElMessage.error('提交失败,请重试');
|
||||
ElMessage.error('提交申请失败');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -73,11 +74,10 @@ defineExpose({ visible, fetchItems });
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.apply-container { display: flex; gap: 20px; height: 450px; }
|
||||
.apply-container { display: flex; gap: 20px; height: 400px; }
|
||||
.left-panel, .right-panel { flex: 1; display: flex; flex-direction: column; }
|
||||
.item-list { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto; border: 1px solid #ebeef5; border-radius: 4px; }
|
||||
.item-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f2f6fc; cursor: pointer; transition: background 0.2s; }
|
||||
.item-row:hover { background: #f5f7fa; }
|
||||
.item-name { font-weight: 500; flex: 1; }
|
||||
.price-unit { color: #606266; font-size: 13px; margin-right: 10px; white-space: nowrap; }
|
||||
.item-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; border: 1px solid #eee; }
|
||||
.item-row { padding: 10px; border-bottom: 1px solid #f0f0f0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
|
||||
.item-row:hover { background-color: #f5f7fa; }
|
||||
.price-unit { color: #e6a23c; font-weight: bold; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user