2024-08-14 22:04:26 +08:00
|
|
|
import{J as M,K as j,D as q,C as O,w as z,F as J,L as Q,M as Z,N as G,O as H}from"./element-plus.a63a26dd.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.22edb8e7.js";import{d as E,s as Y,r as _,Z as ee,af as oe,ap as te,o as s,c as b,U as o,L as l,u as e,T as ae,a9 as le,K as c,aa as re,R as v,M as k,a as y,j as ne,Q as se}from"./@vue.18505fe0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.3cac3739.js";import{d as me}from"./user_product_storage.386b884c.js";import"./lodash.2473fc51.js";import{h as pe}from"./index.92d8c5bb.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_userProductStorageEdit_lang.d83efdfe.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.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.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.575aa0c6.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const _e={class:"flex mt-4 justify-end"},ce=E({name:"userProductStorageLists"}),oo=E({...ce,setup(fe){const F=Y(),C=_(!1),r=ee({uid:"",oid:"",product_id:"",create_time:"",start_time:"",end_time:""}),B=_([]),V=p=>{B.value=p.map(({id:a})=>a)},{dictData:D}=ue(""),{pager:i,getLists:f,resetParams:T,resetPage:u}=ie({fetchFun:me,params:r});f();const m=_(!1),w=_([]),x=(p="")=>{m.value=!0,pe({nickname:p,page_size:50}).then(a=>{w.value=a.lists,setTimeout(()=>{m.value=!1},300)}).catch(a=>{setTimeout(()=>{m.value=!1},300)})};return(p,a)=>{const L=M,U=j,d=q,S=O,P=X,g=z,$=J,h=Q,n=Z,K=oe("router-link"),N=G,R=W,A=te("perms"),I=H;return s(),b("div",null,[o(h,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o($,{class:"mb-[-16px]",model:e(r),inline:""},{default:l(()=>[o(d,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[o(U,{modelValue:e(r).uid,"onUpdate:modelValue":a[0]||(a[0]=t=>e(r).uid=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":x,loading:e(m),style:{width:"240px"},onChange:e(u)},{default:l(()=>[(s(!0),b(ae,null,le(e(w),t=>(s(),c(L,{key:t.id,label:`${t.real_name||t.nickname} (ID:${t.id})`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(d,{label:"\u8BA2\u5355id",prop:"oid"},{default:l(()=>[o(S,{class:"w-[280px]",modelValue:e(r).oid,"onUpdate:modelValue":a[1]||(a[1]=t=>e(r).oid=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355id",onKeydown:re(e(u),["enter"]),onClear:e(u)},null,8,["modelValue","onKeydown","onClear"])]),_:1}),o(d,{label:"",prop:"create_time"},{default:l(()=>[o(P,{startTime:e(r).start_time,"onUpdate:startTime":a[2]||(a[2]=t=>e(r).start_time=t),endTime:e(r).end_time,"onUpdate:endTime":a[3]||(a[3]=t=>e(r).end_time=t),type:"daterange",onChange:e(u)},null,8,["startTime","endTime","onChange"])]),_:1}),o(d,null,{default:l(()=>[o(g,{type:"primary",onClick:e(u)},{default:l(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(g,{onClick:e(T)},{default:l(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),k((s(),c(h,{class:"!border-none",shadow:"never"},{default:l(()=>[y("div",null,[o(N,{data:e(i).lists,onSelectionChange:V},{default:l(()=>[o(n,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),o(n
|