2024-11-21 17:27:37 +08:00
|
|
|
import{J,K as Q,D as Z,C as G,w as H,F as W,L as X,M as Y,N as ee,O as oe}from"./element-plus.91c68cc0.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{u as le}from"./usePaging.f8c888e4.js";import{u as ae}from"./useDictOptions.1f11cf62.js";import{a as re}from"./store_finance_flow.2c8e41a4.js";import{a as se}from"./system_store.de1a4364.js";import{h as ne}from"./index.d12b3af4.js";import{d as R,s as x,r as u,Z as ie,o as s,c as d,U as o,L as a,u as l,T as L,a9 as B,K as v,R as C,M as ue,a as S,S as T,j as me,Q as pe}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_storeFinanceFlowEdit_lang.e1e3cd4b.js";import{_ as _e}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.c608cd4a.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./index.e03c2e5b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./moment.40bc58bf.js";const ce={key:0,class:"text-success"},fe={key:1,class:"text-danger"},ve={class:"flex mt-4 justify-end"},we=R({name:"storeFinanceFlowLists"}),mo=R({...we,setup(he){const U=x(),w=x(),F=u(!1),n=ie({store_name:"",store_id:"",user_id:"",create_time:"",financial_type:1,financial_pm:1,order_sn:""}),$=u([]),A=i=>{$.value=i.map(({id:e})=>e)},{dictData:y}=ae(""),{pager:m,getLists:h,resetParams:N,resetPage:b}=le({fetchFun:re,params:n}),I=async i=>{var e,p;(e=w.value)==null||e.open(),(p=w.value)==null||p.setFormData(i)};h();const _=u(!1),k=u([]),M=(i="")=>{_.value=!0,se({name:i,page_size:50}).then(e=>{k.value=e.lists,setTimeout(()=>{_.value=!1},300)}).catch(e=>{setTimeout(()=>{_.value=!1},300)})},c=u(!1),D=u([]),P=(i="")=>{c.value=!0,ne({nickname:i,page_size:50}).then(e=>{D.value=e.lists,setTimeout(()=>{c.value=!1},300)}).catch(e=>{setTimeout(()=>{c.value=!1},300)})};return(i,e)=>{const p=J,E=Q,f=Z,j=G,g=H,z=W,V=X,r=Y,K=ee,O=te,q=oe;return s(),d("div",null,[o(V,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(z,{class:"mb-[-16px]",model:l(n),inline:""},{default:a(()=>[o(f,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[o(E,{modelValue:l(n).store_id,"onUpdate:modelValue":e[0]||(e[0]=t=>l(n).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":M,loading:l(_),style:{width:"240px"},onChange:l(b)},{default:a(()=>[(s(!0),d(L,null,B(l(k),t=>(s(),v(p,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(f,{label:"\u7528\u6237",prop:"uid"},{default:a(()=>[o(E,{modelValue:l(n).user_id,"onUpdate:modelValue":e[1]||(e[1]=t=>l(n).user_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:l(c),style:{width:"240px"},onChange:l(b)},{default:a(()=>[(s(!0),d(L,null,B(l(D),t=>(s(),v(p,{key:t.id,label:`${t.nickname} (ID:${t.id})`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(f,{label:"\u8BA2\u5355\u53F7",prop:"order_sn"
|