yxh
2026-08-12 b1c3b9a3a545a6ed639f25ff093751193be422ea
src/views/project/fund/performancedetails/index.vue
@@ -14,7 +14,7 @@
                type="date"
                value-format="yyyy-MM-dd HH:mm:ss"
                placeholder="申请日期"
                disabled="true"
                :disabled="true"
              >
              </el-date-picker>
            </el-form-item>
@@ -74,11 +74,11 @@
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="申请材料状态" prop="infoid">
            <el-form-item label="材料预审状态" prop="infoid">
              <el-select
                v-model="form.checkstatus"
                filterable
                placeholder="请选择申请材料状态"
                placeholder="请选择材料预审状态"
              >
                <el-option
                  v-for="item in baselisttages"
@@ -205,7 +205,7 @@
                ></el-cascader> -->
              </template>
            </el-table-column>
            <el-table-column
            <!-- <el-table-column
              prop="jxrq"
              align="center"
              label="绩效日期"
@@ -219,7 +219,7 @@
                >
                </el-date-picker>
              </template>
            </el-table-column>
            </el-table-column> -->
            <el-table-column
              prop="amount"
              align="center"
@@ -661,16 +661,18 @@
              v-if="this.previewpdf && pdfimgsrcList.length"
              class="pdfimgmin"
            >
              <!-- <img :src="pdfimg" /> -->
              <el-image
                style="width: 95%; height: 90%"
                :src="pdfimg"
                :preview-src-list="pdfimgsrcList"
              >
                <!-- <div slot="error" class="image-slot">
              <i class="el-icon-picture-outline"></i>
            </div> -->
              </el-image>
                @click="handleImageClick(0)"
              />
              <custom-image-viewer
                :url-list="pdfimgsrcList"
                :initial-index="currentIndex"
                :visible="viewerVisible"
                @update:visible="viewerVisible = $event"
                @close="handleViewerClose"
              />
            </div>
            <div v-else class="pdfimgmins">{{ hintitle }}</div>
          </div>
@@ -764,16 +766,18 @@
              v-if="this.previewpdf && invoicepdfimgsrcList.length"
              class="pdfimgmin"
            >
              <!-- <img :src="pdfimg" /> -->
              <el-image
                style="width: 95%; height: 90%"
                :src="invoicepdfimg"
                :preview-src-list="invoicepdfimgsrcList"
              >
                <!-- <div slot="error" class="image-slot">
              <i class="el-icon-picture-outline"></i>
            </div> -->
              </el-image>
                @click="invoiceHandleImageClick(0)"
              />
              <custom-image-viewer
                :url-list="invoicepdfimgsrcList"
                :initial-index="invoiceCurrentIndex"
                :visible="invoiceViewerVisible"
                @update:visible="invoiceViewerVisible = $event"
                @close="invoiceHandleViewerClose"
              />
            </div>
            <div v-else class="pdfimgmins">{{ hintitle }}</div>
          </div>
@@ -872,12 +876,14 @@
import Li_area_select from "@/components/Address";
import OrgSelecter from "@/views/project/components/orgselect";
import { getToken } from "@/utils/auth";
import CustomImageViewer from "@/components/CustomImageViewer";
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
    Li_area_select,
    OrgSelecter
    OrgSelecter,
    CustomImageViewer
  },
  name: "fundApply",
@@ -940,15 +946,15 @@
      baselisttages: [
        {
          id: 1,
          name: "待申请材料"
          name: "待审核"
        },
        {
          id: 2,
          name: "审核通过等待邮寄纸质材料"
          name: "预审通过等待纸质材料"
        },
        {
          id: 3,
          name: "已收到报销材料"
          name: "已收到纸质材料"
        }
      ],
      PerformanceType: [
@@ -1178,6 +1184,10 @@
      pdfimgsrcList: [],
      pdfVisible: false,
      previewpdf: false,
      viewerVisible: false,
      currentIndex: 0,
      invoiceViewerVisible: false,
      invoiceCurrentIndex: 0,
      hintitle: "请上传文件后查看",
      atpresent: "",
      Savereminder: false, //提醒保存弹框
@@ -1789,12 +1799,21 @@
      };
      this.$modal.loading("正在提交审核,请稍候!");
      checkfund(checkFundObj).then(res => {
        //关闭窗口
        this.reset();
        this.$modal.closeLoading();
        this.$modal.msgSuccess("审核完成!");
        this.$store.dispatch("tagsView/delView", this.$route);
        this.$router.go(-1);
        if (res.code == 200) {
          //关闭窗口
          this.reset();
          this.$modal.closeLoading();
          this.$modal.msgSuccess("审核完成!");
          this.$store.dispatch("tagsView/delView", this.$route);
          this.$router.go(-1);
        } else {
          this.$modal.closeLoading();
          if (res.msg) {
            this.$modal.msgError("操作失误");
          } else {
            this.$modal.msgError(res.msg);
          }
        }
      });
    },
@@ -1812,7 +1831,7 @@
        this.standardlevel = res.data.standardlevel;
        if (
          this.userprofile.userName == "admin" ||
          this.userprofile.userName == "001" ||
          this.userprofile.userName == "053" ||
          this.userprofile.userName == "047"
        ) {
          this.ismanager = true;
@@ -2056,10 +2075,12 @@
        if (!this.rbDetails[i].taxamount) {
          this.rbDetails[i].taxamount = 0;
        }
        this.rbDetails[i].taxedamount =
        this.rbDetails[i].taxedamount = (
          parseFloat(this.rbDetails[i].amount) -
          parseFloat(this.rbDetails[i].taxamount);
          parseFloat(this.rbDetails[i].taxamount)
        ).toFixed(2);
        targetValue += parseFloat(this.rbDetails[i].amount); // 假设每个对象中的特定值存储在'specificValue'属性下
        console.log(this.rbDetails[i].taxedamount, "合计");
      }
      console.log(targetValue, "合计");
      this.form.pretaxcost = targetValue;
@@ -2831,19 +2852,19 @@
      var columnnames = [
        "applytype",
        "itemid",
        "jxrq",
        // "jxrq",
        "beneficiaryname",
        "idcardno",
        "depositbank",
        "bankcardno",
        "remark",
        "remark"
      ];
      columns.forEach((column, index) => {
        if (index === 0) {
          sums[index] = "合计";
          return;
        }
        //去除部分字段计算
        if (columnnames.indexOf(column.property) > -1) {
          return;
@@ -2888,7 +2909,23 @@
  destroyed() {
    window.removeEventListener("beforeunload", e => this.beforeunloadFn(e));
  }, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
  activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  // 图片预览
  handleImageClick(index) {
    this.currentIndex = index;
    this.viewerVisible = true;
  },
  handleViewerClose() {
    this.viewerVisible = false;
  },
  invoiceHandleImageClick(index) {
    this.invoiceCurrentIndex = index;
    this.invoiceViewerVisible = true;
  },
  invoiceHandleViewerClose() {
    this.invoiceViewerVisible = false;
  },
};
</script>