1 |
- import{_ as F,d as x,E as r,aZ as g,H as k,x as n,o as p,c as f,y as e,K as u,b as _,u as o,a as w,aK as N,W as h}from"./index.743f0c80.js";import{C as V}from"./choose-modal.0cc4add4.js";import{h as R}from"./index.17b89a60.js";import{p as z}from"./_details.8c6ddd79.js";import{B as b}from"./basic-descriptions.e56bd542.js";import"./_options.fdd6a561.js";import"./tootip.48acd346.js";import"./reconciliation.d0aed753.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"),K={key:0,class:"w-full"},A={class:"flex w-full justify-end"},H=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,a)=>{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:u(()=>[e(s,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:u(()=>[_("div",M,[e(m,{type:"primary",text:"",onClick:a[0]||(a[0]=()=>B())},{default:u(()=>[q]),_:1})]),Object.keys(o(d)).length>0?(p(),f("div",K,[e(o(b),{columns:o(z),data:o(d)},null,8,["columns","data"])])):w("v-if",!0)]),_:1}),e(s,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason"},{default:u(()=>[e(D,{type:"textarea",style:{width:"350px"},modelValue:t.value.reason,"onUpdate:modelValue":a[1]||(a[1]=l=>t.value.reason=l),placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0"},null,8,["modelValue"])]),_:1}),e(s,null,{default:u(()=>[_("div",A,[e(m,{type:"primary",onClick:C},{default:u(()=>[H]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(V,{ref_key:"chooseModalRef",ref:c,onChoose:a[2]||(a[2]=l=>t.value.dzNo=l)},null,512)])}}});var X=F(O,[["__file","D:/work/accout-vue3-ui/src/views/supply/purchPayRelive/component/choose-form.vue"]]);export{X as default};
|