moreShopAdmin/build/admin/assets/index.96d3acfd.js

2 lines
14 KiB
JavaScript
Raw Normal View History

2024-10-15 16:13:50 +08:00
import{k as ce,C as X,D as Y,w as ee,F as le,M as oe,b as ue,N as te,O as ae,G as be,H as Ce,J as ve,K as he,L as we,I as De}from"./element-plus.4a7d92a3.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{d as K,Z as ne,r as v,o as y,c as L,U as e,L as o,u as t,aa as H,R as d,M as pe,a as F,j as P,i as Fe,K as q,T as G,a9 as W}from"./@vue.18505fe0.js";import{u as de}from"./usePaging.6a6670f9.js";import{b as ie,a as ye,e as Be}from"./purchase_product_offer.91c72c60.js";import{a as Ee}from"./supplier.5f727905.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.2a097206.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 Ve={class:"mt-4"},ge={class:"flex mt-4 justify-end"},ke=K({name:"systemStoreLists"}),xe=K({...ke,emits:["onBindStore"],setup(se,{emit:h}){const s=ne({buyer_confirm:0}),m=v([]),n=w=>{m.value=w.map(({id:i})=>i)},E=()=>{g()},{pager:C,getLists:g,resetParams:O,resetPage:R}=de({fetchFun:ie,params:s});g();const B=h,k=()=>{const w=C.lists.filter(i=>m.value.includes(i.id));if(!w.length)return ce.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");B("onBindStore",w)};return(w,i)=>{const D=X,S=Y,x=ee,$=le,p=oe,V=ue,T=te,U=re,r=ae;return y(),L("div",null,[e($,{class:"mb-[-16px]",model:t(s),inline:""},{default:o(()=>[e(S,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:o(()=>[e(D,{class:"w-[200px]",modelValue:t(s).store_name,"onUpdate:modelValue":i[0]||(i[0]=u=>t(s).store_name=u),onKeydown:i[1]||(i[1]=H(u=>E(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(S,null,{default:o(()=>[e(x,{type:"primary",onClick:t(R)},{default:o(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(x,{onClick:t(O)},{default:o(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),pe((y(),L("div",Ve,[e(T,{data:t(C).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:u})=>[e(V,{style:{width:"50px",height:"50px"},src:u.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"])])),[[r,t(C).loading]]),F("div",ge,[e(U,{modelValue:t(C),"onUpdate:modelValue":i[2]||(i[2]=u=>P(C)?