| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-DollarList"],{"6e86":function(t,i,a){"use strict";a("f354")},b1b3:function(t,i,a){"use strict";a.r(i);var s=function(){var t=this,i=t._self._c;return i("div",{attrs:{id:"custom_history"}},[i("div",{staticClass:"crm-title-box"},[i("div",{staticClass:"tit"},[i("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item52",expression:"'wallet.item52'"}]})]),i("div",{staticClass:"btn crm-cursor",on:{click:t.backActivity}},[i("i",{staticClass:"el-icon-back"}),i("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Title",expression:"'Custom.Settings.Title'"}]})])]),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticClass:"main-content"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.tableData||0===t.tableData.length,expression:"!tableData || tableData.length === 0"}],staticClass:"no-data-container"},[i("div",{staticClass:"no-data-content"},[i("i",{staticClass:"el-icon-document"}),i("p",[t._v(t._s(t.$t("UtaskList.item12")))])])]),t._l(t.tableData,(function(a,s){return i("div",{directives:[{name:"show",rawName:"v-show",value:t.tableData&&t.tableData.length>0,expression:"tableData && tableData.length > 0"}],key:s,staticClass:"outer-card"},[i("div",{staticClass:"data-cards"},[i("div",{staticClass:"total-data-row"},[i("div",{staticClass:"data-card total-card"},[i("div",{staticClass:"card-content"},[i("div",{staticClass:"card-title"},[t._v(t._s(t.$t("DollarActivity.fieldDepositAmount")))]),i("div",{staticClass:"card-value"},[t._v(t._s(t.cell(a.depositAmount)))])])]),i("div",{staticClass:"data-card total-card"},[i("div",{staticClass:"card-content"},[i("div",{staticClass:"card-title"},[t._v(t._s(t.$t("DollarActivity.fieldEndDate")))]),i("div",{staticClass:"card-value"},[t._v(t._s(t.cell(a.endDate)))])])]),i("div",{staticClass:"data-card total-card"},[i("div",{staticClass:"card-content"},[i("div",{staticClass:"card-title"},[t._v(" "+t._s(t.$t("DollarActivity.fieldApplyDepositAmount"))+" ")]),i("div",{staticClass:"card-value"},[t._v(t._s(t.cell(a.applyDepositAmount)))])])]),i("div",{staticClass:"data-card total-card"},[i("div",{staticClass:"card-content"},[i("div",{staticClass:"card-title"},[t._v(" "+t._s(t.$t("DollarActivity.fieldApplyGiveNum"))+" ")]),i("div",{staticClass:"card-value"},[t._v(t._s(t.cell(a.applyGiveNum)))])])]),i("div",{staticClass:"data-card total-card"},[i("div",{staticClass:"card-content"},[i("div",{staticClass:"card-title"},[t._v(t._s(t.$t("Label.State")))]),i("div",{staticClass:"card-value",style:t.statusStyle(a.status)},[t._v(" "+t._s(t.statusText(a.status))+" ")])])])]),i("div",{staticClass:"card-actions"},[i("el-button",{attrs:{size:"small"},on:{click:function(i){return t.openGiveRecordsDialog(a)}}},[t._v(" "+t._s(t.$t("DollarActivity.applyRecordsBtn"))+" ")]),1===Number(a.status)?i("el-button",{attrs:{type:"danger",size:"small",loading:t.cancelLoadingId===a.id},on:{click:function(i){return t.confirmCancelDollarActivity(a)}}},[t._v(" "+t._s(t.$t("Btn.Cancel"))+" ")]):t._e(),t.showDollarClaimRewardButton(a)?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return t.openClaimDialog(a)}}},[t._v(" "+t._s(t.$t("DollarActivity.claimReward"))+" ")]):t._e()],1)])])}))],2),i("el-dialog",{attrs:{title:t.$t("DollarActivity.dialogClaimTitle"),visible:t.dialogClaimVisible,width:"480px","close-on-click-modal":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(i){t.dialogClaimVisible=i},closed:t.onClaimDialogClosed}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.ruleLoading,expression:"ruleLoading"}],staticClass:"claim-dialog-body"},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$t("DollarActivity.selectRulePlaceholder"),disabled:0===t.ruleOptions.length},model:{value:t.selectedRuleId,callback:function(i){t.selectedRuleId=i},expression:"selectedRuleId"}},t._l(t.ruleOptions,(function(a){return i("el-option",{key:t.ruleOptionKey(a),attrs:{label:t.ruleOptionLabel(a),value:t.ruleOptionValue(a),disabled:t.isRuleOptionDisabled(a)}})})),1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(i){t.dialogClaimVisible=!1}}},[t._v(t._s(t.$t("Btn.Cancel")))]),i("el-button",{attrs:{type:"primary",loading:t.applySubmitting,disabled:null===t.selectedRuleId||""===t.selectedRuleId},on:{click:t.confirmClaimReward}},[t._v(" "+t._s(t.$t("Btn.Confirm"))+" ")])],1)]),i("el-dialog",{attrs:{title:t.$t("DollarActivity.dialogApplyRewardRecordsTitle"),visible:t.dialogGiveRecordsVisible,width:"900px","close-on-click-modal":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(i){t.dialogGiveRecordsVisible=i},closed:t.onGiveRecordsDialogClosed}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.giveRecordsLoading,expression:"giveRecordsLoading"}],staticClass:"give-records-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.giveRecordsList,border:"",stripe:"","max-height":"420"}},[i("el-table-column",{attrs:{prop:"depositAmount",label:t.$t("DollarActivity.giveColumnDepositAmount"),"min-width":"100",formatter:t.giveRecordCellFormatter}}),i("el-table-column",{attrs:{prop:"rewardAmount",label:t.$t("DollarActivity.giveColumnRewardAmount"),"min-width":"100",formatter:t.giveRecordCellFormatter}}),i("el-table-column",{attrs:{prop:"standardVolume",label:t.$t("DollarActivity.giveColumnStandardVolume"),"min-width":"110",formatter:t.giveRecordCellFormatter}}),i("el-table-column",{attrs:{prop:"ecnVolume",label:t.$t("DollarActivity.giveColumnEcnVolume"),"min-width":"100",formatter:t.giveRecordCellFormatter}}),i("el-table-column",{attrs:{prop:"centVolume",label:t.$t("DollarActivity.giveColumnCentVolume"),"min-width":"110",formatter:t.giveRecordCellFormatter}}),i("el-table-column",{attrs:{prop:"addTime",label:t.$t("DollarActivity.giveColumnAddTime"),"min-width":"160",formatter:t.giveRecordCellFormatter}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(i){t.dialogGiveRecordsVisible=!1}}},[t._v(t._s(t.$t("Btn.Confirm")))])],1)])],1)},e=[],l=(a("14d9"),a("ccaf")),o=a("f121"),c=a.n(o);let{Code:n}=c.a;var r={name:"DollarList",data(){return{flag:!1,pictLoading:!1,tableData:[],dialogClaimVisible:!1,claimTaskId:null,ruleOptions:[],selectedRuleId:null,ruleLoading:!1,applySubmitting:!1,cancelLoadingId:null,dialogGiveRecordsVisible:!1,giveRecordsTaskId:null,giveRecordsList:[],giveRecordsLoading:!1}},methods:{cell(t){return null===t||void 0===t||""===t?"--":t},statusText(t){const i=Number(t);return 1===i?this.$t("DollarActivity.statusInTask"):2===i?this.$t("DollarActivity.statusEnded"):3===i?this.$t("DollarActivity.statusCancelled"):"--"},statusStyle(t){const i=Number(t);return 1===i?{color:"#52c41a"}:2===i?{color:"#eb3f57"}:3===i?{color:"#8c8c8c"}:{color:"#333"}},showDollarClaimRewardButton(t){if(2!==Number(t.status))return!1;const i=t.applyGiveNum;return null===i||void 0===i||0!==Number(i)},backActivity(){this.$router.push({path:"/customer/activities"}).catch(t=>t)},ruleOptionValue(t){if(null==t)return null;const i=null!=t.id?t.id:t.ruleId;return i},ruleOptionKey(t){const i=this.ruleOptionValue(t);return null!=i?String(i):Math.random()},ruleOptionLabel(t){const i=this.cell(t.depositAmount),a=this.cell(t.rewardAmount);return`${this.$t("DollarActivity.fieldDepositAmount")}: ${i} - ${this.$t("DollarActivity.fieldRewardAmount")}: ${a}`},isRuleOptionDisabled(t){return null!=t&&void 0!==t.display&&null!==t.display&&1!==Number(t.display)},normalizeRuleList(t){if(Array.isArray(t))return t;if(t&&"object"===typeof t){if(Array.isArray(t.list))return t.list;if(Array.isArray(t.rules))return t.rules}return[]},normalizeGiveRecordsList(t){if(Array.isArray(t))return t;if(t&&"object"===typeof t){if(Array.isArray(t.list))return t.list;if(Array.isArray(t.records))return t.records;if(Array.isArray(t.rows))return t.rows}return[]},giveRecordCellFormatter(t,i,a){return this.cell(a)},onGiveRecordsDialogClosed(){this.giveRecordsTaskId=null,this.giveRecordsList=[]},openGiveRecordsDialog(t){this.giveRecordsTaskId=t.id,this.giveRecordsList=[],this.dialogGiveRecordsVisible=!0,this.loadGiveRecords()},async loadGiveRecords(){if(null!=this.giveRecordsTaskId&&""!==this.giveRecordsTaskId){this.giveRecordsLoading=!0;try{const t=await l["a"].ActivityDollarGive({id:this.giveRecordsTaskId});t.code==n.StatusOK?this.giveRecordsList=this.normalizeGiveRecordsList(t.data):this.$pigeon.MessageError(t.msg)}catch{this.$pigeon.MessageError(this.$i18n.t("Msg.Fail"))}finally{this.giveRecordsLoading=!1}}},async confirmCancelDollarActivity(t){try{await this.$confirm(this.$t("DollarActivity.confirmCancel"),this.$t("Msg.SystemPrompt"),{confirmButtonText:this.$t("Btn.Confirm"),cancelButtonText:this.$t("Btn.Cancel"),type:"warning"})}catch{return}this.cancelLoadingId=t.id;try{const i=await l["a"].ActivityDollarCancel({id:t.id});i.code==n.StatusOK?(this.$pigeon.MessageOK(i.msg||this.$i18n.t("Msg.Success")),await this.searchFunc()):this.$pigeon.MessageError(i.msg)}catch{this.$pigeon.MessageError(this.$i18n.t("Msg.Fail"))}finally{this.cancelLoadingId=null}},async openClaimDialog(t){this.claimTaskId=t.id,this.selectedRuleId=null,this.ruleOptions=[],this.dialogClaimVisible=!0,await this.loadDollarRules()},onClaimDialogClosed(){this.claimTaskId=null,this.ruleOptions=[],this.selectedRuleId=null},async loadDollarRules(){if(null!=this.claimTaskId&&""!==this.claimTaskId){this.ruleLoading=!0;try{const t=await l["a"].ActivityDollarRule({id:this.claimTaskId});t.code==n.StatusOK?(this.ruleOptions=this.normalizeRuleList(t.data),0===this.ruleOptions.length&&this.$pigeon.MessageWarning(t.msg||this.$t("DollarActivity.emptyRuleList"))):this.$pigeon.MessageError(t.msg)}catch{this.$pigeon.MessageError(this.$i18n.t("Msg.Fail"))}finally{this.ruleLoading=!1}}},async confirmClaimReward(){if(null!==this.selectedRuleId&&""!==this.selectedRuleId&&null!=this.claimTaskId){this.applySubmitting=!0;try{const t=await l["a"].ActivityDollarApply({id:this.claimTaskId,ruleId:this.selectedRuleId});t.code==n.StatusOK?(this.$pigeon.MessageOK(t.msg||this.$i18n.t("Msg.Success")),this.dialogClaimVisible=!1,await this.searchFunc()):this.$pigeon.MessageError(t.msg)}catch{this.$pigeon.MessageError(this.$i18n.t("Msg.Fail"))}finally{this.applySubmitting=!1}}else this.$pigeon.MessageWarning(this.$t("DollarActivity.selectRulePlaceholder"))},async searchFunc(){if(this.flag)return;this.flag=!0,this.pictLoading=!0;let t=await l["a"].ActivityDollarSearchList();t.code==n.StatusOK?this.tableData=Array.isArray(t.data)?t.data:[]:this.$pigeon.MessageError(t.msg),this.pictLoading=!1,this.flag=!1}},mounted(){this.searchFunc()}},u=r,d=(a("6e86"),a("2877")),y=Object(d["a"])(u,s,e,!1,null,"7b7b29de",null);i["default"]=y.exports},ccaf:function(t,i,a){"use strict";var s=a("ff2d");class e extends s["a"]{constructor(){super()}async ActivityInfo(t={}){let i=await this.postAll("Host80","/custom/activity/info",t);return i}async ActivityExtensionIist(t={}){let i=await this.postAll("Host80","/web/activity/list",t);return i}async ActivityApplyList(t={}){let i=await this.postAll("Host80","/custom/activity/list",t);return i}async ActivityApply(t={}){let i=await this.postAll("Host80","/custom/activity/apply",t);return i}async ActivitySingle(t={}){let i=await this.postAll("Host80","/web/activity/single",t);return i}async ActivityComplete(t={}){let i=await this.postAll("Host80","/custom/activity/apply/complete",t);return i}async ActivityPercentageGiveInfo(t={}){let i=await this.postAll("Host80","/custom/activity/percentage/give/info",t);return i}async ActivityPercentageGiveApply(t={}){let i=await this.postAll("Host80","/custom/activity/percentage/give/apply",t);return i}async Activity23HundredInfo(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/info",t);return i}async Activity23HundredApply(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/apply/activity",t);return i}async Activity23HundredTransform(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/transform/apply",t);return i}async Activity23HundredRealization(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/realization/apply",t);return i}async Activity23Login(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/login",t);return i}async Activity23JiangxinInfo(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/agent/info",t);return i}async Activity23JiangxinApply(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/agent/apply/activity",t);return i}async Activity23JiangxinRealization(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/agent/realization/apply",t);return i}async Activity23JxLogin(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/agent/login",t);return i}async Activity23JiangxinInfoVip(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/agent/vip/info",t);return i}async Activity23JiangxinApplyVip(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/agent/vip/apply/activity",t);return i}async Activity23JiangxinRealizationVip(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/agent/vip/realization/apply",t);return i}async Activity23JxLoginVip(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/agent/vip/login",t);return i}async Activity23nianzhongInfo(t={}){let i=await this.postAll("Host80","/custom/activity/midyear/ten/percent/give/info",t);return i}async Activity23nianzhongTwoInfo(t={}){let i=await this.postAll("Host80","/custom/activity/two/percent/give/info",t);return i}async Activity23nianzhongTwoLogin(t={}){let i=await this.postAll("Host80","/custom/activity/two/percent/give/login/info",t);return i}async ActivityRequiteInfo(t={}){let i=await this.postAll("Host80","/custom/activity/limited/requite/info",t);return i}async ActivityCptinfoGetCode(t={}){let i=await this.postAll("Host80","/follow/cpt/info/getCode",t);return i}async ActivityCptinfoCode(t={}){let i=await this.postAll("Host80","/follow/cpt/info/infoCode",t);return i}async ActivityCptInfoLogins(t={}){let i=await this.postAll("Host80","/follow/cpt/sign/logins",t);return i}async ActivityCptInfoAdd(t={}){let i=await this.postAll("Host80","/follow/cpt/sign/add",t);return i}async ActivitYdepositRaffleAim(t={}){let i=await this.postAll("Host80","/custom/activity/deposit/raffle/aim",t);return i}async ActivitYdepositRaffleNumberRecord(t={}){let i=await this.postAll("Host80","/custom/activity/deposit/raffle/custom/number/record/search/list",t);return i}async ActivitYdepositRaffleTaskList(t={}){let i=await this.postAll("Host80","/custom/activity/deposit/raffle/aim/list",t);return i}async ActivitYdepositRaffleinfo(t={}){let i=await this.postAll("Host80","/custom/activity/deposit/raffle/info",t);return i}async ActivitYdepositRaffleUtaskList(t={}){let i=await this.postAll("Host80","/custom/activity/ucoin/search/list",t);return i}async UcoinComplete(t={}){let i=await this.postAll("Host80","/custom/activity/ucoin/complete",t);return i}async UcoinWithdraw(t={}){let i=await this.postAll("Host80","/custom/activity/ucoin/withdraw",t);return i}async UcoinCancel(t={}){let i=await this.postAll("Host80","/custom/activity/ucoin/cancel",t);return i}async UcoinProgress(t={}){let i=await this.postAll("Host80","/custom/activity/ucoin/progress",t);return i}async ActivityExtensionGiveList(t={}){let i=await this.postAll("Host80","/web/activity/give/list",t);return i}async ActivityExtensionGiveSingle(t={}){let i=await this.postAll("Host80","/web/activity/give/single",t);return i}async ActivityExtensionGiveLogin(t={}){let i=await this.postAll("Host80","/custom/activity/give/login/info",t);return i}async ActivityExtensionGiveLoginJoin(t={}){let i=await this.postAll("Host80","/custom/activity/give/login/join",t);return i}async ActivityGiveLoginParticipate(t={}){let i=await this.postAll("Host80","/custom/activity/give/login/participate",t);return i}async ActivityGiveCancel(t={}){let i=await this.postAll("Host80","/custom/activity/give/cancel",t);return i}async Activity24JYBInfoVip(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/elite/agent/vip/info",t);return i}async Activity24JYBApplyVip(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/elite/agent/vip/apply/activity",t);return i}async Activity24JYBRealizationVip(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/elite/agent/vip/realization/apply",t);return i}async Activity24JYBLoginVip(t={}){let i=await this.postAll("Host80","/custom/activity/hundred/elite/agent/vip/login",t);return i}async ActivityNoWorriesInfo(t={}){let i=await this.postAll("Host80","/custom/activity/no/worries/info",t);return i}async ActivityNoWorriesApply(t={}){let i=await this.postAll("Host80","/custom/activity/no/worries/apply/activity",t);return i}async ActivityNoWorriesRealization(t={}){let i=await this.postAll("Host80","/custom/activity/no/worries/realization/apply",t);return i}async ActivityNoWorriesLogin(t={}){let i=await this.postAll("Host80","/custom/activity/no/worries/login",t);return i}async ActivityNewYear24(t={}){let i=await this.postAll("Host80","/custom/activity/interest/rate/info",t);return i}async ActivityNewYear24Receive(t={}){let i=await this.postAll("Host80","/custom/activity/interest/rate/claim",t);return i}async ActivitySurplusDepositAmount(t={}){let i=await this.postAll("Host80","/custom/activity/surplus/deposit/amount",t);return i}async ActivityMonthlyDepositAmount(t={}){let i=await this.postAll("Host80","/custom/activity/monthly/amount/level",t);return i}async ActivitySurplusAdd(t={}){let i=await this.postAll("Host80","/custom/activity/surplus/add",t);return i}async ActivityMonthlyAdd(t={}){let i=await this.postAll("Host80","/custom/activity/monthly/add",t);return i}async ActivitySurplusTaskList(t={}){let i=await this.postAll("Host80","/custom/activity/surplus/search/list",t);return i}async ActivityMonthlyTaskList(t={}){let i=await this.postAll("Host80","/custom/activity/monthly/search/list",t);return i}async ActivitySurplusRecoverCredit(t={}){let i=await this.postAll("Host80","/custom/activity/surplus/recover/creadit",t);return i}async ActivitySurplusCancel(t={}){let i=await this.postAll("Host80","/custom/activity/surplus/cancel",t);return i}async ActivityMonthlyCancel(t={}){let i=await this.postAll("Host80","/custom/activity/monthly/cancel",t);return i}async ActivityMonthlyGiveList(t={}){let i=await this.postAll("Host80","/custom/activity/monthly/give/list",t);return i}async ActivityMonthlyGiveApply(t={}){let i=await this.postAll("Host80","/custom/activity/monthly/give/apply",t);return i}async ActivityDollarAdd(t={}){let i=await this.postAll("Host80","/custom/activity/dollar/add",t);return i}async ActivityDollarSearchList(t={}){let i=await this.postAll("Host80","/custom/activity/dollar/search/list",t);return i}async ActivityDollarRule(t={}){let i=await this.postAll("Host80","/custom/activity/dollar/rule",t);return i}async ActivityDollarApply(t={}){let i=await this.postAll("Host80","/custom/activity/dollar/apply",t);return i}async ActivityDollarGive(t={}){let i=await this.postAll("Host80","/custom/activity/dollar/give",t);return i}async ActivityDollarCancel(t={}){let i=await this.postAll("Host80","/custom/activity/dollar/cancel",t);return i}async ActivityShowsInfo(t={}){let i=await this.postAll("Host80","/custom/activity/shows/info",t);return i}async getWebsdkLink(t={}){let i=await this.postAll("Host04","/remittance/channel/getWebsdkLink",t);return i}}i["a"]=new e},f354:function(t,i,a){}}]);
|