1 |
- import{_ as F,d as x,w as r,b2 as N,z as g,r as n,o as p,c as f,l as e,C as a,b as _,M as h,u as o,a as k,aN as w}from"./index.3f1ca816.js";import V from"./choose-modal.2fbdc431.js";import{h as z}from"./index.1b6aea11.js";import{B as R}from"./basic-descriptions.78acbb1a.js";import{p as b}from"./purchPay.fb46e27b.js";import"./porder.d16f24ea.js";import"./status.d6b2a53d.js";import"./date-range.912a8f3e.js";import"./tootip.1805b3e1.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={key:0,class:"w-full"},U={class:"flex w-full justify-end"},A=x({__name:"choose-form",emits:["create"],setup(O,{emit:E}){const v=r(null),m=r(null),{data:c,run:y}=N({initalData:{}}),t=r({dzNo:"",reason:""}),C=()=>m.value.onDisplay();function B(){E("create",o(t))}return g(()=>t.value.dzNo,d=>y(z({DzNo:d}))),(d,u)=>{const i=n("ElButton"),s=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(s,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:a(()=>[_("div",M,[e(i,{type:"primary",text:"",onClick:u[0]||(u[0]=()=>C())},{default:a(()=>[h("\u9009\u62E9")]),_:1})]),Object.keys(o(c)).length>0?(p(),f("div",q,[e(o(R),{columns:o(b),data:o(c)},null,8,["columns","data"])])):k("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",U,[e(i,{type:"primary",onClick:B},{default:a(()=>[h("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(V,{ref_key:"chooseModalRef",ref:m,onChoose:u[2]||(u[2]=l=>t.value.dzNo=l)},null,512)])}}});var W=F(A,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/purchPayRelive/component/choose-form.vue"]]);export{W as default};
|