2024-11-15 19:58:31 +08:00

2 lines
2.7 KiB
JavaScript

import{m as i,s as m,r as B,aT as E,p as F,q as V,t as u,v as d,u as o,aW as y,aX as b,aY as C}from"./.pnpm.1b0299fb.js";import{P as g}from"./index.6c48d0ba.js";import{a as x}from"./system_store_storage.20331a3f.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 A={class:"edit-popup"},D=i({name:"systemStoreStorageDETAILS"}),N=i({...D,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(S,{expose:_,emit:U}){const f=m(),p=m();B("add");const l=E({id:"",store_id:"",admin_id:"",operating_id:"",product_id:"",nums:"",status:""}),s=async a=>{for(const e in l)a[e]!=null&&a[e]!=null&&(l[e]=a[e])};return _({open:()=>{var a;(a=p.value)==null||a.open()},setFormData:s,getDetail:async a=>{const e=await x({id:a.id});s(e)}}),(a,e)=>{const r=y,n=b,c=C;return F(),V("div",A,[u(g,{ref_key:"popupRef",ref:p,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:d(()=>[u(c,{ref_key:"formRef",ref:f,model:o(l),"label-width":"90px"},{default:d(()=>[u(n,{label:"\u95E8\u5E97",prop:"store_id"},{default:d(()=>[u(r,{modelValue:o(l).store_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o(l).store_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97",readonly:!0},null,8,["modelValue"])]),_:1}),u(n,{label:"\u5BFC\u5165\u4EBA\u5458",prop:"admin_id"},{default:d(()=>[u(r,{modelValue:o(l).admin_id,"onUpdate:modelValue":e[1]||(e[1]=t=>o(l).admin_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BFC\u5165\u4EBA\u5458",readonly:!0},null,8,["modelValue"])]),_:1}),u(n,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"operating_id"},{default:d(()=>[u(r,{modelValue:o(l).operating_id,"onUpdate:modelValue":e[2]||(e[2]=t=>o(l).operating_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",readonly:!0},null,8,["modelValue"])]),_:1}),u(n,{label:"\u5546\u54C1",prop:"product_id"},{default:d(()=>[u(r,{modelValue:o(l).product_id,"onUpdate:modelValue":e[3]||(e[3]=t=>o(l).product_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1",readonly:!0},null,8,["modelValue"])]),_:1}),u(n,{label:"\u6570\u91CF",prop:"nums"},{default:d(()=>[u(r,{modelValue:o(l).nums,"onUpdate:modelValue":e[4]||(e[4]=t=>o(l).nums=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6570\u91CF",readonly:!0},null,8,["modelValue"])]),_:1}),u(n,{label:"\u72B6\u6001",prop:"status"},{default:d(()=>[u(r,{modelValue:o(l).status,"onUpdate:modelValue":e[5]||(e[5]=t=>o(l).status=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001",readonly:!0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{N as default};