11
WXL
2024-04-22 6a84b9b93897276fc3ecc59ff75ef01df0ff25b7
11
已修改4个文件
167 ■■■■ 文件已修改
src/views/project/tallage/computingBill/index.vue 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/tallage/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/unitCost/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/unitCost/particulars/index.vue 119 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/tallage/computingBill/index.vue
@@ -8,8 +8,8 @@
            <el-form-item label="申请日期" prop="createTime">
              <el-date-picker
                v-model="form.createTime"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
                value-format="yyyy-MM-dd "
                type="date"
                :disabled="true"
                placeholder="选择出生年月"
              >
@@ -115,6 +115,14 @@
            show-summary
          >
            <el-table-column
              prop="index"
              align="center"
              fixed
              label="案例捐献者"
              width="120"
            >
            </el-table-column>
            <el-table-column
              prop="donorname"
              align="center"
              fixed
@@ -172,8 +180,8 @@
                  v-model="scope.row.applyTime"
                  :disabled="true"
                  type="date"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  placeholder="申请日期"
                  value-format="yyyy-MM-dd"
                >
                </el-date-picker>
              </template>
@@ -568,7 +576,7 @@
    Li_area_select,
    pdf
  },
  dicts: ["sys_gathering", "sys_0_1"],
  dicts: ["Collection_status", "sys_0_1"],
  name: "Donorchargemanager",
  data() {
    return {
@@ -588,7 +596,7 @@
        paApplyType: 1,
        pacheckno: "047",
        checkstatus: 0,
        istax:0,
        istax: 0,
        pageNum: 1,
        pageSize: 10
      },
@@ -837,18 +845,15 @@
    },
    // 金额合计
    accumulation() {
      this.form.pretaxamount = this.donorchargeorgans.reduce(
        (acc, obj) => acc + Number(obj.pretaxcost),
        0
      );
      this.form.taxMoney = this.donorchargeorgans.reduce(
        (acc, obj) => acc + Number(obj.taXmoney),
        0
      );
      this.form.taxedamount = this.donorchargeorgans.reduce(
        (acc, obj) => acc + Number(obj.taxedcost),
        0
      );
      this.form.pretaxamount = this.donorchargeorgans
        .reduce((acc, obj) => acc + Number(obj.pretaxcost), 0)
        .toFixed(2);
      this.form.taxMoney = this.donorchargeorgans
        .reduce((acc, obj) => acc + Number(obj.taXmoney), 0)
        .toFixed(2);
      this.form.taxedamount = this.donorchargeorgans
        .reduce((acc, obj) => acc + Number(obj.taxedcost), 0)
        .toFixed(2);
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
@@ -993,9 +998,10 @@
        this.form = response.data;
        if (this.form.serviceFunds[0]) {
          this.donorchargeorgans = this.form.serviceFunds;
          this.donorchargeorgans.forEach(item => {
          this.donorchargeorgans.forEach((item, index) => {
            item.taXmoney = item.pretaxcost - item.taxedcost;
            item.taXmoney = item.taXmoney.toFixed(2);
            item.index = index + 1;
            this.accumulation();
          });
        }
src/views/project/tallage/index.vue
@@ -216,7 +216,7 @@
export default {
  name: "Donorcharge",
  dicts: ["sys_gathering", "sys_calculate"],
  dicts: ["Collection_status", "sys_calculate"],
  components: {
    OrgSelecter
  },
src/views/project/unitCost/index.vue
@@ -117,7 +117,7 @@
      <el-table-column label="状态" align="center" prop="paystatus">
        <template slot-scope="scope">
          <dict-tag
            :options="dict.type.sys_gathering"
            :options="dict.type.Collection_status"
            :value="scope.row.paystatus"
          />
        </template>
@@ -231,7 +231,7 @@
export default {
  name: "Donorcharge",
  dicts: ["sys_gathering"],
  dicts: ["Collection_status"],
  components: {
    OrgSelecter
  },
src/views/project/unitCost/particulars/index.vue
@@ -6,7 +6,7 @@
        <el-row>
          <el-col :span="5">
            <el-form-item label="申请日期" prop="createTime">
              <el-date-picker v-model="form.createTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetime"
              <el-date-picker v-model="form.createTime" value-format="yyyy-MM-dd " type="date"
                :disabled="true" placeholder="选择出生年月">
              </el-date-picker>
            </el-form-item>
@@ -66,8 +66,8 @@
          </el-col>
          <el-col :span="5">
            <el-form-item label="收款日期" prop="receivedtime">
              <el-date-picker clearable size="small" v-model="form.receivedtime" value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime" placeholder="选择收款日期">
              <el-date-picker clearable size="small" v-model="form.receivedtime" value-format="yyyy-MM-dd "
                type="date" placeholder="选择收款日期">
              </el-date-picker>
            </el-form-item>
          </el-col>
@@ -165,6 +165,24 @@
      <!-- 添加患者 -->
      <el-dialog title="选择器官和组织" :visible.sync="dialogVisiblepatient" width="70%" :before-close="handleClosehz">
        <div class="examine-jic">
          <div style="margin: 0 10px 20px 10px;">
            <el-card class="box-card">
              <el-tag
                v-for="item in overallCase"
                :key="item.id"
                closable
                @close="handleClose(item)"
              >
                {{ item.donorname }}
              </el-tag>
              <div style="margin-top: 20px; text-align: right;">
                共选择<span
                  style="font-size: 18px; color: #409EFF;margin: 0 10px;"
                  >{{ overallCase.length }}</span
                >条数据
              </div>
            </el-card>
          </div>
          <div class="jic-value">
            <el-row :gutter="20">
              <!--用户数据-->
@@ -307,7 +325,7 @@
    Li_area_select,
    pdf
  },
  dicts: ["sys_gathering", "sys_0_1"],
  dicts: ["Collection_status", "sys_0_1"],
  name: "Donorchargemanager",
  data() {
    return {
@@ -346,6 +364,8 @@
        hospitalno: null,
        paymentid: null
      },
      // 总选中数据
      overallCase: [],
      dialogVisiblepatient: false,
      patienttotal: 0, //
      //票据文件
@@ -528,7 +548,6 @@
    handleClosehz() {
      this.dialogVisiblepatient = false;
    },
    handleQuery() { },
    resetQuery() {
      this.patientqueryParams.donorname = null;
      this.patientqueryParams.donorchargeid = null;
@@ -538,13 +557,82 @@
    // 弹框添加
    AddDispatchpatients() {
      this.donorchargeorgans = this.donorchargeorgans.concat(
        this.multipleSelection
        this.overallCase
      );
      this.dialogVisiblepatient = false;
    },
    // 多选框选中数据
    handleSelectionChange(val) {
      this.multipleSelection = val;
    handleSelectionChange(selection) {
      if (this.decision) return;
      // 判断是否有删除
      if (this.multipleSelection.length <= selection.length) {
        this.multipleSelection = selection;
      } else {
        console.log(11);
        this.multipleSelection.forEach(item => {
          if (selection.includes(item)) {
          } else {
            if (this.multipleSelection.length == 1) {
              this.multipleSelection = [];
            } else {
              this.multipleSelection.splice(
                this.multipleSelection.indexOf(item),
                1
              );
            }
            if (this.overallCase.length == 1) {
              this.overallCase = [];
            } else {
              this.overallCase.splice(this.overallCase.indexOf(item), 1);
            }
          }
        });
      }
      // 赋值给整体选中数组
      this.multipleSelection.forEach(item => {
        if (!this.overallCase.includes(item)) {
          this.overallCase.push(item);
        }
      });
      console.log(this.multipleSelection, "触发选择后multipleSelection");
    },
    // 切换页后恢复选中
    Restorecheck() {
      console.log(this.overallCase, "this.overallCase");
      const allid = this.overallCase.map(item => item.id);
      const overlap = this.donorchargeList.filter(value => {
        return allid.includes(value.id);
      });
      // 保持ids和当前页面的同步性
      this.multipleSelection = overlap;
      console.log(this.multipleSelection, "进入分页multipleSelection");
      this.toggleSelection(overlap);
    },
    // 挂载选择状态
    toggleSelection(rows) {
      if (rows) {
        this.decision = true;
        this.$nextTick(() => {
          rows.forEach(row => {
            this.$refs.multipleTable.toggleRowSelection(row, true);
          });
          this.decision = false;
        });
        console.log(123);
      } else {
        this.$refs.multipleTable.clearSelection();
      }
    },
    // 选择人员标签删除事件
    handleClose(item) {
      this.overallCase.splice(this.overallCase.indexOf(item), 1);
      if (this.multipleSelection.indexOf(item) == -1) {
      } else {
        this.multipleSelection.splice(this.multipleSelection.indexOf(item), 1);
        this.$refs.multipleTable.toggleRowSelection(item, false);
        // this.toggleSelection(this.multipleSelection);
      }
    },
    // 点击新增
    handleAddpatient(row) {
@@ -556,7 +644,7 @@
        this.donorchargeList = res.rows;
        this.patienttotal = res.total;
        this.patientqueryParams.paymentidIsNotNull = true;
        console.log(this.donorchargeList);
        this.Restorecheck();
      });
    },
    // 获取请求头
@@ -622,11 +710,7 @@
      });
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 取消按钮
    cancel() {
@@ -1147,6 +1231,13 @@
    }
  }
}
::v-deep .el-tag--medium {
  height: 28px;
  line-height: 26px;
  margin-right: 15px;
  margin-bottom: 15px;
  font-size: 16px;
}
::v-deep .el-input.is-disabled .el-input__inner {
  background-color: #F5F7FA;