2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
import{m as i,s as r,r as f,aT as l,p as u,q as d,t as c,v as _,u as y,aY as h}from"./.pnpm.1b0299fb.js";import{P as x}from"./index.6c48d0ba.js";import{a as D}from"./user_product_storage.4f3e2f53.js";import{t as k}from"./index.689cfa31.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.abac7546.js";import"./@vueuse.72d44d91.js";import"./lodash.c3b66c05.js";import"./@vue.9d708d7c.js";const v={class:"edit-popup"},w=i({name:"userProductStorageDETAILS"}),q=i({...w,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(B,{expose:n,emit:R}){const p=r(),a=r();f("add");const o=l({id:""}),s=async e=>{for(const t in o)e[t]!=null&&e[t]!=null&&(o[t]=e[t]);o.create_time=k(o.create_time,"yyyy-mm-dd hh:MM:ss")};return n({open:()=>{var e;(e=a.value)==null||e.open()},setFormData:s,getDetail:async e=>{const t=await D({id:e.id});s(t)}}),(e,t)=>{const m=h;return u(),d("div",v,[c(x,{ref_key:"popupRef",ref:a,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:_(()=>[c(m,{ref_key:"formRef",ref:p,model:y(o),"label-width":"90px"},null,8,["model"])]),_:1},512)])}}});export{q as default};
|