bding 1 éve
szülő
commit
88194936f1

+ 16 - 0
src/api/modules/statisticApi.js

@@ -103,6 +103,14 @@ const dataMainInterface = {
 	addAscrib:params => {
 		return http.post('/custom/company_ascribe/add',params);
 	},
+	/**
+	 * 合同通过归因添加确认不续约接口
+	 * @param {KeyWord} params 
+	 * @returns  
+	*/
+	addAscribContract:params => {
+		return http.post('/custom/company_contract_no_renewed_ascribe/add',params);
+	},
 	/**
 	 * 修改归因标签
 	* @param {CompanyId} params 公司ID
@@ -123,6 +131,14 @@ const dataMainInterface = {
 	infoNoRenewedAscribe:params => {
 		return http.get('/custom/company_no_renewed_ascribe/detail',params);
 	},
+	/**
+	 * 合同确认归因不续约详情接口
+	* @param {CompanyContractId} params 合同ID
+	 * @returns  
+	*/
+	contractInfoNoRenewedAscribe:params => {
+		return http.get('/custom/company_contract_no_renewed_ascribe/detail',params);
+	},
 	/**
 	 * 获取收入统计列表接口
 	 * @param {PageSize} params 

+ 4 - 4
src/views/dataReport_manage/equityCustomStatistics.vue

@@ -168,6 +168,7 @@
       :noRenewalReasonList="noRenewalReasonList"
       @refreshReasonList="getNORenewalReasonList"
       @saveLabel="saveLabel"
+      equityType="权益客户统计"
     />
     <previous-detail :previousDetailDlg.sync="previousDetailDlg" :rowInfo="rowInfo" />
   </div>
@@ -546,7 +547,7 @@ export default {
       this.isConfirmNoRenewalShow = true;
     },
     editReasonLabel(row) {
-      dataMainInterface.infoNoRenewedAscribe({ CompanyId: row.CompanyId, ProductId: row.ProductId }).then((res) => {
+      dataMainInterface.contractInfoNoRenewedAscribe({ CompanyContractId: row.CompanyContractId }).then((res) => {
         if (res.Ret == 200) {
           this.confirmNoRenewalForm.reason = res.Data.Detail ? res.Data.Detail.CompanyAscribeId || "" : "";
           this.confirmNoRenewalForm.detailReason = res.Data.Detail ? res.Data.Detail.Content || "" : "";
@@ -557,12 +558,11 @@ export default {
     },
     saveLabel(item) {
       let params = {
-        CompanyId: this.selectItemRow.CompanyId,
-        ProductId: this.selectItemRow.ProductId,
+        CompanyContractId: this.selectItemRow.CompanyContractId,
         CompanyAscribeId: item.CompanyAscribeId,
         Content: item.Content,
       };
-      dataMainInterface.addNoRenewedAscribe(params).then((res) => {
+      dataMainInterface.addAscribContract(params).then((res) => {
         if (res.Ret == 200) {
           this.$message.success("确认成功");
           this.isConfirmNoRenewalShow = false;