moreShopAdmin/dist/admin/assets/index.392781a3.js

2 lines
16 KiB
JavaScript
Raw Normal View History

2024-11-11 11:30:56 +08:00
import{k as ve,C as ee,D as le,w as oe,F as ue,M as te,b as ae,N as re,O as ne,G as Ce,H as ye,J as he,K as De,L as Fe,I as we}from"./element-plus.7e347b00.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{d as R,Z as de,r as y,o as v,c as x,U as e,L as o,u as t,aa as Z,R as d,M as se,a as D,j as $,i as Ve,T as O,a9 as Q,K as L,Q as Be}from"./@vue.18505fe0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{c as me,a as Ee,f as ge}from"./purchase_product_offer.bfe3da96.js";import{a as ke}from"./supplier.0a2c5a7c.js";import{e as xe}from"./delivery_service.2800a75a.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.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.fd76ab8a.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.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.b0c09b66.js";const Ue={class:"mt-4"},Pe={class:"flex mt-4 justify-end"},Se=R({name:"systemStoreLists"}),Ae=R({...Se,emits:["onBindStore"],setup(_e,{emit:F}){const f=de({buyer_confirm:0}),_=y([]),a=w=>{_.value=w.map(({id:s})=>s)},g=()=>{U()},{pager:h,getLists:U,resetParams:T,resetPage:M}=ie({fetchFun:me,params:f});U();const B=F,P=()=>{const w=h.lists.filter(s=>_.value.includes(s.id));if(!w.length)return ve.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");B("onBindStore",w)};return(w,s)=>{const V=ee,I=le,S=oe,q=ue,p=te,j=ae,E=re,k=pe,G=ne;return v(),x("div",null,[e(q,{class:"mb-[-16px]",model:t(f),inline:""},{default:o(()=>[e(I,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:o(()=>[e(V,{class:"w-[200px]",modelValue:t(f).store_name,"onUpdate:modelValue":s[0]||(s[0]=c=>t(f).store_name=c),onKeydown:s[1]||(s[1]=Z(c=>g(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(I,null,{default:o(()=>[e(S,{type:"primary",onClick:t(M)},{default:o(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(S,{onClick:t(T)},{default:o(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),se((v(),x("div",Ue,[e(E,{data:t(h).lists,onSelectionChange:a,height:300},{default:o(()=>[e(p,{type:"selection",width:"55"}),e(p,{label:"id",prop:"id","show-overflow-tooltip":""}),e(p,{label:"\u8BA2\u5355id",prop:"order_id","show-overflow-tooltip":""}),e(p,{label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""}),e(p,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:o(({row:c})=>[e(j,{style:{width:"50px",height:"50px"},src:c.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(p,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(p,{label:"\u5206\u7C7B",prop:"cate_name","show-overflow-tooltip":""}),e(p,{label:"\u5355\u4F4D",prop:"unit_name","show-overflow-tooltip":""}),e(p,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(p,{label:"\u9700\u6C42\u6570\u91CF",prop:"need_num","show-overflow-tooltip":""}),e(p,{label:"\u91C7\u8D2D\u6570\u91CF",prop:"buyer_nums","show-overflow-tooltip":""}),e(p,{label:"\u91C7\u8D2D\u4EF7",prop:"price","show-overflow-tooltip":""}),e(p,{label:"\u91C7\u8D2D\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""}),e(p,{label:"\u91C7\u8D2D\u4EBA\u5458",prop:"buyer_name","show-overflow-tooltip":""}),e(p,{label:"\u91C7\u8D2D\u72B6\u6001",prop:"buyer_confirm_na