2 lines
7.9 KiB
JavaScript
2 lines
7.9 KiB
JavaScript
import{U as re,C as se,D as ue,J as ie,K as ne,w as me,F as pe,L as de,M as _e,N as ce,O as fe}from"./element-plus.91c68cc0.js";import{_ as ve}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as we}from"./index.vue_vue_type_script_setup_true_lang.9a62fd20.js";import{u as he}from"./usePaging.f8c888e4.js";import{u as Ee}from"./useDictOptions.55a5f7ca.js";import{i as U,j as Ce}from"./warehouse_order.397a4451.js";import"./lodash.4e6d2a38.js";import{f as Fe}from"./index.45e3c1f0.js";import{_ as ge}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.084d457e.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.4256139a.js";import{a as De}from"./system_store.7a4ecbcf.js";import{h as Y}from"./moment.40bc58bf.js";import{a as ke}from"./supplier.bc143174.js";import{d as z,s as $,r as n,Z as ye,i as Ve,af as Be,ap as xe,o as i,c as b,U as o,L as a,u as t,a as D,T as R,a9 as N,K as p,j as O,R as w,M as k,Q as P,n as Le}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.b0600572.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"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.922c0e0d.js";import"./store_product.4b77192d.js";import"./store_branch_product.fd82e9de.js";import"./warehouse_product_storege.c5e43166.js";import"./warehouse_product.fc21be6d.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.48cda801.js";const Se={class:"flex items-center mr-4"},Te={class:"mt-4"},Me={class:"flex mt-4 justify-end"},Ue=z({name:"warehouseOrderLists"}),Yo=z({...Ue,setup(Ye){const j=$(),C=$(),y=n(!1),F=n(!1),r=ye({warehouse_id:"",product_name:"",financial_pm:0,store_id:"",start_time:"",end_time:"",code:"",supplier_id:""}),A=n([]),I=u=>{A.value=u.map(({id:e})=>e)},{dictData:V}=Ee(""),{pager:d,getLists:_,resetParams:K,resetPage:g}=he({fetchFun:U,params:r}),W=async u=>{await Fe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ce({id:u}),_()},q=async u=>{var e,f;F.value=!0,await Le(),(e=C.value)==null||e.open(),(f=C.value)==null||f.getDetail(u)},m=n([]),J=()=>{m.value[0]&&m.value[1]?(r.start_time=Y(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=Y(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),_()},h=n(!1),B=n([]),Q=(u="")=>{h.value=!0,De({name:u,page_size:50}).then(e=>{B.value=e.lists,setTimeout(()=>{h.value=!1},300)}).catch(e=>{setTimeout(()=>{h.value=!1},300)})},E=n(!1),x=n([]),Z=(u="")=>{E.value=!0,ke({mer_name:u}).then(e=>{x.value=e.lists,setTimeout(()=>{E.value=!1},300)}).catch(e=>{setTimeout(()=>{E.value=!1},300)})};return Ve(()=>{_()}),(u,e)=>{const f=se,c=ue,L=ie,S=ne,G=re,v=me,H=we,X=pe,T=de,ee=Be("router-link"),s=_e,oe=ce,te=ve,M=xe("perms"),le=fe;return i(),b("div",null,[o(T,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(X,{class:"mb-[-16px]",model:t(r),inline:""},{default:a(()=>[o(c,{label:"\u5355\u53F7",prop:"code"},{default:a(()=>[o(f,{class:"w-[280px]",modelValue:t(r).code,"onUpdate:modelValue":e[0]||(e[0]=l=>t(r).code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u53F7",onChange:t(g)},null,8,["modelValue","onChange"])]),_:1}),o(c,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:a(()=>[D("div",Se,[o(S,{modelValue:t(r).store_id,"onUpdate:modelValue":e[1]||(e[1]=l=>t(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":Q,loading:t(h),style:{width:"240px"},onChange:t(g)},{default:a(()=>[(i(!0),b(R,null,N(t(B),l=>(i(),p(L,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),o(c,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:a(()=>[o(f,{class:"w-[280px]",modelValue:t(r).warehouse_id,"onUpdate:modelValue":e[2]||(e[2]=l=>t(r).warehouse_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),o(c,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:a(()=>[o(S,{modelValue:t(r).supplier_id,"onUpdate:modelValue":e[3]||(e[3]=l=>t(r).supplier_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":Z,loading:t(E),style:{width:"240px"}},{default:a(()=>[(i(!0),b(R,null,N(t(x),l=>(i(),p(L,{key:l.id,label:l.mer_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),o(c,{label:"\u65E5\u671F",prop:"create_time"},{default:a(()=>[o(G,{modelValue:t(m),"onUpdate:modelValue":e[4]||(e[4]=l=>O(m)?m.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}),o(c,null,{default:a(()=>[o(v,{type:"primary",onClick:t(g)},{default:a(()=>e[8]||(e[8]=[w("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(v,{onClick:t(K)},{default:a(()=>e[9]||(e[9]=[w("\u91CD\u7F6E")])),_:1},8,["onClick"]),o(H,{class:"ml-2.5","fetch-fun":t(U),params:t(r),"page-size":t(d).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),k((i(),p(T,{class:"!border-none",shadow:"never"},{default:a(()=>[k((i(),p(ee,{to:{path:"import"},class:"ml-4"},{default:a(()=>[o(v,{type:"primary"},{default:a(()=>e[10]||(e[10]=[w(" \u51FA\u5E93 ")])),_:1})]),_:1})),[[M,["import"]]]),D("div",Te,[o(oe,{data:t(d).lists,onSelectionChange:I},{default:a(()=>[o(s,{type:"selection",width:"55"}),o(s,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),o(s,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),o(s,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),o(s,{label:"\u95E8\u5E97",prop:"system_store","show-overflow-tooltip":""}),o(s,{label:"\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),o(s,{label:"\u72B6\u6001",prop:"financial_pm_name","show-overflow-tooltip":""}),o(s,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),o(s,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),o(s,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),o(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[o(v,{type:"primary",link:"",onClick:ae=>q(l)},{default:a(()=>e[11]||(e[11]=[w("\u8BE6\u60C5")])),_:2},1032,["onClick"]),k((i(),p(v,{type:"danger",link:"",onClick:ae=>W(l.id)},{default:a(()=>e[12]||(e[12]=[w(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[M,["warehouse_order.warehouse_order/delete"]]])]),_:1})]),_:1},8,["data"])]),D("div",Me,[o(te,{modelValue:t(d),"onUpdate:modelValue":e[5]||(e[5]=l=>O(d)?d.value=l:null),onChange:t(_)},null,8,["modelValue","onChange"])])]),_:1})),[[le,t(d).loading]]),t(y)?(i(),p(ge,{key:0,ref_key:"editRef",ref:j,"dict-data":t(V),onSuccess:t(_),onClose:e[6]||(e[6]=l=>y.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0),t(F)?(i(),p(be,{key:1,ref_key:"detailsRef",ref:C,onSuccess:t(_),onClose:e[7]||(e[7]=l=>F.value=!1),dictData:t(V)},null,8,["onSuccess","dictData"])):P("",!0)])}}});export{Yo as default};
|