2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{V as O,C as q,D as G,N as H,O as Q,w as W,F as Z,K as J,G as X,b as ee,H as oe,I as te}from"./element-plus.8e273e86.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.10ed0b5b.js";import{u as re}from"./usePaging.f8c888e4.js";import{u as se}from"./useDictOptions.7e5e7ba5.js";import{e as g}from"./warehouse_product.53cdf598.js";import{d as k,s as ue,r as i,Z as ne,i as pe,o as m,c as V,U as e,L as r,u as o,a as w,T as ie,a9 as me,K as h,j as D,R as y,M as de,S as _e,Q as ce}from"./@vue.76ce7aa3.js";import"./lodash.41b9567d.js";import"./index.e0bb6cc4.js";import{_ as fe}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.79be060f.js";import{a as we}from"./system_store.38324712.js";import{h as B}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.17efc61d.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.6d522cbf.js";import"./store_product.42912146.js";import"./store_branch_product.6f724704.js";import"./warehouse_product_storege.5e87abf9.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.e2cda693.js";import"./warehouse.ea29f31e.js";import"./supplier.36f43e1f.js";const he={class:"flex items-center mr-4"},be={class:"mt-4"},ve={style:{color:"red"}},Ee={class:"flex mt-4 justify-end"},Fe=k({name:"warehouseProductLists"}),Fo=k({...Fe,setup(Ce){const x=ue(),b=i(!1),a=ne({warehouse_id:"",product_name:"",financial_pm:0,store_id:"",bar_code:"",start_time:"",code:"",end_time:""}),S=i([]),L=c=>{S.value=c.map(({id:t})=>t)},{dictData:T}=se("warehouse_produc_pm"),{pager:p,getLists:d,resetParams:U,resetPage:v}=re({fetchFun:g,params:a}),u=i([]),Y=()=>{u.value[0]&&u.value[1]?(a.start_time=B(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=B(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),d()},_=i(!1),E=i([]),M=(c="")=>{_.value=!0,we({name:c,page_size:50}).then(t=>{E.value=t.lists,setTimeout(()=>{_.value=!1},300)}).catch(t=>{setTimeout(()=>{_.value=!1},300)})};return pe(()=>{d()}),(c,t)=>{const f=q,n=G,P=H,I=Q,N=O,F=W,R=ae,z=Z,C=J,s=X,$=ee,A=oe,j=le,K=te;return m(),V("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(z,{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(I,{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":M,loading:o(_),style:{width:"240px"},onChange:o(v)},{default:r(()=>[(m(!0),V(ie,null,me(o(E),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_name"},{default:r(()=>[e(f,{class:"w-[280px]",modelValue:o(a).product_name,"onUpdate:modelValue":t[3]||(t[3]=l=>o(a).product_name=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(N,{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:Y},null,8,["modelValue"])]),_:1}),e(n,null,{default:r(()=>[e(F,{type:"primary",onClick:o(v)},{default:r(()=>t[8]||(t[8]=[y("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(F,{onClick:o(U)},{default:r(()=>t[9]||(t[9]=[y("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":o(g),params:o(a),"page-size":o(p).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(A,{data:o(p).lists,onSelectionChange:L},{default:r(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"id",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u5355\u53F7",prop:"code","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:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),e(s,{label:"\u603B\u4EF7",prop:"total_price","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",ve,_e(l.mark),1)]),_:1})]),_:1},8,["data"])]),w("div",Ee,[e(j,{modelValue:o(p),"onUpdate:modelValue":t[6]||(t[6]=l=>D(p)?p.value=l:null),onChange:o(d)},null,8,["modelValue","onChange"])])]),_:1})),[[K,o(p).loading]]),o(b)?(m(),h(fe,{key:0,ref_key:"editRef",ref:x,"dict-data":o(T),onSuccess:o(d),onClose:t[7]||(t[7]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):ce("",!0)])}}});export{Fo as default};
|