import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{W as k,X as I,O as L,Q as N}from"./element-plus.bccb9376.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import{P as O}from"./index.8f1b3064.js";import{u as S}from"./usePaging.6a6670f9.js";import{a as U}from"./cashierinfo.da54d98e.js";import{a as $}from"./cashierclass.22bbe5ed.js";import{d as E,s as Q,r as h,Z as v,b as W,o as X,c as Z,U as e,L as t,u as o,R as s,S as n,a as D,j as z}from"./@vue.18505fe0.js";const G={class:"edit-popup"},H={class:"mt-4"},J={class:"flex mt-4 justify-end"},K=E({name:"brandEdit"}),pe=E({...K,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(d,{expose:F,emit:g}){const C=g,m=Q(),B=h("add"),_=v({pid:""}),{pager:r,getLists:f,resetParams:M,resetPage:Y}=S({fetchFun:U,params:_}),y=W(()=>"\u8BA2\u5355\u8BE6\u60C5"),a=h({});v({name:[{required:!0,message:"\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0",trigger:["blur"]}]});const b=async p=>{a.value=p},A=p=>{$({id:p.id}).then(i=>{b(i)}),_.pid=p.id,f()},x=(p="add")=>{var i;B.value=p,(i=m.value)==null||i.open()},P=()=>{C("close")};return F({open:x,setFormData:b,getDetail:A}),(p,i)=>{const l=k,w=q,V=I,u=L,R=N,T=j;return X(),Z("div",G,[e(O,{ref_key:"popupRef",ref:m,async:!0,width:"60vw",onClose:P,"bottom-btn":!1},{default:t(()=>[e(V,{class:"margin-top",title:o(y),column:3,border:""},{default:t(()=>[e(l,{label:"\u6240\u5C5E\u5546\u6237"},{default:t(()=>{var c;return[s(n((c=o(a).merchant_info)==null?void 0:c.mer_name),1)]}),_:1}),e(l,{label:"\u6536\u8D27\u4EBA"},{default:t(()=>[s(n(o(a).real_name),1)]),_:1}),e(l,{label:"\u5355\u636E\u65F6\u95F4"},{default:t(()=>[s(n(o(a).create_time),1)]),_:1}),e(l,{label:"\u5355\u636E\u7F16\u53F7"},{default:t(()=>[s(n(o(a).number),1)]),_:1}),e(l,{label:"\u5355\u636E\u91D1\u989D"},{default:t(()=>[s(n(o(a).total),1)]),_:1}),e(l,{label:"\u62B5\u6263\u91D1\u989D"},{default:t(()=>[s(n(o(a).deduction_price),1)]),_:1}),e(l,{label:"\u5B9E\u9645\u91D1\u989D"},{default:t(()=>[s(n(o(a).actual),1)]),_:1}),e(l,{label:"\u5B9E\u6536\u91D1\u989D"},{default:t(()=>[s(n(o(a).money),1)]),_:1}),e(l,{label:"\u652F\u4ED8\u65B9\u5F0F"},{default:t(()=>[e(w,{options:d.dictData.pay_type,value:o(a).pay_type},null,8,["options","value"])]),_:1}),e(l,{label:"\u5BA1\u6838\u72B6\u6001"},{default:t(()=>[e(w,{options:d.dictData.auditing_type,value:o(a).type},null,8,["options","value"])]),_:1}),e(l,{label:"\u5BA1\u6838\u4EBA"},{default:t(()=>[s(n(o(a).auditinguser_name),1)]),_:1}),e(l,{label:"\u5BA1\u6838\u65F6\u95F4"},{default:t(()=>[s(n(o(a).auditingtime),1)]),_:1})]),_:1},8,["title"]),D("div",H,[e(R,{data:o(r).lists},{default:t(()=>[e(u,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u6240\u5C5EID",prop:"pid","show-overflow-tooltip":""}),e(u,{label:"\u4ED3\u50A8",prop:"room","show-overflow-tooltip":""}),e(u,{label:"\u5546\u54C1",prop:"goods_name","show-overflow-tooltip":""}),e(u,{label:"\u4ED3\u5E93",prop:"warehouse","show-overflow-tooltip":""}),e(u,{label:"\u4E32\u53F7",prop:"cashier_number","show-overflow-tooltip":""}),e(u,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(u,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),e(u,{label:"\u6298\u6263",prop:"discount","show-overflow-tooltip":""}),e(u,{label:"\u603B\u4EF7",prop:"total","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"data","show-overflow-tooltip":""}),e(u,{label:"\u6269\u5C55\u4FE1\u606F",prop:"more","show-overflow-tooltip":""})]),_:1},8,["data"])]),D("div",J,[e(T,{modelValue:o(r),"onUpdate:modelValue":i[0]||(i[0]=c=>z(r)?r.value=c:null),onChange:o(f)},null,8,["modelValue","onChange"])])]),_:1},512)])}}});export{pe as _};
