1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0fe482cf"],{"0d00":function(t,a,e){var i=e("d8c7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("499e").default;o("eaf10a2e",i,!0,{sourceMap:!1,shadowMode:!1})},"2eab":function(t,a,e){"use strict";e("0d00")},cf43:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"withdrawal-detail"},[e("c-title",{attrs:{hide:!1,text:"提现记录"}}),e("div",{staticClass:"top-box"},[e("p",{staticClass:"amount"},[t._v(" "+t._s(t.$i18n.t("money"))+" "),0==t.recordData.status?e("span",{staticClass:"num"},[t._v(t._s((t.recordData.amounts-t.recordData.servicetax-t.recordData.poundage).toFixed(2)))]):e("span",{staticClass:"num"},[t._v(t._s(t.recordData.actual_amounts||0))])]),e("div",{class:["status",t.colorClass(t.status)]},[t._v(t._s(t.recordData.status_name?t.recordData.status_name:"待审核"))])]),e("ul",{staticClass:"center-box"},[e("li",[e("span",{staticClass:"title"},[t._v("收入类型")]),e("span",{staticClass:"text"},[t._v(t._s(t.recordData.type_name))])]),e("li",[e("span",{staticClass:"title"},[t._v("提现编号")]),e("span",{staticClass:"text"},[t._v(t._s(t.recordData.withdraw_sn))])]),e("li",[e("span",{staticClass:"title"},[t._v("提现方式")]),e("span",{staticClass:"text"},[t._v(t._s(t.recordData.pay_way_name))])]),e("li",[e("span",{staticClass:"title"},[t._v("提现时间")]),e("span",{staticClass:"text"},[t._v(t._s(t.recordData.created_at))])]),e("li",[e("span",{staticClass:"title"},[t._v("申请金额")]),e("span",{staticClass:"text"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.recordData.amounts))])]),e("li",[e("span",{staticClass:"title"},[t._v("手续费")]),e("span",{staticClass:"text"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.recordData.poundage))])])]),"balance"!==t.recordData.type?e("van-cell",{staticClass:"income",attrs:{title:"收入信息","is-link":""},on:{click:function(a){t.showPopup=!0}}}):t._e(),e("div",{staticClass:"bottom-btns"},["balance"==t.recordData.type?[0==t.status?e("div",{staticClass:"btn submit",on:{click:function(a){return t.clickButton(1,1)}}},[t._v("通过")]):t._e(),0==t.status?e("div",{staticClass:"btn submit",on:{click:function(a){return t.clickButton(1,3)}}},[t._v("驳回")]):t._e(),0==t.status?e("div",{staticClass:"btn submit",on:{click:function(a){return t.clickButton(1,-1)}}},[t._v("无效")]):t._e()]:t._e(),"balance"!==t.recordData.type?[0==t.status?e("div",{staticClass:"btn submit",on:{click:function(a){return t.clickButton(1,1)}}},[t._v("提交审核")]):t._e()]:t._e(),1==t.status?e("div",{staticClass:"btn weChat-pay",on:{click:function(a){return t.clickButton(2)}}},[t._v(t._s(t.recordData.payment_button_name))]):t._e(),4==t.status||1==t.status?e("div",{staticClass:"btn offline-pay",on:{click:function(a){return t.clickButton(7)}}},[t._v("线下确认打款")]):t._e(),1==t.status?e("div",{staticClass:"btn reject-pay",on:{click:function(a){return t.clickButton(6)}}},[t._v("驳回")]):t._e(),4==t.status?e("div",{staticClass:"btn re-pay",on:{click:function(a){return t.clickButton(5)}}},[t._v("重新打款")]):t._e(),-1==t.status?e("div",{staticClass:"btn re-examine",on:{click:function(a){return t.clickButton(3)}}},[t._v("重新审核")]):t._e()],2),e("van-popup",{staticClass:"record-detail-popup",attrs:{position:"bottom"},model:{value:t.showPopup,callback:function(a){t.showPopup=a},expression:"showPopup"}},[e("van-row",{staticClass:"th"},[e("van-col",{attrs:{span:"4"}},[t._v("收入id")]),e("van-col",{attrs:{span:"5"}},[t._v("金额")]),e("van-col",{attrs:{span:"9"}},[t._v("收入时间")]),e("van-col",{staticStyle:{"text-align":"right","padding-right":"0.5rem"},attrs:{span:"6"},on:{click:t.closePopup}},[e("van-icon",{staticClass:"close-icon",attrs:{name:"cross"}})],1)],1),e("div",{staticClass:"srcoll-box"},[e("van-checkbox-group",{ref:"checkboxGroup",model:{value:t.batchIncomes,callback:function(a){t.batchIncomes=a},expression:"batchIncomes"}},t._l(t.incomes,(function(a,i){return e("van-row",{key:a.id,staticClass:"tr"},[e("div",{on:{click:function(e){return t.toggleItem(a.id)}}},[e("van-col",{staticStyle:{display:"flex","justify-content":"space-evenly"},attrs:{span:"5"}},[t.isOperation?e("van-checkbox",{ref:"checkbox"+a.id,refInFor:!0,staticClass:"checkbox",attrs:{name:a.id},on:{click:function(t){t.stopPropagation()}}}):t._e(),e("span",[t._v(t._s(a.id))])],1),e("van-col",{attrs:{span:"5"}},[t._v(t._s(a.amount))]),e("van-col",{attrs:{span:"9"}},[t._v(t._s(a.created_at))])],1),e("van-col",{style:{color:a.auditStatus?"#29BA9C":"#9f9e9e"},attrs:{span:"5"}},[e("span",{on:{click:function(a){return a.stopPropagation(),t.showSheet(i)}}},[t._v(t._s(a.auditStatus?a.auditStatusText:a.pay_status_name))]),0!=t.status||a.auditStatus?t._e():e("van-icon",{attrs:{name:"arrow"}})],1)],1)})),1)],1),t.isOperation?e("div",{staticClass:"empty-placeholder"}):t._e(),t.isOperation?e("div",{class:[3==t.fun.getPhoneEnv()?"pcStyle":"","all-handler"]},[e("div",{staticClass:"check-all"},[e("van-checkbox",{on:{change:t.toggleAll},scopedSlots:t._u([{key:"icon",fn:function(t){return[e("i",{class:["iconfont","icon-all_select_active",t.checked?"activeIcon":""]})]}}],null,!1,3938309134),model:{value:t.allCheck,callback:function(a){t.allCheck=a},expression:"allCheck"}},[e("span",[t._v("全选")])])],1),e("div",{staticClass:"btns"},[e("div",{staticClass:"btn",on:{click:function(a){return t.clickBatchBotton(t.statusActions[0])}}},[t._v("通过")]),e("div",{staticClass:"btn",on:{click:function(a){return t.clickBatchBotton(t.statusActions[1])}}},[t._v("驳回")]),e("div",{staticClass:"btn",on:{click:function(a){return t.clickBatchBotton(t.statusActions[2])}}},[t._v("无效")])]),e("div",{staticClass:"complete",on:{click:t.closePopup}},[t._v("完成")])]):t._e()],1),e("van-action-sheet",{attrs:{actions:t.statusActions},on:{select:t.changeStatus},model:{value:t.isShowSheet,callback:function(a){t.isShowSheet=a},expression:"isShowSheet"}})],1)},o=[],s=e("5530"),n=(e("b0c0"),e("d3b7"),e("159b"),e("caad"),e("2532"),{data:function(){return{id:"",status:"",recordData:{},incomes:[],showPopup:!1,allCheck:!1,isOperation:!1,isShowSheet:!1,statusActions:[{status:1,name:"通过"},{status:3,name:"驳回"},{status:-1,name:"无效"}],batchIncomes:[]}},activated:function(){this.id=this.$route.params.id,this.id||this.$router.go(-1),this.getData()},methods:{getData:function(){var t=this;$http.post("plugin.shop-assistant.frontend.withdraw.withdraw-detail",{id:this.id},"loading").then((function(a){if(1!==a.result)return t.$toast(a.msg);t.recordData=a.data,t.status=a.data.status,t.incomes=a.data.type_data?a.data.type_data.incomes:[],0==t.status||-1==t.status?t.isOperation=!0:t.isOperation=!1}))},closePopup:function(){this.showPopup=!1},showSheet:function(t){0==this.status&&(this.setIndex=t,this.isShowSheet=!0)},changeStatus:function(t){this.isShowSheet=!1,this.incomes[this.setIndex].auditStatus=t.status,this.incomes[this.setIndex].auditStatusText=t.name},toggleAll:function(){this.$refs.checkboxGroup.toggleAll(this.allCheck)},toggleItem:function(t){var a=this.$refs["checkbox"+t][0];a&&a.toggle()},clickBatchBotton:function(t){var a=this;if(this.batchIncomes.length<=0)return this.$toast("请选择需要修改的记录");this.incomes.forEach((function(e,i){var o=1*e.id;a.batchIncomes.includes(o)&&(a.$set(a.incomes[i],"auditStatus",t.status),a.$set(a.incomes[i],"auditStatusText",t.name))}))},clickButton:function(t,a){var e=this,i={id:this.id,submit_operation:t},o="";1==t?"balance"==this.recordData.type?i.status=a:(i.audit={},this.incomes.forEach((function(t){t.auditStatus?i.audit[t.id]=t.auditStatus:i.audit[t.id]=e.statusActions[0].status}))):2==t?o="是否需要"+this.recordData.payment_button_name:3==t?o="将重新审核记录,确认是否执行该操作!":5==t?o="重新打款一次,确认是否执行该操作!":6==t?o="驳回后,需要会员重新申请提现(仅驳回审核通过提现)":7==t&&(o="本打款方式需要线下打款,系统只是完成流程!"),this.submitOperation(i,o)},submitOperation:function(t,a){var e=this,i=this,o=function(){$http.post("plugin.shop-assistant.frontend.withdraw.examine",Object(s["a"])({},t),"loading").then((function(t){i.$toast(t.msg),1==t.result&&(i.status="",i.recordData={},i.incomes=[],i.showPopup=!1,i.getData())}))};a?this.$dialog.confirm({message:a}).then((function(){o()})).catch((function(){e.$toast("您取消了操作")})):o()}},computed:{colorClass:function(t){return function(t){switch(parseInt(t)){case-1:return"grey";case 0:return"red";case 1:return"yellow";case 2:return"green";case 3:return"orange ";case 4:return"blue"}}}},components:{}}),c=n,l=(e("2eab"),e("2877")),r=Object(l["a"])(c,i,o,!1,null,"22be2f28",null);a["default"]=r.exports},d8c7:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,'.withdrawal-detail[data-v-22be2f28]{position:relative;min-height:100vh}.withdrawal-detail .top-box[data-v-22be2f28]{padding:2rem 0;background-color:#fff}.withdrawal-detail .top-box .amount[data-v-22be2f28]{font-weight:700}.withdrawal-detail .top-box .amount .num[data-v-22be2f28]{font-size:1.875rem;color:#323232}.withdrawal-detail .top-box .status[data-v-22be2f28]{display:inline-block;margin-top:1.18rem;color:#fff;font-size:.7rem;padding:.2rem .5rem;border-radius:.13rem;background-color:#f15353}.withdrawal-detail .top-box .red[data-v-22be2f28]{background-color:#f15353}.withdrawal-detail .top-box .yellow[data-v-22be2f28]{background-color:#f7c124}.withdrawal-detail .top-box .blue[data-v-22be2f28]{background-color:#28b2fa}.withdrawal-detail .top-box .green[data-v-22be2f28]{background-color:#74b23d}.withdrawal-detail .top-box .orange[data-v-22be2f28]{background-color:#f2852e}.withdrawal-detail .top-box .grey[data-v-22be2f28]{background-color:#a6a6a6}.withdrawal-detail .center-box[data-v-22be2f28]{margin-top:.625rem;padding:0 .98rem;background-color:#fff}.withdrawal-detail .center-box li[data-v-22be2f28]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.625rem 0;font-size:.875rem}.withdrawal-detail .center-box li .title[data-v-22be2f28]{white-space:nowrap;color:#6b6b6b}.withdrawal-detail .center-box li .text[data-v-22be2f28]{padding-left:1rem;white-space:pre-wrap;word-break:break-all;color:#303030}.withdrawal-detail .income[data-v-22be2f28]{margin-top:.625rem;text-align:left}.withdrawal-detail .bottom-btns[data-v-22be2f28]{position:absolute;bottom:1rem;left:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}.withdrawal-detail .bottom-btns .btn[data-v-22be2f28]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-right:.5rem;color:#fff;border-radius:3rem;background-color:#f15353;padding:.8rem;white-space:nowrap;text-align:center}.withdrawal-detail .bottom-btns .weChat-pay[data-v-22be2f28]{background-color:#f2852e}.withdrawal-detail .bottom-btns .reject-pay[data-v-22be2f28]{color:#f15353;border:.063rem solid #f15353;background-color:transparent!important}.withdrawal-detail .bottom-btns .re-pay[data-v-22be2f28]{color:#f2852e;border:.063rem solid #f2852e;background-color:transparent!important}.withdrawal-detail .record-detail-popup[data-v-22be2f28]{height:calc(100% - 44px);padding:1.5rem .2rem;font-size:.85rem;overflow:hidden}.withdrawal-detail .record-detail-popup .th[data-v-22be2f28]{color:#646464;margin-bottom:1rem}.withdrawal-detail .record-detail-popup .tr[data-v-22be2f28]{position:relative;padding:.5rem 0;white-space:pre-wrap;word-break:break-all;overflow:hidden}.withdrawal-detail .record-detail-popup .tr[data-v-22be2f28]:after{content:"";position:absolute;left:50%;top:0;height:1px;width:100%;-webkit-transform:translateX(-50%);transform:translateX(-50%);background-color:#ececec}.withdrawal-detail .record-detail-popup .srcoll-box[data-v-22be2f28]{height:90%;overflow-y:auto}.withdrawal-detail .record-detail-popup .srcoll-box[data-v-22be2f28] .checkbox{min-width:1.5rem}.withdrawal-detail .record-detail-popup .srcoll-box[data-v-22be2f28] .checkbox .van-checkbox__icon .van-icon{border:none;color:#fff;background:#c4c4c4}.withdrawal-detail .record-detail-popup .srcoll-box[data-v-22be2f28] .checkbox .van-checkbox__icon--checked .van-icon{background-color:#f15353!important}.withdrawal-detail .record-detail-popup .empty-placeholder[data-v-22be2f28]{width:100%;height:3.2rem}.withdrawal-detail .record-detail-popup .all-handler[data-v-22be2f28]{width:100%;height:3.2rem;padding:.65rem;background:#fff;border-top:.0625rem solid #e1e1e1;position:fixed;bottom:0;z-index:99;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;white-space:nowrap}.withdrawal-detail .record-detail-popup .all-handler[data-v-22be2f28],.withdrawal-detail .record-detail-popup .all-handler .check-all[data-v-22be2f28]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.withdrawal-detail .record-detail-popup .all-handler .check-all .icon-all_select_active[data-v-22be2f28]{font-size:1.2rem;color:#c4c4c4}.withdrawal-detail .record-detail-popup .all-handler .check-all .activeIcon[data-v-22be2f28]{color:#f15353}.withdrawal-detail .record-detail-popup .all-handler .btns[data-v-22be2f28]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:.8rem;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}.withdrawal-detail .record-detail-popup .all-handler .btns .btn[data-v-22be2f28]{color:#f15353;padding:.2rem .8rem;border:1px solid #f15353;border-radius:.825rem}.withdrawal-detail .record-detail-popup .all-handler .btn-active[data-v-22be2f28]{color:#fff!important;background-color:#f15353}.withdrawal-detail .record-detail-popup .all-handler .complete[data-v-22be2f28]{margin-right:1rem;color:#f15353}.withdrawal-detail .record-detail-popup .close-icon[data-v-22be2f28]{font-size:1rem}',""]),t.exports=a}}]); |