import{R as S,_ as V,S as q,C as I,D as N}from"./element-plus.517d4382.js";import{_ as T,a as $}from"./index.011c79f0.js";import{P as M}from"./index.b17dae19.js";import{a as U}from"./custom.99349afc.js";import{k as W,l as z}from"./flowSet.6da79e1c.js";import{d as v,s as g,a0 as y,r as G,o as u,c as s,V as e,M as a,T as n,U as o,W as D,a8 as F,L as E,u as H}from"./@vue.ab566ce7.js";import{_ as J}from"./index.8b1962e9.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./vue-router.87ebc608.js";import"./lodash.1d82ee7c.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const K={class:"detail-popup"},Q={key:0},X={style:{"margin-left":"5px",display:"block"}},Y={key:1},Z={key:0},ll={style:{"margin-left":"5px",display:"block"}},el={key:1},al=v({name:"customdetail"}),tl=v({...al,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(nl,{expose:h,emit:B}){const k=g(),r=g();y({provinceOptions:[],cityOptions:[],areaOptions:[]});const l=y({}),f=async i=>{Object.assign(l,i),A()},C=async i=>{const b=await U({id:i.id});f(b)},x=async()=>{var i;(i=r.value)==null||i.close()},w=()=>{var i;(i=r.value)==null||i.open()},_=()=>{B("close")},p=G([]),A=async()=>{if(l!=null&&l.approve_id)return;let i=await W();p.value=i};return h({open:w,setFormData:f,getDetail:C}),(i,b)=>{const t=S,d=V,O=q,R=I,P=T,j=$,L=N;return u(),s("div",K,[e(M,{ref_key:"popupRef",ref:r,title:"\u5408\u540C\u6D3D\u5546\u8BE6\u60C5",async:!0,width:"80%",onConfirm:x,onClose:_},{default:a(()=>[e(L,{ref_key:"formRef",ref:k,model:l,"label-width":"120px"},{default:a(()=>[e(R,null,{default:a(()=>[e(O,{column:2,border:""},{default:a(()=>[e(t,{label:"\u5408\u540C\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_name),1)]),_:1}),e(t,{label:"\u5408\u540C\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_code),1)]),_:1}),e(t,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.project_name),1)]),_:1}),e(t,{label:"\u5BA2\u6237\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.custom_name),1)]),_:1}),e(t,{label:"\u5408\u540C\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_type),1)]),_:1}),e(t,{label:"\u5408\u540C\u8BA1\u4EF7\u65B9\u5F0F","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_pricing_method),1)]),_:1}),e(t,{label:"\u7B7E\u7EA6\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_date),1)]),_:1}),e(t,{label:"\u4E1A\u52A1\u8D1F\u8D23\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.business_director),1)]),_:1}),e(t,{label:"\u6D3D\u5546\u5355\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.negotiation_name),1)]),_:1}),e(t,{label:"\u6D3D\u5546\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.negotiation_no),1)]),_:1}),e(t,{label:"\u6D3D\u5546\u7C7B\u522B","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.negotiation_type_text),1)]),_:1}),e(t,{label:"\u6210\u672C\u91D1\u989D\uFF08\u4EBA\u5DE5\uFF09","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.labor_costs),1)]),_:1}),e(t,{label:"\u6210\u672C\u91D1\u989D\uFF08\u6750\u6599\uFF09","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.material_costs),1)]),_:1}),e(t,{label:"\u6D3D\u5546\u8D28\u4FDD\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.warranty_amount),1)]),_:1}),e(t,{label:"\u6D3D\u5546\u8D28\u4FDD\u5230\u671F\u65F6\u95F4","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.warranty_expire_date),1)]),_:1}),e(t,{label:"\u5229\u6DA6","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.profit),1)]),_:1}),e(t,{label:"\u5229\u6DA6\u7387(%)","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.profit_rate),1)]),_:1}),e(t,{label:"\u6D3D\u5546\u5185\u5BB9","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.negotiation_content),1)]),_:1}),e(t,{label:"\u5177\u4F53\u8BF4\u660E","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.negotiation_detail),1)]),_:1}),e(t,{label:"\u7B7E\u8BC1\u62A5\u4EF7\u8868","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[l.negotiation_quotation.length>0?(u(),s("div",Q,[(u(!0),s(D,null,F(l.negotiation_quotation,(c,m)=>(u(),s("div",X,[e(d,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:c,target:"_blank"},{default:a(()=>[n("\u6587\u4EF6"+o(m+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(u(),s("div",Y," \u6682\u65E0\u9644\u4EF6 "))]),_:1}),e(t,{label:"\u6D3D\u5546\u4F9D\u636E","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[l.negotiation_basis.length>0?(u(),s("div",Z,[(u(!0),s(D,null,F(l.negotiation_basis,(c,m)=>(u(),s("div",ll,[e(d,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:c,target:"_blank"},{default:a(()=>[n("\u6587\u4EF6"+o(m+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(u(),s("div",el," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1})]),_:1}),!(l!=null&&l.approve_id)||l.approve_check_status==4?(u(),E(P,{key:0,flows:p.value,submitApi:H(z),id:l==null?void 0:l.id,onOff:_},null,8,["flows","submitApi","id"])):(u(),E(j,{key:1,approve_id:l==null?void 0:l.approve_id,onOff:_},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const Wl=J(tl,[["__scopeId","data-v-92bf9413"]]);export{Wl as default};