1 line
1.6 KiB
JavaScript
1 line
1.6 KiB
JavaScript
import{At as e,F as t,M as n,Pt as r,d as i,f as a,i as o,l as s,t as c,v as l}from"./_plugin-vue_export-helper-1xMDlcEE.js";var u={class:`pay-plan`},d={class:`pay-plan__methods`},f=[`onClick`],p={key:0,class:`pay-plan__terms`},m={class:`pay-plan__terms-row`},h=[`onClick`],g=c(l({__name:`PreorderPaymentFields`,props:{settlementType:{},checkTermMonths:{}},emits:[`update:settlementType`,`update:checkTermMonths`],setup(c,{emit:l}){let g=l,_=[{value:`cash`,title:`نقدی`,hint:`کل مبلغ بهصورت نقدی`},{value:`cash_check`,title:`نصف نقد، نصف چکی`,hint:`نیمی نقد و نیمی چک`},{value:`check`,title:`چکی`,hint:`کل مبلغ با چک`}],v=[1,2,3,4];return(l,y)=>(n(),a(`fieldset`,u,[y[1]||=s(`legend`,{class:`pay-plan__legend`},`روش پرداخت`,-1),y[2]||=s(`p`,{class:`pay-plan__note`},`قیمت پیشسفارش به روش پرداخت بستگی دارد. قبل از اعلام قیمت باید مشخص شود.`,-1),s(`div`,d,[(n(),a(o,null,t(_,t=>s(`button`,{key:t.value,type:`button`,class:e([`pay-plan__method`,{"pay-plan__method--active":c.settlementType===t.value}]),onClick:e=>g(`update:settlementType`,t.value)},[s(`strong`,null,r(t.title),1),s(`span`,null,r(t.hint),1)],10,f)),64))]),c.settlementType===`check`||c.settlementType===`cash_check`?(n(),a(`div`,p,[y[0]||=s(`span`,{class:`pay-plan__terms-label`},`مدت چک`,-1),s(`div`,m,[(n(),a(o,null,t(v,t=>s(`button`,{key:t,type:`button`,class:e([`pay-plan__term`,{"pay-plan__term--active":c.checkTermMonths===t}]),onClick:e=>g(`update:checkTermMonths`,t)},r(t)+` ماهه `,11,h)),64))])])):i(``,!0)]))}}),[[`__scopeId`,`data-v-a4758125`]]);export{g as t}; |