2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
import{V as ue,k as T,C as te,D as ae,N as re,O as ne,w as se,F as de,K as ie,G as pe,b as me,H as _e,I as fe}from"./element-plus.352c7be0.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.567dc22a.js";import{_ as Fe}from"./index.vue_vue_type_script_setup_true_lang.792eb830.js";import{u as be}from"./usePaging.f8c888e4.js";import{f as ve}from"./index.742fa617.js";import{d as P,r as f,s as Ee,Z as we,i as he,af as ke,ap as Ce,o as i,c as $,U as e,L as t,u,j as x,a as F,T as Be,a9 as ye,K as b,R as p,M as w,S as C,Q as L,n as Ve}from"./@vue.76ce7aa3.js";import"./lodash.41b9567d.js";import{h as M}from"./moment.40bc58bf.js";import{o as Y,p as ge,l as De,q as Ae}from"./beforehand_order.e94973b5.js";import{a as xe}from"./system_store.41ef5d19.js";import{_ as Ue}from"./drawer.vue_vue_type_script_setup_true_lang.a7ad1993.js";import{_ as Oe}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.9ab78c60.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.a623973e.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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.990ab182.js";import"./index.d1681740.js";import"./index.c89b97b7.js";import"./vuedraggable.1d6c5910.js";import"./vue.6c4d4a7c.js";import"./sortablejs.a0474a26.js";const Se={class:"flex items-center mr-4"},Te={class:"mt-4"},$e={class:"flex mt-4 justify-end"},Le=P({name:"warehouseOrderLists"}),$o=P({...Le,setup(Me){const B=f(!1),y=Ee(),V=f(!1),R=f(null);f([]);const a=we({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:""}),N=f([]),z=n=>{N.value=n.map(({id:o})=>o)},I=async n=>{var o,m;B.value=!0,await Ve(),(o=y.value)==null||o.open("edit"),(m=y.value)==null||m.setFormData(n)},{pager:v,getLists:E,resetParams:q,resetPage:U}=be({fetchFun:Y,params:a}),j=async n=>{await ve.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ge({id:n}),E()},c=f([]),K=()=>{c.value[0]&&c.value[1]?(a.start_time=M(c.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=M(c.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),E()},G=n=>{De({id:n,type:2}).then(o=>{window.open(o.url,"_blank"),T.success("\u5BFC\u51FA\u6210\u529F")})},H=n=>{Ae({id:n}).then(o=>{window.open(o.url,"_blank"),T.success("\u5BFC\u51FA\u6210\u529F")})},h=f(!1),O=f([]),Q=(n="")=>{h.value=!0,xe({name:n,page_size:50}).then(o=>{O.value=o.lists,setTimeout(()=>{h.value=!1},300)}).catch(o=>{setTimeout(()=>{h.value=!1},300)})};return he(()=>{E()}),(n,o)=>{const m=te,d=ae,Z=ue,s=re,g=ne,_=se,J=Fe,W=de,S=ie,D=ke("router-link"),r=pe,X=me,ee=_e,oe=ce,k=Ce("perms"),le=fe;return i(),$("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(W,{class:"mb-[-16px]",model:u(a),inline:""},{default:t(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:u(a).order_id,"onUpdate:modelValue":o[0]||(o[0]=l=>u(a).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u65E5\u671F",prop:"create_time"},{default:t(()=>[e(Z,{modelValue:u(c),"onUpdate:modelValue":o[1]||(o[1]=l=>x(c)?c.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:K},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:t(()=>[e(g,{modelValue:u(a).order_type,"onUpdate:modelValue":o[2]||(o[2]=l=>u(a).order_type=l),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:t(()=>[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"}),e(s,{value:7,label:"\u91C7\u8D2D\u8BA2\u5355"}),e(s,{value:8,label:"\u5176\u4ED6\u8BA2\u5355"})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:t(()=>[F("div",Se,[e(g,{modelValue:u(a).store_id,"onUpdate:modelValue":o[3]||(o[3]=l=>u(a).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":Q,loading:u(h),style:{width:"240px"},onChange:u(U)},{default:t(()=>[(i(!0),$(Be,null,ye(u(O),l=>(i(),b(s,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(d,{label:"\u652F\u4ED8\u8BA2\u5355\u53F7",prop:"order_sn"},{default:t(()=>[e(m,{class:"w-[200px]",modelValue:u(a).order_sn,"onUpdate:modelValue":o[4]||(o[4]=l=>u(a).order_sn=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u5165\u5E93\u5355\u53F7",prop:"order_rk"},{default:t(()=>[e(m,{class:"w-[200px]",modelValue:u(a).order_rk,"onUpdate:modelValue":o[5]||(o[5]=l=>u(a).order_rk=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5165\u5E93\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u51FA\u5E93\u5355\u53F7",prop:"order_ck"},{default:t(()=>[e(m,{class:"w-[200px]",modelValue:u(a).order_ck,"onUpdate:modelValue":o[6]||(o[6]=l=>u(a).order_ck=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u5907\u6CE8",prop:"mark"},{default:t(()=>[e(m,{class:"w-[200px]",modelValue:u(a).mark,"onUpdate:modelValue":o[7]||(o[7]=l=>u(a).mark=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u51FA\u5165\u5E93",prop:"warehouse_type"},{default:t(()=>[e(g,{modelValue:u(a).warehouse_type,"onUpdate:modelValue":o[8]||(o[8]=l=>u(a).warehouse_type=l),placeholder:"\u8BF7\u9009\u62E9\u51FA\u5165\u5E93\u7C7B\u578B",style:{width:"180px"}},{default:t(()=>[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(d,null,{default:t(()=>[e(_,{type:"primary",onClick:u(U)},{default:t(()=>o[12]||(o[12]=[p("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(_,{onClick:u(q)},{default:t(()=>o[13]||(o[13]=[p("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(J,{class:"ml-2.5","fetch-fun":u(Y),params:u(a),"page-size":u(v).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),w((i(),b(S,{class:"!border-none",shadow:"never"},{default:t(()=>[e(D,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:t(()=>[e(_,{type:"primary"},{default:t(()=>o[14]||(o[14]=[p(" \u6DFB\u52A0 ")])),_:1})]),_:1}),e(D,{to:{path:"beforehand_order_cart_info"},class:"ml-4"},{default:t(()=>[e(_,{type:"primary"},{default:t(()=>o[15]||(o[15]=[p(" \u5546\u54C1\u5217\u8868 ")])),_:1})]),_:1}),F("div",Te,[e(ee,{data:u(v).lists,onSelectionChange:z},{default:t(()=>[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:t(({row:l})=>[F("div",null,C(l.admin_name),1),F("div",null,C(l.create_time),1)]),_:1}),e(r,{label:"\u5355\u53F7",prop:"order_id","show-overflow-tooltip":"",width:"180"},{default:t(({row:l})=>[F("div",null,C(l.order_id),1),F("div",null,C(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:"\u4EE3\u8D2D\u5907\u6CE8",prop:"other_data.store_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:t(({row:l})=>[e(X,{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:t(({row:l})=>[e(D,{to:{path:"beforehand_order_details",query:{id:l.id}},class:"ml-4"},{default:t(()=>o[16]||(o[16]=[p(" \u8BE6\u60C5 ")])),_:2},1032,["to"]),w((i(),b(_,{link:"",onClick:A=>I(l)},{default:t(()=>o[17]||(o[17]=[p(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[k,["beforehand_order.beforehand_order/edit"]]]),w((i(),b(_,{type:"danger",link:"",onClick:A=>j(l.id)},{default:t(()=>o[18]||(o[18]=[p(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[k,["beforehand_order.beforehand_order/delete"]]]),w((i(),b(_,{onClick:A=>G(l.id),link:""},{default:t(()=>o[19]||(o[19]=[p(" \u6253\u5370\u4F9B\u8D27\u5355 ")])),_:2},1032,["onClick"])),[[k,["beforehand_order.beforehand_order/supply_order"]]]),l.uid>0?w((i(),b(_,{key:0,onClick:A=>H(l.id),link:""},{default:t(()=>o[20]||(o[20]=[p(" \u6253\u5370\u4F1A\u5458\u5355 ")])),_:2},1032,["onClick"])),[[k,["beforehand_order.beforehand_order/supply_order"]]]):L("",!0)]),_:1})]),_:1},8,["data"])]),F("div",$e,[e(oe,{modelValue:u(v),"onUpdate:modelValue":o[9]||(o[9]=l=>x(v)?v.value=l:null),onChange:u(E)},null,8,["modelValue","onChange"])])]),_:1})),[[le,u(v).loading]]),u(B)?(i(),b(Oe,{key:0,ref_key:"editRef",ref:y,onSuccess:u(E),onClose:o[10]||(o[10]=l=>B.value=!1)},null,8,["onSuccess"])):L("",!0),e(Ue,{modelValue:u(V),"onUpdate:modelValue":o[11]||(o[11]=l=>x(V)?V.value=l:null),ref_key:"drawerRef",ref:R},null,8,["modelValue"])])}}});export{$o as default};
|