chunk-67bd86dc.9153883c.js 4.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67bd86dc"],{"56cc":function(t,e,a){"use strict";a("d26f")},d26f:function(t,e,a){},dd9c:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-list-content"},[a("x-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"slot-tabs",fn:function(e){e.scope;return[a("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabsData,(function(t,e){return a("el-tab-pane",{key:e,attrs:{label:t.text,name:t.key}})})),1)]}},{key:"slot-apply",fn:function(e){var l=e.scope;return[1==l.row.status?[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.showModalFn(l.row)}}},[t._v("审核")])]:t._e()]}},{key:"table-column-status",fn:function(e){var l=e.scope;return[1==l.row.status?[a("span",[t._v("待审核")])]:2==l.row.status?[a("span",{staticClass:"success_color"},[t._v("通过")])]:3==l.row.status?[a("span",{staticClass:"error_color"},[t._v("未通过")])]:[a("span",{staticClass:"error_color"},[t._v("-")])]]}}])}),a("el-dialog",{attrs:{title:"审核",visible:t.applyDialog,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(e){t.applyDialog=e}}},[a("div",{staticClass:"ad-modal-content"},[a("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:t.form,rules:t.rule,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:"2"}},[t._v("通过")]),a("el-radio",{attrs:{label:"3"}},[t._v("拒绝")])],1)],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:t.resetForm}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.applyFn}},[t._v("确认")])],1)])],1)},s=[],r={data:function(){return{app:null,applyDialog:!1,form:{id:"",status:"2",remark:""},rule:{},tabsData:[{text:"全部",key:"0"},{text:"待审核",key:"1"}],tabIndex:"0"}},mounted:function(){},methods:{handleClick:function(t,e){this.app.refresh({status:this.tabIndex})},showModalFn:function(t){this.form.id=t.id,this.applyDialog=!0},applyFn:function(){var t=this;this.$service.cash.check(this.form).then((function(e){t.app.refresh(),t.$message.success("操作成功"),t.resetForm()}))},resetForm:function(){this.$refs["form"].resetFields(),this.applyDialog=!1},onLoad:function(t){var e=t.ctx,a=t.app;this.app=a,e.service(this.$service.cash).set("table",{columns:[{prop:"id",label:"ID",align:"center",width:"70"},{prop:"sjName",label:"商家",align:"center",width:"100"},{prop:"shopName",label:"门店",align:"center",width:"100"},{prop:"sjId",label:"商家ID",align:"center",width:"90"},{prop:"shopId",label:"门店ID",align:"center",width:"90"},{prop:"cashName",label:"申请人",align:"center",width:"100"},{prop:"cashAccount",label:"收款帐号",align:"center",width:"100"},{prop:"amount",label:"申请提现",align:"center",emptyText:"无",width:"100"},{prop:"beAmount",label:"应转",align:"center",emptyText:"无",width:"100"},{prop:"getAmount",label:"到帐",align:"center",emptyText:"无",width:"100"},{prop:"thirdOrderSn",label:"提现回执",align:"center",emptyText:"",width:"130"},{prop:"remark",label:"备注",align:"center",emptyText:"",width:"160"},{prop:"status",label:"状态",align:"center",emptyText:"无"},{prop:"addTime",label:"提交时间",align:"center",emptyText:"无",width:"135"}],op:{visible:!0,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:["slot-apply"]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).done(),a.refresh()}}},o=r,n=(a("56cc"),a("5d22")),i=Object(n["a"])(o,l,s,!1,null,"1bd88890",null);e["default"]=i.exports}}]);