2 lines
8.8 KiB
JavaScript
2 lines
8.8 KiB
JavaScript
import{_ as H}from"./index.vue_vue_type_style_index_0_lang.9e5f7fb0.js";import{a0 as J,a1 as O,L as W,a2 as X,a3 as Y,S as ee,T as le,B as te,w as ue}from"./element-plus.2acb577d.js";import{d as R,s as ne,r as V,Z as v,o as _,c as m,U as n,L as t,R as a,S as o,u as l,K as f,Q as p,T as S,a9 as T,a as g,M as ae,V as ie,n as oe}from"./@vue.821a47ec.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";import{P as re}from"./index.f292cd50.js";import{a as de,d as _e}from"./index.81df6f20.js";import{e as I}from"./@element-plus.dabbc398.js";import{k as ce}from"./oa_financial.d5633b25.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.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"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";const fe={class:"detail-popup"},pe={class:"flex",style:{position:"relative"}},me={class:"w-280[px]",style:{position:"absolute",left:"250px"}},ke={key:1},be=R({name:"customdetail"}),Be=R({...be,emits:["close"],setup(ge,{expose:$,emit:N}){const U=N,y=ne(),E=V(!1),h=V(null),c=de().userInfo,e=v({id:0,extends:{}}),L=async s=>{for(const u in s)s[u]!=null&&s[u]!=null&&(e[u]=s[u]);console.log(e)},r=v({id:e.id,check:"",content:"",check_node:1,check_admin_ids:"",check_admin_names:""}),P=async()=>{E.value=!0,await oe(),h.value.open()},j=s=>{r.check_admin_names=s.name,r.check_admin_ids=s.id,E.value=!1},G=()=>{var s;(s=y.value)==null||s.open()},K=(s,u)=>{if(s==0)return u.user_id_info[0].name;if(s==1)return"\u90E8\u95E8\u8D1F\u8D23\u4EBA";if(s==2)return"\u6216\u7B7E";if(s==3)return"\u4F1A\u7B7E";if(s==4)return u.user_id_info[0].name},C=()=>e.steps.findIndex(u=>u.sort==e.check_step_sort),M=()=>{U("close")},k=async()=>{if(r.check==2&&!r.content)return feedback.msgError("\u8BF7\u586B\u5199\u5BA1\u6279\u610F\u89C1");if(e.check_admin_ids&&e.record[e.record.length-1].check_user_id==r.check_admin_ids)return feedback.msgError("\u4E0B\u4E00\u7EA7\u5BA1\u6279\u4EBA\u4E0D\u80FD\u662F\u53D1\u8D77\u5BA1\u6279\u4EBA");e.flow_info.check_type!=2&&delete r.check_node,r.id=e.id,await ce({...r}),M()},Q=v([4,3,2]),F=()=>Q.includes(e.check_status)?!1:e.admin_id==c.id?!0:(e==null?void 0:e.check_admin_ids.length)>1?e.steps[C()].check_list.map(s=>s.check_user_id).includes(c.id)?!1:e==null?void 0:e.check_admin_ids.split(",").map(Number).includes(c.id):(e==null?void 0:e.check_admin_ids)==c.id;return $({open:G,setFormData:L}),(s,u)=>{const i=J,b=O,A=W,D=X,Z=Y,x=ee,q=le,w=te,B=ue,z=H;return _(),m("div",fe,[n(re,{ref_key:"popupRef",ref:y,showFootBtn:!1,title:"\u5BA1\u6279\u8BE6\u60C5",async:!0,width:"60vw"},{default:t(()=>[n(A,null,{header:t(()=>u[7]||(u[7]=[a("\u5BA1\u6279\u5185\u5BB9")])),default:t(()=>[n(b,{column:3,border:""},{default:t(()=>[n(i,{label:"\u53D1\u7968\u91D1\u989D","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).amount),1)]),_:1}),n(i,{label:"\u62AC\u5934\u7C7B\u578B","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).type_text),1)]),_:1}),n(i,{label:"\u53D1\u7968\u4E3B\u4F53","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_subject),1)]),_:1}),n(i,{label:"\u53D1\u7968\u7C7B\u578B","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_type_text),1)]),_:1}),n(i,{label:"\u5F00\u7968\u62AC\u5934","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_title),1)]),_:1}),n(i,{label:"\u7535\u8BDD\u53F7\u7801","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_phone),1)]),_:1}),n(i,{label:"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_tax),1)]),_:1}),n(i,{label:"\u5F00\u6237\u94F6\u884C","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_bank),1)]),_:1}),n(i,{label:"\u94F6\u884C\u8D26\u53F7","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_account),1)]),_:1}),n(i,{label:"\u94F6\u884C\u8425\u4E1A\u7F51\u70B9","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_banking),1)]),_:1}),n(i,{label:"\u5730\u5740","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).invoice_address),1)]),_:1}),n(i,{label:"\u5907\u6CE8","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).remark),1)]),_:1}),n(i,{label:"\u9644\u4EF6","label-align":"left",align:"left"},{default:t(()=>[n(se,{annex:l(e).annex||[]},null,8,["annex"])]),_:1})]),_:1})]),_:1}),l(e).code?(_(),f(A,{key:0},{header:t(()=>u[8]||(u[8]=[a("\u5F00\u7968\u4FE1\u606F")])),default:t(()=>[n(b,{column:3,border:""},{default:t(()=>[n(i,{label:"\u53D1\u7968\u53F7\u7801","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).code),1)]),_:1}),n(i,{label:"\u5F00\u5177\u65F6\u95F4","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).open_time),1)]),_:1}),n(i,{label:"\u5FEB\u9012\u5355\u53F7","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).delivery),1)]),_:1})]),_:1})]),_:1})):p("",!0),n(A,null,{header:t(()=>u[9]||(u[9]=[a("\u5BA1\u6279\u6D41\u7A0B")])),default:t(()=>[n(b,{column:3,border:""},{default:t(()=>[n(i,{label:"\u5BA1\u6279\u72B6\u6001","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).check_status_text),1)]),_:1}),n(i,{label:"\u5F53\u524D\u5BA1\u6838\u4EBA","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).check_admin_users||"\u5BA1\u6279\u7ED3\u675F"),1)]),_:1}),n(i,{label:"\u6284\u9001\u4EBA","label-align":"left",align:"left"},{default:t(()=>[a(o(l(e).copy_users),1)]),_:1})]),_:1}),n(b,{column:1,border:""},{default:t(()=>[n(i,{label:"\u5BA1\u6279\u6D41\u7A0B","label-align":"left",align:"left"},{default:t(()=>[n(Z,{class:"mb-4",style:{"max-width":"50vw"},space:200,active:C()+1,simple:""},{default:t(()=>[n(D,{icon:l(I),title:l(e).record[l(e).record.length-1].check_user_name+"\u521B\u5EFA"},null,8,["icon","title"]),(_(!0),m(S,null,T(l(e).steps,d=>(_(),f(D,{icon:l(I),title:K(d.flow_type,d)},null,8,["icon","title"]))),256))]),_:1},8,["active"])]),_:1}),n(i,{label:"\u5BA1\u6279\u8BB0\u5F55","label-align":"left",align:"left"},{default:t(()=>[(_(!0),m(S,null,T(l(e).record,d=>(_(),m("p",null,[g("span",null,o(d.check_user_name+d.status_text),1),a("\u4E86\u7533\u8BF7 "+o(d.check_time)+" ",1),g("span",null," \u64CD\u4F5C\u610F\u89C1\uFF1A "+o(d.content),1)]))),256))]),_:1}),l(e).flow_info.check_type==2&&l(e).check_status!=3&&l(e).check_status!=2&&l(e).admin_id!=l(c).id&&F()?(_(),f(i,{key:0,label:"\u5BA1\u6279\u8282\u70B9","label-align":"left",align:"left"},{default:t(()=>[g("div",pe,[n(q,{modelValue:l(r).check_node,"onUpdate:modelValue":u[0]||(u[0]=d=>l(r).check_node=d)},{default:t(()=>[n(x,{label:1},{default:t(()=>u[10]||(u[10]=[a("\u5BA1\u6279\u7ED3\u675F")])),_:1}),n(x,{label:2},{default:t(()=>u[11]||(u[11]=[a("\u4E0B\u4E00\u5BA1\u6279\u4EBA")])),_:1})]),_:1},8,["modelValue"]),g("div",me,[ae(n(w,{modelValue:l(r).check_admin_names,"onUpdate:modelValue":u[1]||(u[1]=d=>l(r).check_admin_names=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u4E0B\u4E00\u5BA1\u6279\u4EBA",clearable:"",readonly:"",onClick:P},null,8,["modelValue"]),[[ie,l(r).check_node==2]])])])]),_:1})):p("",!0),F()?(_(),f(i,{key:1,label:"\u5BA1\u6279\u610F\u89C1","label-align":"left",align:"left"},{default:t(()=>[n(w,{type:"textarea",modelValue:l(r).content,"onUpdate:modelValue":u[2]||(u[2]=d=>l(r).content=d)},null,8,["modelValue"])]),_:1})):p("",!0),F()?(_(),f(i,{key:2,label:"\u64CD\u4F5C","label-align":"left",align:"left"},{default:t(()=>[l(e).admin_id!=l(c).id?(_(),f(B,{key:0,type:"primary",onClick:u[3]||(u[3]=d=>(l(r).check=1,k()))},{default:t(()=>u[12]||(u[12]=[a(" \u901A\u8FC7 ")])),_:1})):p("",!0),l(e).admin_id!=l(c).id&&l(e).flow_info.check_type!=3?(_(),f(B,{key:1,onClick:u[4]||(u[4]=d=>(l(r).check=2,k()))},{default:t(()=>u[13]||(u[13]=[a(" \u62D2\u7EDD ")])),_:1})):p("",!0),l(e).admin_id!=l(c).id&&l(e).flow_info.check_type==3?(_(),f(B,{key:2,onClick:u[5]||(u[5]=d=>(l(r).check=2,k()))},{default:t(()=>u[14]||(u[14]=[a(" \u56DE\u9000 ")])),_:1})):p("",!0),l(e).admin_id==l(c).id?(_(),f(B,{key:3,type:"info",onClick:u[6]||(u[6]=d=>(l(r).check=3,k()))},{default:t(()=>u[15]||(u[15]=[a(" \u64A4\u56DE ")])),_:1})):p("",!0)]),_:1})):p("",!0)]),_:1})]),_:1}),l(E)?(_(),m("div",ke,[n(z,{ref_key:"personnel",ref:h,onConfirm:j,type:"1"},null,512)])):p("",!0)]),_:1},512)])}}});const ll=_e(Be,[["__scopeId","data-v-ab716d3d"]]);export{ll as default};
|