2024-06-18 18:49:49 +08:00
|
|
|
import{J as K,K as O,D as q,w as z,F as J,L as Q,M as Z,b as G,N as H,O as W}from"./element-plus.ea2cdc63.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.9926caf5.js";import{u as Y}from"./usePaging.6a6670f9.js";import{u as ee}from"./useDictOptions.f2099dca.js";import{d as oe,e as te}from"./store_cash_finance_flow.fff49a92.js";import"./lodash.60201f64.js";import{f as ae}from"./index.88dad86e.js";import{_ as le}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.98e0c3f9.js";import{a as se}from"./system_store.cf165f8c.js";import{d as x,s as re,r as f,Z as ie,ap as ne,o as i,c as k,U as e,L as l,u as o,T as ue,a9 as pe,K as u,R as h,M as C,a as y,j as me,Q as ce,n as de}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"./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";import"./index.d76d2d63.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const _e={class:"mt-4"},fe={class:"flex mt-4 justify-end"},he=x({name:"storeCashFinanceFlowLists"}),ao=x({...he,setup(we){const w=re(),v=f(!1),p=ie({store_id:"",create_time:""}),B=f([]),V=r=>{B.value=r.map(({id:t})=>t)},{dictData:L}=ee(""),{pager:n,getLists:m,resetParams:S,resetPage:E}=Y({fetchFun:te,params:p}),T=async r=>{var t,d;v.value=!0,await de(),(t=w.value)==null||t.open("edit"),(d=w.value)==null||d.setFormData(r)},N=async r=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oe({id:r}),m()};m();const c=f(!1),b=f([]),R=(r="")=>{c.value=!0,se({name:r,page_size:50}).then(t=>{b.value=t.lists,setTimeout(()=>{c.value=!1},300)}).catch(t=>{setTimeout(()=>{c.value=!1},300)})};return(r,t)=>{const d=K,$=O,g=q,_=z,P=J,F=Q,s=Z,A=G,I=H,M=X,D=ne("perms"),U=W;return i(),k("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(P,{class:"mb-[-16px]",model:o(p),inline:""},{default:l(()=>[e(g,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e($,{modelValue:o(p).store_id,"onUpdate:modelValue":t[0]||(t[0]=a=>o(p).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":R,loading:o(c),style:{width:"240px"},onChange:o(E)},{default:l(()=>[(i(!0),k(ue,null,pe(o(b),a=>(i(),u(d,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(g,null,{default:l(()=>[e(_,{type:"primary",onClick:o(E)},{default:l(()=>[h("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:o(S)},{default:l(()=>[h("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),C((i(),u(F,{class:"!border-none",shadow:"never"},{default:l(()=>[y("div",_e,[e(I,{data:o(n).lists,onSelectionChange:V},{default:l(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97",prop:"store_id","show-overflow-tooltip":""}),e(s,{label:"\u4EA4\u6613\u91D1\u989D",prop:"cash_price","show-overflow-tooltip":""}),e(s,{label:"\u5E94\u6536\u91D1\u989D",prop:"receivable","show-overflow-tooltip":""}),e(s,{label:"\u5B9E\u6536\u91D1\u989D",prop:"receipts","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_id","show-overflow-tooltip":""}),e(s,{label:"\u56FE\u7247",prop:"file"},{default:l(({row:a})=>[e(A,{
|