WXL
2025-09-24 c09b09a73a7905f980f5ebb8f25df0500d7c8ccb
src/views/project/fund/applyDetail/index.vue
@@ -817,8 +817,13 @@
            </el-form-item>
          </el-col>
        </el-row>
        <el-row v-if="selectionType == 'account' && accountfrom == '2'&&
              accountselectform.usertype == 'org'">
        <el-row
          v-if="
            selectionType == 'account' &&
              accountfrom == '2' &&
              accountselectform.usertype == 'org'
          "
        >
          <el-col :span="24">
            <el-form-item label="税号" prop="unitTaxNo">
              <el-input
@@ -1125,16 +1130,22 @@
            >
              <!-- <img :src="pdfimg" /> -->
              <el-image
                ref="imagePreview"
                style="width: 95%; height: 90%"
                @error="handleImageError"
                @load="handleImageLoad"
                :src="pdfimg"
                :preview-src-list="pdfimgsrcList"
                @click="handleImageClick(initialIndex)"
              >
                <!-- <div slot="error" class="image-slot">
              <i class="el-icon-picture-outline"></i>
            </div> -->
              </el-image>
              <!-- <div slot="error" class="image-slot">
                <i class="el-icon-picture-outline"></i>
              </div> -->
            </el-image>
            <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>
@@ -1375,12 +1386,15 @@
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",
@@ -1527,9 +1541,7 @@
        username: [
          { required: true, message: "请输入账户名称", trigger: "blur" }
        ],
         unitTaxNo: [
          { required: true, message: "请输入税号", trigger: "blur" }
        ],
        unitTaxNo: [{ required: true, message: "请输入税号", trigger: "blur" }],
        idcardno: [
          { required: true, message: "请输入身份账号", trigger: "blur" }
        ],
@@ -1673,6 +1685,9 @@
      pdftitle: "",
      pdfimg: "",
      pdfimgsrcList: [],
      currentIndex: 0, // 初始索引
      initialIndex: 0, // 初始索引
      viewerVisible: false, // 控制预览组件显示
      pdfVisible: false,
      previewpdf: false,
      hintitle: "请上传文件后查看",
@@ -2337,7 +2352,8 @@
        if (
          this.userprofile.userName == "admin" ||
          this.userprofile.userName == "053" ||
          this.userprofile.userName == "047"|| store.getters.rolesor[0].roleSort=='13'
          this.userprofile.userName == "047" ||
          store.getters.rolesor[0].roleSort == "13"
        ) {
          this.ismanager = true;
        } else {
@@ -3181,6 +3197,13 @@
      // 图片加载成功时执行的操作
      console.log("Image loaded successfully");
    },
    handleImageClick(index) {
      this.currentIndex = index;
      this.viewerVisible = true;
    },
    handleViewerClose() {
      this.viewerVisible = false;
    },
    handleUploadError() {},
    remove(file, fileList) {
      const rbDetails = [...this.rbDetails];