detail.55fb71.js 2.2 KB

1
  1. import{_ as V,d as b,ah as m,p as F,aP as N,ai as S,x,bc as O,aM as P,aD as w,H as I,m as e,o,c as f,l as r,D as l,c4 as U,c5 as j,ar as T,c6 as v,G as u,F as G,a as _,c7 as H,c8 as L}from"./index.js";import{u as M}from"./useDetail.d77f98f9.js";import{R as W}from"./index.8ad79f80.js";import{D as q}from"./default.86fd4980.js";/* empty css */import z from"./order-form.0e6f79.js";import"./orderRecord.4d98a397.js";import"./porder.9a85976d.js";import"./global.9ad647c8.js";import"./index.b44bf5c5.js";import"./_options.04c95e2d.js";import"./order-modal.168fb9.js";import"./single.e44042.js";import"./index.a733720b.js";import"./batch.ea7b57.js";const J={class:"padding__container"},K=b({__name:"detail",setup(Q){const y="currentcyOrderRecordDetail",D=m(()=>{var t;return((t=s.value)==null?void 0:t.detail.status)||""}),g=m(()=>{var t,a;return((t=s.value)==null?void 0:t.detail)&&String((a=s.value)==null?void 0:a.detail.is_comon)==="1"}),{id:c,title:p,isDetail:i,collapses:n}=M({baseName:"\u901A\u7528\u8BA2\u5355\u5BF9\u8D26",collapseLen:2}),{push:R}=F(),d=N(!1),{isSuperUser:h}=S(),s=x(null),{run:k}=O({success:()=>s.value.refresh()}),{hasPermissionWithCode:A}=P(y);function C(t){const a={...t,payNo:c.value};k(L(a))}return(t,a)=>{const B=w("loading");return I((o(),f("div",J,[r(e(H),null,{default:l(()=>[r(e(U),{label:e(p)},{default:l(()=>[r(e(j),{modelValue:e(n),"onUpdate:modelValue":a[1]||(a[1]=E=>T(n)?n.value=E:null)},{default:l(()=>[r(e(v),{title:e(p),name:"1"},{default:l(()=>[e(i)?(o(),u(e(W),{key:0,ref_key:"formRef",ref:s,id:e(c),loading:e(d),readonly:e(i),isPurch:""},null,8,["id","loading","readonly"])):(o(),u(z,{key:1,onCreate:a[0]||(a[0]=()=>e(R)("/InvoiceSales/currentcyOrderRecord"))}))]),_:1},8,["title"]),e(i)&&!e(h)&&e(g)?(o(),f(G,{key:0},[String(e(D))==="1"&&e(A)("039")?(o(),u(e(v),{key:0,name:"2",title:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:l(()=>[r(e(q),{approveValue:"2",rejectValue:"3",onApproval:C})]),_:1})):_("v-if",!0)],64)):_("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])),[[B,e(d)]])}}});var pe=V(K,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord/detail.vue"]]);export{pe as default};