import{Y as L,Z as N,x as R,y as M,a2 as G,k as P,w as Z,C as K,T as Y,b as z}from"./element-plus.bccb9376.js";import{u as H}from"./vue-router.101084e3.js";import{a as J,b as Q}from"./quote.62439ef9.js";import{d as D,r as p,Z as W,o as n,c as m,U as s,L as a,u as g,j as X,a as t,R as u,M as w,T as k,a9 as U,K as _,S as l,bl as $,bk as ee}from"./@vue.18505fe0.js";import{d as te}from"./index.68fb39c6.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.466e9fe4.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const v=f=>($("data-v-19bb6e31"),f=f(),ee(),f),oe={class:"flex mb-4"},se={class:"quote-list","infinite-scroll-distance":1e3,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},le={class:"flex justify-between"},ae={style:{color:"#f56c6c"}},ne={class:"flex justify-between mt-4"},ue={class:"flex",style:{"align-items":"center"}},ie=v(()=>t("span",{class:"mr-2"},"\u63D0\u4F9B\u6570\u91CF: ",-1)),re={class:"flex",style:{"align-items":"center"}},ce=v(()=>t("span",{class:"mr-2"},"\u4EA7\u54C1\u62A5\u4EF7: ",-1)),de={class:"flex justify-end mt-4"},pe={class:"mx-1",style:{color:"#f56c6c"}},me={class:"quote-list not-btn","infinite-scroll-distance":1e3,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},_e={class:"flex justify-between"},fe={style:{color:"#f56c6c"}},he={class:"flex justify-between mt-4"},ye={class:"flex",style:{"align-items":"center",position:"relative"}},ve=v(()=>t("span",{class:"mr-2"},"\u63D0\u4F9B\u6570\u91CF: ",-1)),Fe={style:{position:"absolute",right:"0",top:"0",bottom:"0",width:"100px"}},be={class:"flex",style:{"align-items":"center"}},xe=v(()=>t("span",{class:"mr-2"},"\u4EA7\u54C1\u62A5\u4EF7: ",-1)),Ee={class:"flex justify-end mt-4"},ge={class:"mx-1",style:{color:"#f56c6c"}},Ve=D({name:"quoteOffer"}),Ce=D({...Ve,setup(f){const j=H();p({});const F=p("tobe");p(new Map([["detail",!0],["yet",!1]]));const q=i=>{i=="yet"?(h.value=[],c(2)):(d.value=[],c(1))},d=p([]),h=p([]),I=W({date:j.query.date}),c=(i=1)=>{J({type:i,...I}).then(o=>{i==1?d.value=[...d.value,...o.lists]:h.value=[...h.value,...o.lists]})};c();const O=()=>{let i=d.value.filter(o=>+o.price&&+o.nums).map(o=>({id:o.id,nums:o.nums,price:o.price}));if(!i.length)return P.error("\u8BF7\u5148\u586B\u5199\u4EA7\u54C1\u62A5\u4EF7");Q({data:i}).then(o=>{c()})};return(i,o)=>{const S=Z,y=K,b=Y,V=L,C=N,B=R,x=z,T=M,A=G;return n(),m("div",null,[s(b,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[s(T,{modelValue:g(F),"onUpdate:modelValue":o[0]||(o[0]=e=>X(F)?F.value=e:null),class:"demo-tabs",onTabChange:q},{default:a(()=>[s(B,{label:"\u5F85\u62A5\u4EF7",name:"tobe"},{default:a(()=>[t("div",oe,[s(S,{type:"primary",onClick:O},{default:a(()=>[u("\u63D0\u4EA4\u62A5\u4EF7")]),_:1})]),w((n(),m("div",se,[s(C,{gutter:20,style:{width:"100%"}},{default:a(()=>[(n(!0),m(k,null,U(g(d),(e,E)=>(n(),_(V,{span:8,key:E},{default:a(()=>[s(b,null,{default:a(()=>[t("div",le,[t("div",null,"\u540D\u79F0: "+l(e.goods_name),1),t("div",null,[u(" \u9700\u6C42\u91CF: "),t("span",ae,l(e.need_num),1),u(" "+l(e.unit_name),1)])]),t("div",ne,[t("div",ue,[ie,s(y,{modelValue:e.nums,"onUpdate:modelValue":r=>e.nums=r,placeholder:"\u8BF7\u8F93\u5165\u53EF\u63D0\u4F9B\u6570\u91CF",style:{flex:"1"}},null,8,["modelValue","onUpdate:modelValue"])]),t("div",re,[ce,s(y,{modelValue:e.price,"onUpdate:modelValue":r=>e.price=r,placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u62A5\u4EF7",style:{flex:"1"}},null,8,["modelValue","onUpdate:modelValue"])])]),t("div",de,[t("div",null,[u(" \u5171 "+l(e.nums)+" "+l(e.unit_name)+" \u5408\u8BA1 ",1),t("span",pe,l((e.nums*e.price).toFixed(2)),1),u(" \u5143 ")])])]),_:2},1024)]),_:2},1024))),128))]),_:1})])),[[A,c(1)]])]),_:1}),s(B,{label:"\u62A5\u4EF7\u8BB0\u5F55",name:"yet"},{default:a(()=>[w((n(),m("div",me,[s(C,{gutter:20,style:{width:"100%"}},{default:a(()=>[(n(!0),m(k,null,U(g(h),(e,E)=>(n(),_(V,{span:8,key:E},{default:a(()=>[s(b,null,{default:a(()=>[t("div",_e,[t("div",null,"\u540D\u79F0: "+l(e.goods_name),1),t("div",null,[u(" \u9700\u6C42\u91CF: "),t("span",fe,l(e.need_num),1),u(" "+l(e.unit_name),1)])]),t("div",he,[t("div",ye,[ve,s(y,{modelValue:e.nums,"onUpdate:modelValue":r=>e.nums=r,placeholder:"\u8BF7\u8F93\u5165\u53EF\u63D0\u4F9B\u6570\u91CF",style:{flex:"1"},readonly:""},null,8,["modelValue","onUpdate:modelValue"]),t("div",Fe,[e.is_adopt==1?(n(),_(x,{key:0,src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/274ad202405111523222891.png"})):e.is_adopt==2?(n(),_(x,{key:1,src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/739c3202405071458553459.png"})):(n(),_(x,{key:2,src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/04c2c202405071501462462.png"}))])]),t("div",be,[xe,s(y,{modelValue:e.price,"onUpdate:modelValue":r=>e.price=r,placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u62A5\u4EF7",style:{flex:"1"},readonly:""},null,8,["modelValue","onUpdate:modelValue"])])]),t("div",Ee,[t("div",null,[u(" \u5171 "+l(e.nums)+" "+l(e.unit_name)+" \u5408\u8BA1 ",1),t("span",ge,l((e.nums*e.price).toFixed(2)),1),u(" \u5143 ")])])]),_:2},1024)]),_:2},1024))),128))]),_:1})])),[[A,c(1)]])]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});const Vt=te(Ce,[["__scopeId","data-v-19bb6e31"]]);export{Vt as default};