moreShopAdmin/build/admin/assets/details.b92173da.js

2 lines
2.9 KiB
JavaScript
Raw Normal View History

2024-11-15 19:58:31 +08:00
import{m as f,s as i,r as E,aT as k,aZ as x,a_ as C,p as d,q as c,t as a,v as o,u as t,V as R,W as v,y as w,a2 as U,G as g,aW as h,aX as T,aY as I}from"./.pnpm.1b0299fb.js";import{P as S}from"./index.6c48d0ba.js";import{b as G}from"./supplier.f974764b.js";import"./lodash.c3b66c05.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.abac7546.js";import"./index.689cfa31.js";import"./@vueuse.72d44d91.js";import"./@vue.9d708d7c.js";const L={class:"edit-popup"},N=f({name:"supplierDETAILS"}),J=f({...N,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(_,{expose:F,emit:P}){const V=i(),p=i();E("add");const l=k({id:"",mer_name:"",phone:"",settle_cycle:"",address:"",mark:"",status:""}),m=async r=>{for(const e in l)r[e]!=null&&r[e]!=null&&(l[e]=r[e])};return F({open:()=>{var r;(r=p.value)==null||r.open()},setFormData:m,getDetail:async r=>{const e=await G({id:r.id});m(e)}}),(r,e)=>{const n=h,s=T,y=x,D=C,B=I;return d(),c("div",L,[a(S,{ref_key:"popupRef",ref:p,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:o(()=>[a(B,{ref_key:"formRef",ref:V,model:t(l),"label-width":"90px"},{default:o(()=>[a(s,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name"},{default:o(()=>[a(n,{modelValue:t(l).mer_name,"onUpdate:modelValue":e[0]||(e[0]=u=>t(l).mer_name=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0",readonly:!0},null,8,["modelValue"])]),_:1}),a(s,{label:"\u5546\u6237\u7535\u8BDD",prop:"phone"},{default:o(()=>[a(n,{modelValue:t(l).phone,"onUpdate:modelValue":e[1]||(e[1]=u=>t(l).phone=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u7535\u8BDD",readonly:!0},null,8,["modelValue"])]),_:1}),a(s,{label:"\u7ED3\u7B97\u5468\u671F\uFF0C\u5355\u4F4D\u5929",prop:"settle_cycle"},{default:o(()=>[a(n,{modelValue:t(l).settle_cycle,"onUpdate:modelValue":e[2]||(e[2]=u=>t(l).settle_cycle=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7ED3\u7B97\u5468\u671F\uFF0C\u5355\u4F4D\u5929",readonly:!0},null,8,["modelValue"])]),_:1}),a(s,{label:"\u5546\u6237\u5730\u5740",prop:"address"},{default:o(()=>[a(n,{modelValue:t(l).address,"onUpdate:modelValue":e[3]||(e[3]=u=>t(l).address=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u5730\u5740",readonly:!0},null,8,["modelValue"])]),_:1}),a(s,{label:"\u5546\u6237\u5907\u6CE8",prop:"mark"},{default:o(()=>[a(n,{modelValue:t(l).mark,"onUpdate:modelValue":e[4]||(e[4]=u=>t(l).mark=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u5907\u6CE8",readonly:!0},null,8,["modelValue"])]),_:1}),a(s,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[a(D,{modelValue:t(l).status,"onUpdate:modelValue":e[5]||(e[5]=u=>t(l).status=u),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",disabled:!0},{default:o(()=>[(d(!0),c(R,null,v(_.dictData.show_status,(u,b)=>(d(),w(y,{key:b,label:parseInt(u.value)},{default:o(()=>[U(g(u.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{J as default};