bztang-admin/addons/yun_shop/static/app/js/chunk-732e6e00.8bb2d6d9.js

1 line
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-732e6e00"],{"57ff":function(t,a,e){var i=e("ba049");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("499e").default;o("f8e10cc0",i,!0,{sourceMap:!1,shadowMode:!1})},"7d48":function(t,a,e){"use strict";e("57ff")},ba049:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,'.withdrawal-detail[data-v-28a19f36]{position:relative;min-height:100vh}.withdrawal-detail .reject-button[data-v-28a19f36]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;margin-top:.9375rem}.withdrawal-detail .reject-button span[data-v-28a19f36]{width:3.75rem;height:1.875rem;line-height:1.875rem;border:1px solid #bbb;border-radius:.1875rem}.withdrawal-detail .wrapper[data-v-28a19f36]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.withdrawal-detail .block[data-v-28a19f36]{width:18.75rem;padding:.5rem .8125rem .6875rem;background-color:#fff;border-radius:.25rem}.withdrawal-detail .top-box[data-v-28a19f36]{padding:2rem 0;background-color:#fff}.withdrawal-detail .top-box .amount[data-v-28a19f36]{font-weight:700}.withdrawal-detail .top-box .amount .num[data-v-28a19f36]{font-size:1.875rem;color:#323232}.withdrawal-detail .top-box .status[data-v-28a19f36]{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-28a19f36]{background-color:#f15353}.withdrawal-detail .top-box .yellow[data-v-28a19f36]{background-color:#f7c124}.withdrawal-detail .top-box .blue[data-v-28a19f36]{background-color:#28b2fa}.withdrawal-detail .top-box .green[data-v-28a19f36]{background-color:#74b23d}.withdrawal-detail .top-box .orange[data-v-28a19f36]{background-color:#f2852e}.withdrawal-detail .top-box .grey[data-v-28a19f36]{background-color:#a6a6a6}.withdrawal-detail .center-box[data-v-28a19f36]{margin-top:.625rem;padding:0 .98rem;background-color:#fff}.withdrawal-detail .center-box li[data-v-28a19f36]{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-28a19f36]{white-space:nowrap;color:#6b6b6b}.withdrawal-detail .center-box li .text[data-v-28a19f36]{padding-left:1rem;white-space:pre-wrap;word-break:break-all;color:#303030}.withdrawal-detail .income[data-v-28a19f36]{margin-top:.625rem;text-align:left}.withdrawal-detail .bottom-btns[data-v-28a19f36]{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-28a19f36]{-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-28a19f36]{background-color:#f2852e}.withdrawal-detail .bottom-btns .reject-pay[data-v-28a19f36]{color:#f15353;border:.063rem solid #f15353;background-color:transparent!important}.withdrawal-detail .bottom-btns .re-pay[data-v-28a19f36]{color:#f2852e;border:.063rem solid #f2852e;background-color:transparent!important}.withdrawal-detail .record-detail-popup[data-v-28a19f36]{height:calc(100% - 44px);padding:1.5rem .2rem;font-size:.85rem;overflow:hidden}.withdrawal-detail .record-detail-popup .th[data-v-28a19f36]{color:#646464;margin-bottom:1rem}.withdrawal-detail .record-detail-popup .tr[data-v-28a19f36]{position:relative;padding:.5rem 0;white-space:pre-wrap;word-break:break-all;overflow:hidden}.withdrawal-detail .record-detail-popup .tr[data-v-28a19f36]: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-28a19f36]{height:90%;overflow-y:auto}.withdrawal-detail .record-detail-popup .srcoll-box[data-v-28a19f36] .checkbox{min-width:1.5rem}.withdrawal-detail .record-detail-popup .srcoll-box[data-v-28a19f36] .checkbox .van-checkbox__icon .van-icon{border:none;color:#fff;background:#c4c4c4}.withdrawal-detail .record-detail-popup .srcoll-box[data-v-28a19f36] .checkbox .van-checkbox__icon--checked .van-icon{background-color:#f15353!important}.withdrawal-detail .record-detail-popup .empty-placeholder[data-v-28a19f36]{width:100%;height:3.2rem}.withdrawal-detail .record-detail-popup .all-handler[data-v-28a19f36]{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-28a19f36],.withdrawal-detail .record-detail-popup .all-handler .check-all[data-v-28a19f36]{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-28a19f36]{font-size:1.2rem;color:#c4c4c4}.withdrawal-detail .record-detail-popup .all-handler .check-all .activeIcon[data-v-28a19f36]{color:#f15353}.withdrawal-detail .record-detail-popup .all-handler .btns[data-v-28a19f36]{-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-28a19f36]{color:#f15353;padding:.2rem .8rem;border:1px solid #f15353;border-radius:.825rem}.withdrawal-detail .record-detail-popup .all-handler .btn-active[data-v-28a19f36]{color:#fff!important;background-color:#f15353}.withdrawal-detail .record-detail-popup .all-handler .complete[data-v-28a19f36]{margin-right:1rem;color:#f15353}.withdrawal-detail .record-detail-popup .close-icon[data-v-28a19f36]{font-size:1rem}',""]),t.exports=a},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",[t.recordData.withdraw_account?e("span",{staticClass:"title"},[t._v("提现账号")]):t._e(),e("span",{staticClass:"text"},[t._v(t._s(t.recordData.withdraw_account))])]),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-overlay",{attrs:{show:t.show_reject_reason_pop},on:{click:function(a){t.show_reject_reason_pop=!1}}},[e("div",{staticClass:"wrapper",on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"block"},[e("p",{staticStyle:{"font-size":"0.875rem","margin-bottom":"0.4375rem","text-align":"left"}},[t._v("驳回原因")]),e("div",{staticStyle:{border:"1px solid #ccc"}},[e("van-field",{attrs:{rows:"3",autosize:"",type:"textarea",placeholder:"请输入驳回原因","show-word-limit":""},model:{value:t.reject_reason,callback:function(a){t.reject_reason=a},expression:"reject_reason"}})],1),e("div",{staticClass:"reject-button"},[e("span",{staticStyle:{color:"#101010"},on:{click:function(a){t.show_reject_reason_pop=!1}}},[t._v("取消")]),e("span",{staticStyle:{color:"#f00"},on:{click:t.reject_handle}},[t._v("确认")])])])])]),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:[],show_reject_reason_pop:!1,reject_reason:""}},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="";if(1==t)if("balance"==this.recordData.type){if(i.status=a,3==a)return void(this.show_reject_reason_pop=!0)}else i.audit={},this.incomes.forEach((function(t){t.auditStatus?i.audit[t.id]=t.auditStatus:i.audit[t.id]=e.statusActions[0].status}));else if(2==t)o="是否需要"+this.recordData.payment_button_name;else if(3==t)o="将重新审核记录,确认是否执行该操作!";else if(5==t)o="重新打款一次,确认是否执行该操作!";else{if(6==t)return void(this.show_reject_reason_pop=!0);7==t&&(o="本打款方式需要线下打款,系统只是完成流程!")}this.submitOperation(i,o)},reject_handle:function(){var t={id:this.id,submit_operation:6,reject_reason:this.reject_reason};"balance"==this.recordData.type&&(t.status=3,t.submit_operation=1),this.submitOperation(t)},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(),e.show_reject_reason_pop=!1)}))};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,r=(e("7d48"),e("2877")),l=Object(r["a"])(c,i,o,!1,null,"28a19f36",null);a["default"]=l.exports}}]);