2 lines
7.8 KiB
JavaScript
2 lines
7.8 KiB
JavaScript
import{U as H,C as W,D as X,J as ee,K as oe,w as te,F as le,L as ae,M as re,N as ue,O as se}from"./element-plus.7e347b00.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.3570295b.js";import{u as pe}from"./usePaging.6a6670f9.js";import{f as de}from"./index.fd76ab8a.js";import"./lodash.4e6d2a38.js";import{h as x}from"./moment.40bc58bf.js";import{m as L,n as me}from"./beforehand_order.8e0b1c5c.js";import{a as _e}from"./system_store.0aadec73.js";import{_ as fe}from"./drawer.vue_vue_type_script_setup_true_lang.e8d9851d.js";import{_ as ce}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.4d39868e.js";import{d as M,r as n,s as ve,Z as he,i as we,af as Ee,ap as be,o as c,c as T,U as e,L as a,u as o,j as g,a as y,T as Fe,a9 as Ce,K as E,R as p,M as U,Q as Be,n as ge}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.1071aff1.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";import"./picker.f4b9a12a.js";import"./index.4f5760e6.js";import"./index.209f4c2d.js";import"./vuedraggable.c5026861.js";import"./vue.1715f83d.js";import"./sortablejs.c62bcaf8.js";const ye={class:"flex items-center mr-4"},ke={class:"mt-4"},De={class:"flex mt-4 justify-end"},Ve=M({name:"warehouseOrderLists"}),Do=M({...Ve,setup(Ae){const b=n(!1),F=ve(),C=n(!1),S=n(null);n([]);const r=he({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_sn:"",order_type:""}),Y=n([]),R=s=>{Y.value=s.map(({id:t})=>t)},$=async s=>{var t,h;b.value=!0,await ge(),(t=F.value)==null||t.open("edit"),(h=F.value)==null||h.setFormData(s)},{pager:d,getLists:v,resetParams:N,resetPage:k}=pe({fetchFun:L,params:r}),O=async s=>{await de.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:s}),v()},i=n([]),P=()=>{i.value[0]&&i.value[1]?(r.start_time=x(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=x(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),v()},w=n(!1),D=n([]),z=(s="")=>{w.value=!0,_e({name:s,page_size:50}).then(t=>{D.value=t.lists,setTimeout(()=>{w.value=!1},300)}).catch(t=>{setTimeout(()=>{w.value=!1},300)})};return we(()=>{v()}),(s,t)=>{const h=W,m=X,j=H,_=ee,V=oe,f=te,q=ie,I=le,A=ae,B=Ee("router-link"),u=re,K=ue,J=ne,Q=be("perms"),Z=se;return c(),T("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(I,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(m,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:a(()=>[e(h,{class:"w-[280px]",modelValue:o(r).order_id,"onUpdate:modelValue":t[0]||(t[0]=l=>o(r).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u65E5\u671F",prop:"create_time"},{default:a(()=>[e(j,{modelValue:o(i),"onUpdate:modelValue":t[1]||(t[1]=l=>g(i)?i.value=l: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(m,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:a(()=>[e(V,{modelValue:o(r).order_type,"onUpdate:modelValue":t[2]||(t[2]=l=>o(r).order_type=l),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:a(()=>[e(_,{value:1,label:"\u94FA\u8D27\u8BA2\u5355"}),e(_,{value:2,label:"\u644A\u8D29\u8BA2\u5355"}),e(_,{value:3,label:"\u4E00\u6761\u9F99\u8BA2\u5355"}),e(_,{value:4,label:"\u7EBF\u4E0A\u8BA2\u5355"}),e(_,{value:5,label:"\u4ED3\u5E93\u8865\u8D27"})]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:a(()=>[y("div",ye,[e(V,{modelValue:o(r).store_id,"onUpdate:modelValue":t[3]||(t[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":z,loading:o(w),style:{width:"240px"},onChange:o(k)},{default:a(()=>[(c(!0),T(Fe,null,Ce(o(D),l=>(c(),E(_,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(m,{label:"\u652F\u4ED8\u8BA2\u5355\u53F7",prop:"order_sn"},{default:a(()=>[e(h,{class:"w-[280px]",modelValue:o(r).order_sn,"onUpdate:modelValue":t[4]||(t[4]=l=>o(r).order_sn=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(m,null,{default:a(()=>[e(f,{type:"primary",onClick:o(k)},{default:a(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:o(N)},{default:a(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(q,{class:"ml-2.5","fetch-fun":o(L),params:o(r),"page-size":o(d).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),U((c(),E(A,{class:"!border-none",shadow:"never"},{default:a(()=>[e(B,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:a(()=>[e(f,{type:"primary"},{default:a(()=>[p(" \u6DFB\u52A0 ")]),_:1})]),_:1}),e(B,{to:{path:"beforehand_order_cart_info"},class:"ml-4"},{default:a(()=>[e(f,{type:"primary"},{default:a(()=>[p(" \u5546\u54C1\u5217\u8868 ")]),_:1})]),_:1}),y("div",ke,[e(K,{data:o(d).lists,onSelectionChange:R},{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:"\u5185\u90E8\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:l})=>[e(B,{to:{path:"beforehand_order_details",query:{id:l.id}},class:"ml-4"},{default:a(()=>[p(" \u8BE6\u60C5 ")]),_:2},1032,["to"]),e(f,{link:"",onClick:G=>$(l)},{default:a(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),U((c(),E(f,{type:"danger",link:"",onClick:G=>O(l.id)},{default:a(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[Q,["beforehand_order.beforehand_order/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",De,[e(J,{modelValue:o(d),"onUpdate:modelValue":t[5]||(t[5]=l=>g(d)?d.value=l:null),onChange:o(v)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,o(d).loading]]),o(b)?(c(),E(ce,{key:0,ref_key:"editRef",ref:F,onSuccess:o(v),onClose:t[6]||(t[6]=l=>b.value=!1)},null,8,["onSuccess"])):Be("",!0),e(fe,{modelValue:o(C),"onUpdate:modelValue":t[7]||(t[7]=l=>g(C)?C.value=l:null),ref_key:"drawerRef",ref:S},null,8,["modelValue"])])}}});export{Do as default};
|