1 |
- import{_ as F,d as x,E as r,b3 as g,H as k,x as n,o as p,c as f,y as e,K as a,b as _,u as o,a as w,aQ as N,W as h}from"./index.3b345ca1.js";import{C as V}from"./choose-modal.50b21f2e.js";import{h as R}from"./index.2554ed84.js";import{p as b}from"./_details.d1fad177.js";import{B as z}from"./basic-descriptions.c196a767.js";import"./_options.fdd6a561.js";import"./tootip.acd9d353.js";import"./reconciliation.c40bc8ce.js";import"./_options.0a7f2a8c.js";const I={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"}]},j={"w-full":""},M={class:"w-full flex justify-end"},q=h("\u9009\u62E9"),A={key:0,class:"w-full"},H={class:"flex w-full justify-end"},K=h("\u4FDD\u5B58"),O=x({__name:"choose-form",emits:["create"],setup(P,{emit:E}){const y=r(null),c=r(null),{data:d,run:v}=g({initalData:{}}),t=r({dzNo:"",reason:""}),B=()=>c.value.onDisplay();function C(){E("create",o(t))}return k(()=>t.value.dzNo,i=>v(R({DzNo:i}))),(i,u)=>{const m=n("ElButton"),s=n("ElFormItem"),D=n("ElInput");return p(),f("div",j,[e(o(N),{ref_key:"formRef",ref:y,model:t.value,rules:o(I)},{default:a(()=>[e(s,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:a(()=>[_("div",M,[e(m,{type:"primary",text:"",onClick:u[0]||(u[0]=()=>B())},{default:a(()=>[q]),_:1})]),Object.keys(o(d)).length>0?(p(),f("div",A,[e(o(z),{columns:o(b),data:o(d)},null,8,["columns","data"])])):w("v-if",!0)]),_:1}),e(s,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason"},{default:a(()=>[e(D,{type:"textarea",style:{width:"350px"},modelValue:t.value.reason,"onUpdate:modelValue":u[1]||(u[1]=l=>t.value.reason=l),placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0"},null,8,["modelValue"])]),_:1}),e(s,null,{default:a(()=>[_("div",H,[e(m,{type:"primary",onClick:C},{default:a(()=>[K]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(V,{ref_key:"chooseModalRef",ref:c,onChoose:u[2]||(u[2]=l=>t.value.dzNo=l)},null,512)])}}});var Y=F(O,[["__file","D:/work/accout-vue3-ui/src/views/supply/purchPayRelive/component/choose-form.vue"]]);export{Y as default};
|