Files
tehran_taj/apps/admin-panel/dist/assets/omdeListModel-BTr7riLP.js
T

2 lines
12 KiB
JavaScript
Raw Normal View History

2026-09-18 19:58:29 +03:30
import{c as a,I as fe,d as _e,b as R,i as $,g as o,e as S,o as c,f as p,j as w,l as A,t as h,h as i,n as m,H as pe,E as me,N as ve,L as we,s as I,m as j,K as H,r as B,V as ye,x as D,z as C,a as he}from"./index-CN5qk4at.js";import{X as Ce,a as ge,b as l}from"./model-GAigmnKO.js";import{L as xe}from"./ListPageHeader-BSVyX_RW.js";import{_ as Se}from"./bulkCustomer.vue_vue_type_script_setup_true_lang-kO9tdfhh.js";import{S as ke,U as be,a as V}from"./UnorderedListOutlined-BTP2AUVJ.js";var Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"};function Q(d){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?Object(arguments[r]):{},y=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(y=y.concat(Object.getOwnPropertySymbols(u).filter(function(n){return Object.getOwnPropertyDescriptor(u,n).enumerable}))),y.forEach(function(n){Te(d,n,u[n])})}return d}function Te(d,r,u){return r in d?Object.defineProperty(d,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):d[r]=u,d}var E=function(r,u){var y=Q({},r,u.attrs);return a(fe,Q({},y,{icon:Oe}),null)};E.displayName="CloudDownloadOutlined";E.inheritAttrs=!1;const $e={id:"page-user-list"},Ie={key:1},je={class:"text-danger"},Be={key:0},De={key:1},Ne={class:"flex"},Ae={class:"cursor-pointer flex items-center"},He={class:"flex gap-2"},Ve={class:"flex gap-2"},Ee={class:"flex gap-2"},Pe={class:"flex gap-2"},ze={class:"flex gap-2"},Le={class:"flex gap-2"},Me={class:"flex gap-2"},Ue={class:"flex gap-2"},Xe={class:"flex gap-2"},Ke=_e({__name:"OmdeCustomerList",props:{title:{},model:{},rejectOnlyStepOne:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1}},setup(d){const r=d,u=he(),y=R(),n=e=>!!y.hasPermission(e),g=B(null),b=B(!1),O=B(void 0),x=B(void 0);function q(e){const s=e;x.value={count:s&&s.count?s.count:void 0,total:s&&s.total?s.total:void 0}}function G(e,s){const _=String(e.key);return _==="5"||_==="6"||_==="7"||_==="8"||_==="9"}function J(e){switch(e.sts_verify_step_one){case 1:return"در انتظار تایید ورود مشتری";case 2:return"رد ورود مشتری";case 3:return"تایید ورود مشتری"}}function P(e){switch(e.sts_verify_step_one){case 1:return"HelpCircleIcon";case 2:return"SlashIcon";case 3:return"CheckIcon"}}function K(e){switch(e.sts_verify_step_two){case 1:return"در انتظار فعال سازی";case 2:return"غیر فعال سازی";case 3:return"فعال سازی"}}function z(e){switch(e.sts_verify_step_two){case 1:return"HelpCircleIcon";case 2:return"SlashIcon";case 3:return"CheckIcon"}}function L(e){return e==="HelpCircleIcon"?ye:e==="CheckIcon"?H:V}function M(e){return e==="HelpCircleIcon"?"text-primary":e==="CheckIcon"?"text-success":"text-danger"}async function T(e,s){var _;try{await D.post("major/verify",e),C.info("تغییرات ثبت شد "),(_=g.value)==null||_.fetch()}catch{C.error(s)}}const U=e=>T({customer_id:e,sts_verify_step_one:2},"خطا در تغییر وضعیت اولیه مشتری"),N=e=>T({customer_id:e,sts_verify_step_one:3},"خطا در تغییر وضعیت اولیه مشتری"),X=e=>T({customer_id:e,sts_verify_step_two:2},"خطا در تغییر وضعیت سف