2 lines
2.8 KiB
JavaScript
2 lines
2.8 KiB
JavaScript
import{m as E,s as q,r as v,aT as F,_ as R,p as d,q as N,t as e,v as s,u as t,a2 as g,L as U,y as w,x as C,i as $,A,aX as j,ae as I,aY as X,b5 as Y,b6 as z,b7 as G,b8 as H}from"./.pnpm.1b0299fb.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.67e6ad92.js";import{u as M}from"./usePaging.00aa976d.js";import{u as O}from"./useDictOptions.e9843f63.js";import{d as Q}from"./user_product_storage_log.77eafb82.js";import"./lodash.c3b66c05.js";import"./index.689cfa31.js";import{_ as W}from"./edit.vue_vue_type_script_setup_true_name_userProductStorageLogEdit_lang.c9399f7f.js";import"./@vueuse.72d44d91.js";import"./@vue.9d708d7c.js";import"./index.6c48d0ba.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.abac7546.js";const Z={class:"flex mt-4 justify-end"},ee=E({name:"userProductStorageLogLists"}),fe=E({...ee,setup(oe){var p;const k=q(),u=v(!1),a=F({create_time:"",start_time:"",end_time:"",oid:"",product_id:""}),i=R();(p=i.query)!=null&&p.oid&&(a.oid=i.query.oid,a.product_id=i.query.product_id);const y=v([]),T=_=>{y.value=_.map(({id:o})=>o)},{dictData:h}=O(""),{pager:r,getLists:m,resetParams:B,resetPage:x}=M({fetchFun:Q,params:a});return m(),(_,o)=>{const L=K,c=j,f=I,V=X,b=Y,n=z,D=G,P=J,S=H;return d(),N("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:s(()=>[e(V,{class:"mb-[-16px]",model:t(a),inline:""},{default:s(()=>[e(c,{label:"",prop:"create_time"},{default:s(()=>[e(L,{startTime:t(a).start_time,"onUpdate:startTime":o[0]||(o[0]=l=>t(a).start_time=l),endTime:t(a).end_time,"onUpdate:endTime":o[1]||(o[1]=l=>t(a).end_time=l)},null,8,["startTime","endTime"])]),_:1}),e(c,null,{default:s(()=>[e(f,{type:"primary",onClick:t(x)},{default:s(()=>o[4]||(o[4]=[g("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(f,{onClick:t(B)},{default:s(()=>o[5]||(o[5]=[g("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),U((d(),w(b,{class:"!border-none",shadow:"never"},{default:s(()=>[C("div",null,[e(D,{data:t(r).lists,onSelectionChange:T},{default:s(()=>[e(n,{label:"\u8BA2\u5355id",prop:"oid","show-overflow-tooltip":""}),e(n,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(n,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),e(n,{label:"\u72B6\u6001",prop:"financial_pm","show-overflow-tooltip":""}),e(n,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""})]),_:1},8,["data"])]),C("div",Z,[e(P,{modelValue:t(r),"onUpdate:modelValue":o[2]||(o[2]=l=>$(r)?r.value=l:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[S,t(r).loading]]),t(u)?(d(),w(W,{key:0,ref_key:"editRef",ref:k,"dict-data":t(h),onSuccess:t(m),onClose:o[3]||(o[3]=l=>u.value=!1)},null,8,["dict-data","onSuccess"])):A("",!0)])}}});export{fe as default};
|