moreShopAdmin/build/admin/assets/index.ef144044.js

2 lines
17 KiB
JavaScript
Raw Normal View History

2024-11-14 15:18:16 +08:00
import{k as ce,C as le,D as ue,w as oe,F as te,M as ae,b as re,N as de,O as ne,G as ve,H as Fe,J as ye,K as Ve,L as De,I as we}from"./element-plus.91c68cc0.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{d as R,Z as se,r as v,k as Be,o as C,c as U,U as e,L as o,u as t,aa as Z,R as _,M as ie,a as V,j as L,i as Ee,T as O,a9 as Q,K as S,Q as ge}from"./@vue.76ce7aa3.js";import{u as me}from"./usePaging.f8c888e4.js";import{c as _e,a as he,f as ke}from"./purchase_product_offer.9f0604d3.js";import{a as Ue}from"./supplier.073d04a4.js";import{e as xe}from"./delivery_service.f7f49762.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.8ef6d2b1.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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"./nprogress.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";const Pe={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},Se=R({name:"systemStoreLists"}),Le=R({...Se,props:["order_id"],emits:["onBindStore"],setup(z,{emit:D}){const F=z,i=se({buyer_confirm:0,order_id:""}),a=v([]),y=b=>{a.value=b.map(({id:n})=>n)},$=()=>{x()},{pager:w,getLists:x,resetParams:M,resetPage:B}=me({fetchFun:_e,params:i});x();const P=D,q=()=>{const b=w.lists.filter(n=>a.value.includes(n.id));if(!b.length)return ce.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");P("onBindStore",b)};return Be(()=>{i.order_id!=F.order_id&&(i.order_id=F.order_id,setTimeout(()=>{B()},1e3))}),(b,n)=>{const j=le,I=ue,g=oe,K=te,f=ae,E=re,h=de,G=pe,k=ne;return C(),U("div",null,[e(K,{class:"mb-[-16px]",model:t(i),inline:""},{default:o(()=>[e(I,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:o(()=>[e(j,{class:"w-[200px]",modelValue:t(i).store_name,"onUpdate:modelValue":n[0]||(n[0]=r=>t(i).store_name=r),onKeydown:n[1]||(n[1]=Z(r=>$(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(I,null,{default:o(()=>[e(g,{type:"primary",onClick:t(B)},{default:o(()=>n[3]||(n[3]=[_("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(g,{onClick:t(M)},{default:o(()=>n[4]||(n[4]=[_("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),ie((C(),U("div",Pe,[e(h,{data:t(w).lists,onSelectionChange:y,height:300},{default:o(()=>[e(f,{type:"selection",width:"55"}),e(f,{label:"id",prop:"id","show-overflow-tooltip":""}),e(f,{label:"\u8BA2\u5355id",prop:"order_id","show-overflow-tooltip":""}),e(f,{label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""}),e(f,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:o(({row:r})=>[e(E,{style:{width:"50px",height:"50px"},src:r.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(f,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(f,{label:"\u5206\u7C7B",prop:"cate_name","show-overflow-tooltip":""}),e(f,{label:"\u5355\u4F4D",prop:"unit_name","show-overflow-tooltip":""}),e(f,{label:"\u9700\u6C42\u6570\u91CF",prop:"need_num","show-overflow-tooltip":""}),e(f,{label:"\u91C7\u8D2D\u4EF7",prop:"price","show-overflow-tooltip":""}),e(f,{label:"\u91C7\u8D2D\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[k,t(w).loading]]),V("div",Ae,[e(G,{modelValue:t(w),"onUpdate:modelValue":n[2]||(n[2]=r=>L(w)?w.value=r:null),onChange:t(x)},null,8,["mo