import{C as I,D as L,w as N,F as R,L as P,M as S,N as A,O as T}from"./element-plus.73c9e9a6.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.317e431e.js";import{u as j}from"./usePaging.77fa9d39.js";import{u as M}from"./useDictOptions.3ea9a314.js";import{d as q}from"./cashierinfo.cc2b846f.js";import"./lodash.403d4198.js";import"./index.bd5cd373.js";import{_ as K}from"./edit.vue_vue_type_script_setup_true_name_cashierinfoEdit_lang.c80cf789.js";import{d as v,s as O,r as w,Z as Q,o as m,c as Z,U as o,L as s,u as e,R as b,M as z,K as E,a as h,j as G,Q as H}from"./@vue.663bc523.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.4b5afb22.js";import"./@element-plus.8b1118e2.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.58fac957.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.js";import"./index.fa58e261.js";const J={class:"mt-4"},W={class:"flex mt-4 justify-end"},X=v({name:"cashierinfoLists"}),So=v({...X,setup(Y){const C=O(),d=w(!1),a=Q({pid:"",room:"",goods:"",warehouse:"",serial:""}),F=w([]),V=c=>{F.value=c.map(({id:l})=>l)},{dictData:g}=M(""),{pager:p,getLists:n,resetParams:D,resetPage:B}=j({fetchFun:q,params:a});return n(),(c,l)=>{const i=I,u=L,f=N,x=R,_=P,t=S,k=A,U=$,y=T;return m(),Z("div",null,[o(_,{class:"!border-none mb-4",shadow:"never"},{default:s(()=>[o(x,{class:"mb-[-16px]",model:e(a),inline:""},{default:s(()=>[o(u,{label:"\u6240\u5C5EID",prop:"pid"},{default:s(()=>[o(i,{class:"w-[280px]",modelValue:e(a).pid,"onUpdate:modelValue":l[0]||(l[0]=r=>e(a).pid=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5EID"},null,8,["modelValue"])]),_:1}),o(u,{label:"\u4ED3\u50A8",prop:"room"},{default:s(()=>[o(i,{class:"w-[280px]",modelValue:e(a).room,"onUpdate:modelValue":l[1]||(l[1]=r=>e(a).room=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u50A8"},null,8,["modelValue"])]),_:1}),o(u,{label:"\u5546\u54C1",prop:"goods"},{default:s(()=>[o(i,{class:"w-[280px]",modelValue:e(a).goods,"onUpdate:modelValue":l[2]||(l[2]=r=>e(a).goods=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),o(u,{label:"\u4ED3\u5E93",prop:"warehouse"},{default:s(()=>[o(i,{class:"w-[280px]",modelValue:e(a).warehouse,"onUpdate:modelValue":l[3]||(l[3]=r=>e(a).warehouse=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),o(u,{label:"\u4E32\u53F7",prop:"serial"},{default:s(()=>[o(i,{class:"w-[280px]",modelValue:e(a).serial,"onUpdate:modelValue":l[4]||(l[4]=r=>e(a).serial=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E32\u53F7"},null,8,["modelValue"])]),_:1}),o(u,null,{default:s(()=>[o(f,{type:"primary",onClick:e(B)},{default:s(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(f,{onClick:e(D)},{default:s(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),z((m(),E(_,{class:"!border-none",shadow:"never"},{default:s(()=>[h("div",J,[o(k,{data:e(p).lists,onSelectionChange:V},{default:s(()=>[o(t,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(t,{label:"\u6240\u5C5EID",prop:"pid","show-overflow-tooltip":""}),o(t,{label:"\u4ED3\u50A8",prop:"room","show-overflow-tooltip":""}),o(t,{label:"\u5546\u54C1",prop:"goods","show-overflow-tooltip":""}),o(t,{label:"\u4ED3\u5E93",prop:"warehouse","show-overflow-tooltip":""}),o(t,{label:"\u4E32\u53F7",prop:"serial","show-overflow-tooltip":""}),o(t,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),o(t,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),o(t,{label:"\u6298\u6263",prop:"discount","show-overflow-tooltip":""}),o(t,{label:"\u603B\u4EF7",prop:"total","show-overflow-tooltip":""}),o(t,{label:"\u5907\u6CE8",prop:"data","show-overflow-tooltip":""}),o(t,{label:"\u6269\u5C55\u4FE1\u606F",prop:"more","show-overflow-tooltip":""}),o(t,{label:"\u6392\u5E8F",prop:"sort","show-overflow-tooltip":""})]),_:1},8,["data"])]),h("div",W,[o(U,{modelValue:e(p),"onUpdate:modelValue":l[5]||(l[5]=r=>G(p)?p.value=r:null),onChange:e(n)},null,8,["modelValue","onChange"])])]),_:1})),[[y,e(p).loading]]),e(d)?(m(),E(K,{key:0,ref_key:"editRef",ref:C,"dict-data":e(g),onSuccess:e(n),onClose:l[6]||(l[6]=r=>d.value=!1)},null,8,["dict-data","onSuccess"])):H("",!0)])}}});export{So as default};