import{C as V,D as b,F as c}from"./element-plus.73c9e9a6.js";import{P as B}from"./index.fa58e261.js";import{b as _}from"./warehouse.72d94fe4.js";import"./lodash.403d4198.js";import{d as F,s,r as y,Z as D,o as C,c as U,U as u,L as t,u as o}from"./@vue.663bc523.js";const x={class:"edit-popup"},w=F({name:"warehouseDETAILS"}),j=F({...w,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(k,{expose:f,emit:R}){const i=s(),p=s();y("add");const l=D({id:"",name:"",py:"",dept_id:"",number:"",contacts:"",tel:"",add:"",data:"",more:"",sort:""}),m=async n=>{for(const e in l)n[e]!=null&&n[e]!=null&&(l[e]=n[e])};return f({open:()=>{var n;(n=p.value)==null||n.open()},setFormData:m,getDetail:async n=>{const e=await _({id:n.id});m(e)}}),(n,e)=>{const d=V,r=b,E=c;return C(),U("div",x,[u(B,{ref_key:"popupRef",ref:p,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:t(()=>[u(E,{ref_key:"formRef",ref:i,model:o(l),"label-width":"90px"},{default:t(()=>[u(r,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name"},{default:t(()=>[u(d,{modelValue:o(l).name,"onUpdate:modelValue":e[0]||(e[0]=a=>o(l).name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u9996\u62FC\u4FE1\u606F",prop:"py"},{default:t(()=>[u(d,{modelValue:o(l).py,"onUpdate:modelValue":e[1]||(e[1]=a=>o(l).py=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9996\u62FC\u4FE1\u606F",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u7EC4\u7EC7\u67B6\u6784",prop:"dept_id"},{default:t(()=>[u(d,{modelValue:o(l).dept_id,"onUpdate:modelValue":e[2]||(e[2]=a=>o(l).dept_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u67B6\u6784",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u4ED3\u5E93\u7F16\u53F7",prop:"number"},{default:t(()=>[u(d,{modelValue:o(l).number,"onUpdate:modelValue":e[3]||(e[3]=a=>o(l).number=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u7F16\u53F7",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u8054\u7CFB\u4EBA\u5458",prop:"contacts"},{default:t(()=>[u(d,{modelValue:o(l).contacts,"onUpdate:modelValue":e[4]||(e[4]=a=>o(l).contacts=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA\u5458",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"tel"},{default:t(()=>[u(d,{modelValue:o(l).tel,"onUpdate:modelValue":e[5]||(e[5]=a=>o(l).tel=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u4ED3\u5E93\u5730\u5740",prop:"add"},{default:t(()=>[u(d,{modelValue:o(l).add,"onUpdate:modelValue":e[6]||(e[6]=a=>o(l).add=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u5730\u5740",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data"},{default:t(()=>[u(d,{modelValue:o(l).data,"onUpdate:modelValue":e[7]||(e[7]=a=>o(l).data=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u6269\u5C55\u4FE1\u606F",prop:"more"},{default:t(()=>[u(d,{modelValue:o(l).more,"onUpdate:modelValue":e[8]||(e[8]=a=>o(l).more=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6269\u5C55\u4FE1\u606F",readonly:!0},null,8,["modelValue"])]),_:1}),u(r,{label:"\u6392\u5E8F",prop:"sort"},{default:t(()=>[u(d,{modelValue:o(l).sort,"onUpdate:modelValue":e[9]||(e[9]=a=>o(l).sort=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F",readonly:!0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{j as _};
