src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
@@ -202,15 +202,10 @@
      </span></template>
    </el-dialog>
    <el-dialog v-model="downloadDialog" title="导出" width="600px">
      <div class="down-row">
        <span>1、仪器设备期间核查记录表(核查记录)</span>
        <el-button type="primary" :loading="outLoading" :disabled="!downRow.recordStatus" @click="controlDown">导 出</el-button>
      </div>
      <div class="down-row">
        <span>2、仪器设备期间核查比对记录表(比对记录)</span>
        <el-button type="primary" :loading="outLoading" :disabled="!downRow.recordContrastStatus" @click="processingDown">导 出</el-button>
      </div>
      <div class="down-tip">置灰表示对应记录尚未录入(状态为"未开始"),请先点"记录"/"对比"录入后再导出</div>
      <span>
        <el-button :loading="outLoading" type="primary" :disabled="!downRow.recordStatus" @click="controlDown">核查记录</el-button>
        <el-button :loading="outLoading" type="primary" :disabled="!downRow.recordContrastStatus" @click="processingDown">核查比对记录</el-button>
      </span>
      <template #footer><span  class="dialog-footer">
        <el-button @click="downloadDialog = false">取 消</el-button>
      </span></template>
@@ -254,10 +249,12 @@
} from '@/api/cnas/resourceDemand/device.js'
import { selectUserCondition } from "@/api/performance/class";
import { mapGetters } from "@/utils/store-compat";
import draftSave from '@/mixins/draftSave'
export default {
  name: "equipment-verification-plan",
  // import 引入的组件需要注入到对象中才能使用
  components: { AddVerificationYearPlanDia, CheckRecord, EquipmentCheck },
  mixins: [draftSave],
  props: {
    clickNodeVal: {
      type: Object,
@@ -500,6 +497,9 @@
      if (this.operationType !== 'add') {
        this.$nextTick(() => {
          this.form = this.HaveJson(row)
          if (this.operationType !== 'view') {
            this.draftRestore('equipmentVerificationPlan', 'form', this.form.planDetailsId, 'dialogVisible')
          }
        })
      } else {
        this.form = {
@@ -515,6 +515,7 @@
          planId: this.currentRow.planId,
          planDetailsId: '',
        }
        this.draftRestore('equipmentVerificationPlan', 'form', this.form.planId, 'dialogVisible')
      }
    },
    // 提交表单
@@ -526,6 +527,7 @@
            addDeviceExaminePlanDetail(this.form).then(res => {
              if (res.code == 200) {
                this.$message.success('新增成功')
                this.draftClear('equipmentVerificationPlan')
                this.dialogVisible = false
                this.getYearTableData()
              }
@@ -538,6 +540,7 @@
            updateDeviceExaminePlanDetail(this.form).then(res => {
              if (res.code == 200) {
                this.$message.success('新增成功')
                this.draftClear('equipmentVerificationPlan')
                this.dialogVisible = false
                this.getYearTableData()
              }
@@ -569,6 +572,7 @@
      })
    },
    resetForm() {
      this.draftStop('equipmentVerificationPlan')
      this.$refs.modelForm.resetFields();
      this.dialogVisible = false
    },
@@ -717,19 +721,5 @@
  height: 16px;
  background-color: var(--el-color-primary);
  border-radius: 2px;
}
.down-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid #ebeef5;
}
.down-tip {
  margin-top: 10px;
  color: #909399;
  font-size: 12px;
}
</style>