Commit b3f395d4 authored by zhkwei's avatar zhkwei

CIT总分机构分配表

parent 867bf355
...@@ -29,7 +29,7 @@ import static javax.servlet.http.HttpServletResponse.SC_OK; ...@@ -29,7 +29,7 @@ import static javax.servlet.http.HttpServletResponse.SC_OK;
* @description CIT报表生成(数据处理) * @description CIT报表生成(数据处理)
*/ */
@RestController @RestController
@RequestMapping(value = "api/v1/citReport") @RequestMapping(value = "/api/v1/citReport/")
public class CitReportController { public class CitReportController {
private static Logger logger = LoggerFactory.getLogger(CitReportController.class); private static Logger logger = LoggerFactory.getLogger(CitReportController.class);
...@@ -68,17 +68,15 @@ public class CitReportController { ...@@ -68,17 +68,15 @@ public class CitReportController {
/** /**
* 生成CIT总分机构分配表 * 生成CIT总分机构分配表
* @param projectId
* @return * @return
*/ */
@RequestMapping(value = "generateDistributionTable/{projectId}", method = RequestMethod.POST, @RequestMapping(value = "generateDistributionTable", method = RequestMethod.POST)
produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public @ResponseBody ApiResultDto generateDistributionTable(@RequestBody CitDistributionDto citDistributionDto) {
public ApiResultDto generateDistributionTable(@PathVariable String projectId) {
ApiResultDto apiResultDto = new ApiResultDto(); ApiResultDto apiResultDto = new ApiResultDto();
try{ try{
apiResultDto.setCode(1); apiResultDto.setCode(1);
apiResultDto.setMessage("生成成功"); apiResultDto.setMessage("生成成功");
apiResultDto.setData(citReportService.generateTotalBranchOrgDisTable(projectId)); apiResultDto.setData(citReportService.generateTotalBranchOrgDisTable(citDistributionDto.getProjectId()));
return apiResultDto; return apiResultDto;
}catch(Exception e){ }catch(Exception e){
e.printStackTrace(); e.printStackTrace();
...@@ -179,7 +177,21 @@ public class CitReportController { ...@@ -179,7 +177,21 @@ public class CitReportController {
return apiResultDto; return apiResultDto;
} }
} }
/**
* 固定资产及EAM Mapping导出
* @param paras
* @param response
*/
@RequestMapping(value = "exportDTData", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public void exportDTData(@RequestBody CitDistributionDto paras, HttpServletResponse response) {
int count = citReportService.exportDTData2(paras, response);
if (count == 0) {
response.setStatus(SC_NO_CONTENT);
} else {
response.setStatus(SC_OK);
}
}
/** /**
* 获取单元格相关数据 * 获取单元格相关数据
* @param reportId * @param reportId
......
...@@ -221,6 +221,28 @@ public class CitDistribution extends BaseEntity implements Serializable { ...@@ -221,6 +221,28 @@ public class CitDistribution extends BaseEntity implements Serializable {
*/ */
private Date updateTime; private Date updateTime;
/**
* Database Column Remarks:
* 机构编码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_distribution.code
*
* @mbg.generated
*/
private String code;
/**
* Database Column Remarks:
* 期间月份
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_distribution.period_month
*
* @mbg.generated
*/
private String periodMonth;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database table cit_distribution * This field corresponds to the database table cit_distribution
...@@ -685,6 +707,54 @@ public class CitDistribution extends BaseEntity implements Serializable { ...@@ -685,6 +707,54 @@ public class CitDistribution extends BaseEntity implements Serializable {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_distribution.code
*
* @return the value of cit_distribution.code
*
* @mbg.generated
*/
public String getCode() {
return code;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_distribution.code
*
* @param code the value for cit_distribution.code
*
* @mbg.generated
*/
public void setCode(String code) {
this.code = code == null ? null : code.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_distribution.period_month
*
* @return the value of cit_distribution.period_month
*
* @mbg.generated
*/
public String getPeriodMonth() {
return periodMonth;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_distribution.period_month
*
* @param periodMonth the value for cit_distribution.period_month
*
* @mbg.generated
*/
public void setPeriodMonth(String periodMonth) {
this.periodMonth = periodMonth == null ? null : periodMonth.trim();
}
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_distribution * This method corresponds to the database table cit_distribution
...@@ -716,6 +786,8 @@ public class CitDistribution extends BaseEntity implements Serializable { ...@@ -716,6 +786,8 @@ public class CitDistribution extends BaseEntity implements Serializable {
sb.append(", createBy=").append(createBy); sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime); sb.append(", updateTime=").append(updateTime);
sb.append(", code=").append(code);
sb.append(", periodMonth=").append(periodMonth);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
......
...@@ -1415,6 +1415,146 @@ public class CitDistributionExample { ...@@ -1415,6 +1415,146 @@ public class CitDistributionExample {
addCriterion("update_time not between", value1, value2, "updateTime"); addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCodeIsNull() {
addCriterion("code is null");
return (Criteria) this;
}
public Criteria andCodeIsNotNull() {
addCriterion("code is not null");
return (Criteria) this;
}
public Criteria andCodeEqualTo(String value) {
addCriterion("code =", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotEqualTo(String value) {
addCriterion("code <>", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThan(String value) {
addCriterion("code >", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThanOrEqualTo(String value) {
addCriterion("code >=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThan(String value) {
addCriterion("code <", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThanOrEqualTo(String value) {
addCriterion("code <=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLike(String value) {
addCriterion("code like", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotLike(String value) {
addCriterion("code not like", value, "code");
return (Criteria) this;
}
public Criteria andCodeIn(List<String> values) {
addCriterion("code in", values, "code");
return (Criteria) this;
}
public Criteria andCodeNotIn(List<String> values) {
addCriterion("code not in", values, "code");
return (Criteria) this;
}
public Criteria andCodeBetween(String value1, String value2) {
addCriterion("code between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andCodeNotBetween(String value1, String value2) {
addCriterion("code not between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andPeriodMonthIsNull() {
addCriterion("period_month is null");
return (Criteria) this;
}
public Criteria andPeriodMonthIsNotNull() {
addCriterion("period_month is not null");
return (Criteria) this;
}
public Criteria andPeriodMonthEqualTo(String value) {
addCriterion("period_month =", value, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthNotEqualTo(String value) {
addCriterion("period_month <>", value, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthGreaterThan(String value) {
addCriterion("period_month >", value, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthGreaterThanOrEqualTo(String value) {
addCriterion("period_month >=", value, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthLessThan(String value) {
addCriterion("period_month <", value, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthLessThanOrEqualTo(String value) {
addCriterion("period_month <=", value, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthLike(String value) {
addCriterion("period_month like", value, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthNotLike(String value) {
addCriterion("period_month not like", value, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthIn(List<String> values) {
addCriterion("period_month in", values, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthNotIn(List<String> values) {
addCriterion("period_month not in", values, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthBetween(String value1, String value2) {
addCriterion("period_month between", value1, value2, "periodMonth");
return (Criteria) this;
}
public Criteria andPeriodMonthNotBetween(String value1, String value2) {
addCriterion("period_month not between", value1, value2, "periodMonth");
return (Criteria) this;
}
} }
/** /**
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> <result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="period_month" jdbcType="VARCHAR" property="periodMonth" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -100,7 +102,7 @@ ...@@ -100,7 +102,7 @@
id, organization_id, project_id, date, source, period, quarter, tax_payer_number, id, organization_id, project_id, date, source, period, quarter, tax_payer_number,
org_name, business_income, employee_remuneration, total_assets, distribution_ratio, org_name, business_income, employee_remuneration, total_assets, distribution_ratio,
distribution_ratio_formula, distribution_amount, distribution_amount_formula, create_by, distribution_ratio_formula, distribution_amount, distribution_amount_formula, create_by,
create_time, update_time create_time, update_time, code, period_month
</sql> </sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CitDistributionExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CitDistributionExample" resultMap="BaseResultMap">
<!-- <!--
...@@ -159,16 +161,16 @@ ...@@ -159,16 +161,16 @@
business_income, employee_remuneration, total_assets, business_income, employee_remuneration, total_assets,
distribution_ratio, distribution_ratio_formula, distribution_ratio, distribution_ratio_formula,
distribution_amount, distribution_amount_formula, distribution_amount, distribution_amount_formula,
create_by, create_time, update_time create_by, create_time, update_time,
) code, period_month)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER}, #{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER},
#{quarter,jdbcType=INTEGER}, #{taxPayerNumber,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR}, #{quarter,jdbcType=INTEGER}, #{taxPayerNumber,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR},
#{businessIncome,jdbcType=DECIMAL}, #{employeeRemuneration,jdbcType=DECIMAL}, #{totalAssets,jdbcType=DECIMAL}, #{businessIncome,jdbcType=DECIMAL}, #{employeeRemuneration,jdbcType=DECIMAL}, #{totalAssets,jdbcType=DECIMAL},
#{distributionRatio,jdbcType=DECIMAL}, #{distributionRatioFormula,jdbcType=VARCHAR}, #{distributionRatio,jdbcType=DECIMAL}, #{distributionRatioFormula,jdbcType=VARCHAR},
#{distributionAmount,jdbcType=DECIMAL}, #{distributionAmountFormula,jdbcType=VARCHAR}, #{distributionAmount,jdbcType=DECIMAL}, #{distributionAmountFormula,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP} #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
) #{code,jdbcType=VARCHAR}, #{periodMonth,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.CitDistribution"> <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.CitDistribution">
<!-- <!--
...@@ -234,6 +236,12 @@ ...@@ -234,6 +236,12 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time, update_time,
</if> </if>
<if test="code != null">
code,
</if>
<if test="periodMonth != null">
period_month,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -293,6 +301,12 @@ ...@@ -293,6 +301,12 @@
<if test="updateTime != null"> <if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="periodMonth != null">
#{periodMonth,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entity.CitDistributionExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="pwc.taxtech.atms.entity.CitDistributionExample" resultType="java.lang.Long">
...@@ -369,6 +383,12 @@ ...@@ -369,6 +383,12 @@
<if test="record.updateTime != null"> <if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="record.code != null">
code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.periodMonth != null">
period_month = #{record.periodMonth,jdbcType=VARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -398,7 +418,9 @@ ...@@ -398,7 +418,9 @@
distribution_amount_formula = #{record.distributionAmountFormula,jdbcType=VARCHAR}, distribution_amount_formula = #{record.distributionAmountFormula,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR}, create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP} update_time = #{record.updateTime,jdbcType=TIMESTAMP},
code = #{record.code,jdbcType=VARCHAR},
period_month = #{record.periodMonth,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -464,6 +486,12 @@ ...@@ -464,6 +486,12 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="periodMonth != null">
period_month = #{periodMonth,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
...@@ -490,7 +518,9 @@ ...@@ -490,7 +518,9 @@
distribution_amount_formula = #{distributionAmountFormula,jdbcType=VARCHAR}, distribution_amount_formula = #{distributionAmountFormula,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP},
code = #{code,jdbcType=VARCHAR},
period_month = #{periodMonth,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.CitDistributionExample" resultMap="BaseResultMap"> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.CitDistributionExample" resultMap="BaseResultMap">
......
vatModule.controller('citDistributionTableController', ['$rootScope','$scope', '$log', '$filter','$translate', '$timeout', 'SweetAlert', '$q', 'uiGridConstants', '$interval', 'citPreviewService', 'citReportService','browserService', 'vatSessionService', 'region', 'enums', 'vatExportService', citModule.controller('citDistributionTableController', ['$rootScope','$scope', '$log', '$filter','$translate', '$timeout', 'SweetAlert', '$q', 'uiGridConstants', '$interval', 'citPreviewService', 'citReportService','browserService', 'vatSessionService', 'region', 'enums', 'vatExportService',
function ($rootScope,$scope, $log,$filter, $translate, $timeout, SweetAlert, $q, uiGridConstants, $interval, citPreviewService, citReportService, browserService, vatSessionService, region, enums, vatExportService) { function ($rootScope,$scope, $log,$filter, $translate, $timeout, SweetAlert, $q, uiGridConstants, $interval, citPreviewService, citReportService, browserService, vatSessionService, region, enums, vatExportService) {
'use strict'; 'use strict';
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
}; };
$scope.getDataFromDatabase = function (queryParams){ $scope.getDataFromDatabase = function (queryParams){
citReportService.getAssetEamMappings(queryParams).success(function (resp) { citReportService.getDistributionTables(queryParams).success(function (resp) {
debugger; debugger;
if (resp.data) { if (resp.data) {
// minDate = data. // minDate = data.
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
}; };
var downloadJE = function () { var downloadJE = function () {
citReportService.initExportAEMData($scope.queryParams).success(function (data, status, headers) { citReportService.initExportDTData($scope.queryParams).success(function (data, status, headers) {
if(status===204){ if(status===204){
SweetAlert.warning("没有数据可以下载"); SweetAlert.warning("没有数据可以下载");
return; return;
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
}; };
$scope.startCalculateData = function () { $scope.startCalculateData = function () {
citReportService.generateDistributionTable(vatSessionService.project.id).success(function (data, status, headers) { citReportService.generateDistributionTable($scope.queryParams).success(function (data) {
loadJournalEntryDataFromDB(1); loadJournalEntryDataFromDB(1);
// if(status===204){ // if(status===204){
// SweetAlert.warning("没有数据可以下载"); // SweetAlert.warning("没有数据可以下载");
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
}; };
(function initialize() { (function initialize() {
$log.debug('VatPreviewInputInvoiceController.ctor()...'); $log.debug('citDistributionTableController.ctor()...');
$('#input-invoice-period-picker').focus(function () { $('#input-invoice-period-picker').focus(function () {
$('.filter-button').popover("hide"); $('.filter-button').popover("hide");
}); });
...@@ -286,6 +286,7 @@ ...@@ -286,6 +286,7 @@
$scope.gridOptions = { $scope.gridOptions = {
rowHeight: constant.UIGrid.rowHeight, rowHeight: constant.UIGrid.rowHeight,
showColumnFooter: true,
selectionRowHeaderWidth: constant.UIGrid.rowHeight, selectionRowHeaderWidth: constant.UIGrid.rowHeight,
// expandableRowTemplate: '<div ui-grid="row.entity.subGridOptions" style="height:150px;"></div>', // expandableRowTemplate: '<div ui-grid="row.entity.subGridOptions" style="height:150px;"></div>',
virtualizationThreshold: 50,//默认加载50条数据,避免在数据展示时,只显示前面4条 virtualizationThreshold: 50,//默认加载50条数据,避免在数据展示时,只显示前面4条
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
<div class="nav-header">{{'DistributionTable' | translate}}</div> <div class="nav-header">{{'DistributionTable' | translate}}</div>
<div class="nav-tab"> <div class="nav-tab">
<span style="width: auto" ng-click="startCalculateData()">{{'startCaculateData' | translate}}</span> <span style="width: auto" ng-click="startCalculateData()">{{'startCaculateData' | translate}}</span>
<span ng-click="downloadJE()" style="position: relative; top: -61px; left: 95%;"><i class="fa fa-file-excel-o" aria-hidden="true"></i>{{'ExportBtn' | translate}}</span> <span ng-click="downloadJE()" style="float: right;"><i class="fa fa-file-excel-o" aria-hidden="true"></i>{{'ExportBtn' | translate}}</span>
</div> </div>
</div> </div>
<!--<div class="top-area-wrapper" style="margin-top: 10px">--> <div class="top-area-wrapper" style="margin-top: 10px;display: none">
<!--<span translate="DistributionTable" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;--> <span translate="DistributionTable" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;
<!--<span class="text-bold" translate="InvoiceQJ" style="display: none"></span>--> <span class="text-bold" translate="InvoiceQJ" style="display: none"></span>
<!--<input type="text" class="form-control input-width-middle periodInput" style="position: relative; top: -30px; left: 180px;display: none" id="input-invoice-period-picker" />--> <input type="text" class="form-control input-width-middle periodInput" style="position: relative; top: -30px; left: 180px;display: none" id="input-invoice-period-picker" />
<!--<span ng-click="downloadJE()" style="position: relative; top: -61px; left: 95%;"><i class="fa fa-file-excel-o" aria-hidden="true"></i>{{'ExportBtn' | translate}}</span>--> <span ng-click="downloadJE()" style="position: relative; top: -61px; left: 95%;"><i class="fa fa-file-excel-o" aria-hidden="true"></i>{{'ExportBtn' | translate}}</span>
<!--</div>--> </div>
<!--<div style="margin-bottom: 8px;margin-left: 30px">--> <!--<div style="margin-bottom: 8px;margin-left: 30px">-->
<!--{{'EnterpriseAccountSetName' | translate}}<span class="numAmount">{{ledgerName}}</span>&nbsp;&nbsp;&nbsp;--> <!--{{'EnterpriseAccountSetName' | translate}}<span class="numAmount">{{ledgerName}}</span>&nbsp;&nbsp;&nbsp;-->
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
'vatSessionService', 'vatSessionService',
function ($q, $log, $http, $translate, apiConfig, enums, SweetAlert, vatOperationLogService, vatSessionService) { function ($q, $log, $http, $translate, apiConfig, enums, SweetAlert, vatOperationLogService, vatSessionService) {
'use strict'; 'use strict';
$log.debug('vatReportService.ctor()...'); $log.debug('citReportService.ctor()...');
return { return {
// 修改保存机制后,需要添加缓存机制的方法: // 修改保存机制后,需要添加缓存机制的方法:
...@@ -234,8 +234,17 @@ ...@@ -234,8 +234,17 @@
/** /**
生成所得税分配表的 生成所得税分配表的
*/ */
generateDistributionTable : function(projectId){ generateDistributionTable : function(citAssetsListDto){
return $http.post('/citReport/generateDistributionTable/' + projectId, apiConfig.create()); debugger;
return $http.post('/citReport/generateDistributionTable', citAssetsListDto, apiConfig.create());
},
/**
* 导出生成所得税分配表
* @param citAssetsListDto
* @returns {HttpPromise}
*/
initExportDTData: function (citAssetsListDto) {
return $http.post('/citReport/exportDTData', citAssetsListDto, apiConfig.create({ responseType: 'arraybuffer' }));
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment