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

2 lines
3.8 KiB
JavaScript

import{G as E,H as k,C as x,D as C,F as R}from"./element-plus.4a7d92a3.js";import{P as U}from"./index.61b33f8b.js";import{b as w}from"./supplier.0799d197.js";import{d as f,s as i,r as g,Z as h,o as s,c,U as l,L as a,u,T as v,a9 as T,K as I,R as S,S as L}from"./@vue.18505fe0.js";import"./lodash.9dc701ad.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.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.d9a16ced.js";import"./index.9f0893c4.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const G={class:"edit-popup"},N=f({name:"supplierDETAILS"}),be=f({...N,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(_,{expose:F,emit:P}){const D=i(),d=i();g("add");const o=h({id:"",mer_name:"",phone:"",settle_cycle:"",address:"",mark:"",status:""}),n=async r=>{for(const e in o)r[e]!=null&&r[e]!=null&&(o[e]=r[e])};return F({open:()=>{var r;(r=d.value)==null||r.open()},setFormData:n,getDetail:async r=>{const e=await w({id:r.id});n(e)}}),(r,e)=>{const m=x,p=C,V=E,y=k,B=R;return s(),c("div",G,[l(U,{ref_key:"popupRef",ref:d,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:a(()=>[l(B,{ref_key:"formRef",ref:D,model:u(o),"label-width":"90px"},{default:a(()=>[l(p,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name"},{default:a(()=>[l(m,{modelValue:u(o).mer_name,"onUpdate:modelValue":e[0]||(e[0]=t=>u(o).mer_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0",readonly:!0},null,8,["modelValue"])]),_:1}),l(p,{label:"\u5546\u6237\u7535\u8BDD",prop:"phone"},{default:a(()=>[l(m,{modelValue:u(o).phone,"onUpdate:modelValue":e[1]||(e[1]=t=>u(o).phone=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u7535\u8BDD",readonly:!0},null,8,["modelValue"])]),_:1}),l(p,{label:"\u7ED3\u7B97\u5468\u671F\uFF0C\u5355\u4F4D\u5929",prop:"settle_cycle"},{default:a(()=>[l(m,{modelValue:u(o).settle_cycle,"onUpdate:modelValue":e[2]||(e[2]=t=>u(o).settle_cycle=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7ED3\u7B97\u5468\u671F\uFF0C\u5355\u4F4D\u5929",readonly:!0},null,8,["modelValue"])]),_:1}),l(p,{label:"\u5546\u6237\u5730\u5740",prop:"address"},{default:a(()=>[l(m,{modelValue:u(o).address,"onUpdate:modelValue":e[3]||(e[3]=t=>u(o).address=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u5730\u5740",readonly:!0},null,8,["modelValue"])]),_:1}),l(p,{label:"\u5546\u6237\u5907\u6CE8",prop:"mark"},{default:a(()=>[l(m,{modelValue:u(o).mark,"onUpdate:modelValue":e[4]||(e[4]=t=>u(o).mark=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u5907\u6CE8",readonly:!0},null,8,["modelValue"])]),_:1}),l(p,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[l(y,{modelValue:u(o).status,"onUpdate:modelValue":e[5]||(e[5]=t=>u(o).status=t),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",disabled:!0},{default:a(()=>[(s(!0),c(v,null,T(_.dictData.show_status,(t,b)=>(s(),I(V,{key:b,label:parseInt(t.value)},{default:a(()=>[S(L(t.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{be as default};