some progres in rep service
This commit is contained in:
parent
fb90cab19f
commit
f71147a127
|
@ -136,4 +136,10 @@ class UiGeneralController extends AbstractController
|
|||
return $this->render('general/woocommerce.html.twig',);
|
||||
}
|
||||
|
||||
#[Route('/front/apps/repservice', name: 'general_apps_repservice')]
|
||||
public function general_apps_repservice(EntityManagerInterface $entityManager): Response
|
||||
{
|
||||
return $this->render('general/repservice.html.twig',);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ use App\Service\registryMGR;
|
|||
use App\Entity\PlugRepserviceOrder;
|
||||
use App\Entity\PlugRepserviceOrderState;
|
||||
use App\Service\Explore;
|
||||
use App\Service\Jdate;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
@ -57,6 +58,8 @@ class PlugRepserviceController extends AbstractController
|
|||
!array_key_exists('person', $params) ||
|
||||
!array_key_exists('serial', $params) ||
|
||||
!array_key_exists('motaleghat', $params) ||
|
||||
!array_key_exists('color', $params) ||
|
||||
!array_key_exists('model', $params) ||
|
||||
!array_key_exists('date', $params)
|
||||
)
|
||||
return $this->json($extractor->paramsNotSend());
|
||||
|
@ -92,6 +95,8 @@ class PlugRepserviceController extends AbstractController
|
|||
$order->setCommodity($commodity);
|
||||
$order->setPerson($person);
|
||||
$order->setDate($params['date']);
|
||||
$order->setModel($params['model']);
|
||||
$order->setColor($params['color']);
|
||||
$order->setDes($params['des']);
|
||||
$order->setMotaleghat($params['motaleghat']);
|
||||
$order->setPelak($params['pelak']);
|
||||
|
@ -131,7 +136,7 @@ class PlugRepserviceController extends AbstractController
|
|||
}
|
||||
|
||||
#[Route('/api/plug/repservice/order/state/change', name: 'app_plug_repservice_order_state_change')]
|
||||
public function app_plug_repservice_order_state_change(Provider $provider, registryMGR $registryMGR, SMS $sms, Log $log, EntityManagerInterface $entityManagerInterface, Access $access, Request $request, Extractor $extractor): JsonResponse
|
||||
public function app_plug_repservice_order_state_change(Jdate $jdate,Provider $provider, registryMGR $registryMGR, SMS $sms, Log $log, EntityManagerInterface $entityManagerInterface, Access $access, Request $request, Extractor $extractor): JsonResponse
|
||||
{
|
||||
$acc = $access->hasRole('plugRepservice');
|
||||
if (!$acc)
|
||||
|
@ -163,6 +168,10 @@ class PlugRepserviceController extends AbstractController
|
|||
return $this->json($extractor->notFound());
|
||||
}
|
||||
$order->setState($state);
|
||||
//set dateout if proccess finish
|
||||
if($state->getCode() == 'getback'){
|
||||
$order->setDateOut($jdate->jdate('Y-n-d',time()));
|
||||
}
|
||||
$entityManagerInterface->persist($order);
|
||||
$entityManagerInterface->flush();
|
||||
$log->insert('افزونه تعمیرکاران', ' وضعیت کالا با کد ' . $order->getCode() . ' به ' . $state->getLabel() . ' تغییر یافت. ', $this->getUser(), $acc['bid']->getId());
|
||||
|
@ -214,7 +223,7 @@ class PlugRepserviceController extends AbstractController
|
|||
|
||||
$orders = $entityManagerInterface->getRepository(PlugRepserviceOrder::class)->findBy([
|
||||
'bid' => $acc['bid']
|
||||
]);
|
||||
],['code'=>'DESC']);
|
||||
return $this->json($this->ExploreOrders($orders));
|
||||
}
|
||||
|
||||
|
@ -229,7 +238,8 @@ class PlugRepserviceController extends AbstractController
|
|||
foreach ($items as $item) {
|
||||
$res[] = [
|
||||
'code' => $item->getCode(),
|
||||
'label' => $item->getLabel()
|
||||
'label' => $item->getLabel(),
|
||||
'checked'=>false
|
||||
];
|
||||
}
|
||||
return $this->json($res);
|
||||
|
@ -245,21 +255,8 @@ class PlugRepserviceController extends AbstractController
|
|||
$item = $entityManager->getRepository(PlugRepserviceOrder::class)->findOneBy(['bid' => $acc['bid'], 'code' => $code]);
|
||||
if (!$item)
|
||||
throw $this->createNotFoundException();
|
||||
$temp = [
|
||||
'update' => $item->getCode(),
|
||||
'date'=>$item->getDate(),
|
||||
'des'=>$item->getDes(),
|
||||
'person'=>Explore::ExplorePerson($item->getPerson()),
|
||||
'pelak'=>$item->getPelak(),
|
||||
'serial'=>$item->getSerial(),
|
||||
'motaleghat'=>$item->getMotaleghat(),
|
||||
'commodity'=>Explore::ExploreCommodity($item->getCommodity()),
|
||||
'sms'=>true
|
||||
];
|
||||
if($item->getPerson()->getMobile() == null || $item->getPerson()->getMobile() == ''){
|
||||
$temp['sms'] = false;
|
||||
}
|
||||
return $this->json($temp);
|
||||
|
||||
return $this->json($this->ExploreOrder($item));
|
||||
}
|
||||
|
||||
#[Route('/api/repservice/order/remove/{code}', name: 'app_plug_repservice_order_remove')]
|
||||
|
@ -282,6 +279,7 @@ class PlugRepserviceController extends AbstractController
|
|||
{
|
||||
$temp = [
|
||||
'id' => $item->getId(),
|
||||
'update' => $item->getCode(),
|
||||
'code' => $item->getCode(),
|
||||
'person' => Explore::ExplorePerson($item->getPerson()),
|
||||
'commodity' => Explore::ExploreCommodity($item->getCommodity()),
|
||||
|
@ -295,8 +293,14 @@ class PlugRepserviceController extends AbstractController
|
|||
'code' => $item->getState()->getCode(),
|
||||
'label' => $item->getState()->getLabel()
|
||||
],
|
||||
'sms' => true
|
||||
'dateOut'=>$item->getDateOut(),
|
||||
'model'=>$item->getModel(),
|
||||
'color'=>$item->getColor(),
|
||||
'sms'=>true,
|
||||
];
|
||||
if($item->getPerson()->getMobile() == null || $item->getPerson()->getMobile() == ''){
|
||||
$temp['sms'] = false;
|
||||
}
|
||||
|
||||
return $temp;
|
||||
}
|
||||
|
|
|
@ -57,6 +57,15 @@ class PlugRepserviceOrder
|
|||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $motaleghat = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $model = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $color = null;
|
||||
|
||||
#[ORM\Column(length: 50, nullable: true)]
|
||||
private ?string $dateOut = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
|
@ -217,4 +226,40 @@ class PlugRepserviceOrder
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getModel(): ?string
|
||||
{
|
||||
return $this->model;
|
||||
}
|
||||
|
||||
public function setModel(?string $model): static
|
||||
{
|
||||
$this->model = $model;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getColor(): ?string
|
||||
{
|
||||
return $this->color;
|
||||
}
|
||||
|
||||
public function setColor(?string $color): static
|
||||
{
|
||||
$this->color = $color;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDateOut(): ?string
|
||||
{
|
||||
return $this->dateOut;
|
||||
}
|
||||
|
||||
public function setDateOut(?string $dateOut): static
|
||||
{
|
||||
$this->dateOut = $dateOut;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
105
hesabixCore/templates/general/repservice.html.twig
Normal file
105
hesabixCore/templates/general/repservice.html.twig
Normal file
|
@ -0,0 +1,105 @@
|
|||
{% extends "base.html.twig" %}
|
||||
{% block title %}افزونه مدیریت تعمیرگاه)تعمیرکاران)
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
<main
|
||||
id="main-container p-0 m-0">
|
||||
<!-- Hero -->
|
||||
<div class="bg-image" style="background-image: url('/img/plugins/repservice.png');">
|
||||
<div class="bg-black-75">
|
||||
<div class="content content-top content-full text-center">
|
||||
<h1 class="text-white">
|
||||
<i class="fa fa-shop"></i>
|
||||
</h1>
|
||||
<h1 class="fw-bold text-white mt-5 mb-3">افزونه مدیریت تعمیرگاه</h1>
|
||||
<h2 class="h3 fw-normal text-white-75 mb-5">
|
||||
افزونه تعمیرکاران یکپارچه طراحی شد تا تمام نیازهای شما را در مدیریت تعمیرگاه و فروشگاه تان را بصورت کامل رفع
|
||||
کند.
|
||||
</h2>
|
||||
<a to="#">
|
||||
<span class="badge rounded-pill bg-primary fs-base px-3 py-2 me-2 m-1">
|
||||
<i class="fa fa-user-circle me-1"></i>
|
||||
خرید در بازار حسابیکس
|
||||
</span>
|
||||
</a>
|
||||
<br>
|
||||
<i class="fa fa-arrow-down text-white"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Hero -->
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="container-fluid">
|
||||
<div class="row justify-content-center">
|
||||
<div
|
||||
class="col-sm-11 py-2">
|
||||
<!-- Story -->
|
||||
<article class="story justify-content-between">
|
||||
<div class="rounded-3 bg-white p-3 mb-3">
|
||||
<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="/img/plugins/repservice.jpg"/>
|
||||
</div>
|
||||
</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>
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
<!-- END Story -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Page Content -->
|
||||
</main>
|
||||
{% endblock %}
|
|
@ -1,8 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset
|
||||
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
|
||||
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
|
||||
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
||||
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
|
||||
<url>
|
||||
|
@ -107,17 +105,22 @@
|
|||
</url>
|
||||
<url>
|
||||
<loc>https://hesabix.ir/front/features/user_management</loc>
|
||||
<lastmod>2023-11-10T16:17:43+00:00</lastmod>
|
||||
<lastmod>{{ timeNow }}</lastmod>
|
||||
<priority>0.80</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://hesabix.ir/front/features/buy_sell</loc>
|
||||
<lastmod>2023-11-10T16:17:43+00:00</lastmod>
|
||||
<lastmod>{{ timeNow }}</lastmod>
|
||||
<priority>0.80</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://hesabix.ir/front/apps/woocommerce</loc>
|
||||
<lastmod>2023-11-10T16:17:43+00:00</lastmod>
|
||||
<lastmod>{{ timeNow }}</lastmod>
|
||||
<priority>0.80</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://hesabix.ir/front/apps/repservice</loc>
|
||||
<lastmod>{{ timeNow }}</lastmod>
|
||||
<priority>0.80</priority>
|
||||
</url>
|
||||
<url>
|
||||
|
@ -135,7 +138,13 @@
|
|||
{% for doc in docs %}
|
||||
<url>
|
||||
<loc>{{ absolute_url(path('general_help_api',{'id':doc.id})) }}</loc>
|
||||
<lastmod>{% if doc.dateSubmit is null %}{{ timeNow }}{% else %}{{ doc.dateSubmit | date('c') }}{% endif %}</lastmod>
|
||||
<lastmod>
|
||||
{% if doc.dateSubmit is null %}
|
||||
{{ timeNow }}
|
||||
{% else %}
|
||||
{{ doc.dateSubmit | date('c') }}
|
||||
{% endif %}
|
||||
</lastmod>
|
||||
<priority>0.80</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
|
|
@ -124,10 +124,21 @@
|
|||
<div class="fs-sm fw-semibold text-muted mb-2">
|
||||
تاریخ:
|
||||
{{order.date}}</div>
|
||||
<div class="fs-sm fw-semibold text-muted mb-2">
|
||||
تاریخ تحویل:
|
||||
{{order.dateOut}}</div>
|
||||
<p class="text-muted mb-2">
|
||||
شرح:
|
||||
{{order.des}}
|
||||
</p>
|
||||
<p class="text-muted mb-2">
|
||||
مدل:
|
||||
{{order.model}}
|
||||
</p>
|
||||
<p class="text-muted mb-2">
|
||||
رنگ:
|
||||
{{order.color}}
|
||||
</p>
|
||||
<p class="text-muted mb-2">
|
||||
متعلقات:
|
||||
{{order.motaleghat}}
|
||||
|
|
BIN
public_html/img/plugins/repservice.jpg
Normal file
BIN
public_html/img/plugins/repservice.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
BIN
public_html/img/plugins/repservice.png
Normal file
BIN
public_html/img/plugins/repservice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
Loading…
Reference in a new issue