2 lines
6.6 KiB
JavaScript
2 lines
6.6 KiB
JavaScript
import{U as O,J as q,K as J,D as Q,C as W,w as Z,F as G,L as H,M as X,b as ee,N as oe,O as te}from"./element-plus.a63a26dd.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.69c35136.js";import{u as re}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.658ed5b6.js";import{d as F}from"./warehouse_product.10550c77.js";import{d as x,s as ue,r as p,Z as ne,i as ie,o as m,c as D,U as e,L as r,u as o,a as f,T as pe,a9 as me,K as w,j as V,R as k,M as de,S as _e,Q as ce}from"./@vue.18505fe0.js";import"./lodash.2473fc51.js";import"./index.f340ee36.js";import{_ as fe}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.99362f84.js";import{a as he}from"./system_store.0dcee76b.js";import{h as y}from"./moment.40bc58bf.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.53010578.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.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.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.c39ac975.js";import"./store_product.1399a3b8.js";import"./store_branch_product.80a6c3ac.js";import"./warehouse_product_storege.eaac67da.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.21b8547c.js";import"./warehouse.9fedae9d.js";import"./supplier.b1c92d17.js";const we={class:"flex items-center mr-4"},Ee={class:"mt-4"},be={style:{color:"red"}},ve={class:"flex mt-4 justify-end"},ge=x({name:"warehouseProductLists"}),Eo=x({...ge,setup(Ce){const B=ue(),E=p(!1),l=ne({warehouse_id:"",product_id:"",financial_pm:0,store_id:"",bar_code:"",start_time:"",end_time:""}),S=p([]),L=c=>{S.value=c.map(({id:a})=>a)},{dictData:M}=se("warehouse_produc_pm"),{pager:n,getLists:d,resetParams:T,resetPage:b}=re({fetchFun:F,params:l}),u=p([]),U=()=>{u.value[0]&&u.value[1]?(l.start_time=y(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",l.end_time=y(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(l.start_time="",l.end_time=""),d()},_=p(!1),v=p([]),Y=(c="")=>{_.value=!0,he({name:c,page_size:50}).then(a=>{v.value=a.lists,setTimeout(()=>{_.value=!1},300)}).catch(a=>{setTimeout(()=>{_.value=!1},300)})};return ie(()=>{d()}),(c,a)=>{const P=q,N=J,i=Q,h=W,R=O,g=Z,z=le,I=G,C=H,s=X,$=ee,j=oe,A=ae,K=te;return m(),D("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(I,{class:"mb-[-16px]",model:o(l),inline:""},{default:r(()=>[e(i,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:r(()=>[f("div",we,[e(N,{modelValue:o(l).store_id,"onUpdate:modelValue":a[0]||(a[0]=t=>o(l).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":Y,loading:o(_),style:{width:"240px"},onChange:o(b)},{default:r(()=>[(m(!0),D(pe,null,me(o(v),t=>(m(),w(P,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(i,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:r(()=>[e(h,{class:"w-[280px]",modelValue:o(l).warehouse_id,"onUpdate:modelValue":a[1]||(a[1]=t=>o(l).warehouse_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u54C1",prop:"product_id"},{default:r(()=>[e(h,{class:"w-[280px]",modelValue:o(l).product_id,"onUpdate:modelValue":a[2]||(a[2]=t=>o(l).product_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:r(()=>[e(h,{class:"w-[280px]",modelValue:o(l).bar_code,"onUpdate:modelValue":a[3]||(a[3]=t=>o(l).bar_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u65E5\u671F",prop:"create_time"},{default:r(()=>[e(R,{modelValue:o(u),"onUpdate:modelValue":a[4]||(a[4]=t=>V(u)?u.value=t:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:U},null,8,["modelValue"])]),_:1}),e(i,null,{default:r(()=>[e(g,{type:"primary",onClick:o(b)},{default:r(()=>[k("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(g,{onClick:o(T)},{default:r(()=>[k("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(z,{class:"ml-2.5","fetch-fun":o(F),params:o(l),"page-size":o(n).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),de((m(),w(C,{class:"!border-none",shadow:"never"},{default:r(()=>[f("div",Ee,[e(j,{data:o(n).lists,onSelectionChange:L},{default:r(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"id",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(s,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(s,{label:"\u56FE\u7247",prop:"image","min-width":"80"},{default:r(({row:t})=>[e($,{style:{width:"50px",height:"50px"},src:t.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{label:"\u51FA\u5165\u5E93",prop:"financial_pm_name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),e(s,{label:"\u6279\u6B21",prop:"batch","show-overflow-tooltip":""}),e(s,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8","show-overflow-tooltip":""},{default:r(({row:t})=>[f("span",be,_e(t.mark),1)]),_:1})]),_:1},8,["data"])]),f("div",ve,[e(A,{modelValue:o(n),"onUpdate:modelValue":a[5]||(a[5]=t=>V(n)?n.value=t:null),onChange:o(d)},null,8,["modelValue","onChange"])])]),_:1})),[[K,o(n).loading]]),o(E)?(m(),w(fe,{key:0,ref_key:"editRef",ref:B,"dict-data":o(M),onSuccess:o(d),onClose:a[6]||(a[6]=t=>E.value=!1)},null,8,["dict-data","onSuccess"])):ce("",!0)])}}});export{Eo as default};
|