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

2 lines
9.9 KiB
JavaScript

import{U as ee,k as oe,C as le,D as te,J as ue,K as ae,w as re,F as se,L as ne,M as de,b as ie,N as pe,O as me}from"./element-plus.91c68cc0.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.8d2f148b.js";import{u as ce}from"./usePaging.f8c888e4.js";import{f as Fe}from"./index.0a19c3de.js";import{d as Y,r as p,s as ve,Z as be,i as Ee,af as we,ap as he,o as m,c as M,U as e,L as u,u as t,j as A,a as F,T as ke,a9 as Be,K as b,R as _,M as h,S as k,Q as Ce,n as ye}from"./@vue.76ce7aa3.js";import"./lodash.905d29aa.js";import{h as T}from"./moment.40bc58bf.js";import{o as O,p as Ve,l as ge}from"./beforehand_order.93e43338.js";import{a as De}from"./system_store.7fd27a21.js";import{_ as Ae}from"./drawer.vue_vue_type_script_setup_true_lang.966c0171.js";import{_ as xe}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.4d3f9c1f.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.134010e7.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.74873e41.js";import"./jspdf.9e946b0e.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.5dec0992.js";import"./color.f3e3a53f.js";import"./clone.8eedf8fa.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.09362860.js";import"./index.aceee8ed.js";import"./index.1f005bcc.js";import"./vuedraggable.9cbba807.js";import"./vue.1f30e2e1.js";import"./sortablejs.8430e608.js";const Ue={class:"flex items-center mr-4"},Se={class:"mt-4"},Le={class:"flex mt-4 justify-end"},Me=Y({name:"warehouseOrderLists"}),Lo=Y({...Me,setup(Te){const B=p(!1),C=ve(),y=p(!1),$=p(null);p([]);const a=be({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:""}),R=p([]),P=s=>{R.value=s.map(({id:o})=>o)},N=async s=>{var o,i;B.value=!0,await ye(),(o=C.value)==null||o.open("edit"),(i=C.value)==null||i.setFormData(s)},{pager:v,getLists:E,resetParams:z,resetPage:x}=ce({fetchFun:O,params:a}),I=async s=>{await Fe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ve({id:s}),E()},f=p([]),j=()=>{f.value[0]&&f.value[1]?(a.start_time=T(f.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=T(f.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),E()},q=s=>{ge({id:s,type:2}).then(o=>{window.open(o.url,"_blank"),oe.success("\u5BFC\u51FA\u6210\u529F")})},w=p(!1),U=p([]),K=(s="")=>{w.value=!0,De({name:s,page_size:50}).then(o=>{U.value=o.lists,setTimeout(()=>{w.value=!1},300)}).catch(o=>{setTimeout(()=>{w.value=!1},300)})};return Ee(()=>{E()}),(s,o)=>{const i=le,n=te,J=ee,d=ue,V=ae,c=re,Q=fe,Z=se,S=ne,g=we("router-link"),r=de,G=ie,H=pe,W=_e,D=he("perms"),X=me;return m(),M("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(Z,{class:"mb-[-16px]",model:t(a),inline:""},{default:u(()=>[e(n,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:u(()=>[e(i,{class:"w-[280px]",modelValue:t(a).order_id,"onUpdate:modelValue":o[0]||(o[0]=l=>t(a).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u65E5\u671F",prop:"create_time"},{default:u(()=>[e(J,{modelValue:t(f),"onUpdate:modelValue":o[1]||(o[1]=l=>A(f)?f.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:j},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:u(()=>[e(V,{modelValue:t(a).order_type,"onUpdate:modelValue":o[2]||(o[2]=l=>t(a).order_type=l),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:u(()=>[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(n,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:u(()=>[F("div",Ue,[e(V,{modelValue:t(a).store_id,"onUpdate:modelValue":o[3]||(o[3]=l=>t(a).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":K,loading:t(w),style:{width:"240px"},onChange:t(x)},{default:u(()=>[(m(!0),M(ke,null,Be(t(U),l=>(m(),b(d,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(n,{label:"\u652F\u4ED8\u8BA2\u5355\u53F7",prop:"order_sn"},{default:u(()=>[e(i,{class:"w-[200px]",modelValue:t(a).order_sn,"onUpdate:modelValue":o[4]||(o[4]=l=>t(a).order_sn=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5165\u5E93\u5355\u53F7",prop:"order_rk"},{default:u(()=>[e(i,{class:"w-[200px]",modelValue:t(a).order_rk,"onUpdate:modelValue":o[5]||(o[5]=l=>t(a).order_rk=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5165\u5E93\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u51FA\u5E93\u5355\u53F7",prop:"order_ck"},{default:u(()=>[e(i,{class:"w-[200px]",modelValue:t(a).order_ck,"onUpdate:modelValue":o[6]||(o[6]=l=>t(a).order_ck=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5907\u6CE8",prop:"mark"},{default:u(()=>[e(i,{class:"w-[200px]",modelValue:t(a).mark,"onUpdate:modelValue":o[7]||(o[7]=l=>t(a).mark=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u51FA\u5165\u5E93",prop:"warehouse_type"},{default:u(()=>[e(V,{modelValue:t(a).warehouse_type,"onUpdate:modelValue":o[8]||(o[8]=l=>t(a).warehouse_type=l),placeholder:"\u8BF7\u9009\u62E9\u51FA\u5165\u5E93\u7C7B\u578B",style:{width:"180px"}},{default:u(()=>[e(d,{value:1,label:"\u672A\u51FA\u5E93"}),e(d,{value:2,label:"\u5DF2\u51FA\u5E93"}),e(d,{value:3,label:"\u672A\u5165\u5E93"}),e(d,{value:4,label:"\u5DF2\u5165\u5E93"})]),_:1},8,["modelValue"])]),_:1}),e(n,null,{default:u(()=>[e(c,{type:"primary",onClick:t(x)},{default:u(()=>o[12]||(o[12]=[_("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(c,{onClick:t(z)},{default:u(()=>o[13]||(o[13]=[_("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(Q,{class:"ml-2.5","fetch-fun":t(O),params:t(a),"page-size":t(v).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),h((m(),b(S,{class:"!border-none",shadow:"never"},{default:u(()=>[e(g,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:u(()=>[e(c,{type:"primary"},{default:u(()=>o[14]||(o[14]=[_(" \u6DFB\u52A0 ")])),_:1})]),_:1}),e(g,{to:{path:"beforehand_order_cart_info"},class:"ml-4"},{default:u(()=>[e(c,{type:"primary"},{default:u(()=>o[15]||(o[15]=[_(" \u5546\u54C1\u5217\u8868 ")])),_:1})]),_:1}),F("div",Se,[e(H,{data:t(v).lists,onSelectionChange:P},{default:u(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(r,{label:"\u64CD\u4F5C\u65F6\u95F4/\u4EBA\u5458",prop:"create_time","show-overflow-tooltip":"",width:"150"},{default:u(({row:l})=>[F("div",null,k(l.admin_name),1),F("div",null,k(l.create_time),1)]),_:1}),e(r,{label:"\u5355\u53F7",prop:"order_id","show-overflow-tooltip":"",width:"180"},{default:u(({row:l})=>[F("div",null,k(l.order_id),1),F("div",null,k(l.order_sn),1)]),_:1}),e(r,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),e(r,{label:"\u95E8\u5E97",prop:"system_store","show-overflow-tooltip":""}),e(r,{label:"\u5165\u5E93",prop:"warehousing","show-overflow-tooltip":""}),e(r,{label:"\u51FA\u5E93",prop:"outbound","show-overflow-tooltip":""}),e(r,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(r,{label:"\u5185\u90E8\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(r,{label:"\u901A\u77E5",prop:"msg","show-overflow-tooltip":""}),e(r,{label:"\u6587\u4EF6",prop:"file","show-overflow-tooltip":""},{default:u(({row:l})=>[e(G,{style:{width:"50px",height:"50px"},src:l.file,"preview-teleported":!0},null,8,["src"])]),_:1}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:l})=>[e(g,{to:{path:"beforehand_order_details",query:{id:l.id}},class:"ml-4"},{default:u(()=>o[16]||(o[16]=[_(" \u8BE6\u60C5 ")])),_:2},1032,["to"]),h((m(),b(c,{link:"",onClick:L=>N(l)},{default:u(()=>o[17]||(o[17]=[_(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[D,["beforehand_order.beforehand_order/edit"]]]),h((m(),b(c,{type:"danger",link:"",onClick:L=>I(l.id)},{default:u(()=>o[18]||(o[18]=[_(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[D,["beforehand_order.beforehand_order/delete"]]]),h((m(),b(c,{onClick:L=>q(l.id),link:""},{default:u(()=>o[19]||(o[19]=[_(" \u6253\u5370\u4F9B\u8D27\u5355 ")])),_:2},1032,["onClick"])),[[D,["beforehand_order.beforehand_order/supply_order"]]])]),_:1})]),_:1},8,["data"])]),F("div",Le,[e(W,{modelValue:t(v),"onUpdate:modelValue":o[9]||(o[9]=l=>A(v)?v.value=l:null),onChange:t(E)},null,8,["modelValue","onChange"])])]),_:1})),[[X,t(v).loading]]),t(B)?(m(),b(xe,{key:0,ref_key:"editRef",ref:C,onSuccess:t(E),onClose:o[10]||(o[10]=l=>B.value=!1)},null,8,["onSuccess"])):Ce("",!0),e(Ae,{modelValue:t(y),"onUpdate:modelValue":o[11]||(o[11]=l=>A(y)?y.value=l:null),ref_key:"drawerRef",ref:$},null,8,["modelValue"])])}}});export{Lo as default};