2024-12-20 14:46:50 +08:00
|
|
|
import{U as re,C as se,D as ue,G as ie,H as ne,w as me,F as pe,M as de,I as _e,J as ce,K as fe}from"./element-plus.7e54903f.js";import{_ as ve}from"./index.vue_vue_type_script_setup_true_lang.7f121250.js";import{_ as we}from"./index.vue_vue_type_script_setup_true_lang.c97c8144.js";import{u as he}from"./usePaging.f8c888e4.js";import{u as Ee}from"./useDictOptions.99e549ee.js";import{i as U,j as Ce}from"./warehouse_order.5d6a0da7.js";import"./lodash.905d29aa.js";import{f as Fe}from"./index.aacc8c66.js";import{_ as ge}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.908d1a7a.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.36f09a77.js";import{a as De}from"./system_store.81f4cfe5.js";import{h as Y}from"./moment.40bc58bf.js";import{a as ke}from"./supplier.5d501db3.js";import{d as N,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 P,K as p,j as z,R as w,M as k,Q as I,n as Se}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.bd8f165a.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"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.e1e0a87d.js";import"./store_product.024dce8e.js";import"./store_branch_product.6d446e5e.js";import"./warehouse_product_storege.51c3132f.js";import"./warehouse_product.954f005e.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.791a1ccd.js";const Te={class:"flex items-center mr-4"},Le={class:"mt-4"},Me={class:"flex mt-4 justify-end"},Ue=N({name:"warehouseOrderLists"}),Yo=N({...Ue,setup(Ye){const O=$(),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:""}),j=n([]),A=u=>{j.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 Se(),(e=C.value)==null||e.open(),(f=C.value)==null||f.getDetail(u)},m=n([]),G=()=>{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([]),H=(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([]),J=(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,S=ie,T=ne,Q=re,v=me,Z=we,X=pe,L=de,ee=Be("router-link"),s=_e,oe=ce,te=ve,M=xe("perms"),le=fe;return i(),b("div",null,[o(L,{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",o
|