2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
import{a1 as q,a2 as G,L as M,w as H,M as J,I as O,G as W,H as z,C as K,D as Q,F as X,J as Y,N as Z}from"./element-plus.0a93cab1.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.3863431c.js";import{u as te}from"./usePaging.d25ebf19.js";import{r as w,t as v}from"./index.8ccde2ce.js";import{d as g,r as E,a0 as b,o as B,c as oe,P as ue,u as r,M as y,O as t,a as C,W as e,T as a,U as m,S as ae,j as le}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";function ne(c){return w.get({url:"/finance/financialTransfers/lists",params:c})}function ie(c){return w.post({url:"/finance/financialTransfers/confirmation",params:c})}const se=C("span",{style:{color:"#FFD767"}},"\u7ED3\u7B97\u65F6\u95F4\u4E8E\u6BCF\u6708 10 \u53F7\u5F00\u542F\uFF0C\u9700\u5728 18 \u53F7\u4E4B\u524D\u5B8C\u6210\u7ED3\u7B97\u91D1\u989D\u7684\u786E\u8BA4\uFF0C\u786E\u8BA4\u5B8C\u6BD5\u540E\uFF0C\u6536\u76CA\u5C06\u4F1A\u5728 25 \u53F7\u5165\u8D26\uFF0C\u5018\u82E5\u9047\u5230\u5468\u672B\u6216\u8005\u8282\u5047\u65E5\uFF0C\u6536\u76CA\u7684\u5230\u8D26\u65F6\u95F4\u5219\u4F1A\u987A\u5EF6\u3002",-1),re={class:"mt-4"},me={class:"flex mt-4 justify-end"},pe=g({name:"financialTransfersLists"}),Ke=g({...pe,setup(c){const p=E(!1),l=E(""),h=b({}),V=E([]),A=_=>{V.value=_.map(({id:u})=>u)},{pager:d,getLists:f,resetParams:de,resetPage:_e}=te({fetchFun:ne,params:h}),k=_=>{l.value=_,p.value=!0},s=b({id:"",status:"",mark:""}),x=async _=>{s.id=l.value.id,await ie({...s}),f(),p.value=!1};return f(),(_,u)=>{const n=M,F=H,T=J,L=ee,N=O,i=q,D=W,P=z,U=K,I=G,S=Q,R=X,$=Y,j=Z;return B(),oe("div",null,[ue((B(),y(N,{class:"!border-none",shadow:"never"},{header:t(()=>[se]),default:t(()=>[C("div",re,[e(T,{data:r(d).lists,onSelectionChange:A},{default:t(()=>[e(n,{label:"id",prop:"store_id","show-overflow-tooltip":""}),e(n,{label:"\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(n,{label:"\u6536\u6B3E\u65B9",prop:"store_name","show-overflow-tooltip":""}),e(n,{label:"\u7ED3\u7B97\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(n,{label:"\u7ED3\u7B97\u65B9\u5F0F",prop:"extract_type","show-overflow-tooltip":""}),e(n,{label:"\u786E\u8BA4\u65F6\u95F4",prop:"initiation_time","show-overflow-tooltip":""},{default:t(({row:o})=>[a(m(r(v)(o.initiation_time,"yyyy-mm-dd")),1)]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:o})=>[o.status==1?(B(),y(F,{key:0,link:"",type:"primary",onClick:ce=>k(o)},{default:t(()=>[a(" \u786E\u8BA4 ")]),_:2},1032,["onClick"])):ae("",!0)]),_:1})]),_:1},8,["data"])]),C("div",me,[e(L,{modelValue:r(d),"onUpdate:modelValue":u[0]||(u[0]=o=>le(d)?d.value=o:null),onChange:r(f)},null,8,["modelValue","onChange"])])]),_:1})),[[j,r(d).loading]]),e($,{modelValue:p.value,"onUpdate:modelValue":u[4]||(u[4]=o=>p.value=o),title:"\u786E\u8BA4\u7ED3\u7B97",width:"680px"},{default:t(()=>[e(I,{column:1,border:""},{default:t(()=>[e(i,{label:"\u65F6\u95F4"},{default:t(()=>[a(m(l.value.create_time),1)]),_:1}),e(i,{label:"\u6536\u6B3E\u65B9"},{default:t(()=>[a(m(l.value.store_name),1)]),_:1}),e(i,{label:"\u7ED3\u7B97\u91D1\u989D"},{default:t(()=>[a(m(l.value.money),1)]),_:1}),e(i,{label:"\u7ED3\u7B97\u65B9\u5F0F"},{default:t(()=>[a(m(l.value.extract_type),1)]),_:1}),e(i,{label:"\u786E\u8BA4\u65F6\u95F4"},{default:t(()=>[a(m(r(v)(l.value.initiation_time,"yyyy-mm-dd")),1)]),_:1}),e(i,{label:"\u64CD\u4F5C"},{default:t(()=>[e(P,{modelValue:s.status,"onUpdate:modelValue":u[1]||(u[1]=o=>s.status=o)},{default:t(()=>[e(D,{label:"1"},{default:t(()=>[a("\u786E\u8BA4")]),_:1}),e(D,{label:"0"},{default:t(()=>[a("\u4E0D\u786E\u8BA4")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5907\u6CE8"},{default:t(()=>[e(U,{class:"w-[280px]",modelValue:s.mark,"onUpdate:modelValue":u[2]||(u[2]=o=>s.mark=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(R,{class:"mt-4"},{default:t(()=>[e(S,null,{default:t(()=>[e(F,{type:"primary",onClick:x},{default:t(()=>[a("\u786E\u5B9A")]),_:1}),e(F,{onClick:u[3]||(u[3]=o=>p.value=!1)},{default:t(()=>[a("\u53D6\u6D88")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}});export{Ke as default};
|