fuliqi
2025-01-16 88ad0c93b99ee8a8bf84be87c2cd8c06d2591640
核算导出调整
1个文件已修改
18 ■■■■ 已修改文件
src/views/system/contract/report/index.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/contract/report/index.vue
@@ -35,7 +35,7 @@
          <span v-if="item.latestMonth" class="time">{{ item.whichYear }}年{{ item.latestMonth }}月</span>
          <span v-else class="time">暂无</span>
        </div>
        <el-button size="small" type="primary" round style="float: right;margin-left: 18px;" @click="handleExport(item)" v-hasPermi="['system:calculate:report:export']">导出</el-button>
        <el-button size="small" type="primary" round style="float: right;margin-left: 18px;" @click="handleExport(item.whichYear,null,item.contractId,item.contractName)" v-hasPermi="['system:calculate:report:export']">导出</el-button>
        <el-button size="small" round style="float: right;margin-bottom: 18px;" @click="handlePublish(item)"  v-hasPermi="['system:calculate:report:status']">确认发布</el-button>
      </el-card>
      </el-col>
@@ -117,7 +117,7 @@
          </el-table-column>
          <el-table-column
            prop="status"
            label="发布状态"
            label="操作"
            width="150"
            v-if="checkRole(['admin'])"
          >
@@ -137,6 +137,13 @@
                @click="handleDetailPublish(scope.row)"
                >
                发布
              </el-button>
              <el-button
                size="small"
                type="text"
                @click="handleExport(scope.row.whichYear,scope.row.whichMonth,detail.contractId,detail.contractName)"
              >
                导出
              </el-button>
            </template>
          </el-table-column>
@@ -336,10 +343,11 @@
    },
    /** 导出按钮操作 */
    handleExport(item) {
    handleExport(whichYear,whichMonth,contractId,contractName) {
      const name = contractName+whichYear+'年'+(whichMonth==null? '': whichMonth+'月')+'运维核算.xlsx'
      this.download('calculate-report/export', {
        ...{ 'calculateId': item.id, 'contractId': item.contractId},
      }, `${item.contractName}运维核算.xlsx`)
        ...{ 'whichYear': whichYear,'whichMonth': whichMonth, 'contractId': contractId},
      }, `${name}`)
    },
    /** 合计行 */
    getSummaries(param) {