moreShopAdmin/build/admin/assets/index.48e64b5b.js

2 lines
5.0 KiB
JavaScript

import{U as z,C as S,D as $,w as j,F as q,L as I,M as R,N as K,O as Z}from"./element-plus.4a7d92a3.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.baee2158.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as Q}from"./useDictOptions.a54ffff6.js";import"./lodash.9dc701ad.js";import{f as W}from"./index.d6bf0bc9.js";import{h as v}from"./moment.40bc58bf.js";import{h as b,i as X}from"./beforehand_order.4c0f8dbc.js";import{d as B,r as _,Z as ee,i as oe,af as te,ap as ae,o as f,c as le,U as e,L as o,u as t,j as C,R as u,M as E,K as F,a as g}from"./@vue.18505fe0.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.4e9cb769.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.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 re={class:"mt-4"},ne={class:"flex mt-4 justify-end"},ie=B({name:"warehouseOrderLists"}),He=B({...ie,setup(se){_(!1),_(!1);const l=ee({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:""}),k=_([]),D=m=>{k.value=m.map(({id:r})=>r)};Q("");const{pager:s,getLists:p,resetParams:y,resetPage:V}=J({fetchFun:b,params:l}),x=async m=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:m}),p()},i=_([]),A=()=>{i.value[0]&&i.value[1]?(l.start_time=v(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",l.end_time=v(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(l.start_time="",l.end_time=""),p()};return oe(()=>{p()}),(m,r)=>{const Y=S,c=$,M=z,d=j,L=H,P=q,h=I,w=te("router-link"),a=R,T=K,U=G,N=ae("perms"),O=Z;return f(),le("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:t(l),inline:""},{default:o(()=>[e(c,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:o(()=>[e(Y,{class:"w-[280px]",modelValue:t(l).order_id,"onUpdate:modelValue":r[0]||(r[0]=n=>t(l).order_id=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u65E5\u671F",prop:"create_time"},{default:o(()=>[e(M,{modelValue:t(i),"onUpdate:modelValue":r[1]||(r[1]=n=>C(i)?i.value=n:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:A},null,8,["modelValue"])]),_:1}),e(c,null,{default:o(()=>[e(d,{type:"primary",onClick:t(V)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:t(y)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(L,{class:"ml-2.5","fetch-fun":t(b),params:t(l),"page-size":t(s).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),E((f(),F(h,{class:"!border-none",shadow:"never"},{default:o(()=>[e(w,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:o(()=>[e(d,{type:"primary"},{default:o(()=>[u(" \u6DFB\u52A0 ")]),_:1})]),_:1}),g("div",re,[e(T,{data:t(s).lists,onSelectionChange:D},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(a,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(a,{label:"\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(a,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),e(a,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(a,{label:"\u5165\u5E93",prop:"warehousing","show-overflow-tooltip":""}),e(a,{label:"\u51FA\u5E93",prop:"outbound","show-overflow-tooltip":""}),e(a,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(a,{label:"\u901A\u77E5",prop:"msg","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:n})=>[e(w,{to:{path:"beforehand_order_details",query:{id:n.id}},class:"ml-4"},{default:o(()=>[u(" \u8BE6\u60C5 ")]),_:2},1032,["to"]),E((f(),F(d,{type:"danger",link:"",onClick:ue=>x(n.id)},{default:o(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[N,["beforehand_order.beforehand_order/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",ne,[e(U,{modelValue:t(s),"onUpdate:modelValue":r[2]||(r[2]=n=>C(s)?s.value=n:null),onChange:t(p)},null,8,["modelValue","onChange"])])]),_:1})),[[O,t(s).loading]])])}}});export{He as default};