import{y as x,A as w,B as R,C as A,D as O}from"./element-plus.517d4382.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{P}from"./index.b17dae19.js";import{a as V}from"./custom.99349afc.js";import{d as f,s as m,a0 as d,o as j,c as I,V as t,M as o,T as l,U as n}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as N}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"./vue-router.87ebc608.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 S={class:"detail-popup"},T=l(),q=f({name:"customdetail"}),M=f({...q,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(p,{expose:D,emit:F}){const b=m(),i=m();d({provinceOptions:[],cityOptions:[],areaOptions:[]});const e=d({}),_=async s=>{Object.assign(e,s)},C=async s=>{const r=await V({id:s.id});_(r)},y=async()=>{var s;(s=i.value)==null||s.close()},E=()=>{var s;console.log("1111111"),(s=i.value)==null||s.open()},v=()=>{F("close")};return D({open:E,setFormData:_,getDetail:C}),(s,r)=>{const a=x,u=w,c=k,g=R,B=A,h=O;return j(),I("div",S,[t(P,{ref_key:"popupRef",ref:i,title:"\u9879\u76EE\u5408\u540C\u8BE6\u60C5",async:!0,width:"80%",onConfirm:y,onClose:v},{default:o(()=>[t(h,{ref_key:"formRef",ref:b,model:e,"label-width":"120px"},{default:o(()=>[t(B,{class:"mb-2"},{default:o(()=>[t(g,null,{default:o(()=>[t(u,{span:12},{default:o(()=>[t(a,{label:"\u5408\u540C\u540D\u79F0"},{default:o(()=>[l(n(e.contract_name),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u5408\u540C\u7F16\u53F7"},{default:o(()=>[l(n(e.contract_code),1)]),_:1})]),_:1}),T,t(u,{span:12},{default:o(()=>[t(a,{label:"\u5408\u540C\u7C7B\u578B"},{default:o(()=>[t(c,{options:p.dictData.contract_type,value:e.contract_type},null,8,["options","value"])]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u6D3D\u5546\u7C7B\u522B"},{default:o(()=>[t(c,{options:p.dictData.negotiation_type,value:e.negotiation_type},null,8,["options","value"])]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u6D3D\u5546\u91D1\u989D"},{default:o(()=>[l(n(e.negotiation_amount),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u6D3D\u5546\u7F16\u53F7"},{default:o(()=>[l(n(e.negotiation_no),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u6210\u672C\u91D1\u989D\uFF08\u4EBA\u5DE5\uFF09"},{default:o(()=>[l(n(e.labor_costs),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u6210\u672C\u91D1\u989D\uFF08\u6750\u6599"},{default:o(()=>[l(n(e.material_costs),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u6D3D\u5546\u8D28\u4FDD\u5230\u671F\u65F6\u95F4"},{default:o(()=>[l(n(e.Warranty_expire_date),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u5229\u6DA6\u7387"},{default:o(()=>[l(n(e.profit_rate),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u5229\u6DA6"},{default:o(()=>[l(n(e.profit),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u5177\u4F53\u8BF4\u660E"},{default:o(()=>[l(n(e.negotiation_content),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u7B7E\u8BC1\u62A5\u4EF7\u8868"},{default:o(()=>[l(n(e.negotiation_quotation),1)]),_:1})]),_:1}),t(u,{span:12},{default:o(()=>[t(a,{label:"\u6D3D\u5546\u4F9D\u636E"},{default:o(()=>[l(n(e.negotiation_basis),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const gt=N(M,[["__scopeId","data-v-4211fe07"]]);export{gt as default};