11
WXL
2024-03-12 21ead72243112d675806161b5125d185d5c4f443
src/views/project/donorcharge/donorchargedetail/index.vue
@@ -20,7 +20,7 @@
                  v-for="dict in dict.type.sys_user_sex"
                  :key="dict.label"
                  :label="dict.label"
                  :value="parseInt(dict.value)"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
@@ -134,6 +134,7 @@
                <el-input
                  v-model="scope.row.organname"
                  placeholder="器官名称"
                  :disabled="true"
                />
              </template>
            </el-table-column>
@@ -144,7 +145,11 @@
              prop="caseno"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.caseno" placeholder="系统编号" />
                <el-input
                  v-model="scope.row.caseno"
                  :disabled="true"
                  placeholder="系统编号"
                />
              </template>
            </el-table-column>
            <el-table-column
@@ -154,7 +159,11 @@
              width="150"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.amount" placeholder="实收金额" />
                <el-input
                  v-model="scope.row.amount"
                  :disabled="true"
                  placeholder="实收金额"
                />
              </template>
            </el-table-column>
            <el-table-column
@@ -166,6 +175,7 @@
              <template slot-scope="scope">
                <el-date-picker
                  clearable
                  :disabled="true"
                  size="small"
                  style="width: 100%"
                  v-model="scope.row.amounttime"
@@ -185,6 +195,7 @@
              <template slot-scope="scope">
                <el-input
                  v-model="scope.row.organcharge"
                  :disabled="true"
                  placeholder="标准费用"
                />
              </template>
@@ -197,6 +208,7 @@
            >
              <template slot-scope="scope">
                <org-selecter
                  :disabled="true"
                  ref="tranHosSelect"
                  :org-type="'4'"
                  v-model="scope.row.hospitalno"
@@ -211,7 +223,11 @@
              prop="name"
            >
              <template slot-scope="scope">
                <el-input v-model="scope.row.name" placeholder="受体姓氏" />
                <el-input
                  v-model="scope.row.name"
                  :disabled="true"
                  placeholder="受体姓氏"
                />
              </template>
            </el-table-column>
            <el-table-column
@@ -223,6 +239,7 @@
              <template slot-scope="scope">
                <el-date-picker
                  clearable
                  :disabled="true"
                  size="small"
                  style="width: 100%"
                  v-model="scope.row.organtime"
@@ -234,7 +251,7 @@
              </template>
            </el-table-column>
            <el-table-column prop="organchargedesc" align="center" label="备注">
              <template slot-scope="scope">
              <template slot-scope="scope" width="300">
                <el-input
                  v-model="scope.row.organchargedesc"
                  placeholder="备注"
@@ -246,12 +263,12 @@
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button
          type="primary"
          type="success"
          @click="submitForm"
          v-if="operationType == 'add' || operationType == 'update'"
          >保 存</el-button
        >
        <el-button type="primary" @click="cancel">关闭</el-button>
        <el-button type="info" @click="cancel">关闭</el-button>
      </div>
    </div>
  </div>
@@ -371,7 +388,7 @@
          { required: true, message: "请输入所属业务组", trigger: "blur" }
        ]
      },
      gxinzt: false,
      baselist: [],
      donorList: [],
      organchargelist: [],
@@ -514,6 +531,8 @@
      this.operationType = this.$route.query.operation;
      this.curId = this.$route.query.id;
      this.curCase = this.$route.query.data;
      this.gxinzt = this.$route.query.gxinzt;
      console.log(this.curCase);
      console.log("this.$route.query", this.$route.query);
      if (this.operationType == "add") {
@@ -566,46 +585,13 @@
        this.form.age = this.curCase.age;
        this.form.donationcategory = this.curCase.donationcategory;
        //获取完成登记的器官表
        if (this.curCase.id > 0) {
        } else {
          this.curCase.id = 0;
        }
        let searchParam = {
          infoid: this.curCase.id
        };
        listDonatecomporgan(searchParam).then(res => {
          if (res.code == 200) {
            // 查询器官费用表
            let tempParam = {
              organcode: null,
              organname: null,
              charge: null
            };
            listOrgancharge(tempParam).then(res1 => {
              if (res1.code == 200) {
                this.organchargelist = res1.rows;
              }
              //插入器官表
              res.rows.forEach(item => {
                //获取费用金额
                this.organchargelist.map(rescharge => {
                  if (rescharge.organcode == item.organno) {
                    this.donorchargeorgans.push({
                      organno: item.organno,
                      organname: item.organname,
                      organcharge: rescharge.charge,
                      infoid: item.infoid,
                      hospitalname: item.transplanthospitalname,
                      hospitalno: item.transplanthospitalno,
                      organtime: item.transplanttime,
                      chargestate: "0"
                    });
                  }
                });
              });
            });
        this.organParams.infoid = this.curCase.id;
        listDonorchargeorgan(this.organParams).then(res => {
          console.log("listDonorchargeorgan", res);
          this.donorchargeorgans = res.rows;
          if (this.donorchargeorgans.length > 0) {
          } else {
            this.addRow(0);
          }
        });
      }
@@ -620,9 +606,8 @@
      getDonorcharge(this.curId).then(response => {
        this.form = response.data;
        console.log("getDonorcharge", response);
        //器官费用信息
        this.organParams.donorchargeid = this.curId;
        this.organParams.infoid = this.form.infoid;
        console.log("this.organParams", this.organParams);
        listDonorchargeorgan(this.organParams).then(res => {
          console.log("listDonorchargeorgan", res);
@@ -631,6 +616,9 @@
          if (this.donorchargeorgans.length > 0) {
          } else {
            this.addRow(0);
          }
          if ((this.gxinzt = true)) {
            this.submitForm();
          }
        });
      });
@@ -647,7 +635,7 @@
        this.title = "查看捐献案例器官费用表";
        //器官费用信息
        this.organParams.donorchargeid = this.curId;
        this.organParams.infoid = this.form.infoid;
        listDonorchargeorgan(this.organParams).then(res => {
          this.donorchargeorgans = res.rows;
          if (this.donorchargeorgans.length > 0) {
@@ -750,7 +738,7 @@
      var columnnames = [
        "organno",
        "organname",
        "amount",
        "caseno",
        "amounttime",
        "organcharge",
        "hospitalname",