WXL
3 天以前 4c9fdc87987140e8b2c3f0dfc2f6608cdb6be774
src/views/business/OrganUtilization/index.vue
@@ -10,7 +10,7 @@
      >
        <el-form-item label="住院号" prop="inpatientno">
          <el-input
            v-model="queryParams.inpatientno"
            v-model="queryParams.caseNo"
            placeholder="请输入住院号"
            clearable
            style="width: 200px"
@@ -26,17 +26,17 @@
            @keyup.enter.native="handleQuery"
          />
        </el-form-item>
        <el-form-item label="记录状态" prop="recordstate">
        <el-form-item label="利用状态" prop="completeState">
          <el-select
            v-model="queryParams.recordstate"
            placeholder="请选择记录状态"
            v-model="queryParams.completeState"
            placeholder="请选择利用状态"
            clearable
            style="width: 200px"
          >
            <el-option label="已完成" value="completed" />
            <el-option label="进行中" value="processing" />
            <el-option label="待处理" value="pending" />
            <el-option label="已关闭" value="closed" />
            <el-option label="待利用" value="1" />
            <el-option label="进行中" value="2" />
            <el-option label="已完成" value="3" />
            <el-option label="放弃" value="4" />
          </el-select>
        </el-form-item>
        <el-form-item>
@@ -92,18 +92,7 @@
          prop="inpatientno"
          width="120"
        />
        <el-table-column
          label="案例编号"
          align="center"
          prop="caseNo"
          width="120"
        />
        <el-table-column
          label="捐献者姓名"
          align="center"
          prop="name"
          width="120"
        />
        <el-table-column label="姓名" align="center" prop="name" width="120" />
        <el-table-column label="性别" align="center" prop="sex" width="80">
          <template slot-scope="scope">
            <dict-tag
@@ -113,7 +102,12 @@
          </template>
        </el-table-column>
        <el-table-column label="年龄" align="center" prop="age" width="80" />
        <el-table-column label="血型" align="center" prop="bloodtype" width="80">
        <el-table-column
          label="血型"
          align="center"
          prop="bloodtype"
          width="80"
        >
          <template slot-scope="scope">
            <dict-tag
              v-if="scope.row.bloodtype"
@@ -121,6 +115,39 @@
              :value="scope.row.bloodtype"
            />
            <span v-else>-</span>
          </template>
        </el-table-column>
        <el-table-column
          label="疾病诊断"
          align="center"
          prop="diagnosisname"
          width="200"
          show-overflow-tooltip
        />
        <el-table-column
          label="捐献类型"
          align="center"
          prop="donationcategory"
          width="180"
        >
          <template slot-scope="scope">
            <dict-tag
              :options="dict.type.sys_DonationCategory"
              :value="scope.row.donationcategory"
            />
          </template>
        </el-table-column>
        <el-table-column
          label="利用状态"
          align="center"
          prop="recordstate"
          width="100"
        >
          <template slot-scope="scope">
            <dict-tag
              :options="dict.type.utilize_statue"
              :value="scope.row.completeState"
            />
          </template>
        </el-table-column>
        <el-table-column
@@ -154,24 +181,18 @@
            <span>{{ scope.row.responsibleusername || "-" }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="记录状态"
          label="捐献编号"
          align="center"
          prop="recordstate"
          width="100"
        >
          <template slot-scope="scope">
               <dict-tag
              :options="dict.type.utilize_statue"
              :value="scope.row.completeState"
            />
          </template>
        </el-table-column>
          prop="caseNo"
          width="220"
        />
        <el-table-column
          label="操作"
          fixed="right"
          align="center"
          width="210"
          width="120"
          class-name="small-padding fixed-width"
        >
          <template slot-scope="scope">
@@ -179,24 +200,17 @@
              size="mini"
              type="text"
              icon="el-icon-view"
              @click="handleView(scope.row)"
              >详情</el-button
              @click.stop="handleView(scope.row)"
              >查看</el-button
            >
            <!-- <el-button
            <el-button
              size="mini"
              type="text"
              icon="el-icon-edit"
              @click="handleUpdate(scope.row)"
              >修改</el-button
            > -->
            <!-- <el-button
              size="mini"
              type="text"
              icon="el-icon-delete"
              style="color: #F56C6C"
              @click="handleDelete(scope.row)"
              >删除</el-button
            > -->
              @click.stop="handleUpdate(scope.row)"
              >编辑</el-button
            >
          </template>
        </el-table-column>
      </el-table>
@@ -214,13 +228,17 @@
</template>
<script>
import { completionList, completionadd, completionedit } from "@/api/businessApi";
import {
  completionList,
  completionadd,
  completionedit
} from "@/api/businessApi";
import Pagination from "@/components/Pagination";
export default {
  name: "OrganUtilizationList",
  components: { Pagination },
  dicts: ["sys_user_sex", "sys_BloodType",'utilize_statue'],
  dicts: ["sys_user_sex", "sys_BloodType", "sys_DonationCategory", "utilize_statue"],
  data() {
    return {
      // 遮罩层
@@ -262,13 +280,13 @@
          let data = response.data;
          if (Array.isArray(data)) {
            this.organUtilizationList = data;
            this.total = data.length;
            this.total = response.total;
          } else if (data && data.rows) {
            this.organUtilizationList = data.rows;
            this.total = data.total || data.rows.length;
            this.total = response.total;
          } else if (data && data.list) {
            this.organUtilizationList = data.list;
            this.total = data.total || data.list.length;
            this.total = response.total;
          } else {
            this.organUtilizationList = [];
            this.total = 0;
@@ -305,7 +323,8 @@
        path: "/case/organUtilizationInfo",
        query: {
          id: row.id,
          infoid: row.infoid
          infoid: row.infoid,
          mode: "view"
        }
      });
    },
@@ -321,7 +340,8 @@
        path: "/case/organUtilizationInfo",
        query: {
          id: id,
          infoid: infoid
          infoid: infoid,
          mode: "edit"
        }
      });
    },