2024-06-19 19:10:06 +08:00
|
|
|
import{U as K,G as O,H as Q,V as Z,M as z,w as J,N as W,L as X,C as Y,D as ee,F as te,I as oe,O as ae}from"./element-plus.ea2cdc63.js";import{_ as le}from"./picker.40598800.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.9926caf5.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.60b810e8.js";import{r as E,t as re,f as ue}from"./index.136166fb.js";import{d as V,Z as g,r as b,o as C,c as me,M as pe,u as a,K as D,L as t,a as k,U as e,R as n,S as c,Q as w,j as y}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.790e6e37.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.3f4ec06c.js";import"./index.ea34d61b.js";import"./vuedraggable.d1fd737a.js";import"./vue.feef8fd6.js";import"./sortablejs.c8f4cbb7.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";function _e(m){return E.get({url:"/financial_transfers/financialtransfers/lists",params:m})}function de(m){return E.post({url:"/financial_transfers/FinancialTransfers/send_transfers",params:m})}function ce(m){return E.post({url:"/financial_transfers/FinancialTransfers/success_send",params:m})}const fe={class:"mt-4"},Fe={class:"flex mt-4 justify-end"},Ce=V({name:"financialTransfersLists"}),rt=V({...Ce,setup(m){const B=g({store_id:"",admin_id:"",uid:"",status:"",initiation_time:"",confirmation_time:"",mark:"",money:"",remark_time:""}),h=b([]),x=s=>{h.value=s.map(({id:l})=>l)};se("");const{pager:d,getLists:f,resetParams:be,resetPage:De}=ie({fetchFun:_e,params:B}),T=async s=>{await ue.confirm("\u786E\u5B9A\u8981\u53D1\u9001\u5417\uFF1F"),await de({id:s}),f()},p=b(!1),_=b(""),A=s=>{_.value=s,p.value=!0},i=g({id:"",transfer_picture:"",status:"",fail_msg:""}),U=async s=>{i.id=_.value.id,await ce({...i}),f(),p.value=!1};return f(),(s,l)=>{const r=z,F=J,L=W,N=ne,S=X,u=K,v=O,I=Q,P=le,R=Y,$=Z,j=ee,q=te,G=oe,M=ae;return C(),me("div",null,[pe((C(),D(S,{class:"!border-none",shadow:"never"},{default:t(()=>[k("div",fe,[e(L,{data:a(d).lists,onSelectionChange:x},{default:t(()=>[e(r,{label:"id",prop:"store_id","show-overflow-tooltip":""}),e(r,{label:"\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(r,{label:"\u6536\u6B3E\u65B9",prop:"store_name","show-overflow-tooltip":""}),e(r,{label:"\u7ED3\u7B97\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(r,{label:"\u7ED3\u7B97\u65B9\u5F0F",prop:"extract_type","show-overflow-tooltip":""}),e(r,{label:"\u786E\u8BA4\u65F6\u95F4",prop:"initiation_time","show-overflow-tooltip":""},{default:t(({row:o})=>[n(c(a(re)(o.initiation_time,"yyyy-mm-dd")),1)]),_:1}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:o})=>[o.status==0?(C(),D(F,{key:0,link:"",type:"primary",onClick:H=>T(o.id)},{default:t(()=>[n(" \u53D1\u9001 ")]),_:2},1032,["onClick"])):w("",!0),o.status==2?(C(),D(F,{key:1,link:"",type:"primary",onClick:H=>A(o)},{default:t(()=>[n(" \u786E\u8BA4 ")]),_:2},1032,["onClick"])):w("",!0)]),_:1})]),_:1},8,["data"])]),k("div",Fe,[e(N,{modelValue:a(d),"onUpdate:modelValue":l[0]||(l[0]=o=>y(d)?d.value=o:null),onChange:a(f)},null,8,["modelValue","onChange"])])]),_:1})),[[M,a(d).loading]]),e(G,{modelValue:a(p),"onUpdate:modelValue":l[5]||(l[5]=o=>y(p)?p.value=o:null),title:"\u786E\u8BA4\u7ED3\u7B9
|