weipengfei fa885a5d04 更新
2024-06-06 18:16:08 +08:00

2 lines
5.3 KiB
JavaScript

import{J as O,K as q,D as z,C as J,w as Q,F as Z,L as G,M as H,b as W,N as X,O as Y}from"./element-plus.78e68aed.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.3c4454b7.js";import{u as oe}from"./usePaging.6a6670f9.js";import{u as te}from"./useDictOptions.0e0294ee.js";import{d as ae,e as le}from"./store_cash_finance_flow.ee30d193.js";import"./lodash.60201f64.js";import{f as se}from"./index.b18da889.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.1d6386f4.js";import{a as ie}from"./system_store.fdf20cc8.js";import{d as y,s as ne,r as f,Z as ue,ap as pe,o as i,c as D,U as e,L as l,u as t,T as me,a9 as ce,K as p,R as h,M as F,a as k,j as de,Q as _e,n as fe}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.68558adb.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const he={class:"mt-4"},we={class:"flex mt-4 justify-end"},ve=y({name:"storeCashFinanceFlowLists"}),so=y({...ve,setup(Ee){const w=ne(),v=f(!1),n=ue({store_id:"",create_time:""}),x=f([]),B=r=>{x.value=r.map(({id:o})=>o)},{dictData:V}=te(""),{pager:u,getLists:m,resetParams:L,resetPage:S}=oe({fetchFun:le,params:n}),T=async r=>{var o,d;v.value=!0,await fe(),(o=w.value)==null||o.open("edit"),(d=w.value)==null||d.setFormData(r)},A=async r=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:r}),m()};m();const c=f(!1),C=f([]),N=(r="")=>{c.value=!0,ie({name:r,page_size:50}).then(o=>{C.value=o.lists,setTimeout(()=>{c.value=!1},300)}).catch(o=>{setTimeout(()=>{c.value=!1},300)})};return(r,o)=>{const d=O,R=q,E=z,$=J,_=Q,I=Z,b=G,s=H,P=W,U=X,M=ee,g=pe("perms"),j=Y;return i(),D("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(I,{class:"mb-[-16px]",model:t(n),inline:""},{default:l(()=>[e(E,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(R,{modelValue:t(n).store_id,"onUpdate:modelValue":o[0]||(o[0]=a=>t(n).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:t(c),style:{width:"240px"}},{default:l(()=>[(i(!0),D(me,null,ce(t(C),a=>(i(),p(d,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(E,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"},{default:l(()=>[e($,{class:"w-[280px]",modelValue:t(n).create_time,"onUpdate:modelValue":o[1]||(o[1]=a=>t(n).create_time=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(E,null,{default:l(()=>[e(_,{type:"primary",onClick:t(S)},{default:l(()=>[h("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:t(L)},{default:l(()=>[h("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((i(),p(b,{class:"!border-none",shadow:"never"},{default:l(()=>[k("div",he,[e(U,{data:t(u).lists,onSelectionChange:B},{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(P,{style:{width:"50px",height:"50px"},src:a.file},null,8,["src"])]),_:1}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(s,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[F((i(),p(_,{type:"primary",link:"",onClick:K=>T(a)},{default:l(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["store_cash_finance_flow.store_cash_finance_flow/edit"]]]),F((i(),p(_,{type:"danger",link:"",onClick:K=>A(a.id)},{default:l(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["store_cash_finance_flow.store_cash_finance_flow/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",we,[e(M,{modelValue:t(u),"onUpdate:modelValue":o[2]||(o[2]=a=>de(u)?u.value=a:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[j,t(u).loading]]),t(v)?(i(),p(re,{key:0,ref_key:"editRef",ref:w,"dict-data":t(V),onSuccess:t(m),onClose:o[3]||(o[3]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):_e("",!0)])}}});export{so as default};