moreShopAdmin/dist/admin/assets/index.b3d67074.js

2 lines
12 KiB
JavaScript

import{V as fe,x as ce,y as be,k as M,C as ve,D as Ee,N as Fe,O as we,w as ke,F as Ce,K as he,G as ye,b as Be,H as De,I as ge}from"./element-plus.8e273e86.js";import{_ as Ve}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as Ae}from"./index.vue_vue_type_script_setup_true_lang.0e18aa85.js";import{u as xe}from"./usePaging.f8c888e4.js";import{f as $e}from"./index.3f6de77c.js";import{d as j,r as i,s as Te,Z as Oe,i as Se,af as Ue,ap as Pe,o as m,c as Y,U as l,L as u,u as t,j as B,a as F,T as Re,a9 as Le,K as v,R as p,M as D,S as g,Q as O,n as Me}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import{h as N}from"./moment.40bc58bf.js";import{s as z,t as Ye,p as Ne,u as ze,v as Ie}from"./beforehand_order.ecc7c19a.js";import{a as je}from"./system_store.7dbd9177.js";import{_ as qe}from"./drawer.vue_vue_type_script_setup_true_lang.475169f5.js";import{_ as I}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.e2b8fec6.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.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.42678949.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.8d65305c.js";import"./picker.9b124a3a.js";import"./index.9ed36b18.js";import"./index.0980f693.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";import"./admin.03e20a95.js";const Ke={class:"flex items-center mr-4"},Ge={class:"mt-4"},He={class:"flex mt-4 justify-end"},Qe=j({name:"warehouseOrderLists"}),Ql=j({...Qe,setup(Ze){const k=i(!1),V=Te(),C=i(!1),d=i([]),S=i(null);i([]);const h=i("all"),q=r=>{h.value=="all"?a.order_type="":a.order_type=h.value,_()},y=i("all"),K=r=>{y.value=="all"?a.warehouse_type="":a.warehouse_type=y.value,_()},G=r=>{var e;C.value=!0,(e=S.value)==null||e.open(r.id)},a=Oe({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_sn:"",order_ck:"",order_rk:"",order_type:"",warehouse_type:"",mark:""}),H=i([]),Q=r=>{H.value=r.map(({id:e})=>e)},Z=async r=>{var e,c;k.value=!0,await Me(),(e=V.value)==null||e.open("edit"),(c=V.value)==null||c.setFormData(r)},{pager:w,getLists:U,resetParams:J,resetPage:Je}=xe({fetchFun:z,params:a}),W=async r=>{await $e.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ye({id:r}),_()},E=i([]),X=()=>{E.value[0]&&E.value[1]?(a.start_time=N(E.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=N(E.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),_()},ee=r=>{Ne({id:r,type:2}).then(e=>{window.open(e.url,"_blank"),M.success("\u5BFC\u51FA\u6210\u529F")})},le=r=>{ze({id:r}).then(e=>{window.open(e.url,"_blank"),M.success("\u5BFC\u51FA\u6210\u529F")})},A=i(!1),P=i([]),oe=(r="")=>{A.value=!0,je({name:r,page_size:50}).then(e=>{P.value=e.lists,setTimeout(()=>{A.value=!1},300)}).catch(e=>{setTimeout(()=>{A.value=!1},300)})},te=()=>{Ie(a).then(r=>{d.value=r})},_=()=>{U(),te()},ae=()=>{a.order_id="",a.product_name="",a.financial_pm=1,a.store_id="",a.start_time="",a.end_time="",a.supplier_id="",a.order_sn="",a.order_ck="",a.order_rk="",a.order_type="",a.warehouse_type="",a.mark="",J()};return Se(()=>{_()}),(r,e)=>{const c=ve,b=Ee,ue=fe,re=Fe,ne=we,f=ke,se=Ae,de=Ce,R=he,T=Ue("router-link"),s=ce,L=be,n=ye,ie=Be,pe=De,me=Ve,x=Pe("perms"),_e=ge;return m(),Y("div",null,[l(R,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[l(de,{class:"mb-[-16px]",model:t(a),inline:""},{default:u(()=>[l(b,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:u(()=>[l(c,{class:"w-[280px]",modelValue:t(a).order_id,"onUpdate:modelValue":e[0]||(e[0]=o=>t(a).order_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),l(b,{label:"\u65E5\u671F",prop:"create_time"},{default:u(()=>[l(ue,{modelValue:t(E),"onUpdate:modelValue":e[1]||(e[1]=o=>B(E)?E.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:X},null,8,["modelValue"])]),_:1}),l(b,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:u(()=>[F("div",Ke,[l(ne,{modelValue:t(a).store_id,"onUpdate:modelValue":e[2]||(e[2]=o=>t(a).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":oe,loading:t(A),style:{width:"240px"},onChange:_},{default:u(()=>[(m(!0),Y(Re,null,Le(t(P),o=>(m(),v(re,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])])]),_:1}),l(b,{label:"\u652F\u4ED8\u8BA2\u5355\u53F7",prop:"order_sn"},{default:u(()=>[l(c,{class:"w-[200px]",modelValue:t(a).order_sn,"onUpdate:modelValue":e[3]||(e[3]=o=>t(a).order_sn=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),l(b,{label:"\u5165\u5E93\u5355\u53F7",prop:"order_rk"},{default:u(()=>[l(c,{class:"w-[200px]",modelValue:t(a).order_rk,"onUpdate:modelValue":e[4]||(e[4]=o=>t(a).order_rk=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5165\u5E93\u5355\u53F7"},null,8,["modelValue"])]),_:1}),l(b,{label:"\u51FA\u5E93\u5355\u53F7",prop:"order_ck"},{default:u(()=>[l(c,{class:"w-[200px]",modelValue:t(a).order_ck,"onUpdate:modelValue":e[5]||(e[5]=o=>t(a).order_ck=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u53F7"},null,8,["modelValue"])]),_:1}),l(b,{label:"\u5907\u6CE8",prop:"mark"},{default:u(()=>[l(c,{class:"w-[200px]",modelValue:t(a).mark,"onUpdate:modelValue":e[6]||(e[6]=o=>t(a).mark=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"},null,8,["modelValue"])]),_:1}),l(b,null,{default:u(()=>[l(f,{type:"primary",onClick:_},{default:u(()=>e[14]||(e[14]=[p("\u67E5\u8BE2")])),_:1}),l(f,{onClick:ae},{default:u(()=>e[15]||(e[15]=[p("\u91CD\u7F6E")])),_:1}),l(se,{class:"ml-2.5","fetch-fun":t(z),params:t(a),"page-size":t(w).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),D((m(),v(R,{class:"!border-none",shadow:"never"},{default:u(()=>[l(T,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:u(()=>[l(f,{type:"primary"},{default:u(()=>e[16]||(e[16]=[p(" \u6DFB\u52A0 ")])),_:1})]),_:1}),l(T,{to:{path:"beforehand_order_cart_info"},class:"ml-4"},{default:u(()=>[l(f,{type:"primary"},{default:u(()=>e[17]||(e[17]=[p(" \u5546\u54C1\u5217\u8868 ")])),_:1})]),_:1}),l(L,{modelValue:t(h),"onUpdate:modelValue":e[7]||(e[7]=o=>B(h)?h.value=o:null),class:"demo-tabs mt-2",onTabChange:q},{default:u(()=>[l(s,{label:"\u5168\u90E8",name:"all"}),l(s,{label:`\u94FA\u8D27\u8BA2\u5355(${t(d).order_type_1})`,name:"1"},null,8,["label"]),l(s,{label:`\u644A\u8D29\u8BA2\u5355(${t(d).order_type_2})`,name:"2"},null,8,["label"]),l(s,{label:`\u4E00\u6761\u9F99\u8BA2\u5355(${t(d).order_type_3})`,name:"3"},null,8,["label"]),l(s,{label:`\u7EBF\u4E0A\u8BA2\u5355(${t(d).order_type_4})`,name:"4"},null,8,["label"]),l(s,{label:`\u4ED3\u5E93\u8865\u8D27(${t(d).order_type_5})`,name:"5"},null,8,["label"]),l(s,{label:`\u91C7\u8D2D\u8BA2\u5355(${t(d).order_type_7})`,name:"7"},null,8,["label"]),l(s,{label:`\u5176\u4ED6\u8BA2\u5355(${t(d).order_type_8})`,name:"8"},null,8,["label"])]),_:1},8,["modelValue"]),l(L,{modelValue:t(y),"onUpdate:modelValue":e[8]||(e[8]=o=>B(y)?y.value=o:null),onTabChange:K},{default:u(()=>[l(s,{label:"\u5168\u90E8",name:"all"}),l(s,{label:`\u672A\u51FA\u5E93(${t(d).outbound_0})`,name:"1"},null,8,["label"]),l(s,{label:`\u5DF2\u51FA\u5E93(${t(d).outbound_1})`,name:"2"},null,8,["label"]),l(s,{label:`\u672A\u5165\u5E93(${t(d).warehousing_0})`,name:"3"},null,8,["label"]),l(s,{label:`\u5DF2\u5165\u5E93(${t(d).warehousing_1})`,name:"4"},null,8,["label"])]),_:1},8,["modelValue"]),F("div",Ge,[l(pe,{data:t(w).lists,onSelectionChange:Q},{default:u(()=>[l(n,{type:"selection",width:"55"}),l(n,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),l(n,{label:"\u64CD\u4F5C\u65F6\u95F4/\u4EBA\u5458",prop:"create_time","show-overflow-tooltip":"",width:"150"},{default:u(({row:o})=>[F("div",null,g(o.admin_name),1),F("div",null,g(o.create_time),1)]),_:1}),l(n,{label:"\u5355\u53F7",prop:"order_id","show-overflow-tooltip":"",width:"180"},{default:u(({row:o})=>[F("div",null,g(o.order_id),1),F("div",null,g(o.order_sn),1)]),_:1}),l(n,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),l(n,{label:"\u95E8\u5E97",prop:"system_store","show-overflow-tooltip":""}),l(n,{label:"\u5165\u5E93",prop:"warehousing","show-overflow-tooltip":""}),l(n,{label:"\u51FA\u5E93",prop:"outbound","show-overflow-tooltip":""}),l(n,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),l(n,{label:"\u5185\u90E8\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),l(n,{label:"\u4EE3\u8D2D\u5907\u6CE8",prop:"other_data.store_mark","show-overflow-tooltip":""}),l(n,{label:"\u901A\u77E5",prop:"msg","show-overflow-tooltip":""}),l(n,{label:"\u6587\u4EF6",prop:"file","show-overflow-tooltip":""},{default:u(({row:o})=>[l(ie,{style:{width:"50px",height:"50px"},src:o.file,"preview-teleported":!0},null,8,["src"])]),_:1}),l(n,{label:"\u7ED3\u7B97\u72B6\u6001",prop:"audit_status","show-overflow-tooltip":""},{default:u(({row:o})=>[p(g(o.audit_status==1?"\u5DF2\u7ED3\u7B97":"\u672A\u7ED3\u7B97"),1)]),_:1}),l(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:o})=>[l(f,{type:"danger",link:"",onClick:$=>G(o)},{default:u(()=>e[18]||(e[18]=[p(" \u6D41\u7A0B ")])),_:2},1032,["onClick"]),l(T,{to:{path:"beforehand_order_details",query:{id:o.id}},class:"ml-4"},{default:u(()=>e[19]||(e[19]=[p(" \u8BE6\u60C5 ")])),_:2},1032,["to"]),D((m(),v(f,{link:"",onClick:$=>Z(o)},{default:u(()=>e[20]||(e[20]=[p(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[x,["beforehand_order.beforehand_order/edit"]]]),D((m(),v(f,{type:"danger",link:"",onClick:$=>W(o.id)},{default:u(()=>e[21]||(e[21]=[p(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[x,["beforehand_order.beforehand_order/delete"]]]),D((m(),v(f,{onClick:$=>ee(o.id),link:""},{default:u(()=>e[22]||(e[22]=[p(" \u6253\u5370\u4F9B\u8D27\u5355 ")])),_:2},1032,["onClick"])),[[x,["beforehand_order.beforehand_order/supply_order"]]]),o.uid>0?D((m(),v(f,{key:0,onClick:$=>le(o.id),link:""},{default:u(()=>e[23]||(e[23]=[p(" \u6253\u5370\u4F1A\u5458\u5355 ")])),_:2},1032,["onClick"])),[[x,["beforehand_order.beforehand_order/supply_order"]]]):O("",!0)]),_:1})]),_:1},8,["data"])]),F("div",He,[l(me,{modelValue:t(w),"onUpdate:modelValue":e[9]||(e[9]=o=>B(w)?w.value=o:null),onChange:_},null,8,["modelValue"])])]),_:1})),[[_e,t(w).loading]]),t(k)?(m(),v(I,{key:0,ref_key:"editRef",ref:V,"dict-data":r.dictData,onSuccess:t(U),onClose:e[10]||(e[10]=o=>k.value=!1)},null,8,["dict-data","onSuccess"])):O("",!0),t(k)?(m(),v(I,{key:1,ref_key:"editRef",ref:V,onSuccess:_,onClose:e[11]||(e[11]=o=>k.value=!1)},null,512)):O("",!0),l(qe,{modelValue:t(C),"onUpdate:modelValue":e[12]||(e[12]=o=>B(C)?C.value=o:null),ref_key:"drawerRef",ref:S,onClose:e[13]||(e[13]=o=>C.value=!1)},null,8,["modelValue"])])}}});export{Ql as default};