diff --git a/src/views/mes/deviceledger/detail/editIndex.vue b/src/views/mes/deviceledger/detail/editIndex.vue index b8adc3db..067675be 100644 --- a/src/views/mes/deviceledger/detail/editIndex.vue +++ b/src/views/mes/deviceledger/detail/editIndex.vue @@ -12,22 +12,17 @@ v-loading="formLoading || fileUploading" :element-loading-text="t('common.loading')" > - - - - - - - + + - - + + - -
+ +
@@ -72,57 +67,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + -
- - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + - - - - + +
+ +
+ {{ t('EquipmentManagement.EquipmentLedger.images') }} + +
+
+ +
+ {{ t('EquipmentManagement.EquipmentLedger.qrcode') }} +
+ +
+
+
+
@@ -135,19 +163,6 @@ /> - - - - - @@ -1157,13 +1172,76 @@ onBeforeUnmount(() => { } .device-ledger-detail-main { - display: flex; min-height: 224px; - //padding: 18px 0; + padding-top: 12px; margin-bottom: 10px; gap: 28px; box-sizing: border-box; +} + +.device-ledger-detail-main :deep(.el-form) { + width: 100%; +} + +.device-basic-layout { + align-items: flex-start; +} + +.device-basic-fields { + min-width: 0; +} + +.device-code-row { + width: 100%; +} + +.device-code-switch { + display: flex; align-items: center; + height: 32px; +} + +.device-basic-media { + display: flex; + justify-content: flex-end; +} + +.device-media-panel { + width: 100%; + max-width: 260px; + padding: 12px 12px 4px; + box-sizing: border-box; + border: 1px solid var(--el-border-color-lighter); + border-radius: 6px; + background: var(--el-fill-color-extra-light); +} + +.device-media-item { + margin-bottom: 16px; +} + +.device-media-item :deep(.el-form-item__label) { + justify-content: flex-start; +} + +.device-media-item :deep(.el-form-item__content) { + justify-content: center; +} + +.device-media-upload { + width: 100%; + min-height: 120px; +} + +.device-media-code { + width: 148px; + height: 148px; +} + +.device-media-code :deep(.qrcode-action-card__img), +.device-media-code :deep(.qrcode-action-card__error) { + width: 148px; + height: 148px; } .device-ledger-detail-tabs { @@ -1198,11 +1276,34 @@ onBeforeUnmount(() => { background: var(--el-bg-color); box-shadow: 0 -4px 12px rgb(0 0 0 / 6%); } - +@media (max-width: 1199px) { + .device-basic-media { + justify-content: flex-start; + } + .device-media-panel { + max-width: none; + } +} +@media (max-width: 767px) { + .device-basic-fields :deep(.el-col) { + max-width: 100%; + flex: 0 0 100%; + } + .device-code-row :deep(.el-col:first-child) { + max-width: 75%; + flex: 0 0 75%; + } + + .device-code-row :deep(.el-col:last-child) { + max-width: 25%; + flex: 0 0 25%; + } +} +