1 |
- import{_ as F,d as g,w as r,b3 as k,z as N,r as n,o as p,c as f,l as e,C as s,b as _,M as E,u as o,a as w,aR as x}from"./index.56c69f5a.js";import R from"./choose-modal.00cf7dac.js";import{h as V}from"./index.7bd89ecb.js";import{p as z}from"./purchPay.19ad0dfc.js";import"./porder.30193b2b.js";import{B as b}from"./basic-descriptions.5f176484.js";import"./status.2df4810d.js";import"./date-range.c3f1dbd6.js";import"./tootip.fe6ea468.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={key:0,class:"w-full"},U={class:"flex w-full justify-end"},A=g({__name:"choose-form",emits:["create"],setup(O,{emit:h}){const v=r(null),m=r(null),{data:c,run:C}=k({initalData:{}}),t=r({dzNo:"",reason:""}),B=()=>m.value.onDisplay();function D(){h("create",o(t))}return N(()=>t.value.dzNo,i=>C(V({DzNo:i}))),(i,u)=>{const d=n("ElButton"),a=n("ElFormItem"),y=n("ElInput");return p(),f("div",j,[e(o(x),{ref_key:"formRef",ref:v,model:t.value,rules:o(I)},{default:s(()=>[e(a,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:s(()=>[_("div",M,[e(d,{type:"primary",text:"",onClick:u[0]||(u[0]=()=>B())},{default:s(()=>[E("\u9009\u62E9")]),_:1})]),Object.keys(o(c)).length>0?(p(),f("div",q,[e(o(b),{columns:o(z),data:o(c)},null,8,["columns","data"])])):w("v-if",!0)]),_:1}),e(a,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason"},{default:s(()=>[e(y,{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(a,null,{default:s(()=>[_("div",U,[e(d,{type:"primary",onClick:D},{default:s(()=>[E("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(R,{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/InvoiceSales/supplierPayRelive/component/choose-form.vue"]]);export{W as default};
|