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