lihaiMiddleOfficeAdminWeb/build/admin/assets/outbound_list.2526084c.js
2024-08-11 20:11:29 +08:00

2 lines
6.6 KiB
JavaScript

import{J as Q,K as Z,D as G,C as H,w as X,F as Y,L as ee,M as oe,b as te,N as ae,O as le}from"./element-plus.9e22693c.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.153a119f.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.524981cd.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.edc916f4.js";import{a as B,_ as ie,b as pe,c as me}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.c504a1a9.js";import{d as S,s as de,r as w,Z as ce,i as _e,af as fe,ap as he,o as n,c as L,U as e,L as a,u as t,a as v,T as we,a9 as ve,K as m,R as d,M as C,S as Ce,Q as F,j as Ee,n as be}from"./@vue.18505fe0.js";import"./lodash.419afce2.js";import{f as ge}from"./index.56c7da87.js";import{a as Fe}from"./system_store.9333c3b8.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.129a2796.js";import"./axios.d44c8eec.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.b9cdeb0d.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.f1ed1fb4.js";import"./store_product.102bace4.js";import"./warehouse_product_storege.a5bdefa0.js";import"./warehouse.20a70818.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.867692c9.js";import"./vue-clipboard3.d30f83bc.js";import"./clipboard.24da1bd3.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const ke={class:"flex items-center mr-4"},ye={class:"mt-4"},De={style:{color:"red"}},xe={class:"flex mt-4 justify-end"},Ve=S({name:"warehouseProductLists"}),Eo=S({...Ve,setup(Be){const E=de(),b=w(!1),u=ce({warehouse_id:"",product_id:"",financial_pm:0,store_id:""}),P=w([]),T=r=>{P.value=r.map(({id:l})=>l)},{dictData:$}=ne("warehouse_produc_pm"),{pager:i,getLists:c,resetParams:A,resetPage:k}=ue({fetchFun:B,params:u}),N=async r=>{var l,f;b.value=!0,await be(),(l=E.value)==null||l.open("edit"),(f=E.value)==null||f.setFormData(r)},R=async r=>{await pe({id:r}),c()},U=async r=>{await ge.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:r}),c()},_=w(!1),y=w([]),z=(r="")=>{_.value=!0,Fe({name:r,page_size:50}).then(l=>{y.value=l.lists,setTimeout(()=>{_.value=!1},300)}).catch(l=>{setTimeout(()=>{_.value=!1},300)})};return _e(()=>{c()}),(r,l)=>{const f=Q,I=Z,h=G,D=H,p=X,M=re,W=Y,x=ee,j=fe("router-link"),s=oe,K=te,O=ae,q=se,g=he("perms"),J=le;return n(),L("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(W,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(h,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:a(()=>[v("div",ke,[e(I,{modelValue:t(u).store_id,"onUpdate:modelValue":l[0]||(l[0]=o=>t(u).store_id=o),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(k)},{default:a(()=>[(n(!0),L(we,null,ve(t(y),o=>(n(),m(f,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(h,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:a(()=>[e(D,{class:"w-[280px]",modelValue:t(u).warehouse_id,"onUpdate:modelValue":l[1]||(l[1]=o=>t(u).warehouse_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(h,{label:"\u5546\u54C1",prop:"product_id"},{default:a(()=>[e(D,{class:"w-[280px]",modelValue:t(u).product_id,"onUpdate:modelValue":l[2]||(l[2]=o=>t(u).product_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(h,null,{default:a(()=>[e(p,{type:"primary",onClick:t(k)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:t(A)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(M,{class:"ml-2.5","fetch-fun":t(B),params:t(u),"page-size":t(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),C((n(),m(x,{class:"!border-none",shadow:"never"},{default:a(()=>[e(j,{to:{path:"import"},class:"ml-4"},{default:a(()=>[e(p,{type:"primary"},{default:a(()=>[d(" \u51FA\u5E93 ")]),_:1})]),_:1}),v("div",ye,[e(O,{data:t(i).lists,onSelectionChange:T},{default:a(()=>[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:a(({row:o})=>[e(K,{style:{width:"50px",height:"50px"},src:o.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:a(({row:o})=>[v("span",De,Ce(o.mark),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[o.status==0?C((n(),m(p,{key:0,type:"primary",link:"",onClick:V=>N(o)},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["warehouse_product.warehouse_product/edit"]]]):F("",!0),C((n(),m(p,{type:"danger",link:"",onClick:V=>U(o.id)},{default:a(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["warehouse_product.warehouse_product/delete"]]]),o.status==0?C((n(),m(p,{key:1,type:"primary",link:"",onClick:V=>R(o.id)},{default:a(()=>[d(" \u786E\u8BA4 ")]),_:2},1032,["onClick"])),[[g,["warehouse_product.warehouse_product/enter"]]]):F("",!0)]),_:1})]),_:1},8,["data"])]),v("div",xe,[e(q,{modelValue:t(i),"onUpdate:modelValue":l[3]||(l[3]=o=>Ee(i)?i.value=o:null),onChange:t(c)},null,8,["modelValue","onChange"])])]),_:1})),[[J,t(i).loading]]),t(b)?(n(),m(ie,{key:0,ref_key:"editRef",ref:E,"dict-data":t($),onSuccess:t(c),onClose:l[4]||(l[4]=o=>b.value=!1)},null,8,["dict-data","onSuccess"])):F("",!0)])}}});export{Eo as default};