2 lines
7.1 KiB
JavaScript
2 lines
7.1 KiB
JavaScript
import{U as J,C as Z,D as G,J as H,K as Q,w as W,F as X,L as ee,M as oe,N as te,O as le}from"./element-plus.7e347b00.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.b99f481e.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.14b113d2.js";import"./lodash.4e6d2a38.js";import{f as ne}from"./index.5aa7d0e8.js";import{h as k}from"./moment.40bc58bf.js";import{l as A,m as ie}from"./beforehand_order.96ebe9df.js";import{a as pe}from"./system_store.8f6870fa.js";import{_ as de}from"./drawer.vue_vue_type_script_setup_true_lang.27a659d1.js";import{d as U,r as n,Z as me,i as _e,af as ce,ap as fe,o as _,c as x,U as e,L as a,u as o,j as b,a as E,T as he,a9 as ve,K as F,R as c,M as L}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.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.a037a0fd.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.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.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.b0c09b66.js";const we={class:"flex items-center mr-4"},be={class:"mt-4"},Ee={class:"flex mt-4 justify-end"},Fe=U({name:"warehouseOrderLists"}),fo=U({...Fe,setup(Be){const w=n(!1),M=n(null);n([]);const r=me({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_sn:"",order_type:""}),T=n([]),Y=p=>{T.value=p.map(({id:l})=>l)};se("");const{pager:i,getLists:f,resetParams:S,resetPage:B}=ue({fetchFun:A,params:r}),O=async p=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:p}),f()},s=n([]),P=()=>{s.value[0]&&s.value[1]?(r.start_time=k(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=k(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),f()},h=n(!1),C=n([]),z=(p="")=>{h.value=!0,pe({name:p,page_size:50}).then(l=>{C.value=l.lists,setTimeout(()=>{h.value=!1},300)}).catch(l=>{setTimeout(()=>{h.value=!1},300)})};return _e(()=>{f()}),(p,l)=>{const g=Z,d=G,N=J,m=H,D=Q,v=W,R=re,$=X,V=ee,y=ce("router-link"),u=oe,j=te,q=ae,I=fe("perms"),K=le;return _(),x("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e($,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:a(()=>[e(g,{class:"w-[280px]",modelValue:o(r).order_id,"onUpdate:modelValue":l[0]||(l[0]=t=>o(r).order_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u65E5\u671F",prop:"create_time"},{default:a(()=>[e(N,{modelValue:o(s),"onUpdate:modelValue":l[1]||(l[1]=t=>b(s)?s.value=t:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:P},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:a(()=>[e(D,{modelValue:o(r).order_type,"onUpdate:modelValue":l[2]||(l[2]=t=>o(r).order_type=t),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:a(()=>[e(m,{value:1,label:"\u94FA\u8D27\u8BA2\u5355"}),e(m,{value:2,label:"\u644A\u8D29\u8BA2\u5355"}),e(m,{value:3,label:"\u4E00\u6761\u9F99\u8BA2\u5355"}),e(m,{value:4,label:"\u7EBF\u4E0A\u8BA2\u5355"}),e(m,{value:5,label:"\u4ED3\u5E93\u8865\u8D27"})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:a(()=>[E("div",we,[e(D,{modelValue:o(r).store_id,"onUpdate:modelValue":l[3]||(l[3]=t=>o(r).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":z,loading:o(h),style:{width:"240px"},onChange:o(B)},{default:a(()=>[(_(!0),x(he,null,ve(o(C),t=>(_(),F(m,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(d,{label:"\u652F\u4ED8\u8BA2\u5355\u53F7",prop:"order_sn"},{default:a(()=>[e(g,{class:"w-[280px]",modelValue:o(r).order_sn,"onUpdate:modelValue":l[4]||(l[4]=t=>o(r).order_sn=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(v,{type:"primary",onClick:o(B)},{default:a(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(v,{onClick:o(S)},{default:a(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":o(A),params:o(r),"page-size":o(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),L((_(),F(V,{class:"!border-none",shadow:"never"},{default:a(()=>[e(y,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:a(()=>[e(v,{type:"primary"},{default:a(()=>[c(" \u6DFB\u52A0 ")]),_:1})]),_:1}),E("div",be,[e(j,{data:o(i).lists,onSelectionChange:Y},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(u,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),e(u,{label:"\u95E8\u5E97",prop:"system_store","show-overflow-tooltip":""}),e(u,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(u,{label:"\u5165\u5E93",prop:"warehousing","show-overflow-tooltip":""}),e(u,{label:"\u51FA\u5E93",prop:"outbound","show-overflow-tooltip":""}),e(u,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(u,{label:"\u901A\u77E5",prop:"msg","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[e(y,{to:{path:"beforehand_order_details",query:{id:t.id}},class:"ml-4"},{default:a(()=>[c(" \u8BE6\u60C5 ")]),_:2},1032,["to"]),L((_(),F(v,{type:"danger",link:"",onClick:Ce=>O(t.id)},{default:a(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[I,["beforehand_order.beforehand_order/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",Ee,[e(q,{modelValue:o(i),"onUpdate:modelValue":l[5]||(l[5]=t=>b(i)?i.value=t:null),onChange:o(f)},null,8,["modelValue","onChange"])])]),_:1})),[[K,o(i).loading]]),e(de,{modelValue:o(w),"onUpdate:modelValue":l[6]||(l[6]=t=>b(w)?w.value=t:null),ref_key:"drawerRef",ref:M},null,8,["modelValue"])])}}});export{fo as default};
|