moreShopAdmin/build/admin/assets/index.4a18a285.js

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.6344d4d1.js";import{d as ae,e as le}from"./store_cash_finance_flow.c995720b.js";import"./lodash.60201f64.js";import{f as se}from"./index.bbf57713.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.37d57848.js";import{a as ne}from"./system_store.e0560729.js";import{d as x,s as ie,r as f,Z as ue,ap as pe,o as n,c as k,U as e,L as l,u as o,T as me,a9 as ce,K as p,R as h,M as E,a as y,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.e34f1810.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=x({name:"storeCashFinanceFlowLists"}),so=x({...ve,setup(Ce){const w=ie(),v=f(!1),i=ue({store_id:"",create_time:""}),B=f([]),V=r=>{B.value=r.map(({id:t})=>t)},{dictData:L}=te(""),{pager:u,getLists:m,resetParams:S,resetPage:F}=oe({fetchFun:le,params:i}),T=async r=>{var t,d;v.value=!0,await fe(),(t=w.value)==null||t.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),b=f([]),N=(r="")=>{c.value=!0,ne({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=O,R=q,C=z,$=J,_=Q,I=Z,g=G,s=H,P=W,U=X,M=ee,D=pe("perms"),j=Y;return n(),k("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(I,{class:"mb-[-16px]",model:o(i),inline:""},{default:l(()=>[e(C,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(R,{modelValue:o(i).store_id,"onUpdate:modelValue":t[0]||(t[0]=a=>o(i).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:o(c),style:{width:"240px"},onChange:o(F)},{default:l(()=>[(n(!0),k(me,null,ce(o(b),a=>(n(),p(d,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(C,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"},{default:l(()=>[e($,{class:"w-[280px]",modelValue:o(i).create_time,"onUpdate:modelValue":t[1]||(t[1]=a=>o(i).create_time=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(C,null,{default:l(()=>[e(_,{type:"primary",onClick:o(F)},{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}),E((n(),p(g,{class:"!border-none",shadow:"never"},{default:l(()=>[y("div",he,[e(U,{data:o(u).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(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})=>[E((n(),p(_,{type:"primary",link:"",onClick:K=>T(a)},{default:l(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[D,["store_cash_finance_flow.store_cash_finance_flow/edit"]]]),E((n(),p(_,{type:"danger",link:"",onClick:K=>A(a.id)},{default:l(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[D,["store_cash_finance_flow.store_cash_finance_flow/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",we,[e(M,{modelValue:o(u),"onUpdate:modelValue":t[2]||(t[2]=a=>de(u)?u.value=a:null),onChange:o(m)},null,8,["modelValue","onChange"])])]),_:1})),[[j,o(u).loading]]),o(v)?(n(),p(re,{key:0,ref_key:"editRef",ref:w,"dict-data":o(L),onSuccess:o(m),onClose:t[3]||(t[3]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):_e("",!0)])}}});export{so as default};