moreShopAdmin/build/admin/assets/index.9933c057.js

2 lines
8.2 KiB
JavaScript

import{U as W,C as X,D as ee,J as oe,K as te,w as le,F as ae,L as re,M as ue,b as se,N as ne,O as ie}from"./element-plus.91c68cc0.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.7814120a.js";import{u as me}from"./usePaging.f8c888e4.js";import{f as _e}from"./index.8ef6d2b1.js";import"./lodash.4e6d2a38.js";import{h as T}from"./moment.40bc58bf.js";import{m as U,n as fe}from"./beforehand_order.6e323d8e.js";import{a as ce}from"./system_store.21c77d4d.js";import{_ as ve}from"./drawer.vue_vue_type_script_setup_true_lang.8aca0aca.js";import{_ as we}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.f349f754.js";import{d as S,r as n,s as be,Z as Ee,i as he,af as Fe,ap as Ce,o as p,c as M,U as e,L as a,u as t,j as g,a as y,T as Be,a9 as ge,K as b,R as d,M as k,Q as ye,n as ke}from"./@vue.76ce7aa3.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.0afc6829.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.fc9ee208.js";import"./index.0616caec.js";import"./index.8a556760.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";const De={class:"flex items-center mr-4"},Ve={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},xe=S({name:"warehouseOrderLists"}),Ao=S({...xe,setup(Le){const h=n(!1),F=be(),C=n(!1),Y=n(null);n([]);const r=Ee({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_sn:"",order_type:""}),R=n([]),$=s=>{R.value=s.map(({id:o})=>o)},N=async s=>{var o,w;h.value=!0,await ke(),(o=F.value)==null||o.open("edit"),(w=F.value)==null||w.setFormData(s)},{pager:m,getLists:v,resetParams:O,resetPage:D}=me({fetchFun:U,params:r}),P=async s=>{await _e.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:s}),v()},i=n([]),z=()=>{i.value[0]&&i.value[1]?(r.start_time=T(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=T(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),v()},E=n(!1),V=n([]),I=(s="")=>{E.value=!0,ce({name:s,page_size:50}).then(o=>{V.value=o.lists,setTimeout(()=>{E.value=!1},300)}).catch(o=>{setTimeout(()=>{E.value=!1},300)})};return he(()=>{v()}),(s,o)=>{const w=X,_=ee,j=W,f=oe,A=te,c=le,q=de,K=ae,x=re,B=Fe("router-link"),u=ue,J=se,Q=ne,Z=pe,L=Ce("perms"),G=ie;return p(),M("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(K,{class:"mb-[-16px]",model:t(r),inline:""},{default:a(()=>[e(_,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:a(()=>[e(w,{class:"w-[280px]",modelValue:t(r).order_id,"onUpdate:modelValue":o[0]||(o[0]=l=>t(r).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u65E5\u671F",prop:"create_time"},{default:a(()=>[e(j,{modelValue:t(i),"onUpdate:modelValue":o[1]||(o[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:z},null,8,["modelValue"])]),_:1}),e(_,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:a(()=>[e(A,{modelValue:t(r).order_type,"onUpdate:modelValue":o[2]||(o[2]=l=>t(r).order_type=l),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:a(()=>[e(f,{value:1,label:"\u94FA\u8D27\u8BA2\u5355"}),e(f,{value:2,label:"\u644A\u8D29\u8BA2\u5355"}),e(f,{value:3,label:"\u4E00\u6761\u9F99\u8BA2\u5355"}),e(f,{value:4,label:"\u7EBF\u4E0A\u8BA2\u5355"}),e(f,{value:5,label:"\u4ED3\u5E93\u8865\u8D27"})]),_:1},8,["modelValue"])]),_:1}),e(_,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:a(()=>[y("div",De,[e(A,{modelValue:t(r).store_id,"onUpdate:modelValue":o[3]||(o[3]=l=>t(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":I,loading:t(E),style:{width:"240px"},onChange:t(D)},{default:a(()=>[(p(!0),M(Be,null,ge(t(V),l=>(p(),b(f,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(_,{label:"\u652F\u4ED8\u8BA2\u5355\u53F7",prop:"order_sn"},{default:a(()=>[e(w,{class:"w-[280px]",modelValue:t(r).order_sn,"onUpdate:modelValue":o[4]||(o[4]=l=>t(r).order_sn=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(_,null,{default:a(()=>[e(c,{type:"primary",onClick:t(D)},{default:a(()=>o[8]||(o[8]=[d("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(c,{onClick:t(O)},{default:a(()=>o[9]||(o[9]=[d("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(q,{class:"ml-2.5","fetch-fun":t(U),params:t(r),"page-size":t(m).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),k((p(),b(x,{class:"!border-none",shadow:"never"},{default:a(()=>[e(B,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:a(()=>[e(c,{type:"primary"},{default:a(()=>o[10]||(o[10]=[d(" \u6DFB\u52A0 ")])),_:1})]),_:1}),e(B,{to:{path:"beforehand_order_cart_info"},class:"ml-4"},{default:a(()=>[e(c,{type:"primary"},{default:a(()=>o[11]||(o[11]=[d(" \u5546\u54C1\u5217\u8868 ")])),_:1})]),_:1}),y("div",Ve,[e(Q,{data:t(m).lists,onSelectionChange:$},{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:"\u6587\u4EF6",prop:"file","show-overflow-tooltip":""},{default:a(({row:l})=>[e(J,{style:{width:"50px",height:"50px"},src:l.file,"preview-teleported":!0},null,8,["src"])]),_:1}),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(()=>o[12]||(o[12]=[d(" \u8BE6\u60C5 ")])),_:2},1032,["to"]),k((p(),b(c,{link:"",onClick:H=>N(l)},{default:a(()=>o[13]||(o[13]=[d(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[L,["beforehand_order.beforehand_order/edit"]]]),k((p(),b(c,{type:"danger",link:"",onClick:H=>P(l.id)},{default:a(()=>o[14]||(o[14]=[d(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[L,["beforehand_order.beforehand_order/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",Ae,[e(Z,{modelValue:t(m),"onUpdate:modelValue":o[5]||(o[5]=l=>g(m)?m.value=l:null),onChange:t(v)},null,8,["modelValue","onChange"])])]),_:1})),[[G,t(m).loading]]),t(h)?(p(),b(we,{key:0,ref_key:"editRef",ref:F,onSuccess:t(v),onClose:o[6]||(o[6]=l=>h.value=!1)},null,8,["onSuccess"])):ye("",!0),e(ve,{modelValue:t(C),"onUpdate:modelValue":o[7]||(o[7]=l=>g(C)?C.value=l:null),ref_key:"drawerRef",ref:Y},null,8,["modelValue"])])}}});export{Ao as default};