import{_ as w,d as E,aa as p,k as V,cc as b,ab as F,n as N,cB as S,c9 as x,aw as O,B as I,o as s,c as f,h as l,y as r,i as e,dt as P,du as U,ak as j,dv as v,A as n,F as T,a as _,dw as L,dx as W}from"./index.js";import{u as q}from"./useDetail.da468487.js";import{R as z}from"./index.6004c99e.js";import{D as G}from"./receipt.f599b785.js";import H from"./order-form.373f55.js";import"./orderRecord.92bbc10f.js";import"./porder.827c74bc.js";import"./global.9ad647c8.js";import"./index.d650a936.js";import"./_options.04c95e2d.js";import"./order-modal.8abc75.js";import"./single.265cc1.js";import"./index.43fba9db.js";import"./batch.961d4c.js";const J={class:"padding__container"},K="currentcyOrderRecordDetail",M=E({__name:"detail",setup(Q){const y=p(()=>{var t;return((t=o.value)==null?void 0:t.detail.status)||""}),k=p(()=>{var t,a;return((t=o.value)==null?void 0:t.detail)&&String((a=o.value)==null?void 0:a.detail.is_comon)==="1"}),{id:c,title:d,isDetail:i,collapses:u}=q({baseName:"\u901A\u7528\u8BA2\u5355\u5BF9\u8D26",collapseLen:2}),{push:g}=V(),m=b(!1),{isSuperUser:A}=F(),o=N(null),{run:R}=S({success:()=>o.value.refresh()}),{hasPermissionWithCode:h}=x(K);function B(t){const a={...t,payNo:c.value};R(W(a))}return(t,a)=>{const D=O("loading");return I((s(),f("div",J,[l(e(L),null,{default:r(()=>[l(e(P),{label:e(d)},{default:r(()=>[l(e(U),{modelValue:e(u),"onUpdate:modelValue":a[1]||(a[1]=C=>j(u)?u.value=C:null)},{default:r(()=>[l(e(v),{title:e(d),name:"1"},{default:r(()=>[e(i)?(s(),n(e(z),{key:0,ref_key:"formRef",ref:o,id:e(c),loading:m.value,readonly:e(i),isPurch:""},null,8,["id","loading","readonly"])):(s(),n(H,{key:1,onCreate:a[0]||(a[0]=()=>e(g)("/InvoiceSales/currentcyOrderRecord"))}))]),_:1},8,["title"]),e(i)&&!e(A)&&k.value?(s(),f(T,{key:0},[String(y.value)==="1"&&e(h)("039")?(s(),n(e(v),{key:0,name:"2",title:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:r(()=>[l(e(G),{approveValue:"2",rejectValue:"3",onApproval:B})]),_:1})):_("v-if",!0)],64)):_("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])),[[D,m.value]])}}});var ce=w(M,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord/detail.vue"]]);export{ce as default};
