2 lines
9.4 KiB
JavaScript
2 lines
9.4 KiB
JavaScript
import{U as X,C as ee,D as oe,J as le,K as te,w as ue,F as ae,L as re,M as se,b as ne,N as de,O as ie}from"./element-plus.91c68cc0.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.0e16a2d2.js";import{u as _e}from"./usePaging.f8c888e4.js";import{f as fe}from"./index.27d7bb66.js";import{d as Y,r as i,s as ce,Z as ve,i as Fe,af as Ee,ap as be,o as _,c as L,U as e,L as u,u as t,j as V,a as f,T as we,a9 as he,K as b,R as c,M as D,S as h,Q as Be,n as Ce}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import{h as T}from"./moment.40bc58bf.js";import{o as M,p as ke}from"./beforehand_order.4d6038c2.js";import{a as ye}from"./system_store.c25e9809.js";import{_ as ge}from"./drawer.vue_vue_type_script_setup_true_lang.407bd327.js";import{_ as Ve}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.f48a8a2d.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.e9fb0fda.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.87f3902a.js";import"./index.ab6db84c.js";import"./index.89ecc357.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";const De={class:"flex items-center mr-4"},Ae={class:"mt-4"},xe={class:"flex mt-4 justify-end"},Ue=Y({name:"warehouseOrderLists"}),xo=Y({...Ue,setup(Se){const B=i(!1),C=ce(),k=i(!1),R=i(null);i([]);const a=ve({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:""}),$=i([]),N=d=>{$.value=d.map(({id:o})=>o)},O=async d=>{var o,m;B.value=!0,await Ce(),(o=C.value)==null||o.open("edit"),(m=C.value)==null||m.setFormData(d)},{pager:v,getLists:E,resetParams:P,resetPage:A}=_e({fetchFun:M,params:a}),z=async d=>{await fe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ke({id:d}),E()},p=i([]),I=()=>{p.value[0]&&p.value[1]?(a.start_time=T(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=T(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),E()},w=i(!1),x=i([]),j=(d="")=>{w.value=!0,ye({name:d,page_size:50}).then(o=>{x.value=o.lists,setTimeout(()=>{w.value=!1},300)}).catch(o=>{setTimeout(()=>{w.value=!1},300)})};return Fe(()=>{E()}),(d,o)=>{const m=ee,n=oe,q=X,s=le,y=te,F=ue,K=me,J=ae,U=re,g=Ee("router-link"),r=se,Q=ne,Z=de,G=pe,S=be("perms"),H=ie;return _(),L("div",null,[e(U,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(J,{class:"mb-[-16px]",model:t(a),inline:""},{default:u(()=>[e(n,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:u(()=>[e(m,{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(q,{modelValue:t(p),"onUpdate:modelValue":o[1]||(o[1]=l=>V(p)?p.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:I},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:u(()=>[e(y,{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(s,{value:1,label:"\u94FA\u8D27\u8BA2\u5355"}),e(s,{value:2,label:"\u644A\u8D29\u8BA2\u5355"}),e(s,{value:3,label:"\u4E00\u6761\u9F99\u8BA2\u5355"}),e(s,{value:4,label:"\u7EBF\u4E0A\u8BA2\u5355"}),e(s,{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",De,[e(y,{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":j,loading:t(w),style:{width:"240px"},onChange:t(A)},{default:u(()=>[(_(!0),L(we,null,he(t(x),l=>(_(),b(s,{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(m,{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(m,{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(m,{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:"\u51FA\u5165\u5E93",prop:"warehouse_type"},{default:u(()=>[e(y,{modelValue:t(a).warehouse_type,"onUpdate:modelValue":o[7]||(o[7]=l=>t(a).warehouse_type=l),placeholder:"\u8BF7\u9009\u62E9\u51FA\u5165\u5E93\u7C7B\u578B",style:{width:"180px"}},{default:u(()=>[e(s,{value:1,label:"\u672A\u51FA\u5E93"}),e(s,{value:2,label:"\u5DF2\u51FA\u5E93"}),e(s,{value:3,label:"\u672A\u5165\u5E93"}),e(s,{value:4,label:"\u5DF2\u5165\u5E93"})]),_:1},8,["modelValue"])]),_:1}),e(n,null,{default:u(()=>[e(F,{type:"primary",onClick:t(A)},{default:u(()=>o[11]||(o[11]=[c("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(F,{onClick:t(P)},{default:u(()=>o[12]||(o[12]=[c("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(K,{class:"ml-2.5","fetch-fun":t(M),params:t(a),"page-size":t(v).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),D((_(),b(U,{class:"!border-none",shadow:"never"},{default:u(()=>[e(g,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:u(()=>[e(F,{type:"primary"},{default:u(()=>o[13]||(o[13]=[c(" \u6DFB\u52A0 ")])),_:1})]),_:1}),e(g,{to:{path:"beforehand_order_cart_info"},class:"ml-4"},{default:u(()=>[e(F,{type:"primary"},{default:u(()=>o[14]||(o[14]=[c(" \u5546\u54C1\u5217\u8868 ")])),_:1})]),_:1}),f("div",Ae,[e(Z,{data:t(v).lists,onSelectionChange:N},{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,h(l.admin_name),1),f("div",null,h(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,h(l.order_id),1),f("div",null,h(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(Q,{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[15]||(o[15]=[c(" \u8BE6\u60C5 ")])),_:2},1032,["to"]),D((_(),b(F,{link:"",onClick:W=>O(l)},{default:u(()=>o[16]||(o[16]=[c(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[S,["beforehand_order.beforehand_order/edit"]]]),D((_(),b(F,{type:"danger",link:"",onClick:W=>z(l.id)},{default:u(()=>o[17]||(o[17]=[c(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[S,["beforehand_order.beforehand_order/delete"]]])]),_:1})]),_:1},8,["data"])]),f("div",xe,[e(G,{modelValue:t(v),"onUpdate:modelValue":o[8]||(o[8]=l=>V(v)?v.value=l:null),onChange:t(E)},null,8,["modelValue","onChange"])])]),_:1})),[[H,t(v).loading]]),t(B)?(_(),b(Ve,{key:0,ref_key:"editRef",ref:C,onSuccess:t(E),onClose:o[9]||(o[9]=l=>B.value=!1)},null,8,["onSuccess"])):Be("",!0),e(ge,{modelValue:t(k),"onUpdate:modelValue":o[10]||(o[10]=l=>V(k)?k.value=l:null),ref_key:"drawerRef",ref:R},null,8,["modelValue"])])}}});export{xo as default};
|