moreShopAdmin/build/admin/assets/index.78649138.js

2 lines
5.6 KiB
JavaScript

import{U as $,C as j,D as q,J as I,K,w as R,F as J,L as Z,M as G,N as H,O as Q}from"./element-plus.a63a26dd.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.abe16b77.js";import{u as ee}from"./usePaging.6a6670f9.js";import{u as oe}from"./useDictOptions.b3919f45.js";import"./lodash.2473fc51.js";import{f as te}from"./index.a72cb810.js";import{h as E}from"./moment.40bc58bf.js";import{h as w,i as ae}from"./beforehand_order.8fad909f.js";import{d as D,r as f,Z as le,i as re,af as ue,ap as ne,o as h,c as ie,U as e,L as o,u as t,j as B,R as p,M as F,K as C,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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.0239bc41.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.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const se={class:"mt-4"},pe={class:"flex mt-4 justify-end"},me=D({name:"warehouseOrderLists"}),Xe=D({...me,setup(de){f(!1),f(!1);const l=le({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_type:""}),k=f([]),y=d=>{k.value=d.map(({id:r})=>r)};oe("");const{pager:i,getLists:m,resetParams:A,resetPage:V}=ee({fetchFun:w,params:l}),x=async d=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:d}),m()},n=f([]),Y=()=>{n.value[0]&&n.value[1]?(l.start_time=E(n.value[0]).format("YYYY-MM-DD")+" 00:00:00",l.end_time=E(n.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(l.start_time="",l.end_time=""),m()};return re(()=>{m()}),(d,r)=>{const M=j,_=q,L=$,s=I,U=K,c=R,O=X,P=J,v=Z,b=ue("router-link"),a=G,T=H,N=W,S=ne("perms"),z=Q;return h(),ie("div",null,[e(v,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:t(l),inline:""},{default:o(()=>[e(_,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:o(()=>[e(M,{class:"w-[280px]",modelValue:t(l).order_id,"onUpdate:modelValue":r[0]||(r[0]=u=>t(l).order_id=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u65E5\u671F",prop:"create_time"},{default:o(()=>[e(L,{modelValue:t(n),"onUpdate:modelValue":r[1]||(r[1]=u=>B(n)?n.value=u:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:Y},null,8,["modelValue"])]),_:1}),e(_,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:o(()=>[e(U,{modelValue:t(l).order_type,"onUpdate:modelValue":r[2]||(r[2]=u=>t(l).order_type=u),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:o(()=>[e(s,{value:1,label:"\u94FA\u8D27\u8BA2\u5355"}),e(s,{value:2,label:"\u644A\u8D29\u8BA2\u5355"}),e(s,{value:3,label:"\u4E00\u6761\u9F99\u8BA2\u5355"}),e(s,{value:4,label:"\u7EBF\u4E0A\u8BA2\u5355"}),e(s,{value:5,label:"\u4ED3\u5E93\u8865\u8D27"})]),_:1},8,["modelValue"])]),_:1}),e(_,null,{default:o(()=>[e(c,{type:"primary",onClick:t(V)},{default:o(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:t(A)},{default:o(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(O,{class:"ml-2.5","fetch-fun":t(w),params:t(l),"page-size":t(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),F((h(),C(v,{class:"!border-none",shadow:"never"},{default:o(()=>[e(b,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:o(()=>[e(c,{type:"primary"},{default:o(()=>[p(" \u6DFB\u52A0 ")]),_:1})]),_:1}),g("div",se,[e(T,{data:t(i).lists,onSelectionChange:y},{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:u})=>[e(b,{to:{path:"beforehand_order_details",query:{id:u.id}},class:"ml-4"},{default:o(()=>[p(" \u8BE6\u60C5 ")]),_:2},1032,["to"]),F((h(),C(c,{type:"danger",link:"",onClick:_e=>x(u.id)},{default:o(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[S,["beforehand_order.beforehand_order/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",pe,[e(N,{modelValue:t(i),"onUpdate:modelValue":r[3]||(r[3]=u=>B(i)?i.value=u:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[z,t(i).loading]])])}}});export{Xe as default};