ERP-admin/build/admin/assets/quoteOffer.37ed4a05.js

2 lines
6.5 KiB
JavaScript
Raw Normal View History

2024-05-25 17:25:14 +08:00
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("