yxh
2026-10-18 1446994d504819c367e1ff667360eadb314f9ac6
src/views/ecg/doctor/DevDismantle.vue
@@ -75,10 +75,19 @@
        <el-input v-model="formData.remark" placeholder="请输入备注" />
      </el-form-item>
    </el-form>
    <el-button @click="submitForm" type="primary" :disabled="formLoading">拆机完成</el-button>
    <el-button @click="resetForm()">重 置</el-button>
    <el-button @click="loseDismantle" :disabled="formLoading">遗 失</el-button>
    <el-button @click="damageDismantle" :disabled="formLoading">损 毁</el-button>
    <!-- 【本次需求】操作功能区:与其它三个工作台同款容器(浅主色底 + 左侧主色竖条) -->
    <div class="patient-actions">
      <el-button @click="submitForm" type="primary" :disabled="formLoading">拆机完成</el-button>
      <el-button @click="resetForm()">重 置</el-button>
      <el-button @click="loseDismantle" :disabled="formLoading">遗 失</el-button>
      <el-button @click="damageDismantle" :disabled="formLoading">损 毁</el-button>
    </div>
  <!-- 【本次需求】操作功能区与已完成记录之间的标题栏(与检查/领用/装机三个工作台同款) -->
  <div class="records-title">
    <span class="records-title__bar"></span>
    <span class="records-title__text">已完成列表</span>
  </div>
  <!-- 医生拆机列表 -->
  <ContentWrap>
@@ -400,6 +409,75 @@
</script>
<style scoped lang="scss">
/*
  【本次需求】按钮统一尺寸 / 字号(与其它三个工作台一致;本页不使用 DoctorPageLayout)
  普通按钮 32px / 14px 字;表格内行内按钮 28px / 13px 字;链接式按钮只放大字号。
*/
.patient-actions :deep(.el-button) {
  height: 32px;
  padding: 0 14px;
  font-size: 14px;
}
.el-table :deep(.el-button:not(.is-link)) {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
.patient-actions :deep(.el-button.is-link),
.el-table :deep(.el-button.is-link) {
  height: auto;
  padding: 0 4px;
  font-size: 14px;
}
/*
  【本次需求】操作功能区:与检查/领用/装机三个工作台完全一致 ——
  极浅主色底 + 细边框 + 左侧 3px 主色竖条(与「已完成列表」标题条同款语言)。
*/
.patient-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  margin: 2px 0 10px;
  background-color: var(--el-color-primary-light-9);
  border: 1px solid var(--el-color-primary-light-7);
  border-left: 3px solid var(--el-color-primary);
  border-radius: 4px;
  /* Element Plus 给相邻 el-button 默认加了 margin-left:12px,会与 gap 叠加,清掉 */
  :deep(.el-button + .el-button) {
    margin-left: 0;
  }
}
/* 【本次需求】「已完成列表」标题栏:与检查/领用/装机三个工作台完全一致
   (左侧主色竖线 + 14px 加粗,紧凑高度不挤压表格) */
.records-title {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
  padding: 2px 0 6px;
  &__bar {
    width: 3px;
    height: 14px;
    background-color: var(--el-color-primary);
    border-radius: 2px;
  }
  &__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--el-text-color-primary);
  }
}
/* ==========================================================================
   需求:表单内容挤占了下方记录表格的空间 —— 压缩行间距。
   Element Plus 默认 `.el-form-item { margin-bottom: 18px }`;