1 |
- import{_ as F,d as g,E as r,aZ as k,H as x,x as n,o as f,c as p,y as e,K as a,b as _,u as o,a as N,aK as w,W as h}from"./index.743f0c80.js";import{C as V}from"./choose-modal.5f574d93.js";import{h as R}from"./index.17b89a60.js";import{p as z}from"./_details.e3264c66.js";import{B as b}from"./basic-descriptions.e56bd542.js";import"./_options.e47869ce.js";import"./reconciliation.d0aed753.js";import"./tootip.48acd346.js";import"./_options.d0ef3218.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=g({__name:"choose-form",emits:["create"],setup(P,{emit:E}){const v=r(null),c=r(null),{data:m,run:y}=k({initalData:{}}),t=r({dzNo:"",reason:""}),B=()=>c.value.onDisplay();function C(){E("create",o(t))}return x(()=>t.value.dzNo,d=>y(R({DzNo:d}))),(d,u)=>{const i=n("ElButton"),s=n("ElFormItem"),D=n("ElInput");return f(),p("div",j,[e(o(w),{ref_key:"formRef",ref:v,model:t.value,rules:o(I)},{default:a(()=>[e(s,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:a(()=>[_("div",M,[e(i,{type:"primary",text:"",onClick:u[0]||(u[0]=()=>B())},{default:a(()=>[q]),_:1})]),Object.keys(o(m)).length>0?(f(),p("div",K,[e(o(b),{columns:o(z),data:o(m)},null,8,["columns","data"])])):N("v-if",!0)]),_:1}),e(s,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason"},{default:a(()=>[e(D,{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",A,[e(i,{type:"primary",onClick:C},{default:a(()=>[H]),_: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 X=F(O,[["__file","D:/work/accout-vue3-ui/src/views/purchase/purchPayRelive/component/choose-form.vue"]]);export{X as default};
|