2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{Y as N,a2 as R,Z as T,a3 as G,w as M,C as $,b as O}from"./element-plus.681b9893.js";import{o as Z}from"./quote.35fd51ff.js";import{t as w,d as q}from"./index.0c8416f0.js";import{_ as K}from"./deliverGoods.vue_vue_type_script_setup_true_lang.88e53f95.js";import{d as V,r as v,Z as Q,o as i,c as x,M as Y,a as t,U as r,L as f,R as c,S as n,u,T as E,a9 as H,K as m,O as J,Q as k,bl as P,bk as W}from"./@vue.18505fe0.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"./vue-router.101084e3.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";import"./express.247f1571.js";const B=d=>(P("data-v-98ea49c4"),d=d(),W(),d),X={class:"quote-list not-btn","infinite-scroll-distance":1e3,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},ee={class:"flex mb-4"},te=["onClick"],oe={class:"flex justify-between"},se={style:{color:"#f56c6c"}},ae={class:"flex justify-between mt-4"},ie={class:"flex",style:{"align-items":"center",position:"relative"}},le=B(()=>t("span",{class:"mr-2"},"\u63D0\u4F9B\u6570\u91CF: ",-1)),ne={style:{position:"absolute",right:"0",top:"0",bottom:"0",width:"100px"}},pe={class:"flex",style:{"align-items":"center"}},re=B(()=>t("span",{class:"mr-2"},"\u4EA7\u54C1\u62A5\u4EF7: ",-1)),de={class:"flex justify-end mt-4"},ce={class:"mx-1",style:{color:"#f56c6c"}},ue=V({name:"adopt0"}),me=V({...ue,props:{date:{type:String,default:""}},setup(d,{expose:D}){const y=d,p=v([]),o=Q({page_no:1,page_size:30,loading:!1,loadend:!1}),h=(s=!1)=>{s&&(p.value=[],o.page_no=1,o.loadend=!1,o.loading=!1),!(o.loading||o.loadend)&&(o.loading=!0,Z({start_time:w(new Date(y.date),"yyyy-mm-dd"),end_time:w(new Date(y.date),"yyyy-mm-dd")+" 23:59:59",is_adopt:2,page_no:o.page_no,page_size:o.page_size}).then(a=>{p.value=[...p.value,...a.lists],a.lists.length<o.page_size&&(o.loadend=!0),o.page_no++,o.loading=!1}))},l=v(new Map),I=s=>{l.value.get(s.id)?l.value.delete(s.id):l.value.set(s.id,1)};D({getLists:h});const S=()=>{var a;let s={id:[],date:""};l.value.size?s.id=[...l.value.keys()]:s.date=y.date,(a=b.value)==null||a.open(s)},b=v(null);return(s,a)=>{const z=M,C=$,g=O,F=N,A=R,U=T,j=G;return i(),x(E,null,[Y((i(),x("div",X,[t("div",ee,[r(z,{type:"primary",onClick:S,disabled:u(p).length==0},{default:f(()=>[c("\u7ACB\u5373\u53D1\u8D27 ( "+n(u(l).size||"\u5168\u90E8")+" )",1)]),_:1},8,["disabled"])]),r(U,{gutter:20,style:{width:"100%"}},{default:f(()=>[(i(!0),x(E,null,H(u(p),(e,L)=>(i(),m(F,{span:8,key:L},{default:f(()=>[t("div",{class:J(["card p-4 mb-4",{"c-card":u(l).has(e.id)}]),onClick:_=>I(e)},[t("div",oe,[t("div",null,"\u540D\u79F0: "+n(e.goods_name),1),t("div",null,[c(" \u9700\u6C42\u91CF: "),t("span",se,n(e.need_num),1),c(" "+n(e.unit_name),1)])]),t("div",ae,[t("div",ie,[le,r(C,{modelValue:e.nums,"onUpdate:modelValue":_=>e.nums=_,placeholder:"\u8BF7\u8F93\u5165\u53EF\u63D0\u4F9B\u6570\u91CF",style:{flex:"1"},readonly:""},null,8,["modelValue","onUpdate:modelValue"]),t("div",ne,[e.is_adopt==1?(i(),m(g,{key:0,src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/274ad202405111523222891.png"})):e.is_adopt==2&&!e.delivery_name?(i(),m(g,{key:1,src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/dbe43202405281449446456.png"})):e.is_adopt==2&&e.delivery_name?(i(),m(g,{key:2,src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/fde75202405281450531427.png"})):k("",!0)])]),t("div",pe,[re,r(C,{modelValue:e.price,"onUpdate:modelValue":_=>e.price=_,placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u62A5\u4EF7",style:{flex:"1"},readonly:""},null,8,["modelValue","onUpdate:modelValue"])])]),t("div",de,[t("div",null,[c(" \u5171 "+n(e.nums)+" "+n(e.unit_name)+" \u5408\u8BA1 ",1),t("span",ce,n((e.nums*e.price).toFixed(2)),1),c(" \u5143 ")])])],10,te)]),_:2},1024))),128)),r(F,{span:24},{default:f(()=>[u(p).length==0?(i(),m(A,{key:0})):k("",!0)]),_:1})]),_:1})])),[[j,h]]),r(K,{ref_key:"deliverGoodsRef",ref:b,onSubmit:a[0]||(a[0]=e=>h(!0))},null,512)],64)}}});const _t=q(me,[["__scopeId","data-v-98ea49c4"]]);export{_t as default};
|