moreShopAdmin/dist/admin/assets/index.afa5aa0b.js

2 lines
7.4 KiB
JavaScript

import{U as J,J as W,K as Z,D as G,C as H,w as Q,F as X,L as ee,M as oe,b as te,N as le,O as ae}from"./element-plus.4a7d92a3.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.9ea6b13d.js";import{u as se}from"./usePaging.6a6670f9.js";import{u as ie}from"./useDictOptions.7690fe0d.js";import{d as k}from"./warehouse_product.e85a6efd.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 o,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.18505fe0.js";import"./lodash.9dc701ad.js";import"./index.b17b0724.js";import"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.9e851e07.js";import{a as ce}from"./system_store.0064c44e.js";import{h as U}from"./moment.40bc58bf.js";import{a as fe}from"./supplier.b516352f.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.bc1a2af8.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.b6ad5464.js";import"./store_product.959dd79f.js";import"./store_branch_product.94f8eeba.js";import"./warehouse_product_storege.cc8d987c.js";import"./warehouse_order.aa4be23b.js";import"./warehouse.2752478d.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"}),wo=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:l})=>l)};ie("warehouse_produc_pm");const{pager:n,getLists:h,resetParams:P,resetPage:E}=se({fetchFun:k,params:a}),s=p([]),z=()=>{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([]),I=(m="")=>{_.value=!0,ce({name:m,page_size:50}).then(l=>{F.value=l.lists,setTimeout(()=>{_.value=!1},300)}).catch(l=>{setTimeout(()=>{_.value=!1},300)})},c=p(!1),g=p([]),N=(m="")=>{c.value=!0,fe({mer_name:m}).then(l=>{g.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return me(()=>{h()}),(m,l)=>{const C=W,D=Z,i=G,w=H,A=J,V=Q,R=ue,j=X,x=ee,u=oe,K=te,O=le,$=re,q=ae;return d(),v("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(j,{class:"mb-[-16px]",model:o(a),inline:""},{default:r(()=>[e(i,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:r(()=>[f("div",he,[e(D,{modelValue:o(a).store_id,"onUpdate:modelValue":l[0]||(l[0]=t=>o(a).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":I,loading:o(_),style:{width:"240px"},onChange:o(E)},{default:r(()=>[(d(!0),v(y,null,B(o(F),t=>(d(),b(C,{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(w,{class:"w-[280px]",modelValue:o(a).warehouse_id,"onUpdate:modelValue":l[1]||(l[1]=t=>o(a).warehouse_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:r(()=>[e(D,{modelValue:o(a).supplier_id,"onUpdate:modelValue":l[2]||(l[2]=t=>o(a).supplier_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:o(c),style:{width:"240px"}},{default:r(()=>[(d(!0),v(y,null,B(o(g),t=>(d(),b(C,{key:t.id,label:t.mer_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(i,{label:"\u5546\u54C1",prop:"product_id"},{default:r(()=>[e(w,{class:"w-[280px]",modelValue:o(a).product_id,"onUpdate:modelValue":l[3]||(l[3]=t=>o(a).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(w,{class:"w-[280px]",modelValue:o(a).bar_code,"onUpdate:modelValue":l[4]||(l[4]=t=>o(a).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(A,{modelValue:o(s),"onUpdate:modelValue":l[5]||(l[5]=t=>L(s)?s.value=t:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:z},null,8,["modelValue"])]),_:1}),e(i,null,{default:r(()=>[e(V,{type:"primary",onClick:o(E)},{default:r(()=>[T("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(V,{onClick:o(P)},{default:r(()=>[T("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":o(k),params:o(a),"page-size":o(n).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),de((d(),b(x,{class:"!border-none",shadow:"never"},{default:r(()=>[f("div",we,[e(O,{data:o(n).lists,onSelectionChange:Y},{default:r(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"id",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(u,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(u,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(u,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(u,{label:"\u56FE\u7247",prop:"image","min-width":"80"},{default:r(({row:t})=>[e(K,{style:{width:"50px",height:"50px"},src:t.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(u,{label:"\u51FA\u5165\u5E93",prop:"financial_pm_name","show-overflow-tooltip":""}),e(u,{label:"\u6279\u6B21",prop:"batch","show-overflow-tooltip":""}),e(u,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(u,{label:"\u91C7\u8D2D\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(u,{label:"\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u751F\u4EA7\u671F",prop:"manufacture","show-overflow-tooltip":""}),e(u,{label:"\u4FDD\u8D28\u671F",prop:"expiration_date","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8","show-overflow-tooltip":""},{default:r(({row:t})=>[f("span",ve,_e(t.mark),1)]),_:1})]),_:1},8,["data"])]),f("div",be,[e($,{modelValue:o(n),"onUpdate:modelValue":l[6]||(l[6]=t=>L(n)?n.value=t:null),onChange:o(h)},null,8,["modelValue","onChange"])])]),_:1})),[[q,o(n).loading]])])}}});export{wo as default};