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

2 lines
5.7 KiB
JavaScript

import{J as q,K as J,D as Q,w as Z,F as G,L as H,M as W,N as X,O as Y}from"./element-plus.573d45d4.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.ffc076c1.js";import{u as oe}from"./usePaging.6a6670f9.js";import{u as te}from"./useDictOptions.c412c527.js";import{a as ae}from"./store_finance_flow.b17c015f.js";import{a as le}from"./system_store.f9a532f3.js";import{j as se}from"./index.3f2a8b50.js";import{d as B,s as x,r as m,Z as re,o as r,c,U as e,L as l,u as o,T as V,a9 as L,K as _,R as g,M as ne,a as S,S as T,j as ie,Q as ue}from"./@vue.18505fe0.js";import"./lodash.60201f64.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_storeFinanceFlowEdit_lang.90c5bf55.js";import{_ as pe}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.80a95101.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.631cbd47.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./moment.40bc58bf.js";const de={key:0,class:"text-success"},ce={key:1,class:"text-danger"},_e={class:"flex mt-4 justify-end"},fe=B({name:"storeFinanceFlowLists"}),so=B({...fe,setup(he){const R=x(),f=x(),C=m(!1),u=re({store_name:"",store_id:"",user_id:"",create_time:"",financial_type:1,financial_pm:1}),U=m([]),N=n=>{U.value=n.map(({id:a})=>a)},{dictData:y}=te(""),{pager:p,getLists:h,resetParams:$,resetPage:v}=oe({fetchFun:ae,params:u}),M=async n=>{var a,d;(a=f.value)==null||a.open(),(d=f.value)==null||d.setFormData(n)};h();const i=m(!1),k=m([]),P=(n="")=>{i.value=!0,le({name:n,page_size:50}).then(a=>{k.value=a.lists,setTimeout(()=>{i.value=!1},300)}).catch(a=>{setTimeout(()=>{i.value=!1},300)})},j=m(!1),D=m([]),A=(n="")=>{i.value=!0,se({nickname:n,page_size:50}).then(a=>{D.value=a.lists,setTimeout(()=>{i.value=!1},300)}).catch(a=>{setTimeout(()=>{i.value=!1},300)})};return(n,a)=>{const d=q,E=J,w=Q,b=Z,z=G,F=H,s=W,I=X,K=ee,O=Y;return r(),c("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(z,{class:"mb-[-16px]",model:o(u),inline:""},{default:l(()=>[e(w,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(E,{modelValue:o(u).store_id,"onUpdate:modelValue":a[0]||(a[0]=t=>o(u).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:o(i),style:{width:"240px"},onChange:o(v)},{default:l(()=>[(r(!0),c(V,null,L(o(k),t=>(r(),_(d,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(w,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[e(E,{modelValue:o(u).user_id,"onUpdate:modelValue":a[1]||(a[1]=t=>o(u).user_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":A,loading:o(j),style:{width:"240px"},onChange:o(v)},{default:l(()=>[(r(!0),c(V,null,L(o(D),t=>(r(),_(d,{key:t.id,label:t.nickname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(w,null,{default:l(()=>[e(b,{type:"primary",onClick:o(v)},{default:l(()=>[g("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(b,{onClick:o($)},{default:l(()=>[g("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),ne((r(),_(F,{class:"!border-none",shadow:"never"},{default:l(()=>[S("div",null,[e(I,{data:o(p).lists,onSelectionChange:N,"row-key":"id","tree-props":{children:"list"}},{default:l(()=>[e(s,{label:"ID",prop:"id","min-width":"100","show-overflow-tooltip":""}),e(s,{label:"\u4EA4\u6613\u5355\u53F7",prop:"order_sn","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u4EA4\u6613\u65F6\u95F4",prop:"create_time","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u91D1\u989D",prop:"number","min-width":"100","show-overflow-tooltip":""},{default:l(({row:t})=>[t.number>0?(r(),c("span",de,T(t.number),1)):(r(),c("span",ce,T(t.number),1))]),_:1}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237",prop:"nickname","min-width":"80","show-overflow-tooltip":""}),e(s,{label:"\u6536\u76CA/\u6263\u9664",prop:"financial_type_name","show-overflow-tooltip":""}),e(s,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_name","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",fixed:"right",width:"100"},{default:l(({row:t})=>[e(b,{link:"",type:"primary",onClick:ve=>M(t)},{default:l(()=>[g(" \u8D44\u91D1\u8D70\u5411 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),S("div",_e,[e(K,{modelValue:o(p),"onUpdate:modelValue":a[2]||(a[2]=t=>ie(p)?p.value=t:null),onChange:o(h)},null,8,["modelValue","onChange"])])]),_:1})),[[O,o(p).loading]]),o(C)?(r(),_(me,{key:0,ref_key:"editRef",ref:R,"dict-data":o(y),onSuccess:o(h),onClose:a[3]||(a[3]=t=>C.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0),e(pe,{ref_key:"detailsRef",ref:f,"dict-data":o(y)},null,8,["dict-data"])])}}});export{so as default};