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.de23ebd7.js";import{u as he}from"./usePaging.f8c888e4.js";import{u as Ee}from"./useDictOptions.55b9d81e.js";import{i as U,j as Ce}from"./warehouse_order.89b6775e.js";import"./lodash.4e6d2a38.js";import{f as Fe}from"./index.b9876e7a.js";import{_ as ge}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.44bb7a87.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.41c0211f.js";import{a as De}from"./system_store.ed9807d6.js";import{h as Y}from"./moment.40bc58bf.js";import{a as ke}from"./supplier.66f0c20e.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.f62f1d06.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.0845fdba.js";import"./store_product.2a092f64.js";import"./store_branch_product.8b79ddee.js";import"./warehouse_product_storege.9cc18cb6.js";import"./warehouse_product.8ac666c8.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.1f0c1790.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",o
|