detail.b4b23a.js 2.4 KB

123
  1. import{_ as U,d as V,bn as F,n as I,ah as w,b0 as f,aN as M,x as P,r as n,aC as j,o as v,c as R,j as l,C as s,l as t,aq as B,H as q,G as D,a as d,M as O,b4 as $}from"./index.js";import{u as z}from"./useDetail.1ef9c113.js";import{h as G,F as H,a as L}from"./form.47628e.js";const S={class:"padding__container"},J=V({__name:"detail",setup(K){F("purchPayReliveDetail"),I(),w();const{id:E,isDetail:A,title:C,collapses:r}=z({baseName:"\u79BB\u804C\u4EA4\u63A5",collapseLen:5}),g={expire_date:"",hand_uid:"",resign_date:"",resign_uid:""},{run:b,data:a}=f({initalData:g,success:()=>{const{resign_date:u}=a.value;u.split(" ").length===1&&(a.value.resign_date+=" 00:00:00")}}),{run:h,loading:x}=f({success:()=>{M.success("\u7F16\u8F91\u6210\u529F"),c()}});f({success:()=>c()});const c=()=>b(G({id:E.value}));function N(){const{expire_date:u,hand_uid:e,resign_uid:o,resign_date:p,id:m,companyNo:_}=a.value;h(L({expire_date:u,hand_uid:e,resign_uid:o,resign_date:p,id:m,companyNo:_}))}function y(u,e){$.confirm(`\u786E\u5B9A\u8981${e}?`,{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{})}return P(c),(u,e)=>{const o=n("ElCollapseItem"),p=n("ElButton"),m=n("ElCollapse"),_=n("ElTabPane"),k=n("ElTabs"),T=j("loading");return v(),R("div",S,[l(k,null,{default:s(()=>[l(_,{label:t(C)},{default:s(()=>[l(m,{modelValue:t(r),"onUpdate:modelValue":e[2]||(e[2]=i=>B(r)?r.value=i:null)},{default:s(()=>[q((v(),D(o,{title:"\u79BB\u804C\u4EA4\u63A5\u8BE6\u60C5",name:"1"},{default:s(()=>[l(H,{data:t(a),"onUpdate:data":e[0]||(e[0]=i=>B(a)?a.value=i:null),disabled:t(A),companyNo:t(a).companyNo,onSubmit:N},null,8,["data","disabled","companyNo"])]),_:1})),[[T,t(x)]]),d(" TODO:\u6D41\u7A0B\u6743\u9650 "),t(a).status==="0"?(v(),D(o,{key:0,title:"\u53D1\u8D77\u5BA1\u6838\u6D41\u7A0B",name:"2"},{default:s(()=>[l(p,{class:"fr mb-[10px]",size:"small",type:"primary",onClick:e[1]||(e[1]=i=>y("1","\u53D1\u8D77\u5BA1\u6838\u6D41\u7A0B"))},{default:s(()=>[O("\u53D1\u8D77\u5BA1\u6838\u6D41\u7A0B")]),_:1})]),_:1})):d("v-if",!0),d(` v-if="data.status === '1' `),d(` <ElCollapseItem title="\u79BB\u804C\u4EA4\u63A5\u5BA1\u6838" name="3">\r
  2. <DefaultApprovalNode approve-value="3" reject-value="2" />\r
  3. </ElCollapseItem> `)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Z=U(J,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/interest/handover/detail.vue"]]);export{Z as default};