2024-12-20 14:46:50 +08:00
|
|
|
import{U as H,G as J,H as O,D as W,C as Z,w as Q,F as X,M as ee,I as oe,b as te,J as le,K as ae}from"./element-plus.7e54903f.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.7f121250.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.c97c8144.js";import{u as se}from"./usePaging.f8c888e4.js";import{u as ie}from"./useDictOptions.99e549ee.js";import{e as k}from"./warehouse_product.954f005e.js";import{d as M,s as pe,r as p,Z as ne,i as me,o as d,c as v,U as e,L as r,u as t,a as f,T as y,a9 as B,K as b,j as L,R as T,M as de,S as _e}from"./@vue.76ce7aa3.js";import"./lodash.905d29aa.js";import"./index.aacc8c66.js";import"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.895d853d.js";import{a as ce}from"./system_store.81f4cfe5.js";import{h as U}from"./moment.40bc58bf.js";import{a as fe}from"./supplier.5d501db3.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_order.5d6a0da7.js";import"./warehouse.8a69a927.js";const he={class:"flex items-center mr-4"},we={class:"mt-4"},ve={style:{color:"red"}},be={class:"flex mt-4 justify-end"},Ee=M({name:"warehouseProductLists"}),Eo=M({...Ee,setup(Fe){pe(),p(!1);const a=ne({warehouse_id:"",product_id:"",financial_pm:1,store_id:"",bar_code:"",start_time:"",end_time:"",supplier_id:""}),S=p([]),Y=m=>{S.value=m.map(({id:o})=>o)};ie("warehouse_produc_pm");const{pager:n,getLists:h,resetParams:P,resetPage:E}=se({fetchFun:k,params:a}),s=p([]),I=()=>{s.value[0]&&s.value[1]?(a.start_time=U(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=U(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),h()},_=p(!1),F=p([]),z=(m="")=>{_.value=!0,ce({name:m,page_size:50}).then(o=>{F.value=o.lists,setTimeout(()=>{_.value=!1},300)}).catch(o=>{setTimeout(()=>{_.value=!1},300)})},c=p(!1),g=p([]),A=(m="")=>{c.value=!0,fe({mer_name:m}).then(o=>{g.value=o.lists,setTimeout(()=>{c.value=!1},300)}).catch(o=>{setTimeout(()=>{c.value=!1},300)})};return me(()=>{h()}),(m,o)=>{const C=J,D=O,i=W,w=Z,N=H,V=Q,R=ue,j=X,x=ee,u=oe,K=te,$=le,q=re,G=ae;return d(),v("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(j,{class:"mb-[-16px]",model:t(a),inline:""},{default:r(()=>[e(i,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:r(()=>[f("div",he,[e(D,{modelValue:t(a).store_id,"onUpdate:modelValue":o[0]||(o[0]=l=>t(a).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":z,loading:t(_),style:{width:"240px"},onChange:t(E)},{default:r(()=>[(d(!0),v(y,null,B(t(F),l=>(d(),b(C,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(i,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:r(()=>[e(w,{class:"w-[280px]",model
|