2 lines
6.4 KiB
JavaScript
2 lines
6.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b256ba1","chunk-2d0ea097"],{"035b":function(t,a,e){"use strict";e.r(a);var l=function(){var t=this,a=t._self._c;return a("div",[a("el-card",{staticClass:"margin-top-sm"},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("span",[t._v(t._s(t.$t("accountWithdrawalApplyShManage.title")))])]),a("div",{},[a("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.queryParams}},[a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("accountWithdrawalApplyShManage.applyUserNamePlaceholder"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParams.applyUserName,callback:function(a){t.$set(t.queryParams,"applyUserName",a)},expression:"queryParams.applyUserName"}})],1),a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("accountWithdrawalApplyShManage.applyUserTelPlaceholder"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParams.applyUserTel,callback:function(a){t.$set(t.queryParams,"applyUserTel",a)},expression:"queryParams.applyUserTel"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleQuery}},[t._v(" "+t._s(t.$t("accountWithdrawalApplyShManage.search"))+" ")])],1)],1)],1)]),a("el-card",{staticClass:"margin-top-sm"},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("span",[t._v(t._s(t.$t("accountWithdrawalApplyShManage.withdrawalAudit")))])]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"amount",label:t.$t("accountWithdrawalApplyShManage.amount"),align:"center"}}),a("el-table-column",{attrs:{prop:"applyUserName",label:t.$t("accountWithdrawalApplyShManage.applyUserName"),align:"center"}}),a("el-table-column",{attrs:{prop:"applyUserTel",label:t.$t("accountWithdrawalApplyShManage.applyUserTel"),align:"center"}}),a("el-table-column",{attrs:{prop:"context",label:t.$t("accountWithdrawalApplyShManage.context"),align:"center"}}),a("el-table-column",{attrs:{prop:"stateName",label:t.$t("accountWithdrawalApplyShManage.state"),align:"center"}}),a("el-table-column",{attrs:{label:t.$t("accountWithdrawalApplyShManage.actions"),align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return t.handleAudit(e.row)}}},[t._v(" "+t._s(t.$t("accountWithdrawalApplyShManage.audit"))+" ")])]}}])})],1),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.queryParams.page,limit:t.queryParams.rows},on:{"update:page":function(a){return t.$set(t.queryParams,"page",a)},"update:limit":function(a){return t.$set(t.queryParams,"rows",a)},pagination:t.getList}})],1),a("audit",{ref:"audit",on:{"submit-audit":t.submitAudit}})],1)},r=[],i=e("b775");function s(t){return new Promise((a,e)=>{Object(i["a"])({url:"/accountWithdrawalApply/listStateWithdrawalApplys",method:"get",params:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}function n(t){return new Promise((a,e)=>{Object(i["a"])({url:"/accountWithdrawalApply/upAccountWithdrawalApply",method:"post",data:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}var o=e("8fa4"),u={name:"AccountWithdrawalApplyShManage",components:{Audit:o["default"]},data(){return{tableData:[],total:0,queryParams:{page:1,rows:10,state:"486",applyUserName:"",applyUserTel:""},currentRow:null}},created(){this.getList()},methods:{getList(){s(this.queryParams).then(t=>{this.tableData=t.data,this.total=t.total})},handleQuery(){this.queryParams.page=1,this.getList()},handleAudit(t){this.currentRow=t,this.$refs.audit.open()},submitAudit(t){const a={applyId:this.currentRow.applyId,acctId:this.currentRow.acctId,context:t.remark,state:"1100"===t.state?"586":"587"};n(a).then(()=>{this.$message.success(this.$t("accountWithdrawalApplyShManage.auditSuccess")),this.getList()})}}},c=u,p=(e("cd6a"),e("2877")),d=Object(p["a"])(c,l,r,!1,null,"6a629a7a",null);a["default"]=d.exports},"5b70":function(t,a,e){},"8fa4":function(t,a,e){"use strict";e.r(a);var l=function(){var t=this,a=t._self._c;return a("el-dialog",{attrs:{title:"审核信息",visible:t.dialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(a){t.dialogVisible=a}}},[a("el-form",{ref:"form",attrs:{model:t.auditInfo,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"审核状态",prop:"state"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请审核"},model:{value:t.auditInfo.state,callback:function(a){t.$set(t.auditInfo,"state",a)},expression:"auditInfo.state"}},[a("el-option",{attrs:{label:"同意",value:"1100"}}),a("el-option",{attrs:{label:"拒绝",value:"1200"}})],1)],1),a("el-form-item",{attrs:{label:"原因",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"必填,请填写原因",rows:4,maxlength:"200","show-word-limit":""},model:{value:t.auditInfo.remark,callback:function(a){t.$set(t.auditInfo,"remark",a)},expression:"auditInfo.remark"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t._auditSubmit}},[t._v("确 定")])],1)],1)},r=[],i={name:"Audit",data(){return{dialogVisible:!1,auditInfo:{state:"",remark:""}}},watch:{"auditInfo.state"(t){"1100"===t?this.auditInfo.remark="同意":"1200"===t&&(this.auditInfo.remark="")}},methods:{open(){this.dialogVisible=!0,this.clearAuditInfo()},handleClose(){this.dialogVisible=!1,this.clearAuditInfo()},auditValidate(){return this.auditInfo.state?this.auditInfo.remark?!(this.auditInfo.remark.length>200)||(this.$message.error("原因内容不能超过200字"),!1):(this.$message.error("原因内容不能为空"),!1):(this.$message.error("审核状态不能为空"),!1)},_auditSubmit(){this.auditValidate()&&(this.$emit("auditNotify",{state:this.auditInfo.state,remark:this.auditInfo.remark}),this.handleClose())},clearAuditInfo(){this.auditInfo={state:"",remark:""}}}},s=i,n=e("2877"),o=Object(n["a"])(s,l,r,!1,null,null,null);a["default"]=o.exports},cd6a:function(t,a,e){"use strict";e("5b70")}}]);
|
|
//# sourceMappingURL=chunk-6b256ba1.627e9023.js.map
|