2024-08-18 12:11:00 +08:00
|
|
|
import{U as le,J as ae,K as ue,D as re,C as se,w as ie,F as ne,L as pe,M as de,b as me,N as ce,O as _e}from"./element-plus.4a7d92a3.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as he}from"./index.vue_vue_type_script_setup_true_lang.196cf12b.js";import{u as we}from"./usePaging.6a6670f9.js";import{u as ve}from"./useDictOptions.69165381.js";import{d as U,e as Ee,f as be}from"./warehouse_product.3ed8fc17.js";import{d as N,s as Fe,r as d,Z as Ce,i as ge,af as De,ap as ke,o as i,c as D,U as e,L as a,u as t,a as b,T as M,a9 as P,K as _,j as S,R as f,M as F,S as ye,Q as Y,n as Ve}from"./@vue.18505fe0.js";import"./lodash.9dc701ad.js";import{f as xe}from"./index.3c35f968.js";import"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.d3e71358.js";import{a as Be}from"./system_store.440b1fac.js";import{h as A}from"./moment.40bc58bf.js";import{a as Le}from"./supplier.9ff47432.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"./index.8a199d83.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.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.vue_vue_type_script_setup_true_name_systemStoreLists_lang.2f666e3f.js";import"./store_product.7de0f890.js";import"./store_branch_product.df8d2336.js";import"./warehouse_product_storege.4b1112e3.js";import"./warehouse.b4685452.js";const Te={class:"flex items-center mr-4"},Ue={class:"mt-4"},Me={style:{color:"red"}},Pe={class:"flex mt-4 justify-end"},Se=N({name:"warehouseProductLists"}),To=N({...Se,setup(Ye){const k=Fe(),$=d(!1),u=Ce({warehouse_id:"",product_id:"",financial_pm:1,store_id:"",bar_code:"",start_time:"",end_time:"",supplier_id:""}),z=d([]),I=s=>{z.value=s.map(({id:l})=>l)};ve("warehouse_produc_pm");const{pager:m,getLists:h,resetParams:R,resetPage:y}=we({fetchFun:U,params:u}),W=async s=>{var l,w;$.value=!0,await Ve(),(l=k.value)==null||l.open("edit"),(w=k.value)==null||w.setFormData(s)},j=async s=>{await Ee({id:s}),h()},K=async s=>{await xe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await be({id:s}),h()},n=d([]),O=()=>{n.value[0]&&n.value[1]?(u.start_time=A(n.value[0]).format("YYYY-MM-DD")+" 00:00:00",u.end_time=A(n.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(u.start_time="",u.end_time=""),h()},v=d(!1),V=d([]),q=(s="")=>{v.value=!0,Be({name:s,page_size:50}).then(l=>{V.value=l.lists,setTimeout(()=>{v.value=!1},300)}).catch(l=>{setTimeout(()=>{v.value=!1},300)})},E=d(!1),x=d([]),J=(s="")=>{E.value=!0,Le({}).then(l=>{x.value=l.lists,setTimeout(()=>{E.value=!1},300)}).catch(l=>{setTimeout(()=>{E.value=!1},300)})};return ge(()=>{h()}),(s,l)=>{const w=ae,B=ue,p=re,C=se,Q=le,c=ie,Z=he,G=ne,L=pe,H=De("router-link"),r=de,X=me,ee=ce,oe=fe,g=ke("perms"),te=_e;return i(),D("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(G,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(p,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:a(()=>[b("div",Te,[e(B,{modelValue:t(u).store_id,"onUpdate:modelValue":l[0]||(l[0]=o=>t(u).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":q,loading:t(v),style:{width:"240px"},onChange:t(y)},{default:a(()=>[(i(!0),D(M,null,P(t(V),o=>(i(),_(
|