yxh
8 天以前 51101f83762dba9c75f4d757c00edd03c7b6e038
src/views/project/fund/performancedetails/index.vue
@@ -251,33 +251,6 @@
              </template>
            </el-table-column>
            <el-table-column
              prop="vatAmount"
              align="right"
              header-align="right"
              class-name="money-column"
              label="增值税"
              width="110"
              :formatter="formatMoney"
            />
            <el-table-column
              prop="cityTaxAmount"
              align="right"
              header-align="right"
              class-name="money-column"
              label="城建税"
              width="110"
              :formatter="formatMoney"
            />
            <el-table-column
              prop="laborPretaxAmount"
              align="right"
              header-align="right"
              class-name="money-column"
              label="劳务税前"
              width="120"
              :formatter="formatMoney"
            />
            <el-table-column
              prop="taxamount"
              align="right"
              header-align="right"
@@ -290,7 +263,7 @@
                  @blur="normalizeMoney(scope.row, 'taxamount'); chargeSum()"
                  v-model="scope.row.taxamount"
                  class="money-input"
                  placeholder="劳务个税"
                  placeholder="个税"
                />
              </template>
            </el-table-column>
@@ -299,14 +272,14 @@
              align="right"
              header-align="right"
              class-name="money-column"
              label="劳务税后"
              label="税后金额"
              width="120"
             :formatter="formatMoney">
              <template slot-scope="scope">
                <el-input
                  v-model="scope.row.taxedamount"
                  class="money-input"
                  placeholder="劳务税后"
                  placeholder="税后金额"
                  @blur="normalizeMoney(scope.row, 'taxedamount'); queenchargeSum()"
                />
              </template>
@@ -2837,14 +2810,30 @@
      this.showSelectionDialog = false;
    },
    handleUploadError() {},
    /** 2026-11-23:按文件名从列表中精确删除一项,避免用预览列表(blob)整表覆盖附件字段 */
    spliceByName(list, name) {
      if (!list || !name) {
        return;
      }
      const idx = list.findIndex(item => item && item.name === name);
      if (idx > -1) {
        list.splice(idx, 1);
      }
    },
    remove(file, fileList) {
      const rbDetails = [...this.rbDetails];
      if (this.activeName == 1) {
        this.fileListto.splice(this.fileListto.indexOf(file), 1);
        rbDetails[this.atpresent].annexfilesList = this.fileListto;
        this.spliceByName(this.fileListto, file && file.name);
        this.spliceByName(
          rbDetails[this.atpresent].annexfilesList,
          file && file.name
        );
      } else {
        this.invoicefileListto.splice(this.invoicefileListto.indexOf(file), 1);
        rbDetails[this.atpresent].invoicefilesList = this.invoicefileListto;
        this.spliceByName(this.invoicefileListto, file && file.name);
        this.spliceByName(
          rbDetails[this.atpresent].invoicefilesList,
          file && file.name
        );
      }
    },
    // 获取请求头
@@ -2857,9 +2846,16 @@
     * 规则与后端 AttachmentNameValidator 同口径:不强制含中文 / 去掉扩展名后主干 ≤20 字 /
     * 不含空格及 / \ : * ? " < > | # % 等特殊字符。
     */
    /**
     * 2026-11-17:附件名是否必须含中文
     * 专家劳务费(1)、伦理专家费(2) 不要求;绩效及其他类型必须含中文
     */
    requireChineseName() {
      return !(this.businessType == "1" || this.businessType == "2");
    },
    checkUploadFileName(file) {
      const raw = file && file.raw ? file.raw.name : file && file.name;
      const r = checkFileName(raw);
      const r = checkFileName(raw, { requireChinese: this.requireChineseName() });
      if (!r.ok) {
        this.$modal.msgError(r.msg);
        return false;
@@ -2877,7 +2873,9 @@
      if (this.form && this.form.id) {
        return true;
      }
      const c = checkDetails(this.rbDetails);
      const c = checkDetails(this.rbDetails, {
        requireChinese: this.requireChineseName()
      });
      if (!c.ok) {
        this.$modal.msgError(c.msg);
        return false;