2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
|
import{k as ve,C as ue,D as oe,w as ae,F as te,M as re,b as de,N as ne,O as pe,G as Fe,H as ye,J as Ve,K as De,L as we,I as Be}from"./element-plus.91c68cc0.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{d as R,Z as ie,r as v,k as Ee,o as C,c as U,U as e,L as o,u as a,aa as Z,R as _,M as me,a as F,j as L,i as ge,T as O,a9 as Q,K as A,S as le,Q as he}from"./@vue.76ce7aa3.js";import{u as _e}from"./usePaging.f8c888e4.js";import{c as fe,a as ke,f as Ue}from"./purchase_product_offer.5f37c976.js";import{a as xe}from"./supplier.cf045f4f.js";import{e as Pe}from"./delivery_service.d5a64d26.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.0ac48e23.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 Se={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},Le=R({name:"systemStoreLists"}),$e=R({...Le,props:["order_id"],emits:["onBindStore"],setup(z,{emit:D}){const y=z,i=ie({buyer_confirm:0,order_id:""}),t=v([]),V=b=>{t.value=b.map(({id:n})=>n)},$=()=>{x()},{pager:w,getLists:x,resetParams:M,resetPage:B}=_e({fetchFun:fe,params:i});x();const P=D,q=()=>{const b=w.lists.filter(n=>t.value.includes(n.id));if(!b.length)return ve.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");P("onBindStore",b)};return Ee(()=>{i.order_id!=y.order_id&&(i.order_id=y.order_id,setTimeout(()=>{B()},1e3))}),(b,n)=>{const j=ue,I=oe,g=ae,K=te,f=re,E=de,h=ne,G=se,k=pe;return C(),U("div",null,[e(K,{class:"mb-[-16px]",model:a(i),inline:""},{default:o(()=>[e(I,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:o(()=>[e(j,{class:"w-[200px]",modelValue:a(i).store_name,"onUpdate:modelValue":n[0]||(n[0]=r=>a(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:a(B)},{default:o(()=>n[3]||(n[3]=[_("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(g,{onClick:a(M)},{default:o(()=>n[4]||(n[4]=[_("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),me((C(),U("div",Se,[e(h,{data:a(w).lists,onSelectionChange:V,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,a(w).loading]]),F("div",Ae,[e(G,{modelValue:a(w),"onUpdate:modelValue":n[2]||(n[2]=r=>L(w)?w.value=r:null),onChange:a(x)},nul
|