gaoluyang
2 天以前 6ae6ee885f0acb59f4c8b2d2439fb58a0a345701
src/views/CNAS/resourceDemand/device/component/check.vue
@@ -23,10 +23,13 @@
        </el-table-column>
        <el-table-column label="核查证书编号" min-width="150" prop="certificateSerialNumber"></el-table-column>
        <el-table-column label="说明" min-width="150" prop="remark" show-overflow-tooltip></el-table-column>
        <el-table-column label="核查日期" min-width="150" prop="calibrationDate"></el-table-column>
        <el-table-column label="下次核查日期" min-width="150" prop="nextCalibrationDate"></el-table-column>
        <el-table-column label="核查日期" min-width="150" prop="calibrationDate"
          :formatter="formatDateCell"></el-table-column>
        <el-table-column label="下次核查日期" min-width="150" prop="nextCalibrationDate"
          :formatter="formatDateCell"></el-table-column>
        <el-table-column label="登记人" min-width="150" prop="createUser"></el-table-column>
        <el-table-column label="登记日期" min-width="150" prop="createTime"></el-table-column>
        <el-table-column label="登记日期" min-width="150" prop="createTime"
          :formatter="formatDateCell"></el-table-column>
        <el-table-column fixed="right" label="操作" min-width="150">
          <template #default="{ row }">
            <el-button size="small" link type="primary" @click="handleAttachmentClick(row)">附件</el-button>
@@ -87,7 +90,7 @@
        <el-table-column label="最大允许误差" prop="maxPermissibleError"></el-table-column>
        <el-table-column label="判定标准" prop="judgmentCriteria"></el-table-column>
        <el-table-column label="创建人" prop="createdBy"></el-table-column>
        <el-table-column label="创建时间" prop="creationTime"></el-table-column>
        <el-table-column label="创建时间" prop="creationTime" :formatter="formatDateCell"></el-table-column>
        <el-table-column fixed="right" label="操作">
          <template #default="scope">
            <el-button size="small" link type="primary" @click="handleDelete(scope.row)">删除</el-button>
@@ -250,10 +253,9 @@
<script>
import file from '@/utils/file';
import { mapGetters } from "@/utils/store-compat";
import draftSave from '@/mixins/draftSave'
import { formatListDate } from './dateFormat';
export default {
  components: {},
  mixins: [draftSave],
  props: {
    clickNodeVal: {
      type: Object,
@@ -342,6 +344,9 @@
    this.getTableList(this.clickNodeVal.value) // 获取设备核查列表数据
  },
  methods: {
    formatDateCell(row, column, cellValue) {
      return formatListDate(cellValue)
    },
    //状态判定
    checkRadio() {
      let resultList = this.calibrateParams.map(ele => ele.result)
@@ -387,7 +392,6 @@
    // 校准项目维护
    calibrationMaintenance() {
      this.dialogVisible0 = true
      this.draftRestore('checkMaintenanceDia', 'form0', this.clickNodeVal.value, 'dialogVisible0')
      this.getXmsg();
    },
    addCalibrate() {
@@ -406,7 +410,6 @@
          }).then(res => {
            if (res.code == 200) {
              this.$message.success('保存成功')
              this.draftClear('checkMaintenanceDia')
              this.$refs['form0'].resetFields()
              this.getXmsg() // 刷新设备校准参数表格
            }
@@ -451,7 +454,6 @@
            }).then(res => {
              if (res.code == 200) {
                this.$message.success('添加成功')
                this.draftClear('checkAddRecordDia')
                this.dialogVisible1 = false
                this.getTableList(this.clickNodeVal.value)
              }
@@ -467,7 +469,6 @@
      })
    },
    resetcalibrationRecord() {
      this.draftStop('checkAddRecordDia')
      this.$refs.calibrationRecord.resetFields()
    },
    // 附件上传
@@ -524,7 +525,6 @@
    add(type) {
      this.operationType = type
      this.dialogVisible1 = true
      this.draftRestore('checkAddRecordDia', 'calibrationRecord', this.clickNodeVal.value, 'dialogVisible1')
      this.getXmsg()
    },
    // 查看详情