2 lines
7.6 KiB
JavaScript
2 lines
7.6 KiB
JavaScript
import{V as G,N as H,O as W,D as Z,C as J,w as Q,F as X,K as ee,G as oe,b as te,H as le,I as ae}from"./element-plus.8e273e86.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.836a98a3.js";import{u as se}from"./usePaging.f8c888e4.js";import{u as ie}from"./useDictOptions.f24011b2.js";import{e as k}from"./warehouse_product.d77018be.js";import{d as U,s as pe,r as p,Z as ne,i as me,o as d,c as v,U as e,L as u,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.41b9567d.js";import"./index.5ea969a0.js";import"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.cbfb57a2.js";import{a as ce}from"./system_store.690ddfdc.js";import{h as S}from"./moment.40bc58bf.js";import{a as fe}from"./supplier.55b279ea.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.5cc5edf3.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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.259efe0d.js";import"./store_product.4adc2473.js";import"./store_branch_product.da77d644.js";import"./warehouse_product_storege.8617e7ad.js";import"./warehouse_order.6c71f66a.js";import"./warehouse.053818e0.js";const we={class:"flex items-center mr-4"},he={class:"mt-4"},ve={style:{color:"red"}},be={class:"flex mt-4 justify-end"},Ee=U({name:"warehouseProductLists"}),Eo=U({...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:""}),M=p([]),Y=m=>{M.value=m.map(({id:o})=>o)};ie("warehouse_produc_pm");const{pager:n,getLists:w,resetParams:P,resetPage:E}=se({fetchFun:k,params:a}),s=p([]),I=()=>{s.value[0]&&s.value[1]?(a.start_time=S(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=S(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),w()},_=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([]),N=(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(()=>{w()}),(m,o)=>{const C=H,D=W,i=Z,h=J,A=G,V=Q,R=ue,j=X,x=ee,r=oe,K=te,O=le,$=re,q=ae;return d(),v("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(j,{class:"mb-[-16px]",model:t(a),inline:""},{default:u(()=>[e(i,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:u(()=>[f("div",we,[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:u(()=>[(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:u(()=>[e(h,{class:"w-[280px]",modelValue:t(a).warehouse_id,"onUpdate:modelValue":o[1]||(o[1]=l=>t(a).warehouse_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:u(()=>[e(D,{modelValue:t(a).supplier_id,"onUpdate:modelValue":o[2]||(o[2]=l=>t(a).supplier_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:t(c),style:{width:"240px"}},{default:u(()=>[(d(!0),v(y,null,B(t(g),l=>(d(),b(C,{key:l.id,label:l.mer_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(i,{label:"\u5546\u54C1",prop:"product_id"},{default:u(()=>[e(h,{class:"w-[280px]",modelValue:t(a).product_id,"onUpdate:modelValue":o[3]||(o[3]=l=>t(a).product_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:u(()=>[e(h,{class:"w-[280px]",modelValue:t(a).bar_code,"onUpdate:modelValue":o[4]||(o[4]=l=>t(a).bar_code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u65E5\u671F",prop:"create_time"},{default:u(()=>[e(A,{modelValue:t(s),"onUpdate:modelValue":o[5]||(o[5]=l=>L(s)?s.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:I},null,8,["modelValue"])]),_:1}),e(i,null,{default:u(()=>[e(V,{type:"primary",onClick:t(E)},{default:u(()=>o[7]||(o[7]=[T("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(V,{onClick:t(P)},{default:u(()=>o[8]||(o[8]=[T("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":t(k),params:t(a),"page-size":t(n).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),de((d(),b(x,{class:"!border-none",shadow:"never"},{default:u(()=>[f("div",he,[e(O,{data:t(n).lists,onSelectionChange:Y},{default:u(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"id",prop:"id","show-overflow-tooltip":""}),e(r,{label:"\u5355\u53F7",prop:"code",width:"180","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(r,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(r,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(r,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(r,{label:"\u56FE\u7247",prop:"image","min-width":"80"},{default:u(({row:l})=>[e(K,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(r,{label:"\u51FA\u5165\u5E93",prop:"financial_pm_name","show-overflow-tooltip":""}),e(r,{label:"\u6279\u6B21",prop:"batch","show-overflow-tooltip":""}),e(r,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(r,{label:"\u91C7\u8D2D\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(r,{label:"\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(r,{label:"\u751F\u4EA7\u671F",prop:"manufacture","show-overflow-tooltip":""}),e(r,{label:"\u4FDD\u8D28\u671F",prop:"expiration_date","show-overflow-tooltip":""}),e(r,{label:"\u5907\u6CE8","show-overflow-tooltip":""},{default:u(({row:l})=>[f("span",ve,_e(l.mark),1)]),_:1})]),_:1},8,["data"])]),f("div",be,[e($,{modelValue:t(n),"onUpdate:modelValue":o[6]||(o[6]=l=>L(n)?n.value=l:null),onChange:t(w)},null,8,["modelValue","onChange"])])]),_:1})),[[q,t(n).loading]])])}}});export{Eo as default};
|