zhaowei
2025-03-06 ddd818f74d59c1fdeeed29714d660d7e49200c04
src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderReportDrawerList.vue
@@ -19,6 +19,7 @@
        @click="handleAdd"
        type="primary"
        icon="plus"
        :disabled="buttonDistable"
      >新增</a-button>
      <a-table
        ref="table"
@@ -43,7 +44,10 @@
          slot="action"
          slot-scope="text, record"
        >
          <a @click="handleEdit(record)">编辑</a>
          <a
            :disabled="buttonDistable"
            @click="handleEdit(record)"
          >编辑</a>
          <a-divider type="vertical" />
          <Tooltip
@@ -66,6 +70,7 @@
            v-if="record.upload.path && record.upload.format.toLowerCase()=='pdf'"
            href="javascript:;"
            @click="view(record)"
            :disabled="buttonDistable"
          >
            预览
          </a>
@@ -78,6 +83,7 @@
          <a
            href="javascript:;"
            @click="handleDownload(record)"
            :disabled="buttonDistable"
          >下载</a>
          <a-divider type="vertical" />
@@ -85,7 +91,7 @@
            title="确定删除吗?"
            @confirm="() => handleDelete(record.id)"
          >
            <a>删除</a>
            <a :disabled="buttonDistable">删除</a>
          </a-popconfirm>
        </span>
@@ -133,6 +139,11 @@
    calibrationOrderId: {
      type: String,
      default: '-1',
      required: false
    },
    buttonDistable: {
      type: Boolean,
      default: 'false',
      required: false
    }
  },
@@ -188,7 +199,7 @@
        {
          title: '判定结果',
          align: 'center',
          dataIndex: 'judgmentResultName'
          dataIndex: 'judgmentResult_dicText'
        },
        {
          title: '操作',
@@ -216,7 +227,7 @@
    handleAdd: function () {
      this.$refs.modalForm.add(this.calibrationOrderId);
      this.$refs.modalForm.title = "上传检定报告";
      this.$refs.modalForm.title = "上传鉴定报告";
      this.$refs.modalForm.disableSubmit = false;
    },