bug fix in mege

This commit is contained in:
Hesabix 2025-03-21 18:52:08 +00:00
parent 8a923f29e0
commit 4ce9f78fed
382 changed files with 292 additions and 48172 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ hesabixArchive/
hesabixBackup/
backup/
.idea/
public_html/webui/*

View file

@ -5,12 +5,27 @@ namespace App\Controller\Front;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Annotation\Route;
use App\Service\registryMGR;
class UiGeneralController extends AbstractController
{
#[Route('/', name: 'general_home')]
public function general_home(): JsonResponse
{
return $this->json(['message'=>'System is running ...']);
return $this->json(['message' => 'System is running ...']);
}
#[Route('/system/getname', name: 'general_get_name')]
public function general_get_name(registryMGR $registryManager): JsonResponse
{
$name = $registryManager->get('system', 'appName');
return $this->json($name);
}
#[Route('/system/geturl', name: 'general_get_url')]
public function general_get_url(registryMGR $registryManager): JsonResponse
{
$url = $registryManager->get('system', 'appUrl');
return $this->json($url);
}
}

View file

@ -1,84 +1,15 @@
# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
DirectoryIndex index.php
# By default, Apache does not evaluate symbolic links if you did not enable this
# feature in your server configuration. Uncomment the following line if you
# install assets as symlinks or if you experience problems related to symlinks
# when compiling LESS/Sass/CoffeScript assets.
# Options +FollowSymlinks
# Disabling MultiViews prevents unwanted negotiation, e.g. "/index" should not resolve
# to the front controller "/index.php" but be rewritten to "/index.php/index".
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
<IfModule mod_rewrite.c>
# This Option needs to be enabled for RewriteRule, otherwise it will show an error like
# 'Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden'
Options +FollowSymlinks
RewriteEngine On
# Redirect www to non-www with HTTPS
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# Determine the RewriteBase automatically and set it as environment variable.
# If you are using Apache aliases to do mass virtual hosting or installed the
# project in a subdirectory, the base path will be prepended to allow proper
# resolution of the index.php file and to redirect to the correct URI. It will
# work in environments without path prefix as well, providing a safe, one-size
# fits all solution. But as you do not need it in this case, you can comment
# the following 2 lines to eliminate the overhead.
RewriteCond %{REQUEST_URI}::$0 ^(/.+)/(.*)::\2$
RewriteRule .* - [E=BASE:%1]
# Sets the HTTP_AUTHORIZATION header removed by Apache
RewriteCond %{HTTP:Authorization} .+
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0]
# Redirect to URI without front controller to prevent duplicate content
# (with and without `/index.php`). Only do this redirect on the initial
# rewrite by Apache and not on subsequent cycles. Otherwise we would get an
# endless redirect loop (request -> rewrite to front controller ->
# redirect -> request -> ...).
# So in case you get a "too many redirects" error or you always get redirected
# to the start page because your Apache does not expose the REDIRECT_STATUS
# environment variable, you have 2 choices:
# - disable this feature by commenting the following 2 lines or
# - use Apache >= 2.3.9 and replace all L flags by END flags and remove the
# following RewriteCond (best solution)
RewriteCond %{ENV:REDIRECT_STATUS} =""
RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
# Exclude /webui paths for VueJS frontend
# If the request starts with /webui (e.g., /app/etc/webui), stop processing here
# and let the request go to the webui folder
RewriteCond %{REQUEST_URI} ^%{ENV:BASE}/webui(/|$) [NC]
# اگه درخواست با /webui شروع بشه، قوانین بعدی رو اعمال نکن و بذار فایل‌های اونجا مستقیماً لود بشن
RewriteCond %{REQUEST_URI} ^/webui(/|$) [NC]
RewriteRule ^ - [L]
# If the requested filename exists, simply serve it.
# We only want to let Apache serve files and not directories.
# Rewrite all other queries (not starting with /webui) to the front controller.
# اگه فایل یا دایرکتوری فیزیکی وجود داره (مثل فایل‌های استاتیک)، مستقیماً لودش کن
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ %{ENV:BASE}/index.php [L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
# When mod_rewrite is not available, we instruct a temporary redirect of
# the start page to the front controller explicitly so that the website
# and the generated links can still be used.
RedirectMatch 307 ^/$ /index.php/
# Note: Without mod_rewrite, separating /webui (VueJS) and Symfony paths
# won't work as intended because we can't use RewriteCond to exclude /webui.
# In this case, all requests will go to index.php unless a physical file exists.
# To fix this, youd need to enable mod_rewrite or manually configure your
# server (e.g., via Apache aliases or a different setup).
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-d
# همه درخواست‌های دیگه رو به index.php سمفونی بفرست
RewriteRule ^ /index.php [L]
</IfModule>

View file

@ -1,17 +1,14 @@
#Alternate default index page
DirectoryIndex index.html
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteBase /webui/
# اگه درخواست مستقیماً index.html باشه، همون رو لود کن
RewriteRule ^index\.html$ - [L]
# اگه فایل یا دایرکتوری فیزیکی وجود نداره، به index.html برو
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
RewriteCond %{HTTPS} off
</IfModule>
RewriteRule ^ /webui/index.html [L]
</IfModule>

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
.shortcut-key{font-size:.75rem;color:#888;margin-right:4px}.shortcut-hint{z-index:1000}.shortcut-item{border:1px solid #e0e0e0;border-radius:4px;background-color:#fafafa}.shortcut-display{font-size:.9rem;color:#555}.shortcut-input{max-width:60px}.v-data-table{overflow-x:auto}.expanded-row{background-color:#f5f5f5!important;padding:8px}.custom-header{background-color:#213e8b!important;color:#fff!important}

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
[data-v-54a776ae]{transition:all .6s}html[data-v-54a776ae]{height:100%}body[data-v-54a776ae]{font-family:Lato,sans-serif;color:#888;margin:0}#main[data-v-54a776ae]{display:table;width:100%;height:100vh;text-align:center}.fof[data-v-54a776ae]{display:table-cell;vertical-align:middle}.fof h1[data-v-54a776ae]{font-size:50px;display:inline-block;padding-right:12px;animation:type-54a776ae .5s alternate infinite}@keyframes type-54a776ae{0%{box-shadow:inset -3px 0 #888}to{box-shadow:inset -3px 0 0 transparent}}

View file

@ -1 +0,0 @@
import{_}from"./main-9b36f05f.js";import{a as t,o as c,s as i,e as o,b as n,w as d,d as l,t as r}from"./vendor-adef9cb4.js";const p={},m={id:"main",class:"bg-indigo-lighten-5"},u={class:"fof"};function f(e,g){const s=t("v-empty-state"),a=t("v-btn");return c(),i("div",m,[o("div",u,[o("h1",null,[n(s,{headline:e.$t("static.not_found"),title:"404",text:e.$t("static.not_found_info"),image:"/img/logo-blue.png"},null,8,["headline","text"]),n(a,{color:"success",to:"/","prepend-icon":"mdi-home"},{default:d(()=>[l(r(e.$t("static.home_page")),1)]),_:1})])])])}const b=_(p,[["render",f],["__scopeId","data-v-54a776ae"]]);export{b as default};

View file

@ -1 +0,0 @@
import{_ as a}from"./main-9b36f05f.js";import{o as s,s as c}from"./vendor-adef9cb4.js";const n={name:"ReferralRedirect",beforeRouteEnter(r,o,t){const e=r.params.param;e&&localStorage.setItem("inviteCode",e),t("/user/register")}};function f(r,o,t,e,i,m){return s(),c("div")}const l=a(n,[["render",f]]);export{l as default};

View file

@ -1 +0,0 @@
import{a as v,S as C,_ as A}from"./main-9b36f05f.js";import{h as w,r as b,a as s,o as u,s as d,b as o,w as a,A as $,F,d as _,aa as B,e as h,t as r}from"./vendor-adef9cb4.js";const E=w({name:"active_account",data(){return{dialog:!1,dialogSuccess:!1,loading:!1,disableSend:!0,code:"",user:{mobile:"",email:""},response:{code:"",message:"",Success:!1,data:{id:""}}}},watch:{code(e,t){Object.keys(e).length==6?this.disableSend=b(!1):this.disableSend=b(!0)}},methods:{onResendCodeClick(){v.post("/api/user/register/resend-active-code",{mobile:this.$route.params.id}).then(e=>{e.data.Success==!0?C.fire({text:this.$t("user.resendCode"),confirmButtonText:this.$t("dialog.ok"),icon:"success"}):C.fire({text:e.data.message,confirmButtonText:this.$t("dialog.ok"),icon:"error"})})},submit(){this.loading=!0,v.post("/api/user/active/account",{mobile:this.$route.params.id,code:this.code}).then(e=>{e.data.Success==!1?(this.response=e.data,this.dialog=!0):(this.response=e.data,this.dialogSuccess=!0),this.loading=!1})}}}),N={key:0,class:"text-center"},T={key:1,class:"text-center"};function U(e,t,j,L,R,z){const c=s("v-card-text"),k=s("v-otp-input"),S=s("v-icon"),n=s("v-btn"),m=s("v-col"),p=s("v-row"),V=s("v-form"),i=s("v-card"),y=s("v-container"),f=s("v-spacer"),g=s("v-dialog");return u(),d(F,null,[o(y,null,{default:a(()=>[o(p,{class:"d-flex justify-center"},{default:a(()=>[o(m,{md:"5"},{default:a(()=>[o(i,{loading:e.loading?"blue":null,disabled:e.loading,title:e.$t("app.name"),subtitle:e.$t("user.active_account")},{default:a(()=>[o(c,null,{default:a(()=>t[7]||(t[7]=[_(" کد ارسالی از طریق پیامک و یا پست الکترونیکی دریافتی خود را در کادر زیر وارد نمایید. ")])),_:1}),o(V,{ref:"form",disabled:e.loading,"fast-fail":"",onSubmit:t[2]||(t[2]=B(l=>e.submit(),["prevent"]))},{default:a(()=>[o(c,null,{default:a(()=>[o(k,{"focus-all":"",modelValue:e.code,"onUpdate:modelValue":t[0]||(t[0]=l=>e.code=l),style:{direction:"ltr"}},null,8,["modelValue"]),o(p,null,{default:a(()=>[o(m,{class:"my-2 mx-4"},{default:a(()=>[o(S,{icon:"mdi-phone"}),h("b",null,r(e.$t("user.your_phone_number",{mobile:e.$route.params.id})),1),o(n,{class:"float-end",color:"indigo",onClick:t[1]||(t[1]=l=>e.onResendCodeClick())},{default:a(()=>[h("span",null,r(e.$t("user.send_again")),1)]),_:1})]),_:1})]),_:1}),o(n,{disabled:e.disableSend,loading:e.loading,block:"",class:"text-none mb-4",color:"indigo-darken-3",size:"x-large",variant:"flat","prepend-icon":"mdi-send",type:"submit"},{default:a(()=>[_(r(e.$t("dialog.active_account")),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1},8,["disabled"])]),_:1},8,["loading","disabled","title","subtitle"])]),_:1})]),_:1})]),_:1}),e.dialog?(u(),d("div",N,[o(g,{modelValue:e.dialog,"onUpdate:modelValue":t[4]||(t[4]=l=>e.dialog=l),"max-width":"500",persistent:""},{default:a(()=>[o(i,{color:"dangerLight","prepend-icon":"mdi-close-octagon ",title:e.$t("dialog.error"),text:e.response.message},{actions:a(()=>[o(f),o(n,{color:"primary",text:e.$t("dialog.ok"),variant:"flat",onClick:t[3]||(t[3]=l=>{e.dialog=!1,e.loading=!1,e.code=""})},null,8,["text"])]),_:1},8,["title","text"])]),_:1},8,["modelValue"])])):$("",!0),e.dialogSuccess?(u(),d("div",T,[o(g,{modelValue:e.dialogSuccess,"onUpdate:modelValue":t[6]||(t[6]=l=>e.dialogSuccess=l),"max-width":"500",persistent:""},{default:a(()=>[o(i,{color:"successLight","prepend-icon":"mdi-check-bold ",title:e.$t("dialog.title"),text:e.response.message},{actions:a(()=>[o(f),o(n,{color:"primary",text:e.$t("dialog.ok"),variant:"flat",onClick:t[5]||(t[5]=l=>{e.dialog=!1,e.loading=!1,e.$router.push({name:"user_login"})})},null,8,["text"])]),_:1},8,["title","text"])]),_:1},8,["modelValue"])])):$("",!0)],64)}const O=A(E,[["render",U]]);export{O as default};

View file

@ -1 +0,0 @@
import{a as u,S as i,_ as a}from"./main-9b36f05f.js";import{h as n,o as l,s as r,e,u as d,ab as m}from"./vendor-adef9cb4.js";const p=n({name:"add-mobile",data:()=>({phoneNumber:"",user:{id:""},isLoading:!1}),mounted(){this.loadData()},methods:{loadData(){u.post("/api/user/current/info").then(s=>{this.user=s.data,s.data.mobile&&this.$router.push("/user/active/"+this.user.id.toString())})},save(){this.phoneNumber.length===11?(this.isLoading=!0,u.post("/api/user/save/mobile-number",{mobile:this.phoneNumber}).then(s=>{this.isLoading=!1,this.$router.push("/user/active/"+this.user.id)})):i.fire({text:"شماره وارد شده صحیح نیست.",confirmButtonText:"قبول"})}}}),b={class:"block block-rounded"},h={class:"block-content mt-0"},c={class:"row pb-sm-3 pb-md-5"},f={class:"col-sm-12 col-md-6"},v={class:"form-floating mb-3"},k=["disabled"];function _(s,t,g,$,B,N){return l(),r("div",b,[t[3]||(t[3]=e("div",{class:"block-header block-header-default"},[e("h3",{class:"block-title"}," ثبت شماره تلفن همراه ")],-1)),e("div",h,[e("div",c,[e("div",f,[e("div",v,[d(e("input",{class:"form-control",type:"text","onUpdate:modelValue":t[0]||(t[0]=o=>s.phoneNumber=o),placeholder:"09181234567"},null,512),[[m,s.phoneNumber]]),t[2]||(t[2]=e("label",null,"شماره تلفن همراه",-1))]),e("button",{onClick:t[1]||(t[1]=o=>s.save()),disabled:s.isLoading,type:"button",class:"btn btn-alt-primary mt-3 mb-4"},"ثبت شماره تلفن",8,k)])])])])}const L=a(p,[["render",_]]);export{L as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{_ as b,L as i,a as f}from"./main-9b36f05f.js";import{a as u,o as t,s as o,e as s,d as c,b as p,t as n,A as l}from"./vendor-adef9cb4.js";const m={name:"balanceSheet",components:{Loading:i},data:()=>({isLoading:!0,YearInfo:{banks:{bs:0,bd:0},cashdesks:{bs:0,bd:0},salarys:{bs:0,bd:0},persons:{bs:0,bd:0},year:{label:""}}}),mounted(){this.loadData()},methods:{loadData(){f.post("/api/year/lastyear/info").then(e=>{this.YearInfo=e.data,this.isLoading=!1})}}},k={class:"block block-content-full"},h={class:"block-content pt-1 pb-3 vl-parent"},I={class:"row"},Y={class:"col-sm-12 col-md-6"},y={class:"block block-rounded block-mode-loading-refresh"},g={class:"block-content p-0"},w={class:"table table-striped table-hover table-borderless table-vcenter fs-sm text-center"},v={class:"fs-sm text-muted"},N={key:0,class:"fw-semibold text-warning"},$={key:1,class:"fw-semibold text-success"},L={key:2,class:"fw-semibold text-dark"},_={class:"fs-sm text-muted"},M={key:0,class:"fw-semibold text-warning"},V={key:1,class:"fw-semibold text-success"},B={key:2,class:"fw-semibold text-dark"},D={class:"fs-sm text-muted"},S={key:0,class:"fw-semibold text-warning"},C={key:1,class:"fw-semibold text-success"},A={key:2,class:"fw-semibold text-dark"},E={key:0,class:"fs-sm text-muted"},T={key:1,class:"text-muted"};function U(e,a,j,q,z,F){const d=u("loading");return t(),o("div",k,[a[8]||(a[8]=s("div",{id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},[s("h3",{class:"block-title text-primary-dark"},[s("i",{class:"mx-2 fa fa-table"}),c(" ترازنامه ")])],-1)),s("div",h,[p(d,{color:"blue",loader:"dots",active:e.isLoading,"onUpdate:active":a[0]||(a[0]=r=>e.isLoading=r),"is-full-page":!1},null,8,["active"]),s("div",I,[s("div",Y,[s("div",y,[a[7]||(a[7]=s("div",{class:"block-header block-header-default bg-success text-light"},[s("h3",{class:"block-title"},"دارائی‌ها"),s("div",{class:"block-options"})],-1)),s("div",g,[s("table",w,[a[6]||(a[6]=s("thead",null,[s("tr",{class:"text-uppercase"},[s("th",null,"آیتم"),s("th",null,"مبلغ"),s("th",null,"وضعیت")])],-1)),s("tbody",null,[s("tr",null,[a[1]||(a[1]=s("td",null,[s("span",{class:"fw-semibold"},"بانک‌ها")],-1)),s("td",null,[s("span",v,n(this.$filters.formatNumber(Math.abs(e.YearInfo.banks.bs-e.YearInfo.banks.bd))),1)]),s("td",null,[e.YearInfo.banks.bs-e.YearInfo.banks.bd>0?(t(),o("span",N,"بدهکار")):l("",!0),e.YearInfo.banks.bs-e.YearInfo.banks.bd<0?(t(),o("span",$,"بستانکار")):l("",!0),e.YearInfo.banks.bs-e.YearInfo.banks.bd==0?(t(),o("span",L,"تسویه")):l("",!0)])]),s("tr",null,[a[2]||(a[2]=s("td",null,[s("span",{class:"fw-semibold"},"صندوق‌ها")],-1)),s("td",null,[s("span",_,n(this.$filters.formatNumber(Math.abs(e.YearInfo.cashdesks.bd-e.YearInfo.cashdesks.bs))),1)]),s("td",null,[e.YearInfo.cashdesks.bs-e.YearInfo.cashdesks.bd>0?(t(),o("span",M,"بدهکار")):l("",!0),e.YearInfo.cashdesks.bs-e.YearInfo.cashdesks.bd<0?(t(),o("span",V,"بستانکار")):l("",!0),e.YearInfo.cashdesks.bs-e.YearInfo.cashdesks.bd==0?(t(),o("span",B,"تسویه")):l("",!0)])]),s("tr",null,[a[3]||(a[3]=s("td",null,[s("span",{class:"fw-semibold"},"تنخواه گردان‌ها")],-1)),s("td",null,[s("span",D,n(this.$filters.formatNumber(Math.abs(e.YearInfo.salarys.bd-e.YearInfo.salarys.bs))),1)]),s("td",null,[e.YearInfo.salarys.bs-e.YearInfo.salarys.bd>0?(t(),o("span",S,"بدهکار")):l("",!0),e.YearInfo.salarys.bs-e.YearInfo.salarys.bd<0?(t(),o("span",C,"بستانکار")):l("",!0),e.YearInfo.salarys.bs-e.YearInfo.salarys.bd==0?(t(),o("span",A,"تسویه")):l("",!0)])]),s("tr",null,[a[4]||(a[4]=s("td",null,[s("span",{class:"fw-semibold"},"بدهکاران")],-1)),s("td",null,[e.YearInfo.persons.bs-e.YearInfo.persons.bd<0?(t(),o("span",E,n(this.$filters.formatNumber(Math.abs(e.YearInfo.persons.bs-e.YearInfo.persons.bd))),1)):(t(),o("span",T,"0"))]),a[5]||(a[5]=s("td",null,null,-1))])])])])])])])])])}const J=b(m,[["render",U]]);export{J as default};

View file

@ -1 +0,0 @@
.required label[data-v-86bb7d66]:before{content:"*";color:red}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{_ as h,a as c}from"./main-9b36f05f.js";import{r as f,a as i,o as v,s as g,e,d as a,t as d,b as r,w as n,u as j,ab as y}from"./vendor-adef9cb4.js";const k={name:"card",data:()=>({searchValue:"",objectItems:[{name:""}],selectedObjectItem:{},items:[],loading:f(!0),headers:[{text:"عملیات",value:"operation"},{text:"تاریخ",value:"date",sortable:!0},{text:"شرح",value:"des"},{text:"تفضیل",value:"ref",sortable:!0},{text:"بدهکار",value:"bd",sortable:!0},{text:"بستانکار",value:"bs",sortable:!0}]}),mounted(){this.loadData()},methods:{updateRoute(s){this.$router.push(s),this.loadData()},loadData(){c.post("/api/salary/list").then(s=>{this.objectItems=s.data,this.$route.params.id!=""?(this.loadObject(this.$route.params.id),this.objectItems.forEach(t=>{t.code==this.$route.params.id&&(this.selectedObjectItem=t)})):(this.selectedObjectItem=s.data[0],this.loadObject(this.selectedObjectItem.code))})},loadObject(s){this.loading=!0,c.post("/api/accounting/rows/search",{type:"salary",id:s}).then(t=>{this.items=t.data,this.items.forEach(l=>{l.bs=this.$filters.formatNumber(l.bs),l.bd=this.$filters.formatNumber(l.bd)}),this.loading=!1})}}},_={class:"block block-content-full"},w={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},O={class:"block-title text-primary-dark"},I={class:"block-content pt-1 pb-3"},x={class:"row"},$={class:"col-sm-12 col-md-12 m-0 p-0"},V={class:"col-sm-12 col-md-6 mb-1"},D={class:"card push"},E={class:"card-header border-bottom-0 bg-primary-dark text-light"},N={class:"block-title"},M={class:"text-info-light"},T={class:"card-body"},B={class:"fw-bold mb-2"},C={class:"text-primary"},P={class:"fw-bold mb-2"},R={class:"text-primary"},S={class:"fw-bold mb-2"},U={class:"text-primary"},z={class:"row"},q={class:"col-sm-12 col-md-12"},A={class:"mb-1"},F={class:"input-group input-group-sm"};function G(s,t,l,H,J,m){const b=i("v-cob"),u=i("router-link"),p=i("EasyDataTable");return v(),g("div",_,[e("div",w,[e("h3",O,[e("button",{onClick:t[0]||(t[0]=o=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[4]||(t[4]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[5]||(t[5]=a(" تراکنش های تنخواه گردان "))])]),e("div",I,[e("div",x,[e("div",$,[e("div",V,[e("div",D,[e("div",E,[e("h3",N,[t[6]||(t[6]=a(" گردش حساب ")),e("small",M,d(s.selectedObjectItem.name),1)])]),e("div",T,[t[11]||(t[11]=e("small",{class:"mb-2"},"تنخواه گردان",-1)),r(b,{dir:"rtl",options:s.objectItems,label:"name",modelValue:s.selectedObjectItem,"onUpdate:modelValue":t[1]||(t[1]=o=>s.selectedObjectItem=o),"onOption:selected":t[2]||(t[2]=o=>m.updateRoute(s.selectedObjectItem.code))},{"no-options":n(({search:o,searching:K,loading:L})=>t[7]||(t[7]=[a(" نتیجه‌ای یافت نشد! ")])),_:1},8,["options","modelValue"]),t[12]||(t[12]=e("hr",null,null,-1)),e("div",B,[t[8]||(t[8]=a("کد حسابداری: ")),e("small",C,d(s.selectedObjectItem.code),1)]),e("div",P,[t[9]||(t[9]=a("نام : ")),e("small",R,d(s.selectedObjectItem.name),1)]),e("div",S,[t[10]||(t[10]=a("شرح: ")),e("small",U,d(s.selectedObjectItem.des),1)])])])])])]),e("div",z,[e("div",q,[t[15]||(t[15]=e("h3",null,"تراکنش ها:",-1)),e("div",A,[e("div",F,[t[13]||(t[13]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),j(e("input",{"onUpdate:modelValue":t[3]||(t[3]=o=>s.searchValue=o),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[y,s.searchValue]])])]),r(p,{"table-class-name":"customize-table","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":n(({code:o})=>[r(u,{class:"text-success",to:"/acc/accounting/view/"+o},{default:n(()=>t[14]||(t[14]=[e("i",{class:"fa fa-eye px-1"},null,-1)])),_:2},1032,["to"])]),_:1},8,["search-value","headers","items","loading"])])])])])}const X=h(k,[["render",G]]);export{X as default};

View file

@ -1 +0,0 @@
import{_ as h,a as c}from"./main-9b36f05f.js";import{r as f,a as i,o as v,s as g,e,d as a,t as d,b as r,w as n,u as k,ab as j}from"./vendor-adef9cb4.js";const _={name:"card",data:()=>({searchValue:"",objectItems:[{name:""}],selectedObjectItem:{},items:[],loading:f(!0),headers:[{text:"عملیات",value:"operation"},{text:"تاریخ",value:"date",sortable:!0},{text:"شرح",value:"des"},{text:"تفضیل",value:"ref",sortable:!0},{text:"بدهکار",value:"bd",sortable:!0},{text:"بستانکار",value:"bs",sortable:!0}]}),mounted(){this.loadData()},methods:{updateRoute(s){this.$router.push(s),this.loadData()},loadData(){c.post("/api/cashdesk/list").then(s=>{this.objectItems=s.data,this.$route.params.id!=""?(this.loadObject(this.$route.params.id),this.objectItems.forEach(t=>{t.code==this.$route.params.id&&(this.selectedObjectItem=t)})):(this.selectedObjectItem=s.data[0],this.loadObject(this.selectedObjectItem.code))})},loadObject(s){this.loading=!0,c.post("/api/accounting/rows/search",{type:"cashdesk",id:s}).then(t=>{this.items=t.data,this.items.forEach(l=>{l.bs=this.$filters.formatNumber(l.bs),l.bd=this.$filters.formatNumber(l.bd)}),this.loading=!1})}}},w={class:"block block-content-full"},y={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},O={class:"block-title text-primary-dark"},I={class:"block-content pt-1 pb-3"},x={class:"row"},$={class:"col-sm-12 col-md-12 m-0 p-0"},V={class:"col-sm-12 col-md-6 mb-1"},D={class:"card push"},E={class:"card-header border-bottom-0 bg-primary-dark text-light"},N={class:"block-title"},M={class:"text-info-light"},T={class:"card-body"},B={class:"fw-bold mb-2"},C={class:"text-primary"},P={class:"fw-bold mb-2"},R={class:"text-primary"},S={class:"fw-bold mb-2"},U={class:"text-primary"},z={class:"row"},q={class:"col-sm-12 col-md-12"},A={class:"mb-1"},F={class:"input-group input-group-sm"};function G(s,t,l,H,J,m){const b=i("v-cob"),u=i("router-link"),p=i("EasyDataTable");return v(),g("div",w,[e("div",y,[e("h3",O,[e("button",{onClick:t[0]||(t[0]=o=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[4]||(t[4]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[5]||(t[5]=a(" تراکنش های صندوق "))])]),e("div",I,[e("div",x,[e("div",$,[e("div",V,[e("div",D,[e("div",E,[e("h3",N,[t[6]||(t[6]=a(" گردش حساب ")),e("small",M,d(s.selectedObjectItem.name),1)])]),e("div",T,[t[11]||(t[11]=e("small",{class:"mb-2"},"صندوق",-1)),r(b,{dir:"rtl",options:s.objectItems,label:"name",modelValue:s.selectedObjectItem,"onUpdate:modelValue":t[1]||(t[1]=o=>s.selectedObjectItem=o),"onOption:selected":t[2]||(t[2]=o=>m.updateRoute(s.selectedObjectItem.code))},{"no-options":n(({search:o,searching:K,loading:L})=>t[7]||(t[7]=[a(" نتیجه‌ای یافت نشد! ")])),_:1},8,["options","modelValue"]),t[12]||(t[12]=e("hr",null,null,-1)),e("div",B,[t[8]||(t[8]=a("کد حسابداری: ")),e("small",C,d(s.selectedObjectItem.code),1)]),e("div",P,[t[9]||(t[9]=a("نام : ")),e("small",R,d(s.selectedObjectItem.name),1)]),e("div",S,[t[10]||(t[10]=a("شرح: ")),e("small",U,d(s.selectedObjectItem.des),1)])])])])])]),e("div",z,[e("div",q,[t[15]||(t[15]=e("h3",null,"تراکنش ها:",-1)),e("div",A,[e("div",F,[t[13]||(t[13]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),k(e("input",{"onUpdate:modelValue":t[3]||(t[3]=o=>s.searchValue=o),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[j,s.searchValue]])])]),r(p,{"table-class-name":"customize-table","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":n(({code:o})=>[r(u,{class:"text-success",to:"/acc/accounting/view/"+o},{default:n(()=>t[14]||(t[14]=[e("i",{class:"fa fa-eye px-1"},null,-1)])),_:2},1032,["to"])]),_:1},8,["search-value","headers","items","loading"])])])])])}const X=h(_,[["render",G]]);export{X as default};

View file

@ -1 +0,0 @@
import{a as g,S as n,_ as h}from"./main-9b36f05f.js";import{h as v,r as $,a as t,o as b,s as D,b as e,w as s,F as k,aa as S,d as V,t as y}from"./vendor-adef9cb4.js";const B=v({name:"change_password",data(){return{loading:$(!1),formData:{password1:"",password2:""}}},methods:{async submit(){const{valid:o}=await this.$refs.form.validate();o&&this.formData.password1.toString()==this.formData.password2.toString()?(this.loading=!0,g.post("/api/user/change/password",{pass:this.formData.password1,repass:this.formData.password2}).then(a=>{this.loading=!1,a.data.Success==!0?n.fire({text:this.$t("pages.reset_password.password_changed"),confirmButtonText:this.$t("dialog.ok"),icon:"success"}).then(()=>{this.$router.push("/profile/dashboard")}):n.fire({text:a.data.message,confirmButtonText:this.$t("dialog.ok"),icon:"error"})})):this.formData.password1.toString()!=this.formData.password2.toString()?n.fire({text:this.$t("pages.reset_password.passwords_not_match"),confirmButtonText:this.$t("dialog.ok"),icon:"error"}):n.fire({text:this.$t("pages.reset_password.form_not_valid"),confirmButtonText:this.$t("dialog.ok"),icon:"error"})}}});function T(o,a,C,F,N,U){const d=t("v-toolbar"),l=t("v-text-field"),i=t("v-form"),p=t("v-card-text"),m=t("v-btn"),f=t("v-card-actions"),u=t("v-card"),c=t("v-col"),w=t("v-row"),_=t("v-container");return b(),D(k,null,[e(d,{color:"toolbar",title:o.$t("user.change_password")},null,8,["title"]),e(_,{class:"ma-0 pa-0"},{default:s(()=>[e(w,null,{default:s(()=>[e(c,null,{default:s(()=>[e(u,{loading:o.loading?"red":null,disabled:o.loading},{default:s(()=>[e(p,null,{default:s(()=>[e(i,{ref:"form",onSubmit:a[2]||(a[2]=S(()=>{},["prevent"]))},{default:s(()=>[e(l,{class:"mb-2",label:o.$t("user.password"),placeholder:o.$t("user.password_placeholder"),"single-line":"",type:"password",variant:"outlined","prepend-icon":"mdi-lock",modelValue:o.formData.password1,"onUpdate:modelValue":a[0]||(a[0]=r=>o.formData.password1=r),rules:[()=>o.formData.password1.length>7||o.$t("validator.password_len_lower")]},null,8,["label","placeholder","modelValue","rules"]),e(l,{label:o.$t("user.password"),placeholder:o.$t("user.password_placeholder"),"single-line":"",type:"password",variant:"outlined","prepend-icon":"mdi-lock",modelValue:o.formData.password2,"onUpdate:modelValue":a[1]||(a[1]=r=>o.formData.password2=r),rules:[()=>o.formData.password2.length>7||o.$t("validator.password_len_lower")]},null,8,["label","placeholder","modelValue","rules"])]),_:1},512)]),_:1}),e(f,null,{default:s(()=>[e(m,{loading:o.loading,onClick:a[3]||(a[3]=r=>o.submit()),type:"submit","prepend-icon":"mdi-content-save-check",variant:"flat",color:"primary"},{default:s(()=>[V(y(o.$t("dialog.save")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1})],64)}const P=h(B,[["render",T]]);export{P as default};

View file

@ -1 +0,0 @@
import{h as p,a as e,o,c,w as t,b as l,_ as d,s as g,C as v,d as f,t as b,F as h}from"./vendor-adef9cb4.js";import{_ as k}from"./main-9b36f05f.js";const C=p({name:"change_lang",data:()=>({items:[{name:"en",label:"English"},{name:"ar",label:"العربية"},{name:"fa",label:"فارسی"},{name:"ckb",label:"کوردی"},{name:"tr",label:"Türkçe"}]}),methods:{changeLanguage(n){localStorage.setItem("UI_LANG",n.name),window.location.reload()}}});function w(n,$,L,B,N,x){const r=e("v-btn"),m=e("v-list-item-title"),_=e("v-list-item"),i=e("v-list"),u=e("v-menu");return o(),c(u,null,{activator:t(({props:a})=>[l(r,d({class:"me-2",color:"white",icon:"mdi-web"},a),null,16)]),default:t(()=>[l(i,null,{default:t(()=>[(o(!0),g(h,null,v(n.items,(a,s)=>(o(),c(_,{key:s,value:s,onClick:y=>n.changeLanguage(a)},{default:t(()=>[l(m,null,{default:t(()=>[f(b(a.label),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}const I=k(C,[["render",w]]);export{I as C};

View file

@ -1 +0,0 @@
import{a as m,_ as C}from"./main-9b36f05f.js";import{h as g,r as v,a as c,o as l,s as r,e,d as i,b as p,w as n,u as y,ab as x,t as k,A as h}from"./vendor-adef9cb4.js";const V=g({name:"checkByStoreroom",data:()=>({storerooms:[],storeroom:null,searchValue:"",loading:v(!0),items:[],orgItems:[],headers:[{text:"کد",value:"commodity.code"},{text:"دسته بندی",value:"commodity.cat.name",sortable:!0},{text:"نام",value:"commodity.name",sortable:!0},{text:"واحد",value:"commodity.unit.name",sortable:!0},{text:"ورودی",value:"input",sortable:!0},{text:"خروجی",value:"output",sortable:!0},{text:"موجودی انبار",value:"existCount"},{text:"نقطه سفارش",value:"commodity.orderPoint"},{text:"وضعیت",value:"operation"}]}),watch:{searchValue(s,t){this.searchTable()}},methods:{loadData(){this.loading=!0,m.post("/api/storeroom/list").then(s=>{this.storerooms=s.data.data,this.storerooms.forEach(t=>{t.name=t.name+" انباردار : "+t.manager}),this.loading=!1})},loadStoreItems(){this.loading=!0,m.post("/api/storeroom/commodity/list/"+this.storeroom.id).then(s=>{this.items=s.data,this.orgItems=s.data,this.loading=!1})},searchTable(){this.loading=!0;let s=[],t=!1;this.searchValue==""&&(t=!0),t?this.items=this.orgItems:(this.orgItems.forEach(u=>{let a=!1;(u.commodity.name.includes(this.searchValue)||u.commodity.cat.name.includes(this.searchValue)||u.commodity.unit.name.includes(this.searchValue))&&(a=!0),a&&s.push(u)}),this.items=s),this.loading=!1}},beforeMount(){this.loadData()}}),w={class:"block block-content-full"},I={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},F={class:"block-title text-primary-dark"},A={class:"block-content pt-1 pb-3 dm-print"},E={class:"row"},_={class:"col-sm-12 col-md-12 px-0 mb-2"},D={class:"form-control"},$={class:"col-sm-12 col-md-12 m-0 p-0"},B={class:"mb-1"},M={class:"input-group input-group-sm"},S={key:0,class:"text-danger"},T={key:0,class:"text-danger"};function P(s,t,u,a,N,O){const b=c("v-cob"),f=c("EasyDataTable");return l(),r("div",w,[e("div",I,[e("h3",F,[e("button",{onClick:t[0]||(t[0]=o=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[4]||(t[4]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[5]||(t[5]=e("i",{class:"mx-2 fa fa-boxes-stacked"},null,-1)),t[6]||(t[6]=i(" موجودی کالا "))]),t[7]||(t[7]=e("div",{class:"block-options"},[e("button",{class:"btn btn-sm btn-primary mx-2",onclick:"document.getElementById('hide-on-print').classList.add('d-none');Dashmix.helpers('dm-print');",type:"button"},[e("i",{class:"si si-printer me-1"}),e("span",{class:"d-none d-sm-inline-block"},"چاپ")])],-1))]),e("div",A,[e("div",E,[e("div",_,[e("div",D,[t[9]||(t[9]=e("label",{class:"form-label"},[i(" انبار : "),e("span",{class:"text-muted"},"برای مشاهده موجودی ابتدا انبار را انتخاب نمایید.")],-1)),p(b,{dir:"rtl",options:s.storerooms,label:"name",modelValue:s.storeroom,"onUpdate:modelValue":t[1]||(t[1]=o=>s.storeroom=o),"onOption:selected":t[2]||(t[2]=o=>s.loadStoreItems())},{"no-options":n(({search:o,searching:d,loading:U})=>t[8]||(t[8]=[i(" نتیجه‌ای یافت نشد! ")])),_:1},8,["options","modelValue"])])]),e("div",$,[e("div",B,[e("div",M,[t[10]||(t[10]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),y(e("input",{"onUpdate:modelValue":t[3]||(t[3]=o=>s.searchValue=o),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[x,s.searchValue]])])]),p(f,{"table-class-name":"customize-table","multi-sort":"","show-index":"",alternating:"",headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-existCount":n(({existCount:o})=>[e("b",null,k(Math.abs(o)),1),parseInt(o)<0?(l(),r("span",S," (منفی) ")):h("",!0)]),"item-operation":n(({existCount:o,commodity:d})=>[parseInt(o)<parseInt(d.orderPoint)?(l(),r("span",T," نیاز به شارژ انبار ")):h("",!0)]),_:1},8,["headers","items","loading"])])])])])}const j=C(V,[["render",P]]);export{j as default};

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
.v-container[data-v-078c7591]{max-width:1200px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{a as u,S as r,_ as g}from"./main-9b36f05f.js";import{h as b,r as v,a as e,o as h,s as $,b as t,w as o,F as x,d as k,t as w}from"./vendor-adef9cb4.js";const B=b({name:"database_info",data:()=>({loading:v(!0)}),methods:{loadData(){this.loading=!1},createDatabaseFile(){this.loading=!0,u.post("/api/admin/database/backup/create").then(a=>{this.loading=!1,a.data.result==0&&r.fire({text:"فایل پشتیبان از بانک اطلاعاتی با نام "+a.data.filename+"در پوشه Backup با موفقیت ایجاد شد.",icon:"success",confirmButtonText:"قبول"})}).catch(a=>{this.loading=!1,r.fire({text:this.$t("dialog.error_operation"),icon:"error",confirmButtonText:this.$t("dialog.ok")})})}},beforeMount(){this.loadData()}});function D(a,n,y,C,F,S){const l=e("v-spacer"),i=e("v-toolbar"),d=e("v-alert"),s=e("v-col"),c=e("v-btn"),_=e("v-row"),p=e("v-card-text"),m=e("v-card"),f=e("v-container");return h(),$(x,null,[t(i,{color:"toolbar",title:a.$t("pages.manager.database")},{default:o(()=>[t(l)]),_:1},8,["title"]),t(f,{class:"pa-0"},{default:o(()=>[t(m,{loading:a.loading?"red":null,disabled:a.loading},{default:o(()=>[t(p,{class:""},{default:o(()=>[t(_,{class:"mb-2"},{default:o(()=>[t(s,{cols:"12",sm:"12",md:"12"},{default:o(()=>[t(d,{text:a.$t("pages.manager.database_info"),type:"warning"},null,8,["text"])]),_:1}),t(s,{cols:"12",sm:"12",md:"12"},{default:o(()=>[t(c,{type:"submit",onClick:n[0]||(n[0]=T=>a.createDatabaseFile()),color:"primary","prepend-icon":"mdi-database-export",loading:a.loading,title:a.$t("dialog.database_export")},{default:o(()=>[k(w(a.$t("dialog.database_export")),1)]),_:1},8,["loading","title"])]),_:1})]),_:1})]),_:1})]),_:1},8,["loading","disabled"])]),_:1})],64)}const E=g(B,[["render",D]]);export{E as default};

View file

@ -1 +0,0 @@
import{h as v,i as F}from"./main-9b36f05f.js";function M(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var L=M,B=typeof v=="object"&&v&&v.Object===Object&&v,D=B,U=D,H=typeof self=="object"&&self&&self.Object===Object&&self,X=U||H||Function("return this")(),N=X,q=N,z=function(){return q.Date.now()},J=z,K=/\s/;function Q(e){for(var t=e.length;t--&&K.test(e.charAt(t)););return t}var V=Q,Y=V,Z=/^\s+/;function ee(e){return e&&e.slice(0,Y(e)+1).replace(Z,"")}var te=ee,re=N,ne=re.Symbol,w=ne,x=w,R=Object.prototype,ie=R.hasOwnProperty,ae=R.toString,l=x?x.toStringTag:void 0;function oe(e){var t=ie.call(e,l),i=e[l];try{e[l]=void 0;var a=!0}catch{}var f=ae.call(e);return a&&(t?e[l]=i:delete e[l]),f}var fe=oe,ce=Object.prototype,se=ce.toString;function ue(e){return se.call(e)}var be=ue,_=w,de=fe,me=be,le="[object Null]",ge="[object Undefined]",I=_?_.toStringTag:void 0;function ve(e){return e==null?e===void 0?ge:le:I&&I in Object(e)?de(e):me(e)}var Te=ve;function ye(e){return e!=null&&typeof e=="object"}var je=ye,Se=Te,$e=je,Oe="[object Symbol]";function pe(e){return typeof e=="symbol"||$e(e)&&Se(e)==Oe}var he=pe,xe=te,E=L,_e=he,k=0/0,Ie=/^[-+]0x[0-9a-f]+$/i,Ee=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,Ge=parseInt;function Le(e){if(typeof e=="number")return e;if(_e(e))return k;if(E(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=E(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xe(e);var i=Ee.test(e);return i||ke.test(e)?Ge(e.slice(2),i?2:8):Ie.test(e)?k:+e}var Ne=Le,we=L,S=J,G=Ne,Re="Expected a function",We=Math.max,Ce=Math.min;function Pe(e,t,i){var a,f,u,s,n,c,b=0,$=!1,d=!1,T=!0;if(typeof e!="function")throw new TypeError(Re);t=G(t)||0,we(i)&&($=!!i.leading,d="maxWait"in i,u=d?We(G(i.maxWait)||0,t):u,T="trailing"in i?!!i.trailing:T);function y(r){var o=a,m=f;return a=f=void 0,b=r,s=e.apply(m,o),s}function W(r){return b=r,n=setTimeout(g,t),$?y(r):s}function C(r){var o=r-c,m=r-b,h=t-o;return d?Ce(h,u-m):h}function O(r){var o=r-c,m=r-b;return c===void 0||o>=t||o<0||d&&m>=u}function g(){var r=S();if(O(r))return p(r);n=setTimeout(g,C(r))}function p(r){return n=void 0,T&&a?y(r):(a=f=void 0,s)}function P(){n!==void 0&&clearTimeout(n),b=0,a=c=f=n=void 0}function A(){return n===void 0?s:p(S())}function j(){var r=S(),o=O(r);if(a=arguments,f=this,c=r,o){if(n===void 0)return W(c);if(d)return clearTimeout(n),n=setTimeout(g,t),y(c)}return n===void 0&&(n=setTimeout(g,t)),s}return j.cancel=P,j.flush=A,j}var Ae=Pe;const Me=F(Ae);export{Me as d};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
.customize-table[data-v-41ff17af]{font-family:Vazir,sans-serif}.position-sticky.top-0[data-v-41ff17af]{position:sticky;top:0;z-index:1000}.customize-table[data-v-983f8841]{font-family:Vazir,sans-serif}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
.captcha-img[data-v-31025060]{display:block;margin:0 auto}

View file

@ -1 +0,0 @@
import{a as p,_ as V}from"./main-9b36f05f.js";import{h as k,r as c,a as s,o as h,s as v,b as t,w as o,A as L,F as I,aa as U,d as S,t as q}from"./vendor-adef9cb4.js";p.defaults.withCredentials=!0;const E=k({name:"forget_password",data(){const e=this;return{loading:c(!1),captchaLoading:c(!1),dialog:c(!1),mobile:"",captcha:"",captchaImage:"",rules:{mobile:[a=>e.validate(a,"mobile")],captcha:[a=>!!a||e.$t("captcha.required")]},response:{code:"",message:"",Success:!1,data:{id:""}}}},mounted(){this.loadCaptcha()},methods:{validate(e,a){if(a==="mobile")return new RegExp("^(\\+98|0)?9\\d{9}$").test(e)?!0:this.$t("validator.mobile_not_valid")},async loadCaptcha(){this.captchaLoading=!0;try{const e=await p.get("/api/captcha/image",{responseType:"blob",withCredentials:!0}),a=URL.createObjectURL(e.data);this.captchaImage=a}catch{this.response.message="خطا در بارگذاری کپچا",this.dialog=!0}finally{this.captchaLoading=!1}},async submit(){const{valid:e}=await this.$refs.form.validate();if(e){this.loading=!0;const a={mobile:this.mobile,captcha_answer:this.captcha.toString()};p.post("/api/user/forget/password/send-code",a,{withCredentials:!0}).then(l=>{l.data.Success==!0?this.$router.push("/user/forget-password-submit-code/"+l.data.data.id):(this.response=l.data,this.dialog=!0,this.loadCaptcha())}).catch(l=>{var i,r;this.response.message=((r=(i=l.response)==null?void 0:i.data)==null?void 0:r.error)||"خطا در ارسال کد",this.dialog=!0,this.loadCaptcha()}).finally(()=>{this.loading=!1})}}}});const N={key:0,class:"text-center"};function R(e,a,l,i,r,j){const u=s("v-text-field"),_=s("v-img"),d=s("v-col"),m=s("v-row"),g=s("v-btn"),b=s("v-form"),w=s("v-card-text"),f=s("v-card"),$=s("v-container"),y=s("v-spacer"),C=s("v-dialog");return h(),v(I,null,[t($,null,{default:o(()=>[t(m,{class:"d-flex justify-center"},{default:o(()=>[t(d,{md:"5"},{default:o(()=>[t(f,{loading:e.loading?"blue":void 0,title:e.$t("app.name"),subtitle:e.$t("user.forget_password")},{default:o(()=>[t(w,null,{default:o(()=>[t(b,{ref:"form",disabled:e.loading,"fast-fail":"",onSubmit:a[2]||(a[2]=U(n=>e.submit(),["prevent"]))},{default:o(()=>[t(u,{modelValue:e.mobile,"onUpdate:modelValue":a[0]||(a[0]=n=>e.mobile=n),class:"mb-2",label:e.$t("user.mobile"),placeholder:e.$t("user.mobile_placeholder"),"single-line":"",type:"tel",variant:"outlined","prepend-inner-icon":"mdi-phone",rules:e.rules.mobile},null,8,["modelValue","label","placeholder","rules"]),t(m,{class:"mb-2",dense:""},{default:o(()=>[t(d,{cols:"12",sm:"6"},{default:o(()=>[t(_,{src:e.captchaImage,"max-height":"50","max-width":"150",class:"captcha-img",contain:""},null,8,["src"])]),_:1}),t(d,{cols:"12",sm:"6"},{default:o(()=>[t(u,{dense:"",label:e.$t("captcha.enter_code"),placeholder:"کپچا",modelValue:e.captcha,"onUpdate:modelValue":a[1]||(a[1]=n=>e.captcha=n),modelModifiers:{number:!0},variant:"outlined",type:"number",rules:e.rules.captcha,required:"","hide-details":"","prepend-inner-icon":"mdi-refresh","onClick:prependInner":e.loadCaptcha,loading:e.captchaLoading},null,8,["label","modelValue","rules","onClick:prependInner","loading"])]),_:1})]),_:1}),t(g,{loading:e.loading,block:"",class:"text-none mb-4",color:"indigo-darken-3",size:"x-large",variant:"flat","prepend-icon":"mdi-send-circle",type:"submit"},{default:o(()=>[S(q(e.$t("user.send_code_forget_password")),1)]),_:1},8,["loading"])]),_:1},8,["disabled"])]),_:1})]),_:1},8,["loading","title","subtitle"])]),_:1})]),_:1})]),_:1}),e.dialog?(h(),v("div",N,[t(C,{modelValue:e.dialog,"onUpdate:modelValue":a[4]||(a[4]=n=>e.dialog=n),"max-width":"500",persistent:""},{default:o(()=>[t(f,{color:"dangerLight","prepend-icon":"mdi-close-octagon",title:e.$t("dialog.error"),text:e.response.message},{actions:o(()=>[t(y),t(g,{color:"primary",text:e.$t("dialog.ok"),variant:"flat",onClick:a[3]||(a[3]=n=>{e.dialog=!1,e.loading=!1,e.mobile="",e.captcha=""})},null,8,["text"])]),_:1},8,["title","text"])]),_:1},8,["modelValue"])])):L("",!0)],64)}const D=V(E,[["render",R],["__scopeId","data-v-31025060"]]);export{D as default};

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{h as o,o as a,s as e,e as t,t as i,c as d,z as l,F as n}from"./vendor-adef9cb4.js";import{_ as r}from"./main-9b36f05f.js";const c=o({name:"helpBtn",props:{vsource:String,label:String,rndiv:String}}),p={class:"modal modal-lg fade",id:"staticBackdrop","data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"staticBackdropLabel","aria-hidden":"true"},b={class:"modal-dialog"},m={class:"modal-content"},_={class:"modal-header bg-primary-light text-white"},h={class:"modal-title fs-5",id:"staticBackdropLabel"},f={class:"modal-body"},u=["id"];function g(v,s,k,B,y,x){return a(),e(n,null,[s[1]||(s[1]=t("button",{type:"button",class:"btn btn-sm btn-link text-info mx-2","data-bs-toggle":"modal","data-bs-target":"#staticBackdrop"},[t("i",{class:"fa fa-question-circle"})],-1)),t("div",p,[t("div",b,[t("div",m,[t("div",_,[t("h1",h,i(this.$props.label),1),s[0]||(s[0]=t("div",{class:"block-options"},[t("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"})],-1))]),t("div",f,[t("div",{id:this.$props.rndiv},[(a(),d(l("script"),{src:this.$props.vsource},null,8,["src"]))],8,u)])])])])],64)}const C=r(c,[["render",g]]);export{C as H};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
.bg-light[data-v-64f355bc]{background-color:#f5f5f5}

View file

@ -1 +0,0 @@
.required label[data-v-aabc6da9]:before{content:"*";color:red}

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{g as i,_ as e}from"./main-9b36f05f.js";import{h as l,a as o,o as n,s as a,e as u,b as r,w as F,ar as s,t as d,d as c}from"./vendor-adef9cb4.js";const m=l({name:"intro",data:()=>({siteName:""}),created(){this.siteName=i()}}),p="/webui/img/plugins/repservice.jpg",E={id:"main-container p-0 m-0"},f={class:"bg-image",style:{"background-image":"url('/img/plugins/repservice.png')"}},g={class:"bg-black-75"},v={class:"content content-top content-full text-center"},b={class:"container-fluid"},w={class:"row justify-content-center"},_={class:"col-sm-11 py-2"},x={class:"story justify-content-between"},h={class:"rounded-3 bg-white p-3 mb-3"};function y(A,C,N,k,B,D){const t=o("RouterLink");return n(),a("main",E,[u("div",f,[u("div",g,[u("div",v,[C[1]||(C[1]=u("h1",{class:"text-white"},[u("i",{class:"fa fa-shop"})],-1)),C[2]||(C[2]=u("h1",{class:"fw-bold text-white mt-5 mb-3"},"افزونه مدیریت تعمیرگاه",-1)),C[3]||(C[3]=u("h2",{class:"h3 fw-normal text-white-75 mb-5"}," افزونه تعمیرکاران یکپارچه طراحی شد تا تمام نیازهای شما را در مدیریت تعمیرگاه و فروشگاه تان را بصورت کامل رفع کند. ",-1)),r(t,{to:"/acc/plugin-center/view-end/repservice"},{default:F(()=>C[0]||(C[0]=[u("span",{class:"badge rounded-pill bg-primary fs-base px-3 py-2 me-2 m-1"},[u("i",{class:"fa fa-user-circle me-1"}),c(" خرید ")],-1)])),_:1}),C[4]||(C[4]=u("br",null,null,-1)),C[5]||(C[5]=u("i",{class:"fa fa-arrow-down text-white"},null,-1))])])]),u("div",b,[u("div",w,[u("div",_,[u("article",x,[u("div",h,[C[7]||(C[7]=s('<div class="row"><div class="col-sm-12 col-md-6"><h3 class="text-primary mt-0"> افزونه مدیریت تعمیرگاه(تعمیرکاران) </h3><p> افزونه تعمیرکاران بهترین انتخاب برای مدیریت انواع مراکز تعمیر و خدمات و همچنین فروشگاه های در حال توسعه است؛ چرا که افزونه تعمیرکاران نیازی به نصب ندارد, همیشه با موبایل و کامپیوتر در دسترس است و رابط کاربری بسیار آسانی دارد و از همه مهمتر تمام نیازهای تعمیرگاه و فروشگاه را در قالب یک نرم افزار پشتیبانی می‌کند. </p></div><div class="col-sm-12 col-md-6"><img class="img-fluid" src="'+p+'"></div></div><h2 class="text-primary">امکانات:</h2>',2)),u("ul",null,[C[6]||(C[6]=s("<li> صدور قبض های پذیرش تعمیرگاه قابل چاپ و پیامکی </li><li> بدون نیاز به خرید سرشماره پیامک خدماتی </li><li> گزارشات کامل از دستگاه های ورودی و خروجی تعمیرگاه </li><li> ثبت قبض های پذیرش بصورت آنلاین با گوشی </li><li> ارسال پیامک خودکار به تعمیرکار موقع ثبت پذیرش دستگاه تعمیری </li><li> مشاهده لیست دستگاه های تعمیری </li><li> درج سریال/پلاک دستگاه های تعمیری درقبض پذیرش </li><li> ارسال پیامک خودکار هنگام تغییر وضعیت دستگاه به آماده تحویل </li><li> مشاهده فاکتور تعمیرگاه بصورت آنلاین بصورت پیامکی </li><li> قابلیت چاپ قبض تعمیرگاه </li><li> قابلیت ارایه خروجی اکسل از تمام گزارشات تعمیرگاه </li>",11)),u("li",null," یکپارچه با "+d(A.siteName)+" و بسته حسابداری پیشرفته ",1)])])])])])])])}const j=e(m,[["render",y]]);export{j as default};

View file

@ -1 +0,0 @@
import{g as n,_ as l}from"./main-9b36f05f.js";import{h as e,a as i,o,s as A,e as u,b as a,w as r,t as d,d as m}from"./vendor-adef9cb4.js";const p=e({name:"intro",data:()=>({siteName:""}),created(){this.siteName=n()}}),F="/webui/img/plugins/apartemanma/intro.jpg",c={id:"main-container p-0 m-0"},f={class:"bg-image",style:{"background-image":"url('/img/plugins/apartemanma/drawer.jpg')"}},g={class:"bg-black-75"},E={class:"content content-top content-full text-center"},w={class:"container-fluid"},b={class:"row justify-content-center"},v={class:"col-sm-11 py-2"},x={class:"story justify-content-between"},_={class:"rounded-3 bg-white p-3 mb-3"},y={class:"row"},D={class:"col-sm-12 col-md-6"};function N(t,C,k,j,$,h){const s=i("RouterLink");return o(),A("main",c,[u("div",f,[u("div",g,[u("div",E,[C[1]||(C[1]=u("h1",{class:"text-white"},[u("i",{class:"fa fa-shop"})],-1)),C[2]||(C[2]=u("h1",{class:"fw-bold text-white mt-5 mb-3"}," افزونه مدیریت و جمع آوری شارژ مجتمع های مسکونی و تجاری ",-1)),C[3]||(C[3]=u("h2",{class:"h3 fw-normal text-white-75 mb-5"},"مدیریت خود بر هزینه های ساختمان را چند برابر کنید",-1)),a(s,{to:"/acc/plugin-center/view-end/apartemanma"},{default:r(()=>C[0]||(C[0]=[u("span",{class:"badge rounded-pill bg-primary fs-base px-3 py-2 me-2 m-1"},[u("i",{class:"fa fa-user-circle me-1"}),m(" خرید ")],-1)])),_:1}),C[4]||(C[4]=u("br",null,null,-1)),C[5]||(C[5]=u("i",{class:"fa fa-arrow-down text-white"},null,-1))])])]),u("div",w,[u("div",b,[u("div",v,[u("article",x,[u("div",_,[u("div",y,[u("div",D,[C[6]||(C[6]=u("h3",{class:"text-primary mt-0"}," افزونه مدیریت و جمع آوری شارژ مجتمع های مسکونی و تجاری ",-1)),C[7]||(C[7]=u("p",null," اگر در محاسبه مبلغ شارژ و هزینه‌های ساختمان و مجتمع دچار مشکل هستید کافی است انجام این کار را به افزونه آپارتمان من بسپارید. ",-1)),C[8]||(C[8]=u("p",null," با این افزونه میتوانید علاوه بر محاسبه اتوماتیک مبلغ شارژ کلیه صورت حساب ها را از طریق پیامک و شبکه های اجتماعی به مالکین و مستاجران ارسال کنید و هزینه را نیز به صورت آنلاین دریافت کنید. ",-1)),u("p",null,"در تمام مسیر تیم "+d(t.siteName)+" با پیشتیبانی دائمی و مشاوره‌ حرفه‌ای در کنار شما خواهند بود تا بتوانید به بهترین شکل ممکن هزینه‌های آپارتمان و مجتمع خود را مدیریت کنید.",1)]),C[9]||(C[9]=u("div",{class:"col-sm-12 col-md-6"},[u("img",{class:"img-fluid",src:F})],-1))]),C[10]||(C[10]=u("h2",{class:"text-primary"},"امکانات:",-1)),C[11]||(C[11]=u("ul",null,[u("li",null,"قابلیت تفکیک واحدها بر اساس بلوک و نام واحد"),u("li",null,"قابلیت تفکیک مالکین و ساکنین و اعلام هزینه بر اساس هر کدام"),u("li",null,"ارسال پیامک و اعلام شارژ به افراد"),u("li",null,"قابلیت پرداخت آنلاین و وصول مبلغ شارژ"),u("li",null,"یکپارچه با حسابیکس"),u("li",null,"قابلیت تفکیک هزینه‌ها برای هر گروه به صورت مجزا"),u("li",null,"ارسال پیامک هشدار عدم پرداخت شارژ به صورت اتوماتیک")],-1))])])])])])])}const L=l(p,[["render",N]]);export{L as default};

View file

@ -1 +0,0 @@
import{g as A,_ as l}from"./main-9b36f05f.js";import{h as e,a as o,o as n,s as F,e as u,t as i,b as a,w as r,ar as d,d as c}from"./vendor-adef9cb4.js";const m=e({name:"intro",data:()=>({siteName:""}),created(){this.siteName=A()}}),p="/webui/img/plugins/accpro/intro.png",f={id:"main-container p-0 m-0"},g={class:"bg-image",style:{"background-image":"url('/img/plugins/accpro/intro.png')"}},_={class:"bg-black-75"},D={class:"content content-top content-full text-center"},b={class:"h3 fw-normal text-white-75 mb-5"},w={class:"container-fluid"},v={class:"row justify-content-center"},h={class:"col-sm-11 py-2"},E={class:"story justify-content-between"},x={class:"rounded-3 bg-white p-3 mb-3"},y={class:"row"},N={class:"col-sm-12 col-md-6"};function k(t,C,V,$,B,S){const s=o("RouterLink");return n(),F("main",f,[u("div",g,[u("div",_,[u("div",D,[C[1]||(C[1]=u("h1",{class:"text-white"},[u("i",{class:"fa fa-shop"})],-1)),C[2]||(C[2]=u("h1",{class:"fw-bold text-white mt-5 mb-3"},"بسته حسابداری پیشرفته",-1)),u("h2",b,"افزایش امکانات "+i(t.siteName)+" برای کسب وکار‌های متوسط و بزرگ",1),a(s,{to:"/acc/plugin-center/view-end/accpro"},{default:r(()=>C[0]||(C[0]=[u("span",{class:"badge rounded-pill bg-primary fs-base px-3 py-2 me-2 m-1"},[u("i",{class:"fa fa-user-circle me-1"}),c(" خرید ")],-1)])),_:1}),C[3]||(C[3]=u("br",null,null,-1)),C[4]||(C[4]=u("i",{class:"fa fa-arrow-down text-white"},null,-1))])])]),u("div",w,[u("div",v,[u("div",h,[u("article",E,[u("div",x,[u("div",y,[u("div",N,[C[5]||(C[5]=u("h3",{class:"text-primary mt-0"}," بسته حسابداری پیشرفته ",-1)),u("p",null," به وسیله این افزونه "+i(t.siteName)+" خود را به یک سطح بالاتر ارتقا دهید. به وسیله این افزونه یک سری از ابزارهای گزارش گیری و امکانات پیشرفته که بیشتر مورد استفاده کسب و کارهای متوسط و بزرگ است برای شما فعال می‌شود. ",1)]),C[6]||(C[6]=u("div",{class:"col-sm-12 col-md-6"},[u("img",{class:"img-fluid",src:p})],-1))]),C[7]||(C[7]=d('<div class="alert alert-info mt-2">این افزونه در حال توسعه است و ممکن است برخی از قابلیت‌های آن در حال حاضر در دسترس نباشد</div><h2 class="text-primary">امکانات:</h2><ul><li>قابلیت صدور و مدیریت فاکتورهای برگشت از فروش و برگشت از خرید</li><li>قابلیت بستن سال مالی و ایجاد سال مالی جدید</li><li>قابلیت صدور سند حسابداری به صورت مستقیم</li><li>افزودن قابلیت گزارش از دفتر روزنامه</li><li>افزودن قابلیت گزارش از ترازنامه به صورت بازه زمانی</li><li>قابلیت ویرایش جدول حساب و تعریف آیتم‌های جدید به صورت درختی</li><li>افزودن گزارش سود و زیان</li><li>افزودن گزارش دفتر کل</li><li>قابلیت اضافه،ویرایش و حذف جدول حساب ها</li><li>افزودن گزارش مرور حساب‌ها</li><li>افزودن گزارش مالیات</li><li>قابلیت صدور حواله انبار جهت فاکتور برگشت از خرید و برگشت از فروش</li><li>قابلیت صدور حواله انتقال بین انبارها</li><li>افزودن اطلاعات فروش امروز و سود امروز به داشبورد کسب‌و‌کار</li><li>قابلیت تعریف نمایه کسب و کار و مهر فروشگاه در اسناد حسابداری</li><li>قابلیت تغییر گروهی قیمت کالاها و خدمات به صورت درصدی و مقداری</li><li>قابلیت افزودن نمایه و لوگو کسب وکار و نمایش در اسناد حسابداری</li><li>ارسال پیامک به مشتری برای ارسال کالا شامل کد رهگیری و نام باربری ، نحوه ارسال و ...</li></ul>',3))])])])])])])}const R=l(m,[["render",k]]);export{R as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{_ as V,a as T}from"./main-9b36f05f.js";import{a as n,o as C,s as z,b as e,w as o,F as D,_ as c,d as r,t as b}from"./vendor-adef9cb4.js";const B={name:"list",data(){return{loading:!0,items:[],activeTab:null,headers:[{title:"",key:"operation",align:"center",sortable:!1},{title:"شناسه",key:"id",align:"center",sortable:!0},{title:"کسب‌وکار",key:"bid.name",align:"center",sortable:!0,value:t=>t.bid?t.bid.name:"بدون کسب‌وکار"},{title:"عنوان",key:"title",align:"center",sortable:!0},{title:"تاریخ",key:"dateSubmit",align:"center",sortable:!0}]}},computed:{pendingItems(){return this.items.filter(t=>t.state==="در حال پیگیری")},respondedItems(){return this.items.filter(t=>t.state==="پاسخ داده شده")},closedItems(){return this.items.filter(t=>t.state==="خاتمه یافته")}},mounted(){this.loadData()},methods:{loadData(){T.post("/api/support/list").then(t=>{this.items=t.data,this.loading=!1,this.activeTab=this.pendingItems.length>0?"pending":"responded"}).catch(t=>{console.error("Error loading support list:",t),this.loading=!1})}}};function E(t,a,F,N,l,s){const w=n("v-spacer"),m=n("v-btn"),p=n("v-tooltip"),x=n("v-toolbar"),u=n("v-icon"),v=n("v-tab"),y=n("v-tabs"),_=n("v-data-table"),g=n("v-window-item"),h=n("v-window"),k=n("v-card"),I=n("v-container");return C(),z(D,null,[e(x,{color:"toolbar",title:t.$t("pages.support.titlebar")},{default:o(()=>[e(w),e(p,{text:t.$t("user.ticket_new"),location:"bottom"},{activator:o(({props:i})=>[e(m,c(i,{icon:"mdi-chat-plus",color:"primary",to:"/profile/support-new"}),null,16)]),_:1},8,["text"])]),_:1},8,["title"]),e(I,{class:"pa-0 ma-0"},{default:o(()=>[e(k,{loading:l.loading?"red":null,disabled:l.loading},{default:o(()=>[e(y,{modelValue:l.activeTab,"onUpdate:modelValue":a[0]||(a[0]=i=>l.activeTab=i),color:"primary",grow:""},{default:o(()=>[e(v,{value:"pending",class:"flex-grow-1"},{default:o(()=>[e(u,{start:""},{default:o(()=>a[5]||(a[5]=[r("mdi-progress-clock")])),_:1}),r(" در حال پیگیری ("+b(s.pendingItems.length)+") ",1)]),_:1}),e(v,{value:"responded",class:"flex-grow-1"},{default:o(()=>[e(u,{start:""},{default:o(()=>a[6]||(a[6]=[r("mdi-check-circle")])),_:1}),r(" پاسخ داده شده ("+b(s.respondedItems.length)+") ",1)]),_:1}),e(v,{value:"closed",class:"flex-grow-1"},{default:o(()=>[e(u,{start:""},{default:o(()=>a[7]||(a[7]=[r("mdi-lock")])),_:1}),r(" خاتمه یافته ("+b(s.closedItems.length)+") ",1)]),_:1})]),_:1},8,["modelValue"]),e(h,{modelValue:l.activeTab,"onUpdate:modelValue":a[4]||(a[4]=i=>l.activeTab=i)},{default:o(()=>[e(g,{value:"pending"},{default:o(()=>[e(_,{headers:l.headers,items:s.pendingItems,loading:l.loading,"no-data-text":t.$t("table.no_data"),class:"elevation-1"},{"item.operation":o(({item:i})=>[e(p,{text:t.$t("dialog.view"),location:"bottom"},{activator:o(({props:d})=>[e(m,c(d,{color:"primary",icon:"mdi-eye",size:"x-small",variant:"flat",to:"/profile/support-view/"+i.id,onClick:a[1]||(a[1]=f=>l.loading=!0)}),null,16,["to"])]),_:2},1032,["text"])]),_:1},8,["headers","items","loading","no-data-text"])]),_:1}),e(g,{value:"responded"},{default:o(()=>[e(_,{headers:l.headers,items:s.respondedItems,loading:l.loading,"no-data-text":t.$t("table.no_data"),class:"elevation-1"},{"item.operation":o(({item:i})=>[e(p,{text:t.$t("dialog.view"),location:"bottom"},{activator:o(({props:d})=>[e(m,c(d,{color:"primary",icon:"mdi-eye",size:"x-small",variant:"flat",to:"/profile/support-view/"+i.id,onClick:a[2]||(a[2]=f=>l.loading=!0)}),null,16,["to"])]),_:2},1032,["text"])]),_:1},8,["headers","items","loading","no-data-text"])]),_:1}),e(g,{value:"closed"},{default:o(()=>[e(_,{headers:l.headers,items:s.closedItems,loading:l.loading,"no-data-text":t.$t("table.no_data"),class:"elevation-1"},{"item.operation":o(({item:i})=>[e(p,{text:t.$t("dialog.view"),location:"bottom"},{activator:o(({props:d})=>[e(m,c(d,{color:"primary",icon:"mdi-eye",size:"x-small",variant:"flat",to:"/profile/support-view/"+i.id,onClick:a[3]||(a[3]=f=>l.loading=!0)}),null,16,["to"])]),_:2},1032,["text"])]),_:1},8,["headers","items","loading","no-data-text"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["loading","disabled"])]),_:1})],64)}const P=V(B,[["render",E],["__scopeId","data-v-2a463003"]]);export{P as default};

View file

@ -1 +0,0 @@
import{a as _,S as d,_ as z}from"./main-9b36f05f.js";import{h as P,r as V,a,o as E,s as M,b as e,w as o,F as A,_ as v,d as f,t as g}from"./vendor-adef9cb4.js";const I=P({name:"list",data:()=>({searchValue:"",loading:V(!0),items:[],headers:[{text:"عملیات",value:"operation"},{text:"تاریخ",value:"dateSubmit",sortable:!0},{text:"نسخه",value:"version",sortable:!0}]}),methods:{loadData(){this.loading=!0,_.post("/api/admin/reportchange/lists").then(t=>{this.items=t.data,this.loading=!1})},deleteItem(t){d.fire({text:"آیا برای حذف این مورد مطمئن هستید؟",showCancelButton:!0,confirmButtonText:"بله",cancelButtonText:"خیر",icon:"warning"}).then(u=>{u.isConfirmed&&_.post("/api/admin/reportchange/delete/"+t).then(s=>{if(s.data.result==1){let c=0;for(let i=0;i<this.items.length;i++)c++,this.items[i].id==t&&this.items.splice(c-1,1);d.fire({text:"با موفقیت حذف شد.",icon:"success",confirmButtonText:"قبول"})}else s.data.result==2&&d.fire({text:s.data.message,icon:"warning",confirmButtonText:"قبول"})})})}},mounted(){this.loadData()}});function N(t,u,s,c,i,O){const h=a("v-spacer"),l=a("v-btn"),b=a("v-tooltip"),C=a("v-toolbar"),m=a("v-icon"),p=a("v-list-item"),x=a("v-list"),k=a("v-menu"),w=a("EasyDataTable"),$=a("v-col"),y=a("v-row"),B=a("v-card-text"),F=a("v-card"),T=a("v-container");return E(),M(A,null,[e(C,{color:"toolbar",title:t.$t("user.history")},{default:o(()=>[e(h),e(b,{text:t.$t("dialog.new"),location:"bottom"},{activator:o(({props:n})=>[e(l,v(n,{icon:"mdi-plus",color:"primary",to:"/profile/manager/changes/mod/0"}),null,16)]),_:1},8,["text"])]),_:1},8,["title"]),e(T,{class:"pa-0 ma-0"},{default:o(()=>[e(F,{loading:t.loading?"red":null,disabled:t.loading},{default:o(()=>[e(B,{class:"pa-0"},{default:o(()=>[e(y,null,{default:o(()=>[e($,null,{default:o(()=>[e(w,{"table-class-name":"customize-table","show-index":"",alternating:"","search-value":t.searchValue,headers:t.headers,items:t.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:t.loading},{"item-operation":o(({id:n})=>[e(k,null,{activator:o(({props:r})=>[e(l,v({variant:"text",color:"error",icon:"mdi-menu"},r),null,16)]),default:o(()=>[e(x,null,{default:o(()=>[e(p,{class:"text-dark",title:t.$t("dialog.edit"),to:"/profile/manager/changes/mod/"+n},{prepend:o(()=>[e(m,{icon:"mdi-file-edit"})]),_:2},1032,["title","to"]),e(p,{class:"text-dark",title:t.$t("dialog.delete"),onClick:r=>t.deleteItem(n)},{prepend:o(()=>[e(m,{color:"error",icon:"mdi-trash-can"})]),_:2},1032,["title","onClick"])]),_:2},1024)]),_:2},1024)]),pagination:o(({prevPage:n,nextPage:r,isFirstPage:D,isLastPage:S})=>[e(l,{size:"small",color:"success",class:"me-1",disabled:D,onClick:n,"prepend-icon":"mdi-skip-next"},{default:o(()=>[f(g(t.$t("dialog.prev_page")),1)]),_:2},1032,["disabled","onClick"]),e(l,{size:"small",color:"success",class:"me-1",disabled:S,onClick:r,"append-icon":"mdi-skip-previous"},{default:o(()=>[f(g(t.$t("dialog.next_page")),1)]),_:2},1032,["disabled","onClick"])]),_:1},8,["search-value","headers","items","loading"])]),_:1})]),_:1})]),_:1})]),_:1},8,["loading","disabled"])]),_:1})],64)}const G=z(I,[["render",N]]);export{G as default};

View file

@ -1 +0,0 @@
import{a as m}from"./main-9b36f05f.js";import{h as B,r as l,n as _,a as t,o as E,s as F,b as e,w as a,_ as O,d as g,t as b,F as N}from"./vendor-adef9cb4.js";const R=B({__name:"list",setup(U){const f=[{text:"نام",value:"name"},{text:"مالک",value:"owner"},{text:"موبایل",value:"ownerMobile"},{text:"تاریخ ایجاد",value:"dateRegister"},{text:"کالا و خدمات",value:"commodityCount"},{text:"اشخاص",value:"personsCount"},{text:"اسناد حسابداری",value:"hesabdariDocsCount"},{text:"اسناد انبار",value:"StoreroomDocsCount"}],p=l([]),n=l(!1),d=l(0),r=l(""),i=l({page:1,rowsPerPage:25,sortBy:"id",sortType:"desc"}),u=async()=>{n.value=!0,m.post("/api/admin/business/count").then(o=>{d.value=o.data}),await m.post("/api/admin/business/search",{options:i.value,search:r.value}).then(o=>{p.value=o.data.data,n.value=!1})};return u(),_(i,o=>{u()},{deep:!0}),_(r,o=>{u()},{deep:!0}),(o,c)=>{const x=t("v-spacer"),h=t("v-toolbar"),w=t("v-icon"),y=t("v-tooltip"),C=t("v-text-field"),v=t("v-btn"),k=t("EasyDataTable"),P=t("v-col"),V=t("v-row"),D=t("v-card-text"),$=t("v-card"),M=t("v-container");return E(),F(N,null,[e(h,{color:"toolbar",title:o.$t("user.businesses")+" : ("+d.value+")"},{default:a(()=>[e(x)]),_:1},8,["title"]),e(M,{class:"pa-0 ma-0"},{default:a(()=>[e($,{loading:n.value?"red":null,disabled:n.value},{default:a(()=>[e(D,{class:"pa-0"},{default:a(()=>[e(V,null,{default:a(()=>[e(P,null,{default:a(()=>[e(C,{color:"info","hide-details":"auto",rounded:"0",variant:"outlined",density:"compact",placeholder:o.$t("dialog.search_txt"),modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=s=>r.value=s),type:"text",clearable:""},{"prepend-inner":a(()=>[e(y,{location:"bottom",text:o.$t("dialog.search")},{activator:a(({props:s})=>[e(w,O(s,{color:"danger",icon:"mdi-magnify"}),null,16)]),_:1},8,["text"])]),_:1},8,["placeholder","modelValue"]),e(k,{"table-class-name":"customize-table","show-index":"",alternating:"",headers:f,items:p.value,rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از","theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",loading:n.value,"server-options":i.value,"onUpdate:serverOptions":c[1]||(c[1]=s=>i.value=s),"server-items-length":d.value},{pagination:a(({prevPage:s,nextPage:S,isFirstPage:T,isLastPage:z})=>[e(v,{size:"small",color:"success",class:"me-1",disabled:T,onClick:s,"prepend-icon":"mdi-skip-next"},{default:a(()=>[g(b(o.$t("dialog.prev_page")),1)]),_:2},1032,["disabled","onClick"]),e(v,{size:"small",color:"success",class:"me-1",disabled:z,onClick:S,"append-icon":"mdi-skip-previous"},{default:a(()=>[g(b(o.$t("dialog.next_page")),1)]),_:2},1032,["disabled","onClick"])]),_:1},8,["items","loading","server-options","server-items-length"])]),_:1})]),_:1})]),_:1})]),_:1},8,["loading","disabled"])]),_:1})],64)}}});export{R as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
.v-data-table[data-v-a34e9d25] .v-data-table__checkbox{margin-right:0;margin-left:0}

View file

@ -1 +0,0 @@
import{_ as u,a as n,S as l}from"./main-9b36f05f.js";import{r as p,a as m,o as f,s as b,e,d as h,u as g,ab as x,b as v,w as k}from"./vendor-adef9cb4.js";const w={name:"list",data:()=>({searchValue:"",loading:p(!0),items:[],headers:[{text:"توکن دسترسی",value:"token",sortable:!0},{text:"مهر زمان انقضا",value:"dateExpire"},{text:"عملیات",value:"operation"}]}),methods:{loadData(){this.loading=!0,n.post("/api/business/api/list").then(s=>{this.items=s.data,this.loading=!1})},submitNew(){this.loading=!0,n.post("/api/business/api/new").then(s=>{this.items.push(s.data),this.loading=!1,l.fire({text:"توکن ایجاد شد. رابط توکن: "+s.data.token,confirmButtonText:"قبول"})})},deleteItem(s){l.fire({text:"آیا برای این مورد مطمئن هستید؟ دسترسی برنامه‌هایی که از این رابط استفاده می‌کنند قطع خواهد شد.",showCancelButton:!0,confirmButtonText:"بله",cancelButtonText:"خیر",icon:"warning"}).then(t=>{t.isConfirmed&&n.post("/api/business/api/remove/"+s).then(r=>{if(r.data.result==1){let i=0;for(let o=0;o<this.items.length;o++)i++,this.items[o].token==s&&this.items.splice(i-1,1);l.fire({text:"توکن با موفقیت حذف شد.",icon:"success",confirmButtonText:"قبول"})}})})}},beforeMount(){this.loadData()}},_={class:"block block-content-full"},y={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},B={class:"block-title text-primary-dark"},C={class:"block-options"},T={class:"block-options-item"},V={class:"block-content pt-1 pb-3"},$={class:"row"},D={class:"col-sm-12 col-md-12 m-0 p-0"},M={class:"mb-1"},N={class:"input-group input-group-sm"},E=["onClick"];function P(s,t,r,i,o,d){const c=m("EasyDataTable");return f(),b("div",_,[e("div",y,[e("h3",B,[e("button",{onClick:t[0]||(t[0]=a=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[3]||(t[3]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[4]||(t[4]=e("i",{class:"fa fa-plug-circle-plus"},null,-1)),t[5]||(t[5]=h(" دسترسی توسعه دهندگان"))]),e("div",C,[e("div",T,[e("button",{onClick:t[1]||(t[1]=a=>d.submitNew()),class:"btn btn-sm btn-success"},"ایجاد رابط جدید")])])]),e("div",V,[e("div",$,[e("div",D,[e("div",M,[e("div",N,[t[6]||(t[6]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),g(e("input",{"onUpdate:modelValue":t[2]||(t[2]=a=>s.searchValue=a),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[x,s.searchValue]])])]),v(c,{"table-class-name":"customize-table","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":k(({token:a})=>[e("span",{class:"text-danger px-1",onClick:S=>d.deleteItem(a)},t[7]||(t[7]=[e("i",{class:"fa fa-trash"},null,-1)]),8,E)]),_:1},8,["search-value","headers","items","loading"])])])])])}const O=u(w,[["render",P]]);export{O as default};

View file

@ -1 +0,0 @@
.v-data-table{width:100%;overflow-x:auto}:deep(.v-data-table-header th){text-align:center!important}:deep(.v-data-table__wrapper table td){text-align:center!important}.text-success{color:#4caf50!important}.text-error{color:#ff5252!important}:deep(.v-data-table__wrapper table td a){text-decoration:none;color:#1976d2}:deep(.v-data-table__wrapper table td a:hover){text-decoration:underline}

View file

@ -1 +0,0 @@
.v-data-table[data-v-7a97c43d]{direction:rtl}

View file

@ -1 +0,0 @@
import{_ as h,a as d,S as c}from"./main-9b36f05f.js";import{r as g,a as m,o as u,s as k,e,d as x,b as p,w as n,u as v,ab as w,c as y,A as _}from"./vendor-adef9cb4.js";const V={name:"list",data:()=>({loading:g(!0),searchValue:"",items:[],headers:[{text:"نام ویژگی",value:"name",sortable:!0},{text:"عملیات",value:"operation"}]}),methods:{loadData(){d.post("/api/commodity/drop/list").then(s=>{this.items=s.data,this.loading=!1})},deleteItem(s){c.fire({text:"آیا برای حذف این مورد مطمئن هستید؟",showCancelButton:!0,confirmButtonText:"بله",cancelButtonText:"خیر"}).then(t=>{t.isConfirmed&&d.post("/api/business/delete/user",{code:s}).then(i=>{if(i.data.result==1){let l=0;for(let o=0;o<this.items.length;o++)l++,this.items[o].code==s&&this.items.splice(l-1,1);c.fire({text:"شخص با موفقیت حذف شد.",icon:"success",confirmButtonText:"قبول"})}})})}},beforeMount(){this.loadData()}},B={class:"block block-content-full"},T={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},C={class:"block-title text-primary-dark"},$={class:"block-options"},D={class:"block-content pt-1 pb-3"},M={class:"row"},N={class:"col-sm-12 col-md-12 m-0 p-0"},E={class:"mb-1"},P={class:"input-group input-group-sm"};function S(s,t,i,l,o,z){const r=m("router-link"),f=m("EasyDataTable");return u(),k("div",B,[e("div",T,[e("h3",C,[e("button",{onClick:t[0]||(t[0]=a=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[2]||(t[2]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[3]||(t[3]=e("i",{class:"mx-2 fa fa-droplet"},null,-1)),t[4]||(t[4]=x(" ویژگی‌های کالا و خدمات "))]),e("div",$,[p(r,{to:"/acc/commodity/drop/mod/",class:"btn btn-primary ms-1"},{default:n(()=>t[5]||(t[5]=[e("span",{class:"fa fa-plus fw-bolder"},null,-1)])),_:1})])]),e("div",D,[e("div",M,[e("div",N,[e("div",E,[e("div",P,[t[6]||(t[6]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),v(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>s.searchValue=a),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[w,s.searchValue]])])]),p(f,{"table-class-name":"customize-table","multi-sort":"","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":n(({id:a,canEdit:b})=>[b?(u(),y(r,{key:0,class:"btn btn-sm btn-link",to:"/acc/commodity/drop/mod/"+a},{default:n(()=>t[7]||(t[7]=[e("i",{class:"fa fa-edit px-2"},null,-1)])),_:2},1032,["to"])):_("",!0)]),_:1},8,["search-value","headers","items","loading"])])])])])}const O=h(V,[["render",S]]);export{O as default};

View file

@ -1 +0,0 @@
import{_ as u,a as p}from"./main-9b36f05f.js";import{r as m,a as n,o,s as l,e as t,d as b,u as f,ab as h,b as i,w as r}from"./vendor-adef9cb4.js";const g={name:"list",data:()=>({searchValue:"",loading:m(!0),items:[],headers:[{text:"وضعیت",value:"state",sortable:!0},{text:"عملیات",value:"operation"},{text:"کد",value:"code",sortable:!0},{text:"تاریخ",value:"date",sortable:!0},{text:"شرح",value:"des",sortable:!0},{text:"مبلغ",value:"amount",sortable:!0},{text:"ثبت کننده",value:"submitter",sortable:!0}]}),methods:{loadData(){p.post("/api/accounting/search",{type:"all"}).then(s=>{this.items=s.data,this.items.forEach(e=>{e.amount=this.$filters.formatNumber(e.amount)}),this.loading=!1})}},beforeMount(){this.loadData()}},k={class:"block block-content-full"},v={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},x={class:"block-title text-primary-dark"},_={class:"block-content pt-1 pb-3"},y={class:"row"},w={class:"col-sm-12 col-md-12 m-0 p-0"},V={class:"mb-1"},$={class:"input-group input-group-sm"},D={key:0,class:"fa fa-lock text-danger"},M={key:1,class:"fa fa-lock-open text-success"};function E(s,e,N,T,B,C){const d=n("router-link"),c=n("EasyDataTable");return o(),l("div",k,[t("div",v,[t("h3",x,[t("button",{onClick:e[0]||(e[0]=a=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},e[2]||(e[2]=[t("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),e[3]||(e[3]=t("i",{class:"fa fa-book-open-reader"},null,-1)),e[4]||(e[4]=b(" اسناد حسابداری"))])]),t("div",_,[t("div",y,[t("div",w,[t("div",V,[t("div",$,[e[5]||(e[5]=t("span",{class:"input-group-text"},[t("i",{class:"fa fa-search"})],-1)),f(t("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>s.searchValue=a),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[h,s.searchValue]])])]),i(c,{"table-class-name":"customize-table","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-state":r(({type:a})=>[a!="accounting"?(o(),l("i",D)):(o(),l("i",M))]),"item-operation":r(({code:a,type:P})=>[i(d,{class:"btn btn-sm btn-link text-success",to:"/acc/accounting/view/"+a},{default:r(()=>e[6]||(e[6]=[t("i",{class:"fa fa-eye px-1"},null,-1)])),_:2},1032,["to"])]),_:1},8,["search-value","headers","items","loading"])])])])])}const S=u(g,[["render",E]]);export{S as default};

View file

@ -1 +0,0 @@
import{_ as h,a as m}from"./main-9b36f05f.js";import{r as g,a as d,o as f,s as _,e,d as c,b as r,w as s,u as l,ab as b,t as v,B as i}from"./vendor-adef9cb4.js";const k={name:"list",data:()=>({searchValue:"",loading:g(!0),items:[],headers:[{text:"کد",value:"code"},{text:"نام مستعار",value:"nikename",sortable:!0},{text:"نام و نام خانوادگی",value:"name",sortable:!0},{text:"مرصع‌کار",value:"plugNoghreMorsa"},{text:"حکاک",value:"plugNoghreHakak"},{text:"قلم زن",value:"plugNoghreGhalam"},{text:"تراشکار",value:"plugNoghreTarash"},{text:"تلفن همراه",value:"mobile"},{text:"عملیات",value:"operation"}]}),methods:{loadData(){m.post("/api/plugin/noghre/employess/list").then(o=>{this.items=o.data,this.loading=!1})}},beforeMount(){this.loadData()}},x={class:"block block-content-full"},y={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},N={class:"block-options"},w={class:"block-content pt-1 pb-3"},V={class:"row"},M={class:"col-sm-12 col-md-12 m-0 p-0"},D={class:"mb-1"},T={class:"input-group input-group-sm"},B={class:"fa fa-check text-danger"},$={class:"fa fa-check text-danger"},E={class:"fa fa-check text-danger"},P={class:"fa fa-check text-danger"};function S(o,a,C,G,H,z){const n=d("router-link"),u=d("EasyDataTable");return f(),_("div",x,[e("div",y,[a[2]||(a[2]=e("h3",{class:"block-title text-primary-dark"},[e("i",{class:"mx-2 fa fa-list"}),c(" کارکنان کارگاه ")],-1)),e("div",N,[r(n,{to:"/acc/plugin/noghre/employees/mod",class:"block-options-item"},{default:s(()=>a[1]||(a[1]=[e("span",{class:"fa fa-plus fw-bolder"},null,-1)])),_:1})])]),e("div",w,[e("div",V,[e("div",M,[e("div",D,[e("div",T,[a[3]||(a[3]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),l(e("input",{"onUpdate:modelValue":a[0]||(a[0]=t=>o.searchValue=t),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[b,o.searchValue]])])]),r(u,{"table-class-name":"customize-table","multi-sort":"","show-index":"",alternating:"","search-value":o.searchValue,headers:o.headers,items:o.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:o.loading},{"item-operation":s(({code:t})=>[r(n,{to:"/acc/plugin/noghre/employees/mod/"+t},{default:s(()=>a[4]||(a[4]=[e("i",{class:"fa fa-edit px-2"},null,-1)])),_:2},1032,["to"])]),"item-plugNoghreMorsa":s(({plugNoghreMorsa:t})=>[l(e("i",B,null,512),[[i,t]])]),"item-plugNoghreHakak":s(({plugNoghreHakak:t})=>[l(e("i",$,null,512),[[i,t]])]),"item-plugNoghreTarash":s(({plugNoghreTarash:t})=>[l(e("i",E,null,512),[[i,t]])]),"item-plugNoghreGhalam":s(({plugNoghreGhalam:t})=>[l(e("i",P,null,512),[[i,t]])]),"item-nikename":s(({nikename:t,code:p})=>[r(n,{to:"/acc/persons/card/view/"+p},{default:s(()=>[c(v(t),1)]),_:2},1032,["to"])]),_:1},8,["search-value","headers","items","loading"])])])])])}const j=h(k,[["render",S]]);export{j as default};

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
.v-data-table[data-v-5056d5de]{width:100%}[data-v-5056d5de] .v-data-table-header th{text-align:center!important;white-space:nowrap}[data-v-5056d5de] .v-data-table__wrapper table td{text-align:center!important}[data-v-5056d5de] .v-data-table__wrapper{overflow-x:auto}

View file

@ -1 +0,0 @@
import{_ as u,a as m}from"./main-9b36f05f.js";import{r as p,a as d,o as l,s as r,e,d as b,b as n,w as o,u as f,ab as h}from"./vendor-adef9cb4.js";const v={name:"list",data:()=>({printID:"",searchValue:"",loading:p(!0),items:[],headers:[{text:"کد",value:"id"},{text:"نام انبار",value:"name",sortable:!0},{text:"انباردار",value:"manager",sortable:!0},{text:"تلفن",value:"tel",sortable:!0},{text:"آدرس",value:"adr"},{text:"وضعیت",value:"active"},{text:"عملیات",value:"operation"}]}),methods:{loadData(){m.post("/api/storeroom/list/all").then(s=>{this.items=s.data.data,this.loading=!1})}},beforeMount(){this.loadData()}},g={class:"block block-content-full"},x={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},k={class:"block-title text-primary-dark"},_={class:"block-options"},y={class:"block-content pt-1 pb-3"},w={class:"row"},V={class:"col-sm-12 col-md-12 m-0 p-0"},D={class:"mb-1"},$={class:"input-group input-group-sm"},M={key:0,class:"text-primary"},T={key:1,class:"text-danger"};function B(s,t,C,E,N,P){const i=d("router-link"),c=d("EasyDataTable");return l(),r("div",g,[e("div",x,[e("h3",k,[e("button",{onClick:t[0]||(t[0]=a=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[2]||(t[2]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[3]||(t[3]=e("i",{class:"mx-2 fa fa-boxes-stacked"},null,-1)),t[4]||(t[4]=b(" انبارها "))]),e("div",_,[n(i,{to:"/acc/storeroom/mod/",class:"btn btn-sm btn-primary ms-1"},{default:o(()=>t[5]||(t[5]=[e("span",{class:"fa fa-plus fw-bolder"},null,-1)])),_:1})])]),e("div",y,[e("div",w,[e("div",V,[e("div",D,[e("div",$,[t[6]||(t[6]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),f(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>s.searchValue=a),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[h,s.searchValue]])])]),n(c,{"table-class-name":"customize-table","multi-sort":"","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":o(({id:a})=>[n(i,{to:"/acc/storeroom/mod/"+a},{default:o(()=>t[7]||(t[7]=[e("i",{class:"fa fa-edit px-2"},null,-1)])),_:2},1032,["to"])]),"item-active":o(({active:a})=>[a?(l(),r("label",M,"فعال")):(l(),r("label",T,"غیرفعال"))]),_:1},8,["search-value","headers","items","loading"])])])])])}const O=u(v,[["render",B]]);export{O as default};

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{_ as v,a as r,S as l}from"./main-9b36f05f.js";import{r as x,a as d,o as k,s as w,e as s,d as i,b as p,w as a,u as m,ab as y,B,t as T}from"./vendor-adef9cb4.js";const V={name:"list",data:()=>({searchValue:"",loading:x(!0),items:[],headers:[{text:"شخص",value:"person.nikename",width:"120px"},{text:"تعداد سهام",value:"percent",width:"140px"},{text:"عملیات",value:"operation",width:"130"}],persons:[],shareholder:{percent:1,person:null}}),methods:{loadData(){this.loading=!0,r.post("/api/shareholders/list").then(t=>{this.items=t.data,this.loading=!1}),r.post("/api/person/list/limit").then(t=>{this.persons=t.data})},submit(){this.shareholder.person==null?l.fire({text:"سهامدار انتخاب نشده است.",icon:"error",confirmButtonText:"قبول"}):this.shareholder.percent==""?l.fire({text:"تعداد سهام وارد نشده است .",icon:"error",confirmButtonText:"قبول"}):r.post("/api/shareholders/insert",{person:this.shareholder.person.id,count:this.shareholder.percent}).then(t=>{l.fire({text:"سهامدار با موفقیت افزوده شد .",icon:"success",confirmButtonText:"قبول"}),this.shareholder.percent=1,this.shareholder.person=null,this.loadData()})},deleteItem(t){l.fire({text:"آیا برای حذف این سهامدار مطمئن هستید؟",icon:"warning",confirmButtonText:"قبول",showCancelButton:!0,cancelButtonText:"انصراف"}).then(e=>{e.isConfirmed&&(this.loading=!0,r.post("/api/shareholders/remove/"+t).then(h=>{this.loading=!1,l.fire({text:"سهامدار حذف شد.",icon:"success",confirmButtonText:"قبول"}).then(u=>{for(let n=0;n<this.items.length;n++)this.items[n].id==t&&this.items.splice(n,1)})}))})}},beforeMount(){this.loadData()}},$={class:"block block-content-full"},C={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},D={class:"block-title text-primary-dark"},M={class:"block-content pt-1 pb-3"},N={class:"row mb-3 align-items-end border border-secondary rounded-2 p-2"},S={class:"col-sm-12 col-md-4 my-2"},E={class:"col-sm-12 col-md-4 my-2"},P={class:"col-sm-12 col-md-4 my-2"},z=["disabled"],I={class:"spinner-grow spinner-grow-sm me-2",role:"status"},U={class:"row"},K={class:"col-sm-12 col-md-12 m-0 p-0"},L=["onClick"];function O(t,e,h,u,n,c){const f=d("v-cob"),b=d("EasyDataTable");return k(),w("div",$,[s("div",C,[s("h3",D,[s("button",{onClick:e[0]||(e[0]=o=>t.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},e[5]||(e[5]=[s("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),e[6]||(e[6]=s("i",{class:"fa fa-circle-dot px-2"},null,-1)),e[7]||(e[7]=i(" سهامداران "))]),e[8]||(e[8]=s("div",{class:"block-options"},null,-1))]),s("div",M,[s("div",N,[s("div",S,[e[10]||(e[10]=s("label",{class:"form-label"},[s("i",{class:"fa fa-person me-2"}),i(" سهامدار ")],-1)),p(f,{dir:"rtl",class:"",options:t.persons,label:"nikename",modelValue:t.shareholder.person,"onUpdate:modelValue":e[1]||(e[1]=o=>t.shareholder.person=o)},{"no-options":a(({search:o,searching:g,loading:_})=>e[9]||(e[9]=[i(" نتیجه‌ای یافت نشد! ")])),_:1},8,["options","modelValue"])]),s("div",E,[e[11]||(e[11]=s("label",{class:"form-label"},[s("i",{class:"fa fa-file me-2"}),i(" تعداد سهام ")],-1)),m(s("input",{type:"number",onKeypress:e[2]||(e[2]=o=>this.$filters.onlyNumber(o)),class:"form-control",min:"1","onUpdate:modelValue":e[3]||(e[3]=o=>this.shareholder.percent=o)},null,544),[[y,this.shareholder.percent]])]),s("div",P,[s("button",{disabled:this.loading,onClick:e[4]||(e[4]=o=>c.submit()),type:"button",class:"btn btn-primary"},[m(s("div",I,e[12]||(e[12]=[s("span",{class:"visually-hidden"},"Loading...",-1)]),512),[[B,this.loading]]),e[13]||(e[13]=s("i",{class:"fa fa-save me-2"},null,-1)),e[14]||(e[14]=i(" افزودن سهامدار "))],8,z)])]),s("div",U,[s("div",K,[p(b,{"table-class-name":"customize-table","show-index":"",alternating:"","search-value":t.searchValue,headers:t.headers,items:t.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:t.loading},{"item-percent":a(({percent:o})=>[s("span",null,T(t.$filters.formatNumber(o)),1)]),"item-operation":a(({id:o})=>[s("button",{onClick:g=>this.deleteItem(o),type:"button",class:"btn btn-link"},e[15]||(e[15]=[s("i",{class:"fa fa-trash px-2 text-danger"},null,-1)]),8,L)]),_:1},8,["search-value","headers","items","loading"])])])])])}const A=v(V,[["render",O]]);export{A as default};

View file

@ -1 +0,0 @@
import{r as v,a as u,o as g,s as k,e,d as o,b as l,w as i,u as w,ab as x,t as c}from"./vendor-adef9cb4.js";import{_ as y,a as p,S as f}from"./main-9b36f05f.js";const _={name:"list",data:()=>({sumSelected:0,sumTotal:0,itemsSelected:[],searchValue:"",loading:v(!0),items:[],headers:[{text:"عملیات",value:"operation",width:"120"},{text:"کد",value:"code",width:"80"},{text:"تاریخ",value:"date"},{text:"شرح",value:"des"},{text:"مبلغ",value:"amount"}]}),methods:{loadData(){p.post("/api/accounting/search",{type:"income"}).then(s=>{this.items=s.data,this.items.forEach(t=>{t.amount=this.$filters.formatNumber(t.amount),this.sumTotal+=parseInt(t.amount.replaceAll(",",""))}),this.loading=!1})},deleteItem(s){f.fire({text:"آیا برای این سند مطمئن هستید؟",showCancelButton:!0,confirmButtonText:"بله",cancelButtonText:"خیر"}).then(t=>{t.isConfirmed&&p.post("/api/accounting/remove",{code:s}).then(n=>{if(n.data.result==1){let m=0;for(let d=0;d<this.items.length;d++)m++,this.items[d].code==s&&this.items.splice(m-1,1);f.fire({text:"سند با موفقیت حذف شد.",icon:"success",confirmButtonText:"قبول"})}})})}},beforeMount(){this.loadData()},watch:{itemsSelected:{handler:function(s,t){this.sumSelected=0,this.itemsSelected.forEach(n=>{this.sumSelected+=parseInt(n.amount.replaceAll(",",""))})},deep:!0}}},S={class:"block block-content-full"},T={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},V={class:"block-options"},$={class:"block-content pt-1 pb-3"},N={class:"row"},B={class:"col-sm-12 col-md-12 m-0 p-0"},M={class:"mb-1"},C={class:"input-group input-group-sm"},D={class:"dropdown-center"},E={"aria-labelledby":"dropdown-align-center-outline-primary",class:"dropdown-menu dropdown-menu-end",style:{}},A=["onClick"],I={class:"container-fluid p-0 mx-0 my-3"},P={class:"block block-rounded block-link-shadow border-start border-success border-3",href:"javascript:void(0)"},z={class:"block-content block-content-full block-content-sm bg-body-light"},U={class:"row"},j={class:"col-sm-6 com-md-6"},O={class:"text-primary"},q={class:"col-sm-6 com-md-6"},F={class:"text-primary"};function G(s,t,n,m,d,h){const r=u("router-link"),b=u("EasyDataTable");return g(),k("div",S,[e("div",T,[t[3]||(t[3]=e("h3",{class:"block-title text-primary-dark"},[e("i",{class:"mx-2 fa fa-cash-register"}),o(" درآمدها ")],-1)),e("div",V,[l(r,{to:"/acc/incomes/mod/",class:"block-options-item"},{default:i(()=>t[2]||(t[2]=[e("span",{class:"fa fa-plus fw-bolder"},null,-1)])),_:1})])]),e("div",$,[e("div",N,[e("div",B,[e("div",M,[e("div",C,[t[4]||(t[4]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),w(e("input",{"onUpdate:modelValue":t[0]||(t[0]=a=>s.searchValue=a),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[x,s.searchValue]])])]),l(b,{"table-class-name":"customize-table","items-selected":s.itemsSelected,"onUpdate:itemsSelected":t[1]||(t[1]=a=>s.itemsSelected=a),"show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":i(({code:a})=>[e("div",D,[t[9]||(t[9]=e("button",{"aria-expanded":"false","aria-haspopup":"true",class:"btn btn-sm btn-link","data-bs-toggle":"dropdown",id:"dropdown-align-center-alt-primary",type:"button"},[e("i",{class:"fa-solid fa-ellipsis"})],-1)),e("div",E,[l(r,{class:"dropdown-item",to:"/acc/accounting/view/"+a},{default:i(()=>t[5]||(t[5]=[e("i",{class:"fa fa-file pe-2 text-primary"},null,-1),o(" سند حسابداری ")])),_:2},1032,["to"]),l(r,{class:"dropdown-item",to:{name:"incomes_mod",params:{id:a}}},{default:i(()=>t[6]||(t[6]=[e("i",{class:"fa fa-eye pe-2 text-success"},null,-1),o(" مشاهده ")])),_:2},1032,["to"]),l(r,{class:"dropdown-item",to:{name:"incomes_mod",params:{id:a}}},{default:i(()=>t[7]||(t[7]=[e("i",{class:"fa fa-edit pe-2"},null,-1),o(" ویرایش ")])),_:2},1032,["to"]),e("button",{type:"button",onClick:H=>h.deleteItem(a),class:"dropdown-item text-danger"},t[8]||(t[8]=[e("i",{class:"fa fa-trash pe-2"},null,-1),o(" حذف ")]),8,A)])])]),_:1},8,["items-selected","search-value","headers","items","loading"]),e("div",I,[e("a",P,[e("div",z,[e("div",U,[e("div",j,[t[10]||(t[10]=e("span",{class:"text-dark"},[e("i",{class:"fa fa-list-dots"}),o(" مبلغ کل: ")],-1)),e("span",O,c(s.$filters.formatNumber(this.sumTotal))+" "+c(s.$filters.getActiveMoney().shortName),1)]),e("div",q,[t[11]||(t[11]=e("span",{class:"text-dark"},[e("i",{class:"fa fa-list-check"}),o(" جمع مبلغ موارد انتخابی: ")],-1)),e("span",F,c(s.$filters.formatNumber(this.sumSelected))+" "+c(s.$filters.getActiveMoney().shortName),1)])])])])])])])])])}const L=y(_,[["render",G]]);export{L as default};

View file

@ -1 +0,0 @@
.progress-bar[data-v-2ab5c223]{transition:width .3s ease-in-out}.text-center[data-v-2ab5c223]{font-family:Roboto,sans-serif}@keyframes spin-2ab5c223{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mdi-loading[data-v-2ab5c223]{animation:spin-2ab5c223 1s linear infinite}

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
.node-input[data-v-c9977258],.node-text[data-v-c9977258],.tree[data-v-c9977258]{font-family:vazir,sans-serif}

View file

@ -1 +0,0 @@
import{_ as y,a as h,S as c}from"./main-9b36f05f.js";import{r as k,a as x,o as p,s as m,e,d as l,b as i,w as o,u as v,ab as _,t as f}from"./vendor-adef9cb4.js";const B={name:"list",data:()=>({searchValue:"",loading:k(!0),items:[],headers:[{text:"عملیات",value:"operation",width:"130"},{text:"کد",value:"code",width:"70px"},{text:"نام تنخواه‌گردان",value:"name",width:"120px"},{text:"موجودی()",value:"balance",width:"140px"},{text:"توضیحات",value:"des",width:"150px"}]}),methods:{loadData(){h.post("/api/salary/list").then(s=>{this.items=s.data,this.loading=!1})},deleteItem(s){c.fire({text:"آیا برای حذف تنخواه‌گردان مطمئن هستید؟",showCancelButton:!0,confirmButtonText:"بله",cancelButtonText:"خیر"}).then(t=>{t.isConfirmed&&h.post("/api/salary/delete/"+s).then(d=>{if(d.data.result==1){let u=0;for(let n=0;n<this.items.length;n++)u++,this.items[n].code==s&&this.items.splice(u-1,1);c.fire({text:"تنخواه‌گردان با موفقیت حذف شد.",icon:"success",confirmButtonText:"قبول"})}else d.data.result==2&&c.fire({text:"تنخواه‌گردان به دلیل داشتن تراکنش و اسناد حسابداری مرتبط قابل حذف نیست.",icon:"error",confirmButtonText:"قبول"})})})}},beforeMount(){this.loadData()}},T={class:"block block-content-full"},V={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},$={class:"block-title text-primary-dark"},C={class:"block-options"},D={class:"block-content pt-1 pb-3"},M={class:"row"},N={class:"col-sm-12 col-md-12 m-0 p-0"},S={class:"mb-1"},E={class:"input-group input-group-sm"},P={"aria-labelledby":"dropdown-align-center-outline-primary",class:"dropdown-menu dropdown-menu-end",style:{}},z=["onClick"],I={key:0,class:"text-success"},O={key:1,class:"text-danger"};function U(s,t,d,u,n,w){const r=x("router-link"),g=x("EasyDataTable");return p(),m("div",T,[e("div",V,[e("h3",$,[e("button",{onClick:t[0]||(t[0]=a=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[2]||(t[2]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[3]||(t[3]=e("i",{class:"fa fa-bank px-2"},null,-1)),t[4]||(t[4]=l(" تنخواه‌گردان‌ها "))]),e("div",C,[i(r,{to:"/acc/salary/mod/",class:"block-options-item"},{default:o(()=>t[5]||(t[5]=[e("span",{class:"fa fa-plus fw-bolder"},null,-1)])),_:1})])]),e("div",D,[e("div",M,[e("div",N,[e("div",S,[e("div",E,[t[6]||(t[6]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),v(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>s.searchValue=a),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[_,s.searchValue]])])]),i(g,{"table-class-name":"customize-table","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":o(({code:a})=>[t[10]||(t[10]=e("button",{"aria-expanded":"false","aria-haspopup":"true",class:"btn btn-sm btn-link","data-bs-toggle":"dropdown",id:"dropdown-align-center-alt-primary",type:"button"},[e("i",{class:"fa-solid fa-ellipsis"})],-1)),e("div",P,[i(r,{class:"dropdown-item",to:"/acc/salary/card/view/"+a},{default:o(()=>t[7]||(t[7]=[e("i",{class:"fa fa-eye text-success pe-2"},null,-1),l(" مشاهده ")])),_:2},1032,["to"]),i(r,{class:"dropdown-item",to:"/acc/salary/mod/"+a},{default:o(()=>t[8]||(t[8]=[e("i",{class:"fa fa-edit pe-2"},null,-1),l(" ویرایش ")])),_:2},1032,["to"]),e("button",{type:"button",onClick:b=>w.deleteItem(a),class:"dropdown-item text-danger"},t[9]||(t[9]=[e("i",{class:"fa fa-trash pe-2"},null,-1),l(" حذف ")]),8,z)])]),"item-name":o(({name:a,code:b})=>[i(r,{to:"/acc/salary/card/view/"+b},{default:o(()=>[l(f(a),1)]),_:2},1032,["to"])]),"item-balance":o(({balance:a})=>[a>=0?(p(),m("label",I,f(s.$filters.formatNumber(a)),1)):(p(),m("label",O,f(s.$filters.formatNumber(-1*a))+" منفی",1))]),_:1},8,["search-value","headers","items","loading"])])])])])}const A=y(B,[["render",U]]);export{A as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{_ as h,a as c,S as m}from"./main-9b36f05f.js";import{r as g,a as u,o as w,s as v,e,d as l,b as i,w as n,u as y,ab as k}from"./vendor-adef9cb4.js";const x={name:"list",data:()=>({loading:g(!0),searchValue:"",items:[],headers:[{text:"نام لیست",value:"label",sortable:!0},{text:"عملیات",value:"operation"}]}),methods:{loadData(){c.post("/api/commodity/pricelist/list").then(s=>{this.items=s.data,this.loading=!1})},deleteItem(s){m.fire({text:"آیا برای حذف این مورد مطمئن هستید؟",showCancelButton:!0,confirmButtonText:"بله",cancelButtonText:"خیر"}).then(t=>{t.isConfirmed&&c.post("/api/commodity/pricelist/delete/"+s).then(p=>{if(p.data.result==1){let r=0;for(let a=0;a<this.items.length;a++)r++,this.items[a].id==s&&this.items.splice(r-1,1);m.fire({text:"فهرست با موفقیت حذف شد.",icon:"success",confirmButtonText:"قبول"})}})})}},beforeMount(){this.loadData()}},_={class:"block block-content-full"},V={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},B={class:"block-title text-primary-dark"},C={class:"block-options"},T={class:"block-content pt-1 pb-3"},$={class:"row"},D={class:"col-sm-12 col-md-12 m-0 p-0"},M={class:"mb-1"},E={class:"input-group input-group-sm"},N={class:"dropdown-center"},P={"aria-labelledby":"dropdown-align-center-outline-primary",class:"dropdown-menu dropdown-menu-end",style:{}},S=["onClick"];function z(s,t,p,r,a,f){const d=u("router-link"),b=u("EasyDataTable");return w(),v("div",_,[e("div",V,[e("h3",B,[e("button",{onClick:t[0]||(t[0]=o=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[2]||(t[2]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[3]||(t[3]=e("i",{class:"mx-2 fa fa-list"},null,-1)),t[4]||(t[4]=l(" لیست‌های قیمت "))]),e("div",C,[i(d,{to:"/acc/commodity/pricelist/mod/",class:"btn btn-sm btn-primary ms-1",title:"ایجاد لیست جدید"},{default:n(()=>t[5]||(t[5]=[e("span",{class:"fa fa-plus fw-bolder"},null,-1)])),_:1})])]),e("div",T,[e("div",$,[e("div",D,[e("div",M,[e("div",E,[t[6]||(t[6]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),y(e("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>s.searchValue=o),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[k,s.searchValue]])])]),i(b,{"table-class-name":"customize-table","multi-sort":"","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":n(({id:o})=>[e("div",N,[t[10]||(t[10]=e("button",{"aria-expanded":"false","aria-haspopup":"true",class:"btn btn-sm btn-link","data-bs-toggle":"dropdown",id:"dropdown-align-center-alt-primary",type:"button"},[e("i",{class:"fa-solid fa-ellipsis"})],-1)),e("div",P,[i(d,{class:"dropdown-item",to:"/acc/commodity/pricelist/view/"+o},{default:n(()=>t[7]||(t[7]=[e("i",{class:"fa fa-list pe-2"},null,-1),l(" لیست قیمت‌ها ")])),_:2},1032,["to"]),i(d,{class:"dropdown-item",to:"/acc/commodity/pricelist/mod/"+o},{default:n(()=>t[8]||(t[8]=[e("i",{class:"fa fa-edit pe-2"},null,-1),l(" ویرایش ")])),_:2},1032,["to"]),e("button",{type:"button",onClick:I=>f.deleteItem(o),class:"dropdown-item text-danger"},t[9]||(t[9]=[e("i",{class:"fa fa-trash pe-2"},null,-1),l(" حذف ")]),8,S)])])]),_:1},8,["search-value","headers","items","loading"])])])])])}const j=h(x,[["render",z]]);export{j as default};

View file

@ -1 +0,0 @@
.v-tabs[data-v-2a463003]{width:100%}.v-tab[data-v-2a463003]{flex:1}

View file

@ -1 +0,0 @@
import{_ as g,a as h,S as u}from"./main-9b36f05f.js";import{r as v,a as k,o as p,s as m,e,d as l,b as i,w as o,u as y,ab as _,t as f}from"./vendor-adef9cb4.js";const B={name:"list",data:()=>({searchValue:"",loading:v(!0),items:[],headers:[{text:"عملیات",value:"operation",width:"130"},{text:"کد",value:"code",width:"100px"},{text:"نام صندوق",value:"name",width:"120px"},{text:"موجودی()",value:"balance",width:"140px"},{text:"توضیحات",value:"des",width:"150px"}]}),methods:{loadData(){h.post("/api/cashdesk/list").then(s=>{this.items=s.data,this.loading=!1})},deleteItem(s){u.fire({text:"آیا برای حذف صندوق مطمئن هستید؟",showCancelButton:!0,confirmButtonText:"بله",cancelButtonText:"خیر"}).then(t=>{t.isConfirmed&&h.post("/api/cashdesk/delete/"+s).then(r=>{if(r.data.result==1){let c=0;for(let n=0;n<this.items.length;n++)c++,this.items[n].code==s&&this.items.splice(c-1,1);u.fire({text:"صندوق با موفقیت حذف شد.",icon:"success",confirmButtonText:"قبول"})}else r.data.result==2&&u.fire({text:"صندوق به دلیل داشتن تراکنش و اسناد حسابداری مرتبط قابل حذف نیست.",icon:"error",confirmButtonText:"قبول"})})})}},beforeMount(){this.loadData()}},T={class:"block block-content-full"},V={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},$={class:"block-title text-primary-dark"},C={class:"block-options"},D={class:"block-content pt-1 pb-3"},M={class:"row"},N={class:"col-sm-12 col-md-12 m-0 p-0"},S={class:"mb-1"},E={class:"input-group input-group-sm"},P={"aria-labelledby":"dropdown-align-center-outline-primary",class:"dropdown-menu dropdown-menu-end",style:{}},z=["onClick"],I={key:0,class:"text-success"},O={key:1,class:"text-danger"};function U(s,t,r,c,n,x){const d=k("router-link"),w=k("EasyDataTable");return p(),m("div",T,[e("div",V,[e("h3",$,[e("button",{onClick:t[0]||(t[0]=a=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},t[2]||(t[2]=[e("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),t[3]||(t[3]=e("i",{class:"fa fa-bank px-2"},null,-1)),t[4]||(t[4]=l(" صندوق ها "))]),e("div",C,[i(d,{to:"/acc/cashdesk/mod/",class:"block-options-item"},{default:o(()=>t[5]||(t[5]=[e("span",{class:"fa fa-plus fw-bolder"},null,-1)])),_:1})])]),e("div",D,[e("div",M,[e("div",N,[e("div",S,[e("div",E,[t[6]||(t[6]=e("span",{class:"input-group-text"},[e("i",{class:"fa fa-search"})],-1)),y(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>s.searchValue=a),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[_,s.searchValue]])])]),i(w,{"table-class-name":"customize-table","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":o(({code:a})=>[t[10]||(t[10]=e("button",{"aria-expanded":"false","aria-haspopup":"true",class:"btn btn-sm btn-link","data-bs-toggle":"dropdown",id:"dropdown-align-center-alt-primary",type:"button"},[e("i",{class:"fa-solid fa-ellipsis"})],-1)),e("div",P,[i(d,{class:"dropdown-item",to:"/acc/cashdesk/card/view/"+a},{default:o(()=>t[7]||(t[7]=[e("i",{class:"fa fa-eye text-success pe-2"},null,-1),l(" مشاهده ")])),_:2},1032,["to"]),i(d,{class:"dropdown-item",to:"/acc/cashdesk/mod/"+a},{default:o(()=>t[8]||(t[8]=[e("i",{class:"fa fa-edit pe-2"},null,-1),l(" ویرایش ")])),_:2},1032,["to"]),e("button",{type:"button",onClick:b=>x.deleteItem(a),class:"dropdown-item text-danger"},t[9]||(t[9]=[e("i",{class:"fa fa-trash pe-2"},null,-1),l(" حذف ")]),8,z)])]),"item-name":o(({name:a,code:b})=>[i(d,{to:"/acc/cashdesk/card/view/"+b},{default:o(()=>[l(f(a),1)]),_:2},1032,["to"])]),"item-balance":o(({balance:a})=>[a>=0?(p(),m("label",I,f(s.$filters.formatNumber(a)),1)):(p(),m("label",O,f(s.$filters.formatNumber(-1*a))+" منفی",1))]),_:1},8,["search-value","headers","items","loading"])])])])])}const A=g(B,[["render",U]]);export{A as default};

View file

@ -1 +0,0 @@
.v-tabs[data-v-ab832cde]{width:100%}.v-tab[data-v-ab832cde]{flex:1}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{_ as T,a as f}from"./main-9b36f05f.js";import{a as n,o as u,c as _,w as a,b as r,d as c,A as v,t as d}from"./vendor-adef9cb4.js";const V={name:"PackageList",data(){return{packages:[],isLoading:!1,canShowForm:!1,showFreePackageDialog:!1,initialLoading:!0,headers:[{title:"تاریخ شروع",key:"dateSubmit",align:"center"},{title:"تاریخ انقضا",key:"dateExpire",align:"center"},{title:"مدت (ماه)",key:"month",align:"center"},{title:"مبلغ",key:"price",align:"center"},{title:"روزهای باقی‌مانده",key:"daysRemaining",align:"center"},{title:"وضعیت",key:"status",align:"center"},{title:"توضیحات",key:"des",align:"center"}]}},async mounted(){await this.checkFreeAccounting(),this.canShowForm&&this.fetchPackages()},methods:{async checkFreeAccounting(){try{this.initialLoading=!0;const t=await f.post("/api/settings/get/can-free-accounting"),{value:e}=t.data;e===1||e==="1"?this.showFreePackageDialog=!0:(e===0||e==="0")&&(this.canShowForm=!0)}catch(t){console.error("خطا در بررسی بسته رایگان:",t),this.$vuetify.notify({text:"خطا در بررسی دسترسی",type:"error"})}finally{this.initialLoading=!1}},redirectToDashboard(){this.showFreePackageDialog=!1,this.$router.push("/acc/dashboard")},async fetchPackages(){try{this.isLoading=!0;const e=(await f.post("/api/packagemanager/packages/orders/list")).data;e.result?this.packages=e.orders:this.$vuetify.notify({text:e.message||"خطا در دریافت اطلاعات",type:"error"})}catch(t){console.error("خطا در دریافت بسته‌ها:",t),this.$vuetify.notify({text:"خطا در ارتباط با سرور",type:"error"})}finally{this.isLoading=!1}},formatDate(t){const e=new Date(parseInt(t)*1e3);return new Intl.DateTimeFormat("fa-IR").format(e)},formatPrice(t){return new Intl.NumberFormat("fa-IR").format(t)+" تومان"},getStatusColor(t,e){const s=Math.floor(Date.now()/1e3);return t===100&&parseInt(e)>s?"green":t===100&&parseInt(e)<=s?"red":"grey"},getStatusText(t,e){const s=Math.floor(Date.now()/1e3);return t===100&&parseInt(e)>s?"فعال":t===100&&parseInt(e)<=s?"منقضی شده":"در انتظار پرداخت"},calculateDaysRemaining(t,e){const s=Math.floor(Date.now()/1e3);if(e!==100||parseInt(t)<=s)return 0;const g=parseInt(t)-s,i=Math.floor(g/(24*60*60));return i>=0?i:0},getDaysRemainingColor(t,e){const s=this.calculateDaysRemaining(t,e);return s===0?"grey":s<=10?"red":"green"}}};function E(t,e,s,g,i,l){const y=n("v-icon"),m=n("v-btn"),h=n("v-toolbar-title"),k=n("v-toolbar"),w=n("v-progress-circular"),x=n("v-row"),p=n("v-chip"),D=n("v-data-table"),b=n("v-card-title"),F=n("v-card-text"),I=n("v-spacer"),S=n("v-card-actions"),C=n("v-card"),L=n("v-dialog"),P=n("v-container"),R=n("v-app");return u(),_(R,null,{default:a(()=>[r(k,null,{default:a(()=>[r(m,{icon:"",onClick:e[0]||(e[0]=o=>t.$router.go(-1))},{default:a(()=>[r(y,null,{default:a(()=>e[2]||(e[2]=[c("mdi-arrow-right")])),_:1})]),_:1}),r(h,null,{default:a(()=>e[3]||(e[3]=[c("سفارشات بسته‌های حسابداری نامحدود")])),_:1})]),_:1}),r(P,null,{default:a(()=>[i.initialLoading?(u(),_(x,{key:0,justify:"center",class:"mt-5"},{default:a(()=>[r(w,{indeterminate:"",color:"primary",size:50})]),_:1})):v("",!0),i.canShowForm&&!i.initialLoading?(u(),_(D,{key:1,headers:i.headers,items:i.packages,"items-per-page":10,loading:i.isLoading,"loading-text":"در حال بارگذاری اطلاعات...",class:"elevation-1"},{"item.dateSubmit":a(({item:o})=>[c(d(l.formatDate(o.dateSubmit)),1)]),"item.dateExpire":a(({item:o})=>[c(d(l.formatDate(o.dateExpire)),1)]),"item.price":a(({item:o})=>[c(d(l.formatPrice(o.price)),1)]),"item.status":a(({item:o})=>[r(p,{color:l.getStatusColor(o.status,o.dateExpire)},{default:a(()=>[c(d(l.getStatusText(o.status,o.dateExpire)),1)]),_:2},1032,["color"])]),"item.daysRemaining":a(({item:o})=>[r(p,{color:l.getDaysRemainingColor(o.dateExpire,o.status)},{default:a(()=>[c(d(l.calculateDaysRemaining(o.dateExpire,o.status)),1)]),_:2},1032,["color"])]),_:1},8,["headers","items","loading"])):v("",!0),r(L,{modelValue:i.showFreePackageDialog,"onUpdate:modelValue":e[1]||(e[1]=o=>i.showFreePackageDialog=o),"max-width":"400"},{default:a(()=>[r(C,null,{default:a(()=>[r(b,{class:"text-h6 green lighten-2"},{default:a(()=>e[4]||(e[4]=[c("بسته رایگان فعال است")])),_:1}),r(F,{class:"mt-2"},{default:a(()=>e[5]||(e[5]=[c(" شما در حال حاضر از بسته حسابداری رایگان استفاده می‌کنید. به داشبورد منتقل خواهید شد. ")])),_:1}),r(S,null,{default:a(()=>[r(I),r(m,{color:"primary",text:"",onClick:l.redirectToDashboard},{default:a(()=>e[6]||(e[6]=[c("تأیید")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})}const A=T(V,[["render",E],["__scopeId","data-v-7a97c43d"]]);export{A as default};

View file

@ -1 +0,0 @@
.custom-header[data-v-67de630a]{background-color:#f5f5f5}.v-data-table[data-v-67de630a]{direction:rtl}.text-left[data-v-67de630a]{text-align:left!important}.v-data-table[data-v-67de630a] th{font-weight:700!important;white-space:nowrap}.v-data-table[data-v-67de630a] td{padding:8px 16px!important}.v-dialog .v-toolbar-title[data-v-67de630a]{font-size:1rem}.v-dialog .v-card-text[data-v-67de630a]{max-height:400px;overflow-y:auto}.v-btn .v-icon[data-v-67de630a]{font-size:20px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{a as p,S as f,_ as g}from"./main-9b36f05f.js";import{h as b,r as h,a as c,o as v,s as x,e as t,d as k,b as o,w as l,u as w,ab as C,aa as y}from"./vendor-adef9cb4.js";const V=b({name:"list",data:()=>({searchValue:"",loading:h(!0),items:[],headers:[{text:"کد",value:"code"},{text:"وضعیت",value:"status",sortable:!0},{text:"مشتری",value:"customer",sortable:!0},{text:"تاریخ تحویل",value:"dateDeliver"},{text:"مدل",value:"model"},{text:"سایز",value:"size"},{text:"نگین",value:"negin"},{text:"هزینه نگین",value:"neginFee"},{text:"عملیات",value:"operation"}]}),methods:{loadData(){p.post("/api/plugin/noghre/orders/list").then(s=>{this.items=s.data,this.loading=!1})},deleteItem(s){f.fire({text:"آیا برای حذف این مورد مطمئن هستید؟ در نظر داشته باشید همراه با حذف سفارش کلیه اسناد پرداخت مشتری نیز حذف خواهند شد.",showCancelButton:!0,confirmButtonText:"بله",cancelButtonText:"خیر"}).then(e=>{e.isConfirmed&&p.post("/api/plugin/noghre/remove/order/"+s).then(r=>{if(r.data.result=="ok"){let u=0;for(let i=0;i<this.items.length;i++)u++,this.items[i].code==s&&this.items.splice(u-1,1);f.fire({text:"سفارش با موفقیت حذف شد.",icon:"success",confirmButtonText:"قبول"})}})})}},created(){this.loadData()}}),_={class:"block block-content-full"},B={id:"fixed-header",class:"block-header block-header-default bg-gray-light pt-2 pb-1"},T={class:"block-title text-primary-dark"},$={class:"block-options"},D={class:"block-content pt-1 pb-3"},F={class:"row"},M={class:"col-sm-12 col-md-12 m-0 p-0"},A={class:"mb-1"},z={class:"input-group input-group-sm"},E=["onClick"];function N(s,e,r,u,i,P){const n=c("router-link"),m=c("EasyDataTable");return v(),x("div",_,[t("div",B,[t("h3",T,[t("button",{onClick:e[0]||(e[0]=a=>s.$router.back()),type:"button",class:"float-start d-none d-sm-none d-md-block btn btn-sm btn-link text-warning"},e[2]||(e[2]=[t("i",{class:"fa fw-bold fa-arrow-right"},null,-1)])),e[3]||(e[3]=t("i",{class:"mx-2 fa fa-list"},null,-1)),e[4]||(e[4]=k(" سفارشات "))]),t("div",$,[o(n,{to:"/acc/plugin/noghre/order/mod/0",class:"block-options-item"},{default:l(()=>e[5]||(e[5]=[t("span",{class:"fa fa-plus fw-bolder"},null,-1)])),_:1})])]),t("div",D,[t("div",F,[t("div",M,[t("div",A,[t("div",z,[e[6]||(e[6]=t("span",{class:"input-group-text"},[t("i",{class:"fa fa-search"})],-1)),w(t("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>s.searchValue=a),class:"form-control",type:"text",placeholder:"جست و جو ..."},null,512),[[C,s.searchValue]])])]),o(m,{"table-class-name":"customize-table","multi-sort":"","show-index":"",alternating:"","search-value":s.searchValue,headers:s.headers,items:s.items,"theme-color":"#1d90ff","header-text-direction":"center","body-text-direction":"center",rowsPerPageMessage:"تعداد سطر",emptyMessage:"اطلاعاتی برای نمایش وجود ندارد",rowsOfPageSeparatorMessage:"از",loading:s.loading},{"item-operation":l(({code:a,id:d})=>[o(n,{to:"/acc/plugin/noghre/employees/mod/"+a},{default:l(()=>e[7]||(e[7]=[t("i",{class:"fa fa-edit px-2"},null,-1)])),_:2},1032,["to"]),o(n,{to:"/acc/accounting/view/"+a},{default:l(()=>e[8]||(e[8]=[t("i",{class:"fa fa-book px-2"},null,-1)])),_:2},1032,["to"]),t("a",{onClick:y(S=>s.deleteItem(a),["prevent"])},e[9]||(e[9]=[t("i",{class:"fa fa-trash px-2 text-danger"},null,-1)]),8,E),o(n,{to:"/acc/plugin/noghre/order/view/"+d},{default:l(()=>e[10]||(e[10]=[t("i",{class:"fa fa-file px-2 text-success"},null,-1)])),_:2},1032,["to"]),o(n,{to:"/acc/plugin/noghre/pays/view/"+d},{default:l(()=>e[11]||(e[11]=[t("i",{class:"fa fa-money-bill-1-wave px-2 text-warning"},null,-1)])),_:2},1032,["to"])]),_:1},8,["search-value","headers","items","loading"])])])])])}const U=g(V,[["render",N]]);export{U as default};

Some files were not shown because too many files have changed in this diff Show more