1 |
- import{_ as g,d as k,x as r,bc as x,r as c,o as p,c as f,l as e,D as l,h as _,M as h,m as t,aN as z,a as w,aQ as R,dI as V}from"./index.js";import I from"./choose-modal.eff1aa.js";import{h as b,d as j}from"./index.5f728d54.js";import{p as A,a as M}from"./purchPay.db2f1e31.js";import"./porder.9a85976d.js";import"./date-range.4010f801.js";const O={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"}]},P={"w-full":""},U={class:"w-full flex justify-end"},q={key:0,class:"w-full"},L={class:"flex w-full justify-end"},T=k({__name:"choose-form",emits:["create"],setup(H,{emit:v}){const s=r(!1),E=r(null),d=r(null),{data:m,run:D}=x({initalData:{}}),o=r({dzNo:"",reason:""}),C=()=>d.value.onDisplay(),y=()=>v("create",o.value,s.value);function B(i,a){o.value.dzNo=i;const u=a.slice(3,9);s.value=u<V,D(s.value?b({DzNo:o.value.dzNo}):j({dzNo:o.value.dzNo}))}return(i,a)=>{const u=c("ElButton"),n=c("ElFormItem"),N=c("ElInput");return p(),f("div",P,[e(t(R),{ref_key:"formRef",ref:E,model:o.value,rules:t(O)},{default:l(()=>[e(n,{label:"\u91C7\u8D2D\u4ED8\u6B3E",prop:"dzNo"},{default:l(()=>[_("div",U,[e(u,{type:"primary",text:"",onClick:a[0]||(a[0]=()=>C())},{default:l(()=>[h(" \u9009\u62E9 ")]),_:1})]),Object.keys(t(m)).length>0?(p(),f("div",q,[e(t(z),{columns:s.value?t(A):t(M),data:t(m)},null,8,["columns","data"])])):w("v-if",!0)]),_:1}),e(n,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason"},{default:l(()=>[e(N,{modelValue:o.value.reason,"onUpdate:modelValue":a[1]||(a[1]=F=>o.value.reason=F),placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0"},null,8,["modelValue"])]),_:1}),e(n,null,{default:l(()=>[_("div",L,[e(u,{type:"primary",onClick:y},{default:l(()=>[h("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(I,{ref_key:"chooseModalRef",ref:d,onChoose:B},null,512)])}}});var W=g(T,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/purchPayRelive/component/choose-form.vue"]]);export{W as default};
|