yxh
3 天以前 45d4fe24016c03fcccbe7c9798533ca97e2e7aea
回款新增和修改问题
已修改5个文件
318 ■■■■■ 文件已修改
src/views/project/fund/applyDetail/index.vue 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/performancedetails/index.vue 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/tallage/computingBill/index.vue 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/travelexpenseapply/travelexpensedetail/index.vue 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/unitCost/organfee/index.vue 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/applyDetail/index.vue
@@ -304,7 +304,7 @@
                <i class="el-icon-warning-outline" />
                当前为查看模式,不能上传附件
              </div>
              <el-table ref="annexTable" :data="fileListto" :row-class-name="annexRowClass" @row-click="downFile" style="width: 100%" height="400">
              <el-table ref="annexTable" :data="fileListto" :row-class-name="annexRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
                <el-table-column prop="name" :show-overflow-tooltip="true" label="名称">
                  <template slot-scope="scope">
                    <i style="color:#409EFF" class=" el-icon-s-order" />{{
@@ -616,7 +616,7 @@
                <i class="el-icon-warning-outline" />
                当前为查看模式,不能上传附件
              </div>
                <el-table ref="annexTable2" :data="fileListto" :row-class-name="annexRowClass" @row-click="downFile" style="width: 100%" height="400">
                <el-table ref="annexTable2" :data="fileListto" :row-class-name="annexRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
                  <el-table-column prop="name" :show-overflow-tooltip="true" label="名称">
                    <template slot-scope="scope">
                      <i style="color:#409EFF" class=" el-icon-s-order" />
@@ -664,7 +664,7 @@
                <i class="el-icon-warning-outline" />
                当前为查看模式,不能上传附件
              </div>
                <el-table ref="invoiceTable" :data="invoicefileListto" :row-class-name="invoiceRowClass" @row-click="downFile" style="width: 100%" height="400">
                <el-table ref="invoiceTable" :data="invoicefileListto" :row-class-name="invoiceRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
                  <el-table-column prop="name" :show-overflow-tooltip="true" label="名称">
                    <template slot-scope="scope">
                      <i style="color:#409EFF" class=" el-icon-s-order" />
@@ -1144,6 +1144,7 @@
      flashInvoiceName: "",
      invoicepdfimg: "",
      invoicepdfimgsrcList: [],
      previewToken: 0,
      invoDatatop: [],
      activeName: "invoice", //文件类型:默认发票文件
      //上传附件路径
@@ -2807,6 +2808,9 @@
      } else {
        this.rbDetails.splice(rowIndex + 1, 0, rowData);
      }
      // 2026-11-30:新增行后把当前操作行切到新行,并清空上一次的预览态
      this.atpresent = this.rbDetails.indexOf(rowData);
      this.resetPreviewState();
      this.Reminderquantity++;
      this.totalquantity++;
      for (let i = 0; i < this.rbDetails.length; i++) {
@@ -3239,18 +3243,33 @@
    },
    // 点击票据
    /**
     * 2026-11-30:清空票据弹窗的预览状态。
     * 原实现漏清 embeddedFile / invoiceEmbeddedFile,导致再次打开弹窗时
     * 预览组件仍显示上一次选择的发票图片。
     */
    resetPreviewState() {
      this.fileListto = [];
      this.invoicefileListto = [];
      this.pdfimg = "";
      this.invoicepdfimg = "";
      this.pdfimgsrcList = [];
      this.invoicepdfimgsrcList = [];
      this.embeddedFile = null;
      this.invoiceEmbeddedFile = null;
      this.pdftitle = "";
      // 递增令牌:让上一行尚未返回的 fetch 结果失效,避免异步回写覆盖
      this.previewToken = (this.previewToken || 0) + 1;
    },
    Filepopup(index, rows, row) {
      const config = {
        headers: { Authorization: "Bearer " + this.ICDtoken }
      };
      this.tableDatatop = [];
      this.fileListto = [];
      this.invoicefileListto = [];
      this.pdfimg = "";
      this.invoicepdfimg = [];
      this.pdfimgsrcList = [];
      this.invoicepdfimgsrcList = [];
      this.resetPreviewState();
      const previewToken = ++this.previewToken;
      this.tableDatatop.push(row);
      this.atpresent = index;
      this.pdfVisible = true;
@@ -3298,6 +3317,11 @@
        );
        Promise.all(fetchPromises).then(fileListto => {
          // 2026-11-30:切换行后旧请求返回,丢弃过期结果,避免覆盖当前行预览
          if (previewToken !== this.previewToken) {
            return;
          }
          this.fileListto = fileListto.filter(item => item !== null);
          this.pdfimg =
            this.fileListto.length > 0 ? this.fileListto[0].previewUrl : "";
@@ -3334,6 +3358,11 @@
        );
        Promise.all(fetchPromises).then(invoicefileListto => {
          // 2026-11-30:切换行后旧请求返回,丢弃过期结果,避免覆盖当前行预览
          if (previewToken !== this.previewToken) {
            return;
          }
          this.invoicefileListto = invoicefileListto.filter(
            item => item !== null
          );
@@ -3364,6 +3393,30 @@
    },
    // 费用报销:附件统一使用独立 FilePreview(录入、审批、详情一致)
    /**
     * 2026-11-30:单击列表项 → 在本页预览(右侧 preview-pane)。
     * 双击才打开独立的预览页面(downFile → $previewFile)。
     */
    previewInline(row) {
      if (!row) {
        return;
      }
      const url = row.previewUrl || row.url;
      if (!url) {
        return;
      }
      const file = {
        name: row.name || "",
        url,
        type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image"
      };
      if (this.activeName == "common") {
        this.embeddedFile = file;
      } else {
        this.invoiceEmbeddedFile = file;
      }
    },
    downFile(item) {
      const source =
        this.activeName == "common" ? this.fileListto : this.invoicefileListto;
src/views/project/fund/performancedetails/index.vue
@@ -435,6 +435,23 @@
                </el-button>
                <el-button
                  @click.native.prevent="
                    /**
     * 2026-11-30:清空票据弹窗预览状态(含 embeddedFile / invoiceEmbeddedFile),
     * 避免再次打开弹窗时仍显示上一次选择的票据图片。
     */
    resetPreviewState() {
      this.fileListto = [];
      this.invoicefileListto = [];
      this.pdfimg = "";
      this.invoicepdfimg = "";
      this.pdfimgsrcList = [];
      this.invoicepdfimgsrcList = [];
      this.embeddedFile = null;
      this.invoiceEmbeddedFile = null;
      this.pdftitle = "";
      this.previewToken = (this.previewToken || 0) + 1;
    },
                    Filepopup(scope.$index, rbDetails, scope.row)
                  "
                  type="text"
@@ -706,7 +723,7 @@
                </el-upload>
                <el-table
                  :data="fileListto"
                  @row-click="downFile"
                  @row-click="previewInline" @row-dblclick="downFile"
                  style="width: 100%"
                  height="400"
                >
@@ -794,7 +811,7 @@
                </el-upload>
                <el-table
                  :data="invoicefileListto"
                  @row-click="downFile"
                  @row-click="previewInline" @row-dblclick="downFile"
                  style="width: 100%"
                  height="400"
                >
@@ -1256,6 +1273,7 @@
      invoicefileListto: [],
      invoicepdfimg: "",
      invoicepdfimgsrcList: [],
      previewToken: 0,
      activeName: 2, //文件类型:默认发票文件
      //上传附件路径
      uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload",
@@ -2687,6 +2705,9 @@
        this.rbDetails.splice(rowIndex + 1, 0, rowData);
        console.log(14);
      }
      // 2026-11-30:新增行后把当前操作行切到新行,并清空上一次的预览态
      this.atpresent = this.rbDetails.indexOf(rowData);
      this.resetPreviewState();
      this.Reminderquantity++;
      this.totalquantity++;
      for (let i = 0; i < this.rbDetails.length; i++) {
@@ -2961,12 +2982,8 @@
      };
      this.tableDatatop = [];
      this.fileListto = [];
      this.invoicefileListto = [];
      this.pdfimg = "";
      this.invoicepdfimg = [];
      this.pdfimgsrcList = [];
      this.invoicepdfimgsrcList = [];
      this.resetPreviewState();
      const previewToken = ++this.previewToken;
      this.tableDatatop.push(row);
      this.atpresent = index;
      this.pdfVisible = true;
@@ -2991,6 +3008,10 @@
        );
        Promise.all(fetchPromises).then(fileListto => {
          // 2026-11-30:切换行后丢弃过期结果
          if (previewToken !== this.previewToken) {
            return;
          }
          this.fileListto = fileListto.filter(item => item !== null);
          this.pdfimg = this.fileListto[0].url;
          console.log(this.pdfimg, "pdfimg");
@@ -3024,6 +3045,10 @@
        );
        Promise.all(fetchPromises).then(invoicefileListto => {
          // 2026-11-30:切换行后丢弃过期结果
          if (previewToken !== this.previewToken) {
            return;
          }
          this.invoicefileListto = invoicefileListto.filter(
            item => item !== null
          );
@@ -3051,6 +3076,30 @@
    },
    // 点击已上传文件:在附件弹窗右侧内嵌预览
    /**
     * 2026-11-30:单击列表项 → 在本页预览(右侧 preview-pane)。
     * 双击才打开独立的预览页面(downFile → $previewFile)。
     */
    previewInline(row) {
      if (!row) {
        return;
      }
      const url = row.previewUrl || row.url;
      if (!url) {
        return;
      }
      const file = {
        name: row.name || "",
        url,
        type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image"
      };
      if (this.activeName == 2) {
        this.invoiceEmbeddedFile = file;
      } else {
        this.embeddedFile = file;
      }
    },
    downFile(item) {
      if (this.operationType == "detail") {
        const source =
src/views/project/tallage/computingBill/index.vue
@@ -155,7 +155,7 @@
              prop="donorname"
              align="center"
              fixed
              label="案例捐献者"
              label="捐献案例"
              width="120"
            >
              <template slot-scope="scope">
@@ -185,7 +185,7 @@
              prop="deptmentname"
              align="center"
              label="所属组别"
              width="150"
              width="200"
            >
              <template slot-scope="scope">
                <el-input
@@ -199,7 +199,7 @@
              prop="applyTime"
              align="center"
              label="申请日期"
              width="150"
              width="200"
            >
              <template slot-scope="scope">
                <el-date-picker
@@ -273,7 +273,6 @@
            </el-table-column>
            <el-table-column
              prop="remark"
              width="280"
              align="center"
              label="备注"
            >
@@ -446,7 +445,7 @@
                  show-overflow-tooltip
                >
                </el-table-column>
                <el-table-column
                <!-- <el-table-column
                  prop="pretaxcost"
                  label="税前金额"
                  show-overflow-tooltip
@@ -481,7 +480,7 @@
                  label="劳务税后"
                  show-overflow-tooltip
                 align="right" header-align="right" class-name="money-column" :formatter="formatMoney">
                </el-table-column>
                </el-table-column> -->
                <el-table-column
                  prop="remark"
                  label="备注"
@@ -561,7 +560,7 @@
              </el-upload>
              <el-table
                :data="fileListto"
                @row-click="downFile"
                @row-click="previewInline" @row-dblclick="downFile"
                style="width: 100%"
                height="400"
              >
@@ -691,6 +690,8 @@
      pdfVisible: false,
      maxTaxId: "",
      pdfimgsrcList: [],
      // 2026-11-30:票据弹窗预览令牌(防止切换行时旧请求回写)
      previewToken: 0,
      Savereminder: false, //提醒保存弹框
      Reminderquantity: 0, //提醒数量
      totalquantity: 0, //总数量
@@ -1328,18 +1329,31 @@
    },
    // 点击票据
    /**
     * 2026-11-30:清空票据弹窗预览状态(含 embeddedFile / invoiceEmbeddedFile),
     * 避免再次打开弹窗时仍显示上一次选择的票据图片。
     */
    resetPreviewState() {
      this.fileListto = [];
      this.invoicefileListto = [];
      this.pdfimg = "";
      this.invoicepdfimg = "";
      this.pdfimgsrcList = [];
      this.invoicepdfimgsrcList = [];
      this.embeddedFile = null;
      this.invoiceEmbeddedFile = null;
      this.pdftitle = "";
      this.previewToken = (this.previewToken || 0) + 1;
    },
    Filepopup(index, row) {
      const config = {
        headers: { Authorization: "Bearer " + this.ICDtoken }
      };
      this.tableDatatop = [];
      this.fileListto = [];
      this.invoicefileListto = [];
      this.pdfimg = "";
      this.invoicepdfimg = [];
      this.pdfimgsrcList = [];
      this.invoicepdfimgsrcList = [];
      this.resetPreviewState();
      const previewToken = ++this.previewToken;
      this.tableDatatop.push(row);
      this.atpresent = index;
      this.pdfVisible = true;
@@ -1364,6 +1378,10 @@
        );
        Promise.all(fetchPromises).then(fileListto => {
          // 2026-11-30:切换行后丢弃过期结果
          if (previewToken !== this.previewToken) {
            return;
          }
          this.fileListto = fileListto.filter(item => item !== null);
          this.pdfimg = this.fileListto[0].url;
          console.log(this.pdfimg, "pdfimg");
@@ -1387,6 +1405,26 @@
    },
    // 点击已上传文件:在附件弹窗右侧内嵌预览
    /**
     * 2026-11-30:单击列表项 → 在本页预览(右侧 preview-pane)。
     * 双击才打开独立的预览页面(downFile → $previewFile)。
     */
    previewInline(row) {
      if (!row) {
        return;
      }
      const url = row.previewUrl || row.url;
      if (!url) {
        return;
      }
      const file = {
        name: row.name || "",
        url,
        type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image"
      };
      this.embeddedFile = file;
    },
    downFile(item) {
      if (this.operationType == "detail") {
        const list = (this.fileListto || []).map(f => ({
src/views/project/travelexpenseapply/travelexpensedetail/index.vue
@@ -605,7 +605,7 @@
                        type="primary">点击上传</el-button></em>
                  </div>
                </el-upload>
                <el-table :data="fileListto" @row-click="downFile" style="width: 100%" height="400">
                <el-table :data="fileListto" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
                  <el-table-column prop="name" :show-overflow-tooltip="true" label="名称">
                    <template slot-scope="scope">
                      <i style="color:#409EFF" class=" el-icon-s-order" />{{
@@ -650,7 +650,7 @@
                        type="primary">点击上传</el-button></em>
                  </div>
                </el-upload>
                <el-table :data="invoicefileListto" @row-click="downFile" style="width: 100%" height="400">
                <el-table :data="invoicefileListto" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
                  <el-table-column prop="name" :show-overflow-tooltip="true" label="文件名称">
                    <template slot-scope="scope">
                      <i style="color:#409EFF" class=" el-icon-s-order" />{{
@@ -932,6 +932,7 @@
      invoicefileListto: [],
      invoicepdfimg: "",
      invoicepdfimgsrcList: [],
      previewToken: 0,
      currentIndex: 0, // 初始索引
      invoicecurrentIndex: 0, // 初始索引
      initialIndex: 0, // 初始索引
@@ -1481,18 +1482,33 @@
      }
    },
    // 点击票据
    /**
     * 2026-11-30:清空票据弹窗的预览状态。
     * 原实现漏清 embeddedFile / invoiceEmbeddedFile,导致再次打开弹窗时
     * 预览组件仍显示上一次选择的发票图片。
     */
    resetPreviewState() {
      this.fileListto = [];
      this.invoicefileListto = [];
      this.pdfimg = "";
      this.invoicepdfimg = "";
      this.pdfimgsrcList = [];
      this.invoicepdfimgsrcList = [];
      this.embeddedFile = null;
      this.invoiceEmbeddedFile = null;
      this.pdftitle = "";
      // 递增令牌:让上一行尚未返回的 fetch 结果失效,避免异步回写覆盖
      this.previewToken = (this.previewToken || 0) + 1;
    },
    Filepopup(index, rows, row) {
      const config = {
        headers: { Authorization: "Bearer " + this.ICDtoken }
      };
      this.tableDatatop = [];
      this.fileListto = [];
      this.invoicefileListto = [];
      this.pdfimg = "";
      this.invoicepdfimg = [];
      this.pdfimgsrcList = [];
      this.invoicepdfimgsrcList = [];
      this.resetPreviewState();
      const previewToken = ++this.previewToken;
      this.tableDatatop.push(row);
      this.atpresent = index;
      this.pdfVisible = true;
@@ -1517,6 +1533,11 @@
        );
        Promise.all(fetchPromises).then(fileListto => {
          // 2026-11-30:切换行后旧请求返回,丢弃过期结果,避免覆盖当前行预览
          if (previewToken !== this.previewToken) {
            return;
          }
          this.fileListto = fileListto.filter(item => item !== null);
          this.pdfimg = this.fileListto[0].url;
          console.log(this.pdfimg, "pdfimg");
@@ -1555,6 +1576,11 @@
        );
        Promise.all(fetchPromises).then(invoicefileListto => {
          // 2026-11-30:切换行后旧请求返回,丢弃过期结果,避免覆盖当前行预览
          if (previewToken !== this.previewToken) {
            return;
          }
          this.invoicefileListto = invoicefileListto.filter(
            item => item !== null
          );
@@ -1584,6 +1610,30 @@
    },
    // 差旅报销:附件统一使用独立 FilePreview(录入、审批、详情一致)
    /**
     * 2026-11-30:单击列表项 → 在本页预览(右侧 preview-pane)。
     * 双击才打开独立的预览页面(downFile → $previewFile)。
     */
    previewInline(row) {
      if (!row) {
        return;
      }
      const url = row.previewUrl || row.url;
      if (!url) {
        return;
      }
      const file = {
        name: row.name || "",
        url,
        type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image"
      };
      if (this.activeName == 2) {
        this.invoiceEmbeddedFile = file;
      } else {
        this.embeddedFile = file;
      }
    },
    downFile(item) {
      const source =
        this.activeName == 1 ? this.fileListto : this.invoicefileListto;
@@ -2870,6 +2920,9 @@
      } else {
        this.rbDetails.splice(rowIndex + 1, 0, rowData);
      }
      // 2026-11-30:新增行后把当前操作行切到新行,并清空上一次的预览态
      this.atpresent = this.rbDetails.indexOf(rowData);
      this.resetPreviewState();
      this.Reminderquantity++;
      this.totalquantity++;
      for (let i = 0; i < this.rbDetails.length; i++) {
src/views/project/unitCost/organfee/index.vue
@@ -142,13 +142,13 @@
    >
      <el-table-column type="index" label="序号" width="55" align="center" />
      <el-table-column
        prop="donatetime"
        prop="donationtime"
        label="捐献日期"
        width="120"
        align="center"
      >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span>
          <span>{{ parseTime(scope.row.donationtime, "{y}-{m}-{d}") }}</span>
        </template>
      </el-table-column>
      
@@ -205,14 +205,12 @@
        </template>
      </el-table-column>
      
      <el-table-column label="回款日期" width="120" align="center">
      <el-table-column label="回款日期" width="120" align="center"  prop="receiveTime">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.amounttime, "{y}-{m}-{d}") }}</span>
          <span>{{ parseTime(scope.row.receiveTime, "{y}-{m}-{d}") }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="name" label="受体" width="120" align="center" />
      <el-table-column
        prop="organchargedesc"
        label="备注"
@@ -338,12 +336,13 @@
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="收款日期" prop="organtime">
            <el-form-item label="回款日期" prop="receiveTime">
              <el-date-picker
                v-model="editForm.organtime"
                v-model="editForm.receiveTime"
                type="date"
                value-format="yyyy-MM-dd"
                placeholder="请选择收款日期"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd HH:mm"
                placeholder="请选择回款日期"
                style="width: 100%"
              />
            </el-form-item>
@@ -482,12 +481,13 @@
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="收款日期" prop="organtime">
            <el-form-item label="回款日期" prop="amounttime">
              <el-date-picker
                v-model="addForm.organtime"
                v-model="addForm.amounttime"
                type="date"
                value-format="yyyy-MM-dd"
                placeholder="请选择收款日期"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd HH:mm"
                placeholder="请选择回款日期"
                style="width: 100%"
              />
            </el-form-item>
@@ -565,6 +565,7 @@
    organState: null,
    organcharge: null,
    amount: null,
    amounttime: null,
    organtime: null,
    organchargedesc: null
  };
@@ -619,8 +620,10 @@
        name: null,
        organcharge: null,
        amount: null,
        amounttime: null,
        organState: null,
        organchargedesc: null,
        receiveTime: null,
        organtime: null
      },
      // 新增弹窗
@@ -809,12 +812,14 @@
        infoid:
          row.infoid === null || row.infoid === undefined ? null : row.infoid,
        donorname: row.donorname || null,
        donationtime: row.donationtime || null,
        hospitalno:
          row.hospitalno === null || row.hospitalno === undefined
            ? null
            : String(row.hospitalno),
        hospitalname: row.hospitalname || null,
        organname: row.organname || null,
        organno: row.organno || null,
        payOrganName: row.payOrganName || null,
        caseno: row.caseno || null,
        name: row.name || null,
@@ -868,6 +873,19 @@
          });
      });
    },
    /**
     * 2026-12-03:把接口返回的日期值统一规整为 yyyy-MM-dd HH:mm。
     * 后端全局 Jackson 配置把 Date 出参统一成 "yyyy-MM-dd HH:mm"(JacksonDateConfig),
     * 而历史接口/其他模块也可能返回 "yyyy-MM-dd"、ISO、时间戳,
     * 统一在这里转一次,保证 date-picker(value-format="yyyy-MM-dd HH:mm")能正确回显。
     */
    toDateTimeStr(value) {
      if (!value) {
        return null;
      }
      const m = this.$moment(value);
      return m.isValid() ? m.format("YYYY-MM-DD HH:mm") : null;
    },
    /** 打开修改弹窗(回款医院、付款器官名称、金额、利用状态、备注) */
    handleEdit(row) {
      this.editForm = {
@@ -891,7 +909,8 @@
            ? null
            : String(row.organState),
        organchargedesc: row.organchargedesc || "",
        organtime: row.organtime
        organtime: row.organtime,
        receiveTime: this.toDateTimeStr(row.receiveTime)
      };
      this.editOpen = true;
    },