2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
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.063db92d.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.f2099dca.js";import{r as E,t as re,f as ue}from"./index.88dad86e.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.d76d2d63.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.d312b4d4.js";import"./index.f0cbd500.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\u7B97",width:"680px"},{default:t(()=>[e($,{column:1,border:""},{default:t(()=>[e(u,{label:"\u59D3\u540D"},{default:t(()=>[n(c(a(_).store_realName),1)]),_:1}),e(u,{label:"\u94F6\u884C\u5361\u53F7"},{default:t(()=>[n(c(a(_).store_bank_code),1)]),_:1}),e(u,{label:"\u94F6\u884C\u540D\u79F0"},{default:t(()=>[n(c(a(_).store_bank),1)]),_:1}),e(u,{label:"\u5F00\u6237\u5730\u5740"},{default:t(()=>[n(c(a(_).store_bank_address),1)]),_:1}),e(u,{label:"\u64CD\u4F5C"},{default:t(()=>[e(I,{modelValue:a(i).status,"onUpdate:modelValue":l[1]||(l[1]=o=>a(i).status=o)},{default:t(()=>[e(v,{label:"1"},{default:t(()=>[n("\u901A\u8FC7")]),_:1}),e(v,{label:"0"},{default:t(()=>[n("\u4E0D\u901A\u8FC7")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u9644\u4EF6"},{default:t(()=>[e(P,{modelValue:a(i).transfer_picture,"onUpdate:modelValue":l[2]||(l[2]=o=>a(i).transfer_picture=o)},null,8,["modelValue"])]),_:1}),e(u,{label:"\u5907\u6CE8"},{default:t(()=>[e(R,{class:"w-[280px]",modelValue:a(i).fail_msg,"onUpdate:modelValue":l[3]||(l[3]=o=>a(i).fail_msg=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(q,{class:"mt-4"},{default:t(()=>[e(j,null,{default:t(()=>[e(F,{type:"primary",onClick:U},{default:t(()=>[n("\u786E\u5B9A")]),_:1}),e(F,{onClick:l[4]||(l[4]=o=>p.value=!1)},{default:t(()=>[n("\u53D6\u6D88")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}});export{rt as default};
|