Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-aa3bfd68.0d7a62d2.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-aa3bfd68"],{1713:function(t,e,a){"use strict";a("6c0b")},"2cf9":function(t,e,a){},"359b":function(t,e,a){},"6c0b":function(t,e,a){},"72c6":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"white-bg padding-lg padding-top border-radius"},[e("div",{staticClass:"flex justify-between"},[e("h3",[t._v(t._s(t.$t("shopIntegral.title")))])]),e("div",{staticClass:"margin-top"},[e("el-row",[e("el-col",{attrs:{span:8}},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" "+t._s(t.$t("shopIntegral.accountId"))+" ")]),e("label",[t._v(t._s(t.shopIntegralInfo.integralId))])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" "+t._s(t.$t("shopIntegral.accountName"))+" ")]),e("label",[t._v(t._s(t.shopIntegralInfo.integralName))])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" "+t._s(t.$t("shopIntegral.accountBalance"))+" ")]),e("label",[t._v(" "+t._s(t.shopIntegralInfo.amount)+" "),e("el-button",{attrs:{type:"text"},on:{click:t.openApplyWithholdShopIntegral}},[t._v(" "+t._s(t.$t("shopIntegral.withdraw"))+" ")])],1)])])],1)],1),e("div",{staticClass:"vc-line-primary margin-top"}),e("div",{staticClass:"margin-top-sm"},[e("el-tabs",{on:{"tab-click":function(e){return t.changeTab(t.shopIntegralInfo._currentTab)}},model:{value:t.shopIntegralInfo._currentTab,callback:function(e){t.$set(t.shopIntegralInfo,"_currentTab",e)},expression:"shopIntegralInfo._currentTab"}},[e("el-tab-pane",{attrs:{label:t.$t("shopIntegral.transactionDetails"),name:"shopIntegralDetail"}},["shopIntegralDetail"===t.shopIntegralInfo._currentTab?e("shop-integral-detail",{ref:"shopIntegralDetail"}):t._e()],1),e("el-tab-pane",{attrs:{label:t.$t("shopIntegral.pointsWithdrawal"),name:"applyWithholdIntegral"}},["applyWithholdIntegral"===t.shopIntegralInfo._currentTab?e("apply-withhold-integral",{ref:"applyWithholdIntegral"}):t._e()],1)],1)],1),e("withhold-integral",{ref:"withholdIntegral"})],1)},n=[],o=a("7323"),r=a("b775");function i(t){return new Promise((e,a)=>{Object(r["a"])({url:"/integral.queryShopIntegral",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function s(t){return new Promise((e,a)=>{Object(r["a"])({url:"/integral.queryShopIntegralDetail",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function p(t){return new Promise((e,a)=>{Object(r["a"])({url:"/integral.listIntegralWithdrawal",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function h(t){return new Promise((e,a)=>{Object(r["a"])({url:"/integral.applyIntegralWithdrawal",method:"post",data:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function c(t){return new Promise((e,a)=>{Object(r["a"])({url:"/integral.deleteIntegralWithdrawal",method:"post",data:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}var g=function(){var t=this,e=t._self._c;return e("div",{staticClass:"margin-top"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.shopIntegralDetailInfo.details,border:""}},[e("el-table-column",{attrs:{prop:"detailId",label:t.$t("shopIntegralDetail.serialNumber"),align:"center",width:"100"}}),e("el-table-column",{attrs:{prop:"integralName",label:t.$t("shopIntegralDetail.pointsAccount"),align:"center"}}),e("el-table-column",{attrs:{prop:"detailType",label:t.$t("shopIntegralDetail.type"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s("1001"===e.row.detailType?t.$t("shopIntegralDetail.transferIn"):t.$t("shopIntegralDetail.transferOut"))+" ")]}}])}),e("el-table-column",{attrs:{prop:"amount",label:t.$t("shopIntegralDetail.transactionAmount"),align:"center"}}),e("el-table-column",{attrs:{prop:"totalAmount",label:t.$t("shopIntegralDetail.currentAmount"),align:"center"}}),e("el-table-column",{attrs:{prop:"orderId",label:t.$t("shopIntegralDetail.transactionNumber"),align:"center"}}),e("el-table-column",{attrs:{prop:"remark",label:t.$t("shopIntegralDetail.remark"),align:"center"}}),e("el-table-column",{attrs:{prop:"createTime",label:t.$t("shopIntegralDetail.time"),align:"center"}})],1),e("el-row",{staticClass:"margin-top"},[e("el-col",{attrs:{span:12,offset:12}},[e("el-pagination",{attrs:{"current-page":t.pagination.currentPage,"page-size":t.pagination.pageSize,layout:"total, prev, pager, next, jumper",total:t.pagination.total},on:{"current-change":t.handlePageChange}})],1)],1)],1)},d=[],I={name:"ShopIntegralDetail",data(){return{shopIntegralDetailInfo:{details:[],integralId:"",integralName:""},pagination:{currentPage:1,pageSize:10,total:0}}},methods:{async switch(t){this.shopIntegralDetailInfo.integralId=t.integralId,this.shopIntegralDetailInfo.integralName=t.integralName,await this.loadShopIntegralDetailData()},async loadShopIntegralDetailData(){try{const t={shopId:Object(o["f"])(),integralId:this.shopIntegralDetailInfo.integralId,page:this.pagination.currentPage,row:this.pagination.pageSize},e=await s(t);this.shopIntegralDetailInfo.details=e.data,this.pagination.total=e.records}catch(t){console.error("Failed to load shop integral detail:",t)}},handlePageChange(t){this.pagination.currentPage=t,this.loadShopIntegralDetailData()}}},u=I,m=(a("77d4"),a("2877")),b=Object(m["a"])(u,g,d,!1,null,"6fedc17c",null),f=b.exports,w=function(){var t=this,e=t._self._c;return e("div",{staticClass:"margin-top"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.applyWithholdIntegralInfo.applys,border:""}},[e("el-table-column",{attrs:{prop:"iwId",label:t.$t("applyWithholdIntegral.serialNumber"),align:"center",width:"100"}}),e("el-table-column",{attrs:{prop:"integralId",label:t.$t("applyWithholdIntegral.pointsId"),align:"center"}}),e("el-table-column",{attrs:{prop:"integralName",label:t.$t("applyWithholdIntegral.pointsName"),align:"center"}}),e("el-table-column",{attrs:{prop:"shopId",label:t.$t("applyWithholdIntegral.shopNumber"),align:"center"}}),e("el-table-column",{attrs:{prop:"amount",label:t.$t("applyWithholdIntegral.withdrawalAmount"),align:"center"}}),e("el-table-column",{attrs:{prop:"applyUserName",label:t.$t("applyWithholdIntegral.applicant"),align:"center"}}),e("el-table-column",{attrs:{prop:"applyUserTel",label:t.$t("applyWithholdIntegral.applicantPhone"),align:"center"}}),e("el-table-column",{attrs:{prop:"bankNum",label:t.$t("applyWithholdIntegral.bankAccount"),align:"center"}}),e("el-table-column",{attrs:{prop:"bankNumName",label:t.$t("applyWithholdIntegral.accountName"),align:"center"}}),e("el-table-column",{attrs:{prop:"bankName",label:t.$t("applyWithholdIntegral.openingBank"),align:"center"}}),e("el-table-column",{attrs:{prop:"remark",label:t.$t("applyWithholdIntegral.applicationNote"),align:"center"}}),e("el-table-column",{attrs:{prop:"stateName",label:t.$t("applyWithholdIntegral.status"),align:"center"}}),e("el-table-column",{attrs:{prop:"stateMsg",label:t.$t("applyWithholdIntegral.reviewNote"),align:"center"}}),e("el-table-column",{attrs:{label:t.$t("applyWithholdIntegral.operation"),align:"center",width:"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.openDeleteIntegralWithdrawalModel(a.row)}}},[t._v(" "+t._s(t.$t("applyWithholdIntegral.delete"))+" ")])]}}])})],1),e("el-row",{staticClass:"margin-top"},[e("el-col",{attrs:{span:12,offset:12}},[e("el-pagination",{attrs:{"current-page":t.pagination.currentPage,"page-size":t.pagination.pageSize,layout:"total, prev, pager, next, jumper",total:t.pagination.total},on:{"current-change":t.handlePageChange}})],1)],1),e("delete-apply-withhold-integral",{ref:"deleteApplyWithholdIntegral"})],1)},y=[],$=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("deleteApplyWithholdIntegral.confirmOperation"),visible:t.dialogVisible,width:"30%",center:""},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("div",{staticClass:"text-center"},[e("p",[t._v(t._s(t.$t("deleteApplyWithholdIntegral.confirmDeleteApplication")))])]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close}},[t._v(t._s(t.$t("deleteApplyWithholdIntegral.cancel")))]),e("el-button",{attrs:{type:"primary"},on:{click:t.confirmDelete}},[t._v(t._s(t.$t("deleteApplyWithholdIntegral.confirmDelete")))])],1)])},N=[],k={name:"DeleteApplyWithholdIntegral",data(){return{dialogVisible:!1,currentData:{}}},methods:{open(t){this.currentData=Object.assign({},t),this.dialogVisible=!0},close(){this.dialogVisible=!1},async confirmDelete(){try{this.currentData.shopId=Object(o["f"])();const t=await c(this.currentData);0===t.code?(this.$emit("notify"),this.$message.success(this.$t("deleteApplyWithholdIntegral.deleteSuccess")),this.close()):this.$message.error(t.msg)}catch(t){console.error("Failed to delete integral withdrawal:",t),this.$message.error(this.$t("deleteApplyWithholdIntegral.deleteFailed"))}}}},_=k,v=(a("1713"),Object(m["a"])(_,$,N,!1,null,"505a41c2",null)),W=v.exports,D={name:"ApplyWithholdIntegral",components:{DeleteApplyWithholdIntegral:W},data(){return{applyWithholdIntegralInfo:{applys:[],integralId:"",integralName:""},pagination:{currentPage:1,pageSize:10,total:0}}},methods:{async switch(t){this.applyWithholdIntegralInfo.integralId=t.integralId,this.applyWithholdIntegralInfo.integralName=t.integralName,await this.loadApplyWithholdIntegralData()},async loadApplyWithholdIntegralData(){try{const t={shopId:Object(o["f"])(),integralId:this.applyWithholdIntegralInfo.integralId,page:this.pagination.currentPage,row:this.pagination.pageSize},e=await p(t);this.applyWithholdIntegralInfo.applys=e.data,this.pagination.total=e.records}catch(t){console.error("Failed to load apply withhold integral:",t)}},handlePageChange(t){this.pagination.currentPage=t,this.loadApplyWithholdIntegralData()},openDeleteIntegralWithdrawalModel(t){this.$refs.deleteApplyWithholdIntegral.open(t)}}},A=D,P=(a("cf43"),Object(m["a"])(A,w,y,!1,null,"438bf05d",null)),S=P.exports,T=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("withholdIntegral.applyWithdrawal"),visible:t.dialogVisible,width:"50%",center:""},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("div",{staticClass:"ibox-content"},[e("el-form",{attrs:{model:t.withholdIntegralInfo,"label-width":"120px"}},[e("el-row",[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("withholdIntegral.totalPoints")}},[e("el-input",{attrs:{placeholder:t.$t("withholdIntegral.requiredTotalPoints"),disabled:""},model:{value:t.withholdIntegralInfo.amount,callback:function(e){t.$set(t.withholdIntegralInfo,"amount",e)},expression:"withholdIntegralInfo.amount"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("withholdIntegral.withdrawalPoints"),prop:"applyAmount"}},[e("el-input",{attrs:{placeholder:t.$t("withholdIntegral.requiredWithdrawalPoints")},model:{value:t.withholdIntegralInfo.applyAmount,callback:function(e){t.$set(t.withholdIntegralInfo,"applyAmount",e)},expression:"withholdIntegralInfo.applyAmount"}})],1)],1)],1),e("el-row",[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("withholdIntegral.applicant"),prop:"applyUserName"}},[e("el-input",{attrs:{placeholder:t.$t("withholdIntegral.requiredApplicant")},model:{value:t.withholdIntegralInfo.applyUserName,callback:function(e){t.$set(t.withholdIntegralInfo,"applyUserName",e)},expression:"withholdIntegralInfo.applyUserName"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("withholdIntegral.applicantPhone"),prop:"applyUserTel"}},[e("el-input",{attrs:{placeholder:t.$t("withholdIntegral.requiredApplicantPhone")},model:{value:t.withholdIntegralInfo.applyUserTel,callback:function(e){t.$set(t.withholdIntegralInfo,"applyUserTel",e)},expression:"withholdIntegralInfo.applyUserTel"}})],1)],1)],1),e("el-row",[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("withholdIntegral.bankAccount"),prop:"bankNum"}},[e("el-input",{attrs:{placeholder:t.$t("withholdIntegral.requiredBankAccount")},model:{value:t.withholdIntegralInfo.bankNum,callback:function(e){t.$set(t.withholdIntegralInfo,"bankNum",e)},expression:"withholdIntegralInfo.bankNum"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("withholdIntegral.accountName"),prop:"bankNumName"}},[e("el-input",{attrs:{placeholder:t.$t("withholdIntegral.requiredAccountName")},model:{value:t.withholdIntegralInfo.bankNumName,callback:function(e){t.$set(t.withholdIntegralInfo,"bankNumName",e)},expression:"withholdIntegralInfo.bankNumName"}})],1)],1)],1),e("el-row",[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("withholdIntegral.openingBank"),prop:"bankName"}},[e("el-input",{attrs:{type:"textarea",placeholder:t.$t("withholdIntegral.requiredOpeningBank")},model:{value:t.withholdIntegralInfo.bankName,callback:function(e){t.$set(t.withholdIntegralInfo,"bankName",e)},expression:"withholdIntegralInfo.bankName"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("withholdIntegral.applicationNote"),prop:"remark"}},[e("el-input",{attrs:{type:"textarea",placeholder:t.$t("withholdIntegral.requiredApplicationNote")},model:{value:t.withholdIntegralInfo.remark,callback:function(e){t.$set(t.withholdIntegralInfo,"remark",e)},expression:"withholdIntegralInfo.remark"}})],1)],1)],1)],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(t._s(t.$t("withholdIntegral.cancel")))]),e("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v(t._s(t.$t("withholdIntegral.submit")))])],1)])},x=[],C={name:"WithholdIntegral",data(){return{dialogVisible:!1,withholdIntegralInfo:{integralId:"",integralName:"",shopId:"",amount:"",applyAmount:"",applyUserName:"",applyUserTel:"",remark:"",bankNum:"",bankNumName:"",bankName:""}}},methods:{open(t){this.resetForm(),this.withholdIntegralInfo=Object.assign({},t),this.withholdIntegralInfo.applyAmount=t.amount,this.withholdIntegralInfo.shopId=Object(o["f"])(),this.dialogVisible=!0},resetForm(){this.withholdIntegralInfo={integralId:"",integralName:"",shopId:"",amount:"",applyAmount:"",applyUserName:"",applyUserTel:"",remark:"",bankNum:"",bankNumName:"",bankName:""}},async submit(){try{const t=await h(this.withholdIntegralInfo);0===t.code?(this.$emit("notify"),this.$message.success(this.$t("withholdIntegral.submitSuccess")),this.dialogVisible=!1):this.$message.error(t.msg)}catch(t){console.error("Failed to apply integral withdrawal:",t),this.$message.error(this.$t("withholdIntegral.submitFailed"))}}}},j=C,O=(a("de15"),Object(m["a"])(j,T,x,!1,null,"00c9a7a4",null)),U=O.exports,V={name:"ShopIntegral",components:{ShopIntegralDetail:f,ApplyWithholdIntegral:S,WithholdIntegral:U},data(){return{shopIntegralInfo:{integralId:"",integralName:"",amount:"",shopName:"",shopId:"",_currentTab:"shopIntegralDetail"}}},created(){this.loadShopIntegralInfo()},methods:{async loadShopIntegralInfo(){try{const t={page:1,row:1,shopId:Object(o["f"])()},e=await i(t);0===e.code&&e.data.length>0&&(Object.assign(this.shopIntegralInfo,e.data[0]),this.changeTab(this.shopIntegralInfo._currentTab))}catch(t){console.error("Failed to load shop integral info:",t)}},changeTab(t){this.shopIntegralInfo._currentTab=t,setTimeout(()=>{this.$refs[t].switch({integralId:this.shopIntegralInfo.integralId,integralName:this.shopIntegralInfo.integralName})},100)},openApplyWithholdShopIntegral(){this.$refs.withholdIntegral.open({integralId:this.shopIntegralInfo.integralId,amount:this.shopIntegralInfo.amount,shopId:this.shopIntegralInfo.shopId})}}},q=V,z=(a("7d16"),Object(m["a"])(q,l,n,!1,null,"00bea076",null));e["default"]=z.exports},"77d4":function(t,e,a){"use strict";a("7ae2")},"7ae2":function(t,e,a){},"7d16":function(t,e,a){"use strict";a("359b")},b182:function(t,e,a){},cf43:function(t,e,a){"use strict";a("b182")},de15:function(t,e,a){"use strict";a("2cf9")}}]);
//# sourceMappingURL=chunk-aa3bfd68.0d7a62d2.js.map