import{C as I,D as R,w as L,F as N,T as P,O as S,Q as T,R as A}from"./element-plus.8c800afc.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.7b224fce.js";import{u as j}from"./usePaging.6a6670f9.js";import{u as Q}from"./useDictOptions.080d297e.js";import{a as q}from"./cashierinfo.5ce5d45a.js";import"./lodash.be6e4bb5.js";import"./index.2398c167.js";import{_ as K}from"./edit.vue_vue_type_script_setup_true_name_cashierinfoEdit_lang.0dd2499f.js";import{d as C,s as M,r as w,Z as O,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.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.ef95d8c0.js";import"./axios.77245e3c.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.886c5f5a.js";import"./pinia.a969beab.js";import"./css-color-function.6061d63f.js";import"./color.1580a89c.js";import"./clone.4ed29f58.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.b29ee5e2.js";import"./vue-clipboard3.15c43b43.js";import"./clipboard.4a3580c9.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.d0a14c5a.js";const J={class:"mt-4"},W={class:"flex mt-4 justify-end"},X=C({name:"cashierinfoLists"}),Ao=C({...X,setup(Y){const v=M(),d=w(!1),t=O({pid:"",room:"",goods:"",warehouse:"",serial:""}),F=w([]),V=c=>{F.value=c.map(({id:l})=>l)},{dictData:g}=Q(""),{pager:p,getLists:n,resetParams:D,resetPage:B}=j({fetchFun:q,params:t});return n(),(c,l)=>{const i=I,u=R,f=L,x=N,_=P,a=S,k=T,U=$,y=A;return m(),Z("div",null,[o(_,{class:"!border-none mb-4",shadow:"never"},{default:s(()=>[o(x,{class:"mb-[-16px]",model:e(t),inline:""},{default:s(()=>[o(u,{label:"\u6240\u5C5EID",prop:"pid"},{default:s(()=>[o(i,{class:"w-[280px]",modelValue:e(t).pid,"onUpdate:modelValue":l[0]||(l[0]=r=>e(t).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(t).room,"onUpdate:modelValue":l[1]||(l[1]=r=>e(t).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(t).goods,"onUpdate:modelValue":l[2]||(l[2]=r=>e(t).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(t).warehouse,"onUpdate:modelValue":l[3]||(l[3]=r=>e(t).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(t).serial,"onUpdate:modelValue":l[4]||(l[4]=r=>e(t).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(a,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(a,{label:"\u6240\u5C5EID",prop:"pid","show-overflow-tooltip":""}),o(a,{label:"\u4ED3\u50A8",prop:"room","show-overflow-tooltip":""}),o(a,{label:"\u5546\u54C1",prop:"goods_name","show-overflow-tooltip":""}),o(a,{label:"\u4ED3\u5E93",prop:"warehouse","show-overflow-tooltip":""}),o(a,{label:"\u4E32\u53F7",prop:"cashier_number","show-overflow-tooltip":""}),o(a,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),o(a,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),o(a,{label:"\u6298\u6263",prop:"discount","show-overflow-tooltip":""}),o(a,{label:"\u603B\u4EF7",prop:"total","show-overflow-tooltip":""}),o(a,{label:"\u5907\u6CE8",prop:"data","show-overflow-tooltip":""}),o(a,{label:"\u6269\u5C55\u4FE1\u606F",prop:"more","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:v,"dict-data":e(g),onSuccess:e(n),onClose:l[6]||(l[6]=r=>d.value=!1)},null,8,["dict-data","onSuccess"])):H("",!0)])}}});export{Ao as default};
