choose-form.41875087.js 2.1 KB

1
  1. import{_ as F,d as w,w as r,b3 as x,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,aR as N}from"./index.88f7d256.js";import R from"./choose-modal.fbf405e6.js";import{h as V}from"./index.aa2570c0.js";import{B as z}from"./basic-descriptions.5c20357d.js";import{p as b}from"./purchPay.16ad270f.js";import"./porder.b626a198.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=w({__name:"choose-form",emits:["create"],setup(P,{emit:E}){const v=r(null),m=r(null),{data:c,run:y}=x({initalData:{}}),t=r({dzNo:"",reason:""}),B=()=>m.value.onDisplay();function C(){E("create",o(t))}return g(()=>t.value.dzNo,d=>y(V({DzNo:d}))),(d,u)=>{const i=n("ElButton"),l=n("ElFormItem"),D=n("ElInput");return p(),f("div",M,[e(o(N),{ref_key:"formRef",ref:v,model:t.value,rules:o(I)},{default:a(()=>[e(l,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:a(()=>[_("div",j,[e(i,{type:"primary",text:"",onClick:u[0]||(u[0]=()=>B())},{default:a(()=>[h("\u9009\u62E9")]),_:1})]),Object.keys(o(c)).length>0?(p(),f("div",q,[e(o(z),{columns:o(b),data:o(c)},null,8,["columns","data"])])):k("v-if",!0)]),_:1}),e(l,{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]=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(i,{type:"primary",onClick:C},{default:a(()=>[h("\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/supply/purchPayRelive/component/choose-form.vue"]]);export{W as default};