2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72a63e2f"],{"9e5e":function(t,a,e){},d218: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",{},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("div",[t._v(t._s(t.$t("integralWithdrawal.queryCondition")))])]),a("div",{},[a("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.integralWithdrawalInfo.conditions}},[a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("integralWithdrawal.placeholder.integralName"),clearable:""},model:{value:t.integralWithdrawalInfo.conditions.integralName,callback:function(a){t.$set(t.integralWithdrawalInfo.conditions,"integralName",a)},expression:"integralWithdrawalInfo.conditions.integralName"}})],1),a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("integralWithdrawal.placeholder.amount"),clearable:""},model:{value:t.integralWithdrawalInfo.conditions.amount,callback:function(a){t.$set(t.integralWithdrawalInfo.conditions,"amount",a)},expression:"integralWithdrawalInfo.conditions.amount"}})],1),a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("integralWithdrawal.placeholder.applyUserName"),clearable:""},model:{value:t.integralWithdrawalInfo.conditions.applyUserName,callback:function(a){t.$set(t.integralWithdrawalInfo.conditions,"applyUserName",a)},expression:"integralWithdrawalInfo.conditions.applyUserName"}})],1),a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("integralWithdrawal.placeholder.applyUserTel"),clearable:""},model:{value:t.integralWithdrawalInfo.conditions.applyUserTel,callback:function(a){t.$set(t.integralWithdrawalInfo.conditions,"applyUserTel",a)},expression:"integralWithdrawalInfo.conditions.applyUserTel"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t._queryIntegralWithdrawalMethod}},[a("i",{staticClass:"el-icon-search"}),t._v(" "+t._s(t.$t("common.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("integralWithdrawal.title")))])]),a("div",{},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.integralWithdrawalInfo.applys,border:""}},[a("el-table-column",{attrs:{prop:"iwId",label:t.$t("integralWithdrawal.table.id"),align:"center"}}),a("el-table-column",{attrs:{prop:"integralId",label:t.$t("integralWithdrawal.table.integralId"),align:"center"}}),a("el-table-column",{attrs:{prop:"integralName",label:t.$t("integralWithdrawal.table.integralName"),align:"center"}}),a("el-table-column",{attrs:{prop:"shopId",label:t.$t("integralWithdrawal.table.shopId"),align:"center"}}),a("el-table-column",{attrs:{prop:"amount",label:t.$t("integralWithdrawal.table.amount"),align:"center"}}),a("el-table-column",{attrs:{prop:"applyUserName",label:t.$t("integralWithdrawal.table.applyUserName"),align:"center"}}),a("el-table-column",{attrs:{prop:"applyUserTel",label:t.$t("integralWithdrawal.table.applyUserTel"),align:"center"}}),a("el-table-column",{attrs:{prop:"bankNum",label:t.$t("integralWithdrawal.table.bankNum"),align:"center"}}),a("el-table-column",{attrs:{prop:"bankNumName",label:t.$t("integralWithdrawal.table.bankNumName"),align:"center"}}),a("el-table-column",{attrs:{prop:"bankName",label:t.$t("integralWithdrawal.table.bankName"),align:"center"}}),a("el-table-column",{attrs:{prop:"remark",label:t.$t("integralWithdrawal.table.remark"),align:"center"}}),a("el-table-column",{attrs:{prop:"stateName",label:t.$t("integralWithdrawal.table.stateName"),align:"center"}}),a("el-table-column",{attrs:{prop:"stateMsg",label:t.$t("integralWithdrawal.table.stateMsg"),align:"center"}}),a("el-table-column",{attrs:{label:t.$t("common.operation"),align:"center",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return["W"===e.row.state?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t._openEditIntegralWithdrawalModel(e.row)}}},[t._v(" "+t._s(t.$t("common.audit"))+" ")]):t._e()]}}])})],1),a("el-pagination",{attrs:{"current-page":t.integralWithdrawalInfo.conditions.page,"page-size":t.integralWithdrawalInfo.conditions.row,layout:"total, prev, pager, next",total:t.integralWithdrawalInfo.total},on:{"current-change":t.handleCurrentChange}})],1)]),a("audit-integral-withdrawal",{ref:"auditIntegralWithdrawal",on:{refresh:t._listIntegralWithdrawals}})],1)},r=[],i=e("b775");function n(t){return new Promise((a,e)=>{Object(i["a"])({url:"/integral.queryAdminIntegralWithdrawal",method:"get",params:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}function o(t){return new Promise((a,e)=>{Object(i["a"])({url:"/integral.auditIntegralWithdrawal",method:"post",data:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}var s=function(){var t=this,a=t._self._c;return a("el-dialog",{attrs:{title:t.$t("integralWithdrawal.audit.title"),visible:t.dialogVisible,width:"70%"},on:{"update:visible":function(a){t.dialogVisible=a},close:t.handleClose}},[a("el-form",{attrs:{"label-width":"120px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.integralName")}},[a("el-input",{attrs:{disabled:""},model:{value:t.form.integralName,callback:function(a){t.$set(t.form,"integralName",a)},expression:"form.integralName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.bankName")}},[a("el-input",{attrs:{disabled:""},model:{value:t.form.bankName,callback:function(a){t.$set(t.form,"bankName",a)},expression:"form.bankName"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.bankNumName")}},[a("el-input",{attrs:{disabled:""},model:{value:t.form.bankNumName,callback:function(a){t.$set(t.form,"bankNumName",a)},expression:"form.bankNumName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.bankNum")}},[a("el-input",{attrs:{disabled:""},model:{value:t.form.bankNum,callback:function(a){t.$set(t.form,"bankNum",a)},expression:"form.bankNum"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.applyUserName")}},[a("el-input",{attrs:{disabled:""},model:{value:t.form.applyUserName,callback:function(a){t.$set(t.form,"applyUserName",a)},expression:"form.applyUserName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.applyUserTel")}},[a("el-input",{attrs:{disabled:""},model:{value:t.form.applyUserTel,callback:function(a){t.$set(t.form,"applyUserTel",a)},expression:"form.applyUserTel"}})],1)],1)],1),a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.amount")}},[a("el-input",{attrs:{disabled:""},model:{value:t.form.applyAmount,callback:function(a){t.$set(t.form,"applyAmount",a)},expression:"form.applyAmount"}})],1),a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.remark")}},[a("el-input",{attrs:{disabled:""},model:{value:t.form.remark,callback:function(a){t.$set(t.form,"remark",a)},expression:"form.remark"}})],1),a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.state"),required:""}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("integralWithdrawal.audit.selectState")},model:{value:t.form.state,callback:function(a){t.$set(t.form,"state",a)},expression:"form.state"}},t._l(t.stateOptions,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),"F"===t.form.state?a("el-form-item",{attrs:{label:t.$t("integralWithdrawal.audit.stateMsg"),required:""}},[a("el-input",{attrs:{type:"textarea",placeholder:t.$t("integralWithdrawal.audit.stateMsgPlaceholder")},model:{value:t.form.stateMsg,callback:function(a){t.$set(t.form,"stateMsg",a)},expression:"form.stateMsg"}})],1):t._e()],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("common.cancel"))+" ")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.handleSubmit}},[t._v(" "+t._s(t.$t("common.submit"))+" ")])],1)],1)},d=[],m={name:"AuditIntegralWithdrawal",data(){return{dialogVisible:!1,loading:!1,form:{iwId:"",integralId:"",integralName:"",shopId:"",amount:"",applyAmount:"",applyUserName:"",applyUserTel:"",remark:"",state:"",stateMsg:"",bankNum:"",bankNumName:"",bankName:""},stateOptions:[{value:"C",label:this.$t("integralWithdrawal.audit.stateOptions.approved")},{value:"F",label:this.$t("integralWithdrawal.audit.stateOptions.rejected")}]}},methods:{open(t){this.form={...this.form,...t,applyAmount:t.amount,state:"",stateMsg:""},this.dialogVisible=!0},handleClose(){this.form={iwId:"",integralId:"",integralName:"",shopId:"",amount:"",applyAmount:"",applyUserName:"",applyUserTel:"",remark:"",state:"",stateMsg:"",bankNum:"",bankNumName:"",bankName:""}},async handleSubmit(){if(this.form.state)if("F"!==this.form.state||this.form.stateMsg){this.loading=!0;try{await o(this.form),this.$message.success(this.$t("common.submitSuccess")),this.dialogVisible=!1,this.$emit("refresh")}catch(t){console.error(t)}finally{this.loading=!1}}else this.$message.warning(this.$t("integralWithdrawal.audit.stateMsgRequired"));else this.$message.warning(this.$t("integralWithdrawal.audit.stateRequired"))}}},c=m,p=e("2877"),u=Object(p["a"])(c,s,d,!1,null,null,null),h=u.exports,g={name:"IntegralWithdrawal",components:{AuditIntegralWithdrawal:h},data(){return{integralWithdrawalInfo:{applys:[],total:0,records:1,conditions:{page:1,row:10,integralId:"",integralName:"",amount:"",applyUserName:"",applyUserTel:""}}}},created(){this._listIntegralWithdrawals()},methods:{async _listIntegralWithdrawals(t=1,a=10){this.integralWithdrawalInfo.conditions.page=t,this.integralWithdrawalInfo.conditions.row=a;try{const t=await n(this.integralWithdrawalInfo.conditions);this.integralWithdrawalInfo.applys=t.data,this.integralWithdrawalInfo.total=t.total,this.integralWithdrawalInfo.records=t.records}catch(e){console.error(e)}},_queryIntegralWithdrawalMethod(){this._listIntegralWithdrawals()},handleCurrentChange(t){this._listIntegralWithdrawals(t,this.integralWithdrawalInfo.conditions.row)},_openEditIntegralWithdrawalModel(t){this.$refs.auditIntegralWithdrawal.open(t)}}},b=g,f=(e("e6b2"),Object(p["a"])(b,l,r,!1,null,"3696f7ba",null));a["default"]=f.exports},e6b2:function(t,a,e){"use strict";e("9e5e")}}]);
|
|
//# sourceMappingURL=chunk-72a63e2f.7777e815.js.map
|