modal.6958ab.js 1.7 KB

1
  1. import{_ as D,d as g,x as u,r as i,o as s,G as t,D as l,h as x,l as r,M as m,a as F}from"./index.js";import b from"./qr.2133c3.js";import B from"./cg.7c84ec.js";import R from"./single.ab4211.js";import"./index.46b8bf10.js";const A=g({__name:"modal",props:["companyNo","supplierNo"],emits:["add"],setup(e,{expose:y,emit:N}){const f=u(null),o=u("1"),_=u([]),a=u(!1);function C(){a.value=!0,f.value.onSearch()}function V(){_.value=[]}function p(v){N("add",v),a.value=!1}return y({open:C}),(v,n)=>{const d=i("el-radio"),E=i("el-radio-group"),k=i("el-dialog");return s(),t(k,{modelValue:a.value,"onUpdate:modelValue":n[1]||(n[1]=c=>a.value=c),title:"\u53D1\u8D27\u8FD0\u5355",center:"",onClose:V,"close-on-click-modal":!1,"close-on-press-escape":!1},{default:l(()=>[x("div",null,[r(E,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=c=>o.value=c)},{default:l(()=>[r(d,{label:"1"},{default:l(()=>[m("\u52FE\u9009\u67E5\u627E")]),_:1}),r(d,{label:"2"},{default:l(()=>[m("\u6279\u91CF\u67E5\u627E(\u91C7\u8D2D\u5355\u53F7)")]),_:1}),r(d,{label:"3"},{default:l(()=>[m("\u6279\u91CF\u67E5\u627E(\u9500\u552E\u5355\u53F7)")]),_:1})]),_:1},8,["modelValue"]),o.value==="3"?(s(),t(b,{key:0,onAdd:p,"supplier-no":e.supplierNo,"company-no":e.companyNo},null,8,["supplier-no","company-no"])):o.value==="2"?(s(),t(B,{key:1,onAdd:p,"supplier-no":e.supplierNo,"company-no":e.companyNo},null,8,["supplier-no","company-no"])):o.value==="1"?(s(),t(R,{key:2,ref_key:"singleRef",ref:f,onAdd:p,"supplier-no":e.supplierNo,"company-no":e.companyNo},null,8,["supplier-no","company-no"])):F("v-if",!0)])]),_:1},8,["modelValue"])}}});var O=D(A,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/postSupplierOrder/sendOrderRecord/components/modal.vue"]]);export{O as default};