choose-form.a143c49b.js 2.0 KB

1
  1. import{_ as F,d as g,w as r,b3 as k,z as w,r as n,o as f,c as p,l as e,C as a,b as _,M as E,u as o,a as N,aR as x}from"./index.88f7d256.js";import R from"./choose-modal.260c5978.js";import{h as V}from"./index.aa2570c0.js";import{p as z}from"./purchPay.16ad270f.js";import"./porder.b626a198.js";import{B as b}from"./basic-descriptions.5c20357d.js";import"./status.2df4810d.js";import"./date-range.b361462b.js";import"./tootip.514b092e.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"}]},M={"w-full":""},j={class:"w-full flex justify-end"},q={key:0,class:"w-full"},A={class:"flex w-full justify-end"},O=g({__name:"choose-form",emits:["create"],setup(P,{emit:v}){const h=r(null),m=r(null),{data:i,run:B}=k({initalData:{}}),t=r({dzNo:"",reason:""}),C=()=>m.value.onDisplay();function D(){v("create",o(t))}return w(()=>t.value.dzNo,c=>B(V({DzNo:c}))),(c,u)=>{const d=n("ElButton"),l=n("ElFormItem"),y=n("ElInput");return f(),p("div",M,[e(o(x),{ref_key:"formRef",ref:h,model:t.value,rules:o(I)},{default:a(()=>[e(l,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:a(()=>[_("div",j,[e(d,{type:"primary",text:"",onClick:u[0]||(u[0]=()=>C())},{default:a(()=>[E("\u9009\u62E9")]),_:1})]),Object.keys(o(i)).length>0?(f(),p("div",q,[e(o(b),{columns:o(z),data:o(i)},null,8,["columns","data"])])):N("v-if",!0)]),_:1}),e(l,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason"},{default:a(()=>[e(y,{modelValue:t.value.reason,"onUpdate:modelValue":u[1]||(u[1]=s=>t.value.reason=s),placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0"},null,8,["modelValue"])]),_:1}),e(l,null,{default:a(()=>[_("div",A,[e(d,{type:"primary",onClick:D},{default:a(()=>[E("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(R,{ref_key:"chooseModalRef",ref:m,onChoose:u[2]||(u[2]=s=>t.value.dzNo=s)},null,512)])}}});var W=F(O,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/InvoiceSales/supplierPayRelive/component/choose-form.vue"]]);export{W as default};