2 lines
5.2 KiB
JavaScript
2 lines
5.2 KiB
JavaScript
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.91c68cc0.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.2ca6b570.js";import{d as E,s as Y,r as _,Z as ee,af as oe,ap as te,o as s,c as h,U as t,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.76ce7aa3.js";import{u as ie}from"./usePaging.f8c888e4.js";import{u as ue}from"./useDictOptions.667b4f46.js";import{d as me}from"./user_product_storage.129582f9.js";import"./lodash.4e6d2a38.js";import{h as pe}from"./index.c425938f.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_userProductStorageEdit_lang.d209825a.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./index.a1b5f040.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const _e={class:"flex mt-4 justify-end"},ce=E({name:"userProductStorageLists"}),lo=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:o})=>o)},{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(o=>{w.value=o.lists,setTimeout(()=>{m.value=!1},300)}).catch(o=>{setTimeout(()=>{m.value=!1},300)})};return(p,o)=>{const L=M,U=j,d=q,S=O,P=X,g=z,$=J,b=Q,n=Z,K=oe("router-link"),N=G,R=W,A=te("perms"),I=H;return s(),h("div",null,[t(b,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[t($,{class:"mb-[-16px]",model:e(r),inline:""},{default:l(()=>[t(d,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[t(U,{modelValue:e(r).uid,"onUpdate:modelValue":o[0]||(o[0]=a=>e(r).uid=a),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),h(ae,null,le(e(w),a=>(s(),c(L,{key:a.id,label:`${a.real_name||a.nickname} (ID:${a.id})`,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(d,{label:"\u8BA2\u5355id",prop:"oid"},{default:l(()=>[t(S,{class:"w-[280px]",modelValue:e(r).oid,"onUpdate:modelValue":o[1]||(o[1]=a=>e(r).oid=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355id",onKeydown:re(e(u),["enter"]),onClear:e(u)},null,8,["modelValue","onKeydown","onClear"])]),_:1}),t(d,{label:"",prop:"create_time"},{default:l(()=>[t(P,{startTime:e(r).start_time,"onUpdate:startTime":o[2]||(o[2]=a=>e(r).start_time=a),endTime:e(r).end_time,"onUpdate:endTime":o[3]||(o[3]=a=>e(r).end_time=a),type:"daterange",onChange:e(u)},null,8,["startTime","endTime","onChange"])]),_:1}),t(d,null,{default:l(()=>[t(g,{type:"primary",onClick:e(u)},{default:l(()=>o[6]||(o[6]=[v("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(g,{onClick:e(T)},{default:l(()=>o[7]||(o[7]=[v("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),k((s(),c(b,{class:"!border-none",shadow:"never"},{default:l(()=>[y("div",null,[t(N,{data:e(i).lists,onSelectionChange:V},{default:l(()=>[t(n,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),t(n,{label:"\u8BA2\u5355id",prop:"oid","show-overflow-tooltip":""}),t(n,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),t(n,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),t(n,{label:"\u72B6\u6001",prop:"status_name","show-overflow-tooltip":""}),t(n,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[k((s(),c(K,{to:{path:"user_product_storage_log",query:{oid:a.oid,product_id:a.product_id}},class:"ml-4"},{default:l(()=>[t(g,{type:"primary",link:""},{default:l(()=>o[8]||(o[8]=[v(" \u8BE6\u60C5 ")])),_:1})]),_:2},1032,["to"])),[[A,["user_product_storage.user_product_storage/edit"]]])]),_:1})]),_:1},8,["data"])]),y("div",_e,[t(R,{modelValue:e(i),"onUpdate:modelValue":o[4]||(o[4]=a=>ne(i)?i.value=a:null),onChange:e(f)},null,8,["modelValue","onChange"])])]),_:1})),[[I,e(i).loading]]),e(C)?(s(),c(de,{key:0,ref_key:"editRef",ref:F,"dict-data":e(D),onSuccess:e(f),onClose:o[5]||(o[5]=a=>C.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{lo as default};
|