moreShopAdmin/build/admin/assets/index.20f84782.js

2 lines
14 KiB
JavaScript
Raw Normal View History

2024-10-29 11:57:20 +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 he,J as we,K as De,L as ye,I as Fe}from"./element-plus.4a7d92a3.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{d as M,Z as ie,r as C,o as h,c as x,U as e,L as o,u as t,aa as z,R as i,M as de,a as D,j as L,i as Ee,T as R,a9 as Z,K as T}from"./@vue.18505fe0.js";import{u as se}from"./usePaging.6a6670f9.js";import{c as me,a as Be,f as Ve}from"./purchase_product_offer.db78b4de.js";import{a as ge}from"./supplier.81ac12e8.js";import{e as ke}from"./delivery_service.e53104f5.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.3ee06ac6.js";import"./lodash.9dc701ad.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const xe={class:"mt-4"},Ue={class:"flex mt-4 justify-end"},Pe=M({name:"systemStoreLists"}),Se=M({...Pe,emits:["onBindStore"],setup(_e,{emit:y}){const _=ie({buyer_confirm:0}),s=C([]),n=F=>{s.value=F.map(({id:d})=>d)},g=()=>{U()},{pager:w,getLists:U,resetParams:N,resetPage:j}=se({fetchFun:me,params:_});U();const B=y,P=()=>{const F=w.lists.filter(d=>s.value.includes(d.id));if(!F.length)return ve.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");B("onBindStore",F)};return(F,d)=>{const E=ee,$=le,S=oe,I=ue,p=te,q=ae,V=re,k=pe,G=ne;return h(),x("div",null,[e(I,{class:"mb-[-16px]",model:t(_),inline:""},{default:o(()=>[e($,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:o(()=>[e(E,{class:"w-[200px]",modelValue:t(_).store_name,"onUpdate:modelValue":d[0]||(d[0]=f=>t(_).store_name=f),onKeydown:d[1]||(d[1]=z(f=>g(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e($,null,{default:o(()=>[e(S,{type:"primary",onClick:t(j)},{default:o(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(S,{onClick:t(N)},{default:o(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),de((h(),x("div",xe,[e(V,{data:t(w).lists,onSelectionChange:n,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:f})=>[e(q,{style:{width:"50px",height:"50px"},src:f.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_name","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[G,t(w).loading]]),D("div",Ue,[e(k,{mo