2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{C as Q,D as W,N as J,O as z,w as G,F as H,J as K,P as M,Q as X,R as Y}from"./element-plus.ff90c99c.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{u as ee}from"./usePaging.bd7a7dec.js";import{u as te}from"./useDictOptions.e92d912f.js";import{a as oe}from"./withdraw.ea5b86ae.js";import"./lodash.3e731b89.js";import"./index.000b0758.js";import{_ as ae}from"./edit.vue_vue_type_script_setup_true_name_withdrawEdit_lang.44fd975d.js";import{_ as le}from"./audit.vue_vue_type_script_setup_true_name_withdrawEdit_lang.19133eed.js";import{d as x,s as V,r as v,$ as ue,aq as se,o as u,c as m,W as t,Q as l,u as o,F as ne,a9 as re,P as p,U as D,R as C,a as g,T as d,j as ie,n as me}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./index.37ed0e1b.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.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"}),mt=x({...ve,setup(De){const A=V(),k=V(),b=v(!1),w=v(!1),s=ue({order_sn:"",user_id:"",nickname:"",company_name:"",admin_id:"",amount:"",status:""}),R=v([{id:0,name:"\u5F85\u5BA1\u6838"},{id:1,name:"\u901A\u8FC7"},{id:2,name:"\u62D2\u7EDD"},{id:3,name:"\u5DF2\u8F6C\u8D26"}]),$=v([]),S=f=>{$.value=f.map(({id:a})=>a)},{dictData:y}=te(""),{pager:c,getLists:_,resetParams:L,resetPage:P}=ee({fetchFun:oe,params:s}),h=async(f,a)=>{var i,r;w.value=!0,await me(),(i=k.value)==null||i.open(a?"audit":"detail"),(r=k.value)==null||r.setFormData(f)};return _(),(f,a)=>{const i=Q,r=W,U=J,N=z,F=G,T=H,B=K,n=M,I=X,j=Z,E=se("perms"),q=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(N,{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(R),e=>(u(),p(U,{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(P)},{default:l(()=>[D("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(F,{onClick:o(L)},{default:l(()=>[D("\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:S},{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:O=>h(e,!0)},{default:l(()=>[D(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[E,["withdraw/audit"]]]):C((u(),p(F,{key:1,type:"primary",link:"",onClick:O=>h(e,!1)},{default:l(()=>[D(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[E,["withdraw/audit"]]])]),_:1})]),_:1},8,["data"])]),g("div",Fe,[t(j,{modelValue:o(c),"onUpdate:modelValue":a[4]||(a[4]=e=>ie(c)?c.value=e:null),onChange:o(_)},null,8,["modelValue","onChange"])])]),_:1})),[[q,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:k,"dict-data":o(y),onSuccess:o(_),onClose:a[6]||(a[6]=e=>w.value=!1)},null,8,["dict-data","onSuccess"])):d("",!0)])}}});export{mt as default};
|