moreShopAdmin/build/admin/assets/details.764f74e3.js

2 lines
3.8 KiB
JavaScript

import{C as E,D as V,F as _}from"./element-plus.91c68cc0.js";import{P as B}from"./index.395bb96e.js";import{b as D}from"./warehouse.501c66b8.js";import"./lodash.4e6d2a38.js";import{d as i,s,r as b,Z as y,o as C,c as x,U as l,L as r,u as t}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"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./index.0e5577f4.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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";const U={class:"edit-popup"},w=i({name:"warehouseDETAILS"}),ce=i({...w,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(k,{expose:f,emit:R}){const c=s(),d=s();b("add");const o=y({id:"",name:"",code:"",contacts:"",tel:"",address:"",notes:"",sort:""}),n=async a=>{for(const e in o)a[e]!=null&&a[e]!=null&&(o[e]=a[e])};return f({open:()=>{var a;(a=d.value)==null||a.open()},setFormData:n,getDetail:async a=>{const e=await D({id:a.id});n(e)}}),(a,e)=>{const p=E,m=V,F=_;return C(),x("div",U,[l(B,{ref_key:"popupRef",ref:d,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:r(()=>[l(F,{ref_key:"formRef",ref:c,model:t(o),"label-width":"90px"},{default:r(()=>[l(m,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name"},{default:r(()=>[l(p,{modelValue:t(o).name,"onUpdate:modelValue":e[0]||(e[0]=u=>t(o).name=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0",readonly:!0},null,8,["modelValue"])]),_:1}),l(m,{label:"\u4ED3\u5E93\u7F16\u53F7",prop:"code"},{default:r(()=>[l(p,{modelValue:t(o).code,"onUpdate:modelValue":e[1]||(e[1]=u=>t(o).code=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u7F16\u53F7",readonly:!0},null,8,["modelValue"])]),_:1}),l(m,{label:"\u8054\u7CFB\u4EBA\u5458",prop:"contacts"},{default:r(()=>[l(p,{modelValue:t(o).contacts,"onUpdate:modelValue":e[2]||(e[2]=u=>t(o).contacts=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA\u5458",readonly:!0},null,8,["modelValue"])]),_:1}),l(m,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"tel"},{default:r(()=>[l(p,{modelValue:t(o).tel,"onUpdate:modelValue":e[3]||(e[3]=u=>t(o).tel=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",readonly:!0},null,8,["modelValue"])]),_:1}),l(m,{label:"\u4ED3\u5E93\u5730\u5740",prop:"address"},{default:r(()=>[l(p,{modelValue:t(o).address,"onUpdate:modelValue":e[4]||(e[4]=u=>t(o).address=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u5730\u5740",readonly:!0},null,8,["modelValue"])]),_:1}),l(m,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"notes"},{default:r(()=>[l(p,{modelValue:t(o).notes,"onUpdate:modelValue":e[5]||(e[5]=u=>t(o).notes=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F",readonly:!0},null,8,["modelValue"])]),_:1}),l(m,{label:"\u6392\u5E8F",prop:"sort"},{default:r(()=>[l(p,{modelValue:t(o).sort,"onUpdate:modelValue":e[6]||(e[6]=u=>t(o).sort=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F",readonly:!0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{ce as default};