2025-03-20 10:46:42 +08:00

2 lines
3.4 KiB
JavaScript

import{B as E,C as _,D as B}from"./element-plus.2acb577d.js";import{P as V}from"./index.f292cd50.js";import{b as D}from"./warehouse.77723b1e.js";import"./lodash.6bfd3540.js";import{d as i,s as d,r as b,Z as y,o as C,c as x,U as t,L as r,u as l}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.81df6f20.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.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.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";const U={class:"edit-popup"},k=i({name:"psiWarehouseDETAILS"}),se=i({...k,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(w,{expose:f,emit:R}){const c=d(),n=d();b("add");const o=y({id:"",name:"",contacts:"",tel:"",address:"",notes:"",sort:""}),s=async a=>{for(const e in o)a[e]!=null&&a[e]!=null&&(o[e]=a[e])};return f({open:()=>{var a;(a=n.value)==null||a.open()},setFormData:s,getDetail:async a=>{const e=await D({id:a.id});s(e)}}),(a,e)=>{const p=E,m=_,F=B;return C(),x("div",U,[t(V,{ref_key:"popupRef",ref:n,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:r(()=>[t(F,{ref_key:"formRef",ref:c,model:l(o),"label-width":"90px"},{default:r(()=>[t(m,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name"},{default:r(()=>[t(p,{modelValue:l(o).name,"onUpdate:modelValue":e[0]||(e[0]=u=>l(o).name=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0",readonly:!0},null,8,["modelValue"])]),_:1}),t(m,{label:"\u8054\u7CFB\u4EBA\u5458",prop:"contacts"},{default:r(()=>[t(p,{modelValue:l(o).contacts,"onUpdate:modelValue":e[1]||(e[1]=u=>l(o).contacts=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA\u5458",readonly:!0},null,8,["modelValue"])]),_:1}),t(m,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"tel"},{default:r(()=>[t(p,{modelValue:l(o).tel,"onUpdate:modelValue":e[2]||(e[2]=u=>l(o).tel=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",readonly:!0},null,8,["modelValue"])]),_:1}),t(m,{label:"\u4ED3\u5E93\u5730\u5740",prop:"address"},{default:r(()=>[t(p,{modelValue:l(o).address,"onUpdate:modelValue":e[3]||(e[3]=u=>l(o).address=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u5730\u5740",readonly:!0},null,8,["modelValue"])]),_:1}),t(m,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"notes"},{default:r(()=>[t(p,{modelValue:l(o).notes,"onUpdate:modelValue":e[4]||(e[4]=u=>l(o).notes=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F",readonly:!0},null,8,["modelValue"])]),_:1}),t(m,{label:"\u6392\u5E8F",prop:"sort"},{default:r(()=>[t(p,{modelValue:l(o).sort,"onUpdate:modelValue":e[5]||(e[5]=u=>l(o).sort=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F",readonly:!0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{se as default};