yxh
6 天以前 4afb944c92aed7287cc4691fc9019f3b9faea1c0
src/views/project/unitCost/organfee/index.vue
@@ -182,7 +182,7 @@
      />
      <el-table-column
        label="操作"
        width="160"
        width="210"
        align="center"
        fixed="right"
      >
@@ -201,6 +201,13 @@
            @click="handleCharge(scope.row)"
            v-hasPermi="['project:donorchargeorgan:edit']"
            >已收费</el-button
          >
          <el-button
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['project:donorchargeorgan:edit']"
            >删除</el-button
          >
        </template>
      </el-table-column>
@@ -467,6 +474,7 @@
  listDonorchargeorgan,
  addDonorchargeorgan,
  updateDonorchargeorgan,
  delDonorchargeorgan,
  exportOrganfee
} from "@/api/project/donorcharge";
import { listOrganization } from "@/api/project/organization";
@@ -650,6 +658,20 @@
        })
        .catch(() => {});
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      this.$modal
        .confirm('是否确认删除器官费用编号为"' + row.id + '"的数据项?')
        .then(() => delDonorchargeorgan(row.id))
        .then(() => {
          this.$modal.msgSuccess("删除成功");
          if (this.currentRow && this.currentRow.id === row.id) {
            this.currentRow = null;
          }
          this.getList();
        })
        .catch(() => {});
    },
    /** 表格当前行变化 */
    handleCurrentChange(row) {
      this.currentRow = row;