2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
import{C as I,D as N,w as $,F as T,K as j,G as K,b as q,H as A,I as G}from"./element-plus.8e273e86.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{u as M}from"./usePaging.f8c888e4.js";import{u as Q}from"./useDictOptions.6e4e92d3.js";import{d as Z,e as z}from"./store_product_low_stock.7942aaab.js";import"./lodash.41b9567d.js";import{f as J}from"./index.41916feb.js";import{_ as O}from"./edit.vue_vue_type_script_setup_true_name_storeProductLowStockEdit_lang.9c2061f3.js";import{d as g,s as W,r as b,Z as X,ap as Y,o as m,c as ee,U as e,L as l,u as t,R as _,M as v,K as f,a as E,j as oe,Q as te}from"./@vue.76ce7aa3.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"./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.d70ecc7a.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const le={class:"mt-4"},ae={class:"flex mt-4 justify-end"},se=g({name:"storeProductLowStockLists"}),Je=g({...se,setup(re){const k=W(),w=b(!1),s=X({product_id:"",store_id:"",status:""}),F=b([]),V=u=>{F.value=u.map(({id:o})=>o)},{dictData:h}=Q(""),{pager:i,getLists:n,resetParams:B,resetPage:x}=M({fetchFun:z,params:s}),y=async u=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:u}),n()};return n(),(u,o)=>{const d=I,p=N,c=$,D=T,C=j,r=K,S=q,L=A,P=H,R=Y("perms"),U=G;return m(),ee("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(D,{class:"mb-[-16px]",model:t(s),inline:""},{default:l(()=>[e(p,{label:"\u5546\u54C1id",prop:"product_id"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:t(s).product_id,"onUpdate:modelValue":o[0]||(o[0]=a=>t(s).product_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1id"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u95E8\u5E97id",prop:"store_id"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:t(s).store_id,"onUpdate:modelValue":o[1]||(o[1]=a=>t(s).store_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97id"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:t(s).status,"onUpdate:modelValue":o[2]||(o[2]=a=>t(s).status=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(c,{type:"primary",onClick:t(x)},{default:l(()=>o[5]||(o[5]=[_("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(c,{onClick:t(B)},{default:l(()=>o[6]||(o[6]=[_("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((m(),f(C,{class:"!border-none",shadow:"never"},{default:l(()=>[E("div",le,[e(L,{data:t(i).lists,onSelectionChange:V},{default:l(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"\u56FE\u7247",prop:"image","show-overflow-tooltip":""},{default:l(({row:a})=>[e(S,{style:{width:"50px",height:"50px"},src:a.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(r,{label:"\u5546\u54C1",prop:"product_name","show-overflow-tooltip":""}),e(r,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),e(r,{label:"\u5E93\u5B58",prop:"stock","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[v((m(),f(c,{type:"danger",link:"",onClick:ie=>y(a.id)},{default:l(()=>o[7]||(o[7]=[_(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[R,["store_product_low_stock.store_product_low_stock/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",ae,[e(P,{modelValue:t(i),"onUpdate:modelValue":o[3]||(o[3]=a=>oe(i)?i.value=a:null),onChange:t(n)},null,8,["modelValue","onChange"])])]),_:1})),[[U,t(i).loading]]),t(w)?(m(),f(O,{key:0,ref_key:"editRef",ref:k,"dict-data":t(h),onSuccess:t(n),onClose:o[4]||(o[4]=a=>w.value=!1)},null,8,["dict-data","onSuccess"])):te("",!0)])}}});export{Je as default};
|