lihaiMiddleOfficeAdminWeb/build/admin/assets/outbound_list.5f213a2b.js
2024-11-15 17:56:00 +08:00

2 lines
7.0 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.91c68cc0.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.d27401aa.js";import{u as re}from"./usePaging.f8c888e4.js";import{u as se}from"./useDictOptions.25266882.js";import{d as F}from"./warehouse_product.dec47730.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 w,T as pe,a9 as me,K as h,j as D,R as k,M as de,S as _e,Q as ce}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import"./index.3110f7ca.js";import{_ as fe}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.14db12dc.js";import{a as we}from"./system_store.8bb81272.js";import{h as x}from"./moment.40bc58bf.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.3a4b27f9.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.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.b913b43c.js";import"./store_product.0d44ac0b.js";import"./store_branch_product.19c09af8.js";import"./warehouse_product_storege.55da50aa.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.f7e10bf2.js";import"./warehouse.5a147683.js";import"./supplier.8d7c175b.js";const he={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"}),go=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=c=>{S.value=c.map(({id:t})=>t)},{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()},_=p(!1),v=p([]),Y=(c="")=>{_.value=!0,we({name:c,page_size:50}).then(t=>{v.value=t.lists,setTimeout(()=>{_.value=!1},300)}).catch(t=>{setTimeout(()=>{_.value=!1},300)})};return ie(()=>{d()}),(c,t)=>{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":t[0]||(t[0]=l=>o(a).code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:r(()=>[w("div",he,[e(N,{modelValue:o(a).store_id,"onUpdate:modelValue":t[1]||(t[1]=l=>o(a).store_id=l),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(E)},{default:r(()=>[(m(!0),V(pe,null,me(o(v),l=>(m(),h(P,{key:l.id,label:l.name,value:l.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":t[2]||(t[2]=l=>o(a).warehouse_id=l),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":t[3]||(t[3]=l=>o(a).product_id=l),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":t[4]||(t[4]=l=>o(a).bar_code=l),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":t[5]||(t[5]=l=>D(u)?u.value=l: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(()=>t[8]||(t[8]=[k("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(g,{onClick:o(M)},{default:r(()=>t[9]||(t[9]=[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(),h(C,{class:"!border-none",shadow:"never"},{default:r(()=>[w("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:l})=>[e($,{style:{width:"50px",height:"50px"},src:l.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:l})=>[w("span",Ee,_e(l.mark),1)]),_:1})]),_:1},8,["data"])]),w("div",ve,[e(A,{modelValue:o(i),"onUpdate:modelValue":t[6]||(t[6]=l=>D(i)?i.value=l:null),onChange:o(d)},null,8,["modelValue","onChange"])])]),_:1})),[[K,o(i).loading]]),o(b)?(m(),h(fe,{key:0,ref_key:"editRef",ref:B,"dict-data":o(U),onSuccess:o(d),onClose:t[7]||(t[7]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):ce("",!0)])}}});export{go as default};