yxh
10 天以前 531d433ab95e1c5ca48637eca9dc157380f675c0
src/views/project/fund/officeExpenseApply/index.vue
@@ -2,6 +2,7 @@
<template>
  <div class="app-container">
    <el-form
      class="opo-query-form"
      :model="queryParams"
      ref="queryForm"
      :inline="true"
@@ -111,10 +112,10 @@
      />
      <el-table-column
        label="申请金额"
        align="center"
        align="right" header-align="right"
        prop="pretaxcost"
        width="150px"
      />
      / class-name="money-column" :formatter="formatMoney">
      <el-table-column
        label="所属组别"
        align="center"
@@ -226,7 +227,7 @@
                style="width: 100%"
                v-model="form.applyTime"
                type="date" format="yyyy-MM-dd"
                value-format="yyyy-MM-dd"
                value-format="yyyy-MM-dd HH:mm:ss"
                placeholder="申请日期"
              >
              </el-date-picker>
@@ -310,8 +311,8 @@
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="税后金额" prop="pretaxcost">
              <el-input v-model="form.taxedcost" placeholder="税后金额合计" :disabled="true" />
            <el-form-item label="劳务税后" prop="pretaxcost">
              <el-input v-model="form.taxedcost" placeholder="劳务税后合计" :disabled="true" />
            </el-form-item>
          </el-col>
          <el-col :span="5">
@@ -438,11 +439,11 @@
                              </el-table-column> -->
            <el-table-column
              prop="amount"
              align="center"
              align="right" header-align="right"
              label="税前金额"
              width="120"
              v-if="form.applytype != 3"
            >
             class-name="money-column" :formatter="formatMoney">
              <template slot-scope="scope">
                <el-select
                  v-model="scope.row.amount"
@@ -473,16 +474,37 @@
              </template>
            </el-table-column>
            <el-table-column
              prop="taxamount"
              align="center"
              label="扣税"
              prop="vatAmount"
              align="right" header-align="right"
              label="增值税"
              width="110"
              v-if="form.applytype != '3'"
            / class-name="money-column" :formatter="formatMoney">
            <el-table-column
              prop="cityTaxAmount"
              align="right" header-align="right"
              label="城建税"
              width="110"
              v-if="form.applytype != '3'"
            / class-name="money-column" :formatter="formatMoney">
            <el-table-column
              prop="laborPretaxAmount"
              align="right" header-align="right"
              label="劳务税前"
              width="120"
              v-if="form.applytype != '3'"
            >
            / class-name="money-column" :formatter="formatMoney">
            <el-table-column
              prop="taxamount"
              align="right" header-align="right"
              label="劳务个税"
              width="120"
              v-if="form.applytype != '3'"
             class-name="money-column" :formatter="formatMoney">
              <template slot-scope="scope">
                <el-input
                  v-model="scope.row.taxamount"
                  placeholder="扣税"
                  placeholder="劳务个税"
                  @blur="
                    val => {
                      sumTotalFee(scope.row);
@@ -493,15 +515,15 @@
            </el-table-column>
            <el-table-column
              prop="taxedamount"
              align="center"
              label="税后金额"
              align="right" header-align="right"
              label="劳务税后"
              width="120"
              v-if="form.applytype != '3'"
            >
             class-name="money-column" :formatter="formatMoney">
              <template slot-scope="scope">
                <el-input
                  v-model="scope.row.taxedamount"
                  placeholder="税后金额"
                  placeholder="劳务税后"
                />
              </template>
            </el-table-column>
@@ -546,11 +568,11 @@
            <el-table-column
              prop="amount"
              align="center"
              align="right" header-align="right"
              label="金额"
              width="120"
              v-if="form.applytype == '3'"
            >
             class-name="money-column" :formatter="formatMoney">
              <template slot-scope="scope">
                <el-input
                  v-model="scope.row.amount"
@@ -1928,13 +1950,23 @@
      if (response.code == 200) {
        this.form.filename = file.raw.name;
        this.$modal.msgSuccess(response.msg);
        this.fileList.push({ name: response.fileName, url: response.fileName });
        // 2026-10-15:列表里的 name 用操作人的原始文件名,不要用 response.fileName(那是存储路径)。
        // 保存时只回写 url(form.annexbankcard 存的是逗号拼接的 url),所以这里只影响上传框的显示。
        this.fileList.push({ name: file.raw.name, url: response.fileName });
      } else {
        console.log(response.msg);
      }
    },
    // 下载文件
    // 预览/下载文件
    downFile(item) {
      const ext = String(item.name || "")
        .split(".")
        .pop()
        .toLowerCase();
      if (["pdf", "jpg", "jpeg", "png", "gif", "bmp", "webp"].includes(ext)) {
        this.$previewFile([{ name: item.name, url: item.url }]);
        return;
      }
      const url = process.env.VUE_APP_BASE_API + item.url;
      var a = document.createElement("a");
      var event = new MouseEvent("click");