2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
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.681b9893.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{u as j}from"./usePaging.6a6670f9.js";import{u as Q}from"./useDictOptions.b307efcf.js";import{a as q}from"./cashierinfo.48c49872.js";import"./lodash.466e9fe4.js";import"./index.0c8416f0.js";import{_ as K}from"./edit.vue_vue_type_script_setup_true_name_cashierinfoEdit_lang.3d6264cf.js";import{d as C,s as M,r as w,Z as O,o as n,c as Z,U as o,L as p,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.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.a7179cc9.js";const J={class:"mt-4"},W={class:"flex mt-4 justify-end"},X=C({name:"cashierinfoLists"}),ae=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:u,getLists:m,resetParams:D,resetPage:B}=j({fetchFun:q,params:t});return m(),(c,l)=>{const i=I,s=R,f=L,x=N,_=P,a=S,k=T,U=$,y=A;return n(),Z("div",null,[o(_,{class:"!border-none mb-4",shadow:"never"},{default:p(()=>[o(x,{class:"mb-[-16px]",model:e(t),inline:""},{default:p(()=>[o(s,{label:"\u6240\u5C5EID",prop:"pid"},{default:p(()=>[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(s,{label:"\u4ED3\u50A8",prop:"room"},{default:p(()=>[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(s,{label:"\u5546\u54C1",prop:"goods"},{default:p(()=>[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(s,{label:"\u4ED3\u5E93",prop:"warehouse"},{default:p(()=>[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(s,{label:"\u4E32\u53F7",prop:"serial"},{default:p(()=>[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(s,null,{default:p(()=>[o(f,{type:"primary",onClick:e(B)},{default:p(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(f,{onClick:e(D)},{default:p(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),z((n(),E(_,{class:"!border-none",shadow:"never"},{default:p(()=>[h("div",J,[o(k,{data:e(u).lists,onSelectionChange:V},{default:p(()=>[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(u),"onUpdate:modelValue":l[5]||(l[5]=r=>G(u)?u.value=r:null),onChange:e(m)},null,8,["modelValue","onChange"])])]),_:1})),[[y,e(u).loading]]),e(d)?(n(),E(K,{key:0,ref_key:"editRef",ref:v,"dict-data":e(g),onSuccess:e(m),onClose:l[6]||(l[6]=r=>d.value=!1)},null,8,["dict-data","onSuccess"])):H("",!0)])}}});export{ae as default};
|