multiStoreAdmin/build/store/assets/warehourse_order.b05f6c01.js
2025-01-07 15:19:09 +08:00

2 lines
3.7 KiB
JavaScript

import{a1 as T,M as $,w as N,N as R,J as A,O as L}from"./element-plus.e43a9281.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.4e4b54d4.js";import{u as W}from"./usePaging.fff444fa.js";import{f as j}from"./index.440d70e1.js";import{g as M,h as U}from"./system_store_storage.87dca5c7.js";import"./lodash.e1b6d49d.js";import"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.0442938b.js";import{_ as q}from"./productList.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.c77d0d36.js";import{d as E,s as g,r as m,$ as I,o as l,c as J,R as Q,u as r,P as u,Q as s,a as C,W as o,U as c,T as _,j as z,n as G}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.5d871bc3.js";import"./axios.7bd66c25.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.92cf4b29.js";import"./color.10cd7b9e.js";import"./clone.3a905afa.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.95290f48.js";import"./vue-clipboard3.d7f6d60e.js";import"./clipboard.07d173e7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./index.758a6862.js";const H={class:"mt-4"},K={class:"flex mt-4 justify-end"},X=E({name:"systemStoreStorageLists"}),Mo=E({...X,setup(Y){g(),m(!1);const k=I({store_id:"",admin_id:"",operating_id:"",status:"",type:1}),b=m([]),y=i=>{b.value=i.map(({id:e})=>e)},{pager:n,getLists:p,resetParams:Z,resetPage:oo}=W({fetchFun:U,params:k}),d=m(!1),f=g(),h=m(""),B=async i=>{var e;h.value=i.id,d.value=!0,await G(),(e=f.value)==null||e.open()},F=async i=>{await j.confirm("\u786E\u5B9A\u8981\u5165\u5E93\u5417\uFF1F"),M({id:i.id}).then(e=>{p()})};return p(),(i,e)=>{const a=$,v=T,w=N,x=R,D=O,P=A,V=L;return l(),J("div",null,[Q((l(),u(P,{class:"!border-none",shadow:"never"},{default:s(()=>[C("div",H,[o(x,{data:r(n).lists,onSelectionChange:y},{default:s(()=>[o(a,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(a,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),o(a,{label:"\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),o(a,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),o(a,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:s(({row:t})=>[t.status===1?(l(),u(v,{key:0,type:"success"},{default:s(()=>[c("\u5DF2\u5165\u5E93")]),_:1})):t.status===0?(l(),u(v,{key:1,type:"warning"},{default:s(()=>[c("\u5F85\u786E\u8BA4")]),_:1})):_("",!0)]),_:1}),o(a,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),o(a,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),o(a,{label:"\u64CD\u4F5C",width:"200",fixed:"right"},{default:s(({row:t})=>[o(w,{type:"success",link:"",onClick:S=>B(t)},{default:s(()=>[c(" \u5546\u54C1\u5217\u8868 ")]),_:2},1032,["onClick"]),t.status==0?(l(),u(w,{key:0,type:"success",link:"",onClick:S=>F(t)},{default:s(()=>[c(" \u786E\u8BA4\u5165\u5E93 ")]),_:2},1032,["onClick"])):_("",!0)]),_:1})]),_:1},8,["data"])]),C("div",K,[o(D,{modelValue:r(n),"onUpdate:modelValue":e[0]||(e[0]=t=>z(n)?n.value=t:null),onChange:r(p)},null,8,["modelValue","onChange"])])]),_:1})),[[V,r(n).loading]]),r(d)?(l(),u(q,{key:0,oid:r(h),ref_key:"productRef",ref:f,onSuccess:r(p),onClose:e[1]||(e[1]=t=>d.value=!1)},null,8,["oid","onSuccess"])):_("",!0)])}}});export{Mo as default};