2 lines
5.7 KiB
JavaScript
2 lines
5.7 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.4a7d92a3.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.d73d6ab5.js";import{u as ee}from"./usePaging.6a6670f9.js";import{u as oe}from"./useDictOptions.52a3bef8.js";import"./lodash.9dc701ad.js";import{f as te}from"./index.dc2579b9.js";import{h as E}from"./moment.40bc58bf.js";import{h as w,i as le}from"./beforehand_order.6778c19a.js";import{d as D,r as f,Z as ae,i as re,af as ue,ap as ne,o as h,c as se,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.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.e524b64c.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 ie={class:"mt-4"},pe={class:"flex mt-4 justify-end"},me=D({name:"warehouseOrderLists"}),Xe=D({...me,setup(de){f(!1),f(!1);const a=ae({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:s,getLists:m,resetParams:A,resetPage:V}=ee({fetchFun:w,params:a}),x=async d=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await le({id:d}),m()},n=f([]),Y=()=>{n.value[0]&&n.value[1]?(a.start_time=E(n.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=E(n.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),m()};return re(()=>{m()}),(d,r)=>{const M=j,_=q,L=$,i=I,U=K,c=R,O=X,P=J,v=Z,b=ue("router-link"),l=G,T=H,N=W,S=ne("perms"),z=Q;return h(),se("div",null,[e(v,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:t(a),inline:""},{default:o(()=>[e(_,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:o(()=>[e(M,{class:"w-[280px]",modelValue:t(a).order_id,"onUpdate:modelValue":r[0]||(r[0]=u=>t(a).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(a).order_type,"onUpdate:modelValue":r[2]||(r[2]=u=>t(a).order_type=u),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:o(()=>[e(i,{value:1,label:"\u94FA\u8D27\u8BA2\u5355"}),e(i,{value:2,label:"\u644A\u8D29\u8BA2\u5355"}),e(i,{value:3,label:"\u4E00\u6761\u9F99\u8BA2\u5355"}),e(i,{value:4,label:"\u7EBF\u4E0A\u8BA2\u5355"}),e(i,{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(a),"page-size":t(s).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",ie,[e(T,{data:t(s).lists,onSelectionChange:y},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(l,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(l,{label:"\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(l,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),e(l,{label:"\u95E8\u5E97",prop:"system_store","show-overflow-tooltip":""}),e(l,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(l,{label:"\u5165\u5E93",prop:"warehousing","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u5E93",prop:"outbound","show-overflow-tooltip":""}),e(l,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(l,{label:"\u901A\u77E5",prop:"msg","show-overflow-tooltip":""}),e(l,{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(s),"onUpdate:modelValue":r[3]||(r[3]=u=>B(s)?s.value=u:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[z,t(s).loading]])])}}});export{Xe as default};
|