2 lines
6.9 KiB
JavaScript
2 lines
6.9 KiB
JavaScript
import{U as K,C as R,D as J,J as Z,K as G,w as H,F as Q,L as W,M as X,N as ee,O as oe}from"./element-plus.2c2b06a1.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.7141614b.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.93fcfd58.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as re}from"./useDictOptions.126182fb.js";import"./lodash.4e6d2a38.js";import{f as ue}from"./index.3ccf3a31.js";import{h as y}from"./moment.40bc58bf.js";import{l as V,m as se}from"./beforehand_order.0d693039.js";import{a as ne}from"./system_store.4e808805.js";import{d as L,r as m,Z as ie,i as pe,af as de,ap as me,o as _,c as k,U as e,L as t,u as o,j as A,a as b,T as _e,a9 as ce,K as E,R as c,M as x}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.4dc74392.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 fe={class:"flex items-center mr-4"},he={class:"mt-4"},ve={class:"flex mt-4 justify-end"},be=L({name:"warehouseOrderLists"}),po=L({...be,setup(Ee){m(!1),m(!1);const r=ie({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_sn:"",order_type:""}),M=m([]),T=i=>{M.value=i.map(({id:a})=>a)};re("");const{pager:n,getLists:f,resetParams:U,resetPage:w}=ae({fetchFun:V,params:r}),Y=async i=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await se({id:i}),f()},s=m([]),S=()=>{s.value[0]&&s.value[1]?(r.start_time=y(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=y(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),f()},h=m(!1),F=m([]),O=(i="")=>{h.value=!0,ne({name:i,page_size:50}).then(a=>{F.value=a.lists,setTimeout(()=>{h.value=!1},300)}).catch(a=>{setTimeout(()=>{h.value=!1},300)})};return pe(()=>{f()}),(i,a)=>{const B=R,p=J,P=K,d=Z,C=G,v=H,z=le,N=Q,g=W,D=de("router-link"),u=X,$=ee,j=te,q=me("perms"),I=oe;return _(),k("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:o(r),inline:""},{default:t(()=>[e(p,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:t(()=>[e(B,{class:"w-[280px]",modelValue:o(r).order_id,"onUpdate:modelValue":a[0]||(a[0]=l=>o(r).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u65E5\u671F",prop:"create_time"},{default:t(()=>[e(P,{modelValue:o(s),"onUpdate:modelValue":a[1]||(a[1]=l=>A(s)?s.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:S},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:t(()=>[e(C,{modelValue:o(r).order_type,"onUpdate:modelValue":a[2]||(a[2]=l=>o(r).order_type=l),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:t(()=>[e(d,{value:1,label:"\u94FA\u8D27\u8BA2\u5355"}),e(d,{value:2,label:"\u644A\u8D29\u8BA2\u5355"}),e(d,{value:3,label:"\u4E00\u6761\u9F99\u8BA2\u5355"}),e(d,{value:4,label:"\u7EBF\u4E0A\u8BA2\u5355"}),e(d,{value:5,label:"\u4ED3\u5E93\u8865\u8D27"})]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:t(()=>[b("div",fe,[e(C,{modelValue:o(r).store_id,"onUpdate:modelValue":a[3]||(a[3]=l=>o(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":O,loading:o(h),style:{width:"240px"},onChange:o(w)},{default:t(()=>[(_(!0),k(_e,null,ce(o(F),l=>(_(),E(d,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(p,{label:"\u652F\u4ED8\u8BA2\u5355\u53F7",prop:"order_sn"},{default:t(()=>[e(B,{class:"w-[280px]",modelValue:o(r).order_sn,"onUpdate:modelValue":a[4]||(a[4]=l=>o(r).order_sn=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(p,null,{default:t(()=>[e(v,{type:"primary",onClick:o(w)},{default:t(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(v,{onClick:o(U)},{default:t(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(z,{class:"ml-2.5","fetch-fun":o(V),params:o(r),"page-size":o(n).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),x((_(),E(g,{class:"!border-none",shadow:"never"},{default:t(()=>[e(D,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:t(()=>[e(v,{type:"primary"},{default:t(()=>[c(" \u6DFB\u52A0 ")]),_:1})]),_:1}),b("div",he,[e($,{data:o(n).lists,onSelectionChange:T},{default:t(()=>[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:t(({row:l})=>[e(D,{to:{path:"beforehand_order_details",query:{id:l.id}},class:"ml-4"},{default:t(()=>[c(" \u8BE6\u60C5 ")]),_:2},1032,["to"]),x((_(),E(v,{type:"danger",link:"",onClick:we=>Y(l.id)},{default:t(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[q,["beforehand_order.beforehand_order/delete"]]])]),_:1})]),_:1},8,["data"])]),b("div",ve,[e(j,{modelValue:o(n),"onUpdate:modelValue":a[5]||(a[5]=l=>A(n)?n.value=l:null),onChange:o(f)},null,8,["modelValue","onChange"])])]),_:1})),[[I,o(n).loading]])])}}});export{po as default};
|