2024-08-23 15:04:43 +08:00
|
|
|
import{U as le,J as ae,K as re,D as se,C as ue,w as ne,F as ie,L as pe,M as me,N as de,O as ce}from"./element-plus.4a7d92a3.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as fe}from"./usePaging.6a6670f9.js";import{u as he}from"./useDictOptions.6ebe388e.js";import{g as ve,h as we}from"./warehouse_order.0f187947.js";import"./lodash.9dc701ad.js";import{f as Ee}from"./index.0778bf8b.js";import{_ as Ce}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.f2c7a655.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.d8101642.js";import{a as De}from"./system_store.f60ed7da.js";import{h as T}from"./moment.40bc58bf.js";import{a as Fe}from"./supplier.17029d7c.js";import{d as O,s as U,r as i,Z as ge,af as ke,ap as ye,o as n,c as D,U as e,L as a,u as t,a as F,T as M,a9 as Y,K as c,j as R,R as v,M as $,Q as N,n as Ve}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ca7c84c9.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.42c4cd5f.js";import"./store_product.02f5ffd5.js";import"./store_branch_product.b5e4744a.js";import"./warehouse_product_storege.1320d99d.js";import"./warehouse_product.647aa145.js";const Be={class:"flex items-center mr-4"},xe={class:"mt-4"},Le={class:"flex mt-4 justify-end"},Se=O({name:"warehouseOrderLists"}),Vo=O({...Se,setup(Te){const P=U(),C=U(),g=i(!1),b=i(!1),r=ge({warehouse_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:""}),A=i([]),I=u=>{A.value=u.map(({id:o})=>o)},{dictData:k}=he(""),{pager:_,getLists:m,resetParams:j,resetPage:y}=fe({fetchFun:we,params:r}),K=async u=>{await Ee.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:u}),m()},W=async u=>{var o,f;b.value=!0,await Ve(),(o=C.value)==null||o.open(),(f=C.value)==null||f.getDetail(u)},p=i([]),q=()=>{p.value[0]&&p.value[1]?(r.start_time=T(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=T(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),m()},w=i(!1),V=i([]),z=(u="")=>{w.value=!0,De({name:u,page_size:50}).then(o=>{V.value=o.lists,setTimeout(()=>{w.value=!1},300)}).catch(o=>{setTimeout(()=>{w.value=!1},300)})},E=i(!1),B=i([]),J=(u="")=>{E.value=!0,Fe({}).then(o=>{B.value=o.lists,setTimeout(()=>{E.value=!1},300)}).catch(o=>{setTimeout(()=>{E.value=!1},300)})};return m(),(u,o)=>{const f=ae,x=re,d=se,L=ue,Q=le,h=ne,Z=ie,S=pe,G=ke("router-link"),s=me,H=de,X=_e,ee=ye("perms"),oe=ce;return n(),D("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(Z,{class:"mb-[-16px]",model:t(r),inline:""},{default:a(()=>[e(d,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:a(()=>[F("div",Be,[e(x,{modelValue:t(r).store_id,"onUpdate:modelValue":o[0]||(o[0]=l=>t(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":z,loading:t(w),style:{width:"240px"},onChange:t(y)},{default:a(()=>[(n(!0),D(M,null,Y(t(V),l=>(n(),c(f,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelVal
|