2 lines
6.9 KiB
JavaScript
2 lines
6.9 KiB
JavaScript
import{U as O,C as q,D as J,J as Q,K 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 le}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.6a7afe63.js";import{u as re}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.f757f46e.js";import{d as F}from"./warehouse_product.72318036.js";import{d as y,s as ue,r as p,Z as ne,i as ie,o as m,c as V,U as e,L as r,u as o,a as h,T as pe,a9 as me,K as w,j as D,R as k,M as de,S as ce,Q as _e}from"./@vue.18505fe0.js";import"./lodash.2473fc51.js";import"./index.914e16f9.js";import{_ as fe}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.9a15859c.js";import{a as he}from"./system_store.0a321149.js";import{h as x}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.da3823b2.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.b651f149.js";import"./store_product.22e2a1b2.js";import"./store_branch_product.9586a3e4.js";import"./warehouse_product_storege.a3485e96.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.2bd19741.js";import"./warehouse.06fa072e.js";import"./supplier.6c2e696a.js";const we={class:"flex items-center mr-4"},be={class:"mt-4"},Ee={style:{color:"red"}},ve={class:"flex mt-4 justify-end"},ge=y({name:"warehouseProductLists"}),bo=y({...ge,setup(Ce){const B=ue(),b=p(!1),a=ne({warehouse_id:"",product_id:"",financial_pm:0,store_id:"",bar_code:"",start_time:"",code:"",end_time:""}),S=p([]),L=_=>{S.value=_.map(({id:l})=>l)},{dictData:U}=se("warehouse_produc_pm"),{pager:i,getLists:d,resetParams:M,resetPage:E}=re({fetchFun:F,params:a}),u=p([]),T=()=>{u.value[0]&&u.value[1]?(a.start_time=x(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=x(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),d()},c=p(!1),v=p([]),Y=(_="")=>{c.value=!0,he({name:_,page_size:50}).then(l=>{v.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return ie(()=>{d()}),(_,l)=>{const f=q,n=J,P=Q,N=W,R=O,g=Z,z=ae,I=G,C=H,s=X,$=ee,j=oe,A=le,K=te;return m(),V("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(I,{class:"mb-[-16px]",model:o(a),inline:""},{default:r(()=>[e(n,{label:"\u5355\u53F7",prop:"code"},{default:r(()=>[e(f,{class:"w-[280px]",modelValue:o(a).code,"onUpdate:modelValue":l[0]||(l[0]=t=>o(a).code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:r(()=>[h("div",we,[e(N,{modelValue:o(a).store_id,"onUpdate:modelValue":l[1]||(l[1]=t=>o(a).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":Y,loading:o(c),style:{width:"240px"},onChange:o(E)},{default:r(()=>[(m(!0),V(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(n,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:r(()=>[e(f,{class:"w-[280px]",modelValue:o(a).warehouse_id,"onUpdate:modelValue":l[2]||(l[2]=t=>o(a).warehouse_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5546\u54C1",prop:"product_id"},{default:r(()=>[e(f,{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(n,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:r(()=>[e(f,{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(n,{label:"\u65E5\u671F",prop:"create_time"},{default:r(()=>[e(R,{modelValue:o(u),"onUpdate:modelValue":l[5]||(l[5]=t=>D(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:T},null,8,["modelValue"])]),_:1}),e(n,null,{default:r(()=>[e(g,{type:"primary",onClick:o(E)},{default:r(()=>[k("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(g,{onClick:o(M)},{default:r(()=>[k("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(z,{class:"ml-2.5","fetch-fun":o(F),params:o(a),"page-size":o(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),de((m(),w(C,{class:"!border-none",shadow:"never"},{default:r(()=>[h("div",be,[e(j,{data:o(i).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})=>[h("span",Ee,ce(t.mark),1)]),_:1})]),_:1},8,["data"])]),h("div",ve,[e(A,{modelValue:o(i),"onUpdate:modelValue":l[6]||(l[6]=t=>D(i)?i.value=t:null),onChange:o(d)},null,8,["modelValue","onChange"])])]),_:1})),[[K,o(i).loading]]),o(b)?(m(),w(fe,{key:0,ref_key:"editRef",ref:B,"dict-data":o(U),onSuccess:o(d),onClose:l[7]||(l[7]=t=>b.value=!1)},null,8,["dict-data","onSuccess"])):_e("",!0)])}}});export{bo as default};
|