2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{B as j,C as q,M as K,N as W,w as z,D as G,I as H,O as J,P as X,Q as Y}from"./element-plus.9c2fdfa8.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as ee}from"./usePaging.c22e2b6f.js";import{u as te}from"./useDictOptions.aa9aa458.js";import{a as oe}from"./withdraw.76846df8.js";import"./lodash.47b8af7d.js";import"./index.5be037e5.js";import{_ as ae}from"./edit.vue_vue_type_script_setup_true_name_withdrawEdit_lang.6ba29286.js";import{_ as le}from"./audit.vue_vue_type_script_setup_true_name_withdrawEdit_lang.e0c5e56e.js";import{d as x,s as V,r as v,$ as ue,af as se,o as u,c as m,U as t,L as l,M as C,u as o,K as p,Q as d,T as ne,a7 as re,R as k,a as g,k as ie,n as me}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.96be3cef.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./index.da6dd366.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";const pe={class:"mt-4"},de={key:0,style:{color:"#e6a23c"}},ce={key:1,style:{color:"#409eff"}},_e={key:2,style:{color:"#f56c6c"}},fe={key:3,style:{color:"#67c23a"}},Fe={class:"flex mt-4 justify-end"},ve=x({name:"withdrawLists"}),rt=x({...ve,setup(ke){const A=V(),D=V(),b=v(!1),w=v(!1),s=ue({order_sn:"",user_id:"",nickname:"",company_name:"",admin_id:"",amount:"",status:""}),$=v([{id:0,name:"\u5F85\u5BA1\u6838"},{id:1,name:"\u901A\u8FC7"},{id:2,name:"\u62D2\u7EDD"},{id:3,name:"\u5DF2\u8F6C\u8D26"}]),L=v([]),R=f=>{L.value=f.map(({id:a})=>a)},{dictData:y}=te(""),{pager:c,getLists:_,resetParams:S,resetPage:U}=ee({fetchFun:oe,params:s}),h=async(f,a)=>{var i,r;w.value=!0,await me(),(i=D.value)==null||i.open(a?"audit":"detail"),(r=D.value)==null||r.setFormData(f)};return _(),(f,a)=>{const i=j,r=q,N=K,P=W,F=z,T=G,B=H,n=J,I=X,M=Z,E=se("perms"),O=Y;return u(),m("div",null,[t(B,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[t(T,{class:"mb-[-16px]",model:o(s),inline:""},{default:l(()=>[t(r,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"order_sn"},{default:l(()=>[t(i,{class:"w-[280px]",modelValue:o(s).order_sn,"onUpdate:modelValue":a[0]||(a[0]=e=>o(s).order_sn=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u7528\u6237",prop:"nickname"},{default:l(()=>[t(i,{class:"w-[280px]",modelValue:o(s).nickname,"onUpdate:modelValue":a[1]||(a[1]=e=>o(s).nickname=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u63D0\u73B0\u91D1\u989D",prop:"amount"},{default:l(()=>[t(i,{class:"w-[280px]",modelValue:o(s).amount,"onUpdate:modelValue":a[2]||(a[2]=e=>o(s).amount=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u63D0\u73B0\u91D1\u989D"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u72B6\u6001\uFF1A",prop:"status"},{default:l(()=>[t(P,{modelValue:o(s).status,"onUpdate:modelValue":a[3]||(a[3]=e=>o(s).status=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:l(()=>[(u(!0),m(ne,null,re(o($),e=>(u(),p(N,{key:e.label,value:e.id,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(r,null,{default:l(()=>[t(F,{type:"primary",onClick:o(U)},{default:l(()=>[k("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(F,{onClick:o(S)},{default:l(()=>[k("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),C((u(),p(B,{class:"!border-none",shadow:"never"},{default:l(()=>[g("div",pe,[t(I,{data:o(c).lists,onSelectionChange:R},{default:l(()=>[t(n,{label:"ID",prop:"id",width:"110"}),t(n,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"order_sn","show-overflow-tooltip":""}),t(n,{label:"\u516C\u53F8",prop:"company_name","show-overflow-tooltip":""}),t(n,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),t(n,{label:"\u63D0\u73B0\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),t(n,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:l(({row:e})=>[e.status==0?(u(),m("span",de,"\u5F85\u5BA1\u6838")):d("",!0),e.status==1?(u(),m("span",ce,"\u901A\u8FC7")):d("",!0),e.status==2?(u(),m("span",_e,"\u62D2\u7EDD")):d("",!0),e.status==3?(u(),m("span",fe,"\u5DF2\u8F6C\u8D26")):d("",!0)]),_:1}),t(n,{label:"\u63D0\u73B0\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),t(n,{label:"\u5907\u6CE8",prop:"deny_desc","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:e})=>[e.status==0?C((u(),p(F,{key:0,type:"primary",link:"",onClick:Q=>h(e,!0)},{default:l(()=>[k(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[E,["withdraw/audit"]]]):C((u(),p(F,{key:1,type:"primary",link:"",onClick:Q=>h(e,!1)},{default:l(()=>[k(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[E,["withdraw/audit"]]])]),_:1})]),_:1},8,["data"])]),g("div",Fe,[t(M,{modelValue:o(c),"onUpdate:modelValue":a[4]||(a[4]=e=>ie(c)?c.value=e:null),onChange:o(_)},null,8,["modelValue","onChange"])])]),_:1})),[[O,o(c).loading]]),o(b)?(u(),p(ae,{key:0,ref_key:"editRef",ref:A,"dict-data":o(y),onSuccess:o(_),onClose:a[5]||(a[5]=e=>b.value=!1)},null,8,["dict-data","onSuccess"])):d("",!0),o(w)?(u(),p(le,{key:1,ref_key:"auditRef",ref:D,"dict-data":o(y),onSuccess:o(_),onClose:a[6]||(a[6]=e=>w.value=!1)},null,8,["dict-data","onSuccess"])):d("",!0)])}}});export{rt as default};
|