1 |
- import{_ as F,d as g,E as r,b8 as k,H as x,x as n,o as p,c as f,y as e,K as a,b as _,u as o,a as N,aE as w,W as h}from"./index.1417328f.js";import{C as V}from"./choose-modal.5f8111fb.js";import{h as R}from"./index.514aa846.js";import{p as b}from"./_details.1899f29a.js";import{B as z}from"./basic-descriptions.cadaf928.js";import"./_options.e47869ce.js";import"./reconciliation.53461462.js";import"./tootip.8c37fa8a.js";import"./_options.d0ef3218.js";const j={dzNo:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u91C7\u8D2D\u4ED8\u6B3E"}],reason:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u89E3\u9664\u539F\u56E0"}]},I={"w-full":""},M={class:"w-full flex justify-end"},q=h("\u9009\u62E9"),P={key:0,class:"w-full"},U={class:"flex w-full justify-end"},A=h("\u4FDD\u5B58"),H=g({__name:"choose-form",emits:["create"],setup(K,{emit:E}){const v=r(null),c=r(null),{data:m,run:y}=k({initalData:{}}),t=r({dzNo:"",reason:""}),C=()=>c.value.onDisplay();function B(){E("create",o(t))}return x(()=>t.value.dzNo,d=>y(R({DzNo:d}))),(d,s)=>{const i=n("ElButton"),u=n("ElFormItem"),D=n("ElInput");return p(),f("div",I,[e(o(w),{ref_key:"formRef",ref:v,model:t.value,rules:o(j)},{default:a(()=>[e(u,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:a(()=>[_("div",M,[e(i,{type:"primary",text:"",onClick:s[0]||(s[0]=()=>C())},{default:a(()=>[q]),_:1})]),Object.keys(o(m)).length>0?(p(),f("div",P,[e(o(z),{columns:o(b),data:o(m)},null,8,["columns","data"])])):N("v-if",!0)]),_:1}),e(u,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason"},{default:a(()=>[e(D,{modelValue:t.value.reason,"onUpdate:modelValue":s[1]||(s[1]=l=>t.value.reason=l),placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0"},null,8,["modelValue"])]),_:1}),e(u,null,{default:a(()=>[_("div",U,[e(i,{type:"primary",onClick:B},{default:a(()=>[A]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(V,{ref_key:"chooseModalRef",ref:c,onChoose:s[2]||(s[2]=l=>t.value.dzNo=l)},null,512)])}}});var Y=F(H,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/purchase/purchPayRelive/component/choose-form.vue"]]);export{Y as default};
|