multiStoreAdmin/dist/store/assets/index.4c3bb3fd.js

2 lines
5.0 KiB
JavaScript

import{a2 as q,a3 as G,M as H,w as J,N as K,J as M,H as O,I as Q,D as W,F as z,G as X,K as Y,O as Z}from"./element-plus.ab0703f2.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{u as te}from"./usePaging.fff444fa.js";import{r as w,t as v}from"./index.ae42b2c0.js";import{d as g,r as E,$ as b,o as B,c as oe,R as ue,u as r,P as y,Q as t,a as C,W as e,U as a,V as m,T as ae,j as le}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.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"}),ze=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=H,F=J,T=K,N=ee,P=M,i=q,D=O,U=Q,I=W,L=G,R=z,$=X,S=Y,j=Z;return B(),oe("div",null,[ue((B(),y(P,{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(N,{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(S,{modelValue:p.value,"onUpdate:modelValue":u[4]||(u[4]=o=>p.value=o),title:"\u786E\u8BA4\u7ED3\u7B97",width:"680px"},{default:t(()=>[e(L,{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(U,{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(I,{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($,{class:"mt-4"},{default:t(()=>[e(R,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{ze as default};