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

2 lines
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-da612cee"],{9608:function(t,a,l){"use strict";l.r(a);var e=function(){var t=this,a=t._self._c;return a("div",[a("el-card",{},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("div",[t._v(t._s(t.$t("goldWithdrawal.queryCondition")))])]),a("div",{},[a("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.goldWithdrawalInfo.conditions}},[a("el-form-item",[a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("goldWithdrawal.pleaseSelectAccountName")},model:{value:t.goldWithdrawalInfo.conditions.goldName,callback:function(a){t.$set(t.goldWithdrawalInfo.conditions,"goldName",a)},expression:"goldWithdrawalInfo.conditions.goldName"}})],1)],1),a("el-form-item",[a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("goldWithdrawal.pleaseSelectWithdrawalAmount")},model:{value:t.goldWithdrawalInfo.conditions.amount,callback:function(a){t.$set(t.goldWithdrawalInfo.conditions,"amount",a)},expression:"goldWithdrawalInfo.conditions.amount"}})],1)],1),a("el-form-item",[a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("goldWithdrawal.pleaseSelectApplicant")},model:{value:t.goldWithdrawalInfo.conditions.applyUserName,callback:function(a){t.$set(t.goldWithdrawalInfo.conditions,"applyUserName",a)},expression:"goldWithdrawalInfo.conditions.applyUserName"}})],1)],1),a("el-form-item",[a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("goldWithdrawal.pleaseSelectApplicantPhone")},model:{value:t.goldWithdrawalInfo.conditions.applyUserTel,callback:function(a){t.$set(t.goldWithdrawalInfo.conditions,"applyUserTel",a)},expression:"goldWithdrawalInfo.conditions.applyUserTel"}})],1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t._queryGoldWithdrawalMethod}},[a("i",{staticClass:"el-icon-search"}),a("span",[t._v(t._s(t.$t("goldWithdrawal.query")))])])],1)],1)],1)]),a("el-card",{staticClass:"margin-top-sm"},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("div",[t._v(t._s(t.$t("goldWithdrawal.goldWithdrawal")))]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t._openApplyGoldWithdrawalModal}},[t._v(" "+t._s(t.$t("goldWithdrawal.applyWithdrawal"))+" ")])],1),a("div",{},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.goldWithdrawalInfo.goldWithdrawals,border:""}},[a("el-table-column",{attrs:{prop:"gwId",label:t.$t("goldWithdrawal.id"),align:"center"}}),a("el-table-column",{attrs:{prop:"goldId",label:t.$t("goldWithdrawal.goldId"),align:"center"}}),a("el-table-column",{attrs:{prop:"goldName",label:t.$t("goldWithdrawal.accountName"),align:"center"}}),a("el-table-column",{attrs:{prop:"communityId",label:t.$t("goldWithdrawal.communityId"),align:"center"}}),a("el-table-column",{attrs:{prop:"amount",label:t.$t("goldWithdrawal.withdrawalAmount"),align:"center"}}),a("el-table-column",{attrs:{prop:"applyUserName",label:t.$t("goldWithdrawal.applicant"),align:"center"}}),a("el-table-column",{attrs:{prop:"applyUserTel",label:t.$t("goldWithdrawal.applicantPhone"),align:"center"}}),a("el-table-column",{attrs:{prop:"bankNum",label:t.$t("goldWithdrawal.bankAccount"),align:"center"}}),a("el-table-column",{attrs:{prop:"bankNumName",label:t.$t("goldWithdrawal.accountName"),align:"center"}}),a("el-table-column",{attrs:{prop:"bankName",label:t.$t("goldWithdrawal.bankName"),align:"center"}}),a("el-table-column",{attrs:{prop:"remark",label:t.$t("goldWithdrawal.applicationDescription"),align:"center"}}),a("el-table-column",{attrs:{prop:"stateName",label:t.$t("goldWithdrawal.status"),align:"center"}}),a("el-table-column",{attrs:{prop:"stateMsg",label:t.$t("goldWithdrawal.auditDescription"),align:"center"}}),a("el-table-column",{attrs:{label:t.$t("goldWithdrawal.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(l){return["W"===l.row.state?a("el-button-group",[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return t._openEditGoldWithdrawalModel(l.row)}}},[t._v(" "+t._s(t.$t("goldWithdrawal.audit"))+" ")])],1):t._e(),a("el-button",{attrs:{size:"mini"},on:{click:function(a){return t._openDeleteGoldWithdrawalModel(l.row)}}},[t._v(" "+t._s(t.$t("goldWithdrawal.delete"))+" ")])]}}])})],1),a("el-pagination",{attrs:{"current-page":t.goldWithdrawalInfo.conditions.page,"page-size":t.goldWithdrawalInfo.conditions.row,layout:"total, prev, pager, next",total:t.goldWithdrawalInfo.total},on:{"current-change":t.handleCurrentChange}})],1)]),a("audit-gold-withdrawal",{ref:"auditGoldWithdrawalRef",on:{refresh:t.queryGoldWithdrawal}}),a("delete-gold-withdrawal",{ref:"deleteGoldWithdrawalRef",on:{refresh:t.queryGoldWithdrawal}})],1)},o=[],i=l("b775"),d=l("7323");function r(t){return new Promise((a,l)=>{t.shopId=Object(d["f"])(),Object(i["a"])({url:"/gold.listGoldWithdrawal",method:"get",params:t}).then(t=>{const l=t.data;a(l)}).catch(t=>{l(t)})})}function n(t){return new Promise((a,l)=>{t.shopId=Object(d["f"])(),Object(i["a"])({url:"/gold.auditGoldWithdrawal",method:"post",data:t}).then(t=>{const l=t.data;a(l)}).catch(t=>{l(t)})})}function s(t){return new Promise((a,l)=>{Object(i["a"])({url:"/gold.deleteGoldWithdrawal",method:"post",data:t}).then(t=>{const l=t.data;a(l)}).catch(t=>{l(t)})})}var h=function(){var t=this,a=t._self._c;return a("el-dialog",{attrs:{title:t.$t("goldWithdrawal.applyWithdrawal"),visible:t.dialogVisible,width:"80%"},on:{"update:visible":function(a){t.dialogVisible=a},close:t.resetForm}},[a("el-form",{attrs:{model:t.auditGoldWithdrawalInfo,"label-width":"120px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.accountName")}},[a("el-input",{attrs:{disabled:"",placeholder:t.$t("goldWithdrawal.pleaseEnterAccountName")},model:{value:t.auditGoldWithdrawalInfo.goldName,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"goldName",a)},expression:"auditGoldWithdrawalInfo.goldName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.bankName")}},[a("el-input",{attrs:{disabled:""},model:{value:t.auditGoldWithdrawalInfo.bankName,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"bankName",a)},expression:"auditGoldWithdrawalInfo.bankName"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.accountHolder")}},[a("el-input",{attrs:{disabled:""},model:{value:t.auditGoldWithdrawalInfo.bankNumName,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"bankNumName",a)},expression:"auditGoldWithdrawalInfo.bankNumName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.bankAccount")}},[a("el-input",{attrs:{disabled:""},model:{value:t.auditGoldWithdrawalInfo.bankNum,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"bankNum",a)},expression:"auditGoldWithdrawalInfo.bankNum"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.applicant")}},[a("el-input",{attrs:{disabled:"",placeholder:t.$t("goldWithdrawal.pleaseEnterApplicant")},model:{value:t.auditGoldWithdrawalInfo.applyUserName,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"applyUserName",a)},expression:"auditGoldWithdrawalInfo.applyUserName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.applicantPhone")}},[a("el-input",{attrs:{disabled:"",placeholder:t.$t("goldWithdrawal.pleaseEnterApplicantPhone")},model:{value:t.auditGoldWithdrawalInfo.applyUserTel,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"applyUserTel",a)},expression:"auditGoldWithdrawalInfo.applyUserTel"}})],1)],1)],1),a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.withdrawalAmount")}},[a("el-input",{attrs:{placeholder:t.$t("goldWithdrawal.pleaseEnterWithdrawalAmount")},model:{value:t.auditGoldWithdrawalInfo.applyAmount,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"applyAmount",a)},expression:"auditGoldWithdrawalInfo.applyAmount"}})],1),a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.applicationDescription")}},[a("el-input",{attrs:{placeholder:t.$t("goldWithdrawal.pleaseEnterApplicationDescription")},model:{value:t.auditGoldWithdrawalInfo.remark,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"remark",a)},expression:"auditGoldWithdrawalInfo.remark"}})],1),a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.status")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("goldWithdrawal.pleaseSelectStatus")},model:{value:t.auditGoldWithdrawalInfo.state,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"state",a)},expression:"auditGoldWithdrawalInfo.state"}},[a("el-option",{attrs:{label:"请审核",value:"",disabled:""}}),a("el-option",{attrs:{label:t.$t("goldWithdrawal.approvedAndPaid"),value:"C"}}),a("el-option",{attrs:{label:t.$t("goldWithdrawal.rejected"),value:"F"}})],1)],1),a("el-form-item",{attrs:{label:t.$t("goldWithdrawal.auditDescription")}},[a("el-input",{attrs:{type:"textarea",placeholder:t.$t("goldWithdrawal.pleaseEnterAuditDescription")},model:{value:t.auditGoldWithdrawalInfo.stateMsg,callback:function(a){t.$set(t.auditGoldWithdrawalInfo,"stateMsg",a)},expression:"auditGoldWithdrawalInfo.stateMsg"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(a){t.dialogVisible=!1}}},[t._v(t._s(t.$t("goldWithdrawal.cancel")))]),a("el-button",{attrs:{type:"primary"},on:{click:t.auditGoldWithdrawal}},[t._v(t._s(t.$t("goldWithdrawal.submit")))])],1)],1)},c=[],u={name:"AuditGoldWithdrawal",data(){return{dialogVisible:!1,auditGoldWithdrawalInfo:{gwId:"",goldId:"",goldName:"",shopId:"",amount:"",applyAmount:"",applyUserName:"",applyUserTel:"",remark:"",state:"",stateMsg:"",bankNum:"",bankNumName:"",bankName:""}}},methods:{open(t){this.auditGoldWithdrawalInfo={...t},this.auditGoldWithdrawalInfo.applyAmount=t.amount,this.auditGoldWithdrawalInfo.state="",this.auditGoldWithdrawalInfo.stateMsg="",this.dialogVisible=!0},resetForm(){this.auditGoldWithdrawalInfo={gwId:"",goldId:"",goldName:"",shopId:"",amount:"",applyAmount:"",applyUserName:"",applyUserTel:"",remark:"",state:"",stateMsg:"",bankNum:"",bankNumName:"",bankName:""}},async auditGoldWithdrawal(){try{if(!this.validateForm())return;await n(this.auditGoldWithdrawalInfo),this.$emit("refresh"),this.dialogVisible=!1,this.$message.success(this.$t("goldWithdrawal.auditSuccess"))}catch(t){console.error("审核失败:",t),this.$message.error(t.message||this.$t("goldWithdrawal.auditFailed"))}},validateForm(){return this.auditGoldWithdrawalInfo.applyAmount?this.auditGoldWithdrawalInfo.state?!!this.auditGoldWithdrawalInfo.stateMsg||(this.$message.warning(this.$t("goldWithdrawal.pleaseEnterAuditDescription")),!1):(this.$message.warning(this.$t("goldWithdrawal.pleaseSelectStatus")),!1):(this.$message.warning(this.$t("goldWithdrawal.pleaseEnterWithdrawalAmount")),!1)}}},p=u,w=l("2877"),m=Object(w["a"])(p,h,c,!1,null,null,null),g=m.exports,W=function(){var t=this,a=t._self._c;return a("el-dialog",{attrs:{title:t.$t("goldWithdrawal.confirmOperation"),visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(a){t.dialogVisible=a},close:t.resetForm}},[a("div",{staticStyle:{"text-align":"center"}},[a("p",[t._v(t._s(t.$t("goldWithdrawal.confirmDeleteGoldWithdrawal")))])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(a){t.dialogVisible=!1}}},[t._v(t._s(t.$t("goldWithdrawal.cancel")))]),a("el-button",{attrs:{type:"primary"},on:{click:t.deleteGoldWithdrawal}},[t._v(t._s(t.$t("goldWithdrawal.confirmDelete")))])],1)])},f=[],b={name:"DeleteGoldWithdrawal",data(){return{dialogVisible:!1,deleteGoldWithdrawalInfo:{}}},methods:{open(t){this.deleteGoldWithdrawalInfo={...t},this.dialogVisible=!0},resetForm(){this.deleteGoldWithdrawalInfo={}},async deleteGoldWithdrawal(){try{await s(this.deleteGoldWithdrawalInfo),this.$emit("refresh"),this.dialogVisible=!1,this.$message.success(this.$t("goldWithdrawal.deleteSuccess"))}catch(t){console.error("删除失败:",t),this.$message.error(t.message||this.$t("goldWithdrawal.deleteFailed"))}}}},I=b,$=Object(w["a"])(I,W,f,!1,null,null,null),G=$.exports,y={name:"GoldWithdrawal",components:{AuditGoldWithdrawal:g,DeleteGoldWithdrawal:G},data(){return{goldWithdrawalInfo:{goldWithdrawals:[],total:0,records:1,moreCondition:!1,conditions:{page:1,row:10,goldId:"",goldName:"",amount:"",applyUserName:"",applyUserTel:""}}}},created(){this._listGoldWithdrawals(),console.log(this.goldWithdrawalInfo.moreCondition)},methods:{queryGoldWithdrawal(){this._listGoldWithdrawals(1,10)},async _listGoldWithdrawals(t=1,a=10){this.goldWithdrawalInfo.conditions.page=t,this.goldWithdrawalInfo.conditions.row=a;try{const t=await r(this.goldWithdrawalInfo.conditions);this.goldWithdrawalInfo.total=t.total,this.goldWithdrawalInfo.records=t.records,this.goldWithdrawalInfo.goldWithdrawals=t.data}catch(l){console.error("请求失败:",l)}},handleCurrentChange(t){this._listGoldWithdrawals(t,this.goldWithdrawalInfo.conditions.row)},_openApplyGoldWithdrawalModal(){this.$router.push("/pages/admin/applyGoldWithdrawal")},_openEditGoldWithdrawalModel(t){this.$refs.auditGoldWithdrawalRef.open(t)},_openDeleteGoldWithdrawalModel(t){this.$refs.deleteGoldWithdrawalRef.open(t)},_queryGoldWithdrawalMethod(){this._listGoldWithdrawals()}}},k=y,N=(l("a683"),Object(w["a"])(k,e,o,!1,null,"4b68261a",null));a["default"]=N.exports},"9ae2":function(t,a,l){},a683:function(t,a,l){"use strict";l("9ae2")}}]);
//# sourceMappingURL=chunk-da612cee.00e102e4.js.map