136 lines
11 KiB
Python
Executable file
136 lines
11 KiB
Python
Executable file
with open('/workspace/ecommerce_research_sources/update_dashboard_with_ecosystem.py', 'r', encoding='utf-8') as f:
|
||
code = f.read()
|
||
|
||
# Add nav link
|
||
nav_target = '<a href="#sec-war-report" style="color: #E11D48; font-weight: 800;">گزارش جنگی ۱۴۰۴</a>'
|
||
nav_replacement = '<a href="#sec-war-report" style="color: #E11D48; font-weight: 800;">گزارش جنگی ۱۴۰۴</a>\n <a href="#sec-consulting">مشاوره مدیریتی C-Level</a>'
|
||
code = code.replace(nav_target, nav_replacement)
|
||
|
||
# Load consulting framework in script
|
||
data_load_target = 'seller_intel = master.get("seller_intelligence_mordad_1405", {})'
|
||
data_load_replacement = 'seller_intel = master.get("seller_intelligence_mordad_1405", {})\nconsulting_fw = master.get("consulting_framework", {})'
|
||
code = code.replace(data_load_target, data_load_replacement)
|
||
|
||
# Section HTML block
|
||
section_html = '''
|
||
<!-- Section: C-Level Consulting Framework -->
|
||
<section id="sec-consulting" class="dashboard-section">
|
||
<div class="section-header">
|
||
<div class="section-title-group">
|
||
<span class="section-tag" style="background: #4338CA;">EXECUTIVE ADVISORY</span>
|
||
<div>
|
||
<h2 class="section-title">چارچوب مشاوره مدیریتی C-Level: مدیریت بحرانهای ژئوپلیتیک و پدافند تجاری</h2>
|
||
<p class="section-subtitle">متدولوژی ۴R مکنزی، ماتریس BCG سبد کالایی بحران و نقشه اقدام اجرایی هیئت مدیره</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 4R Framework Grid -->
|
||
<h3 style="font-size: 16px; font-weight: 800; margin-bottom: 14px; color: var(--text-main);">۱. مدل تابآوری ۴ مرحلهای مکنزی (McKinsey 4R Framework)</h3>
|
||
<div class="grid-4" style="margin-bottom: 28px;">'''
|
||
|
||
section_html += '''
|
||
<div class="card" style="border-top: 4px solid #EF4444;">
|
||
<span class="badge badge-primary" style="margin-bottom: 8px;">مرحله اول</span>
|
||
<h4 style="font-size: 15px; font-weight: 800; margin-bottom: 6px;">رفع بحران اولیه (Resolve)</h4>
|
||
<p style="font-size: 11px; color: #DC2626; font-weight: 700; margin-bottom: 8px;">حفظ پرسنل و مایحتاج پایه</p>
|
||
<p style="font-size: 12px; color: var(--text-muted);">ایمنی مراکز توزیع، تضمین جریان تأمین اقلام فسادناپذیر (کنسرو، نان، آب) و سهمیهبندی سبد جهت جلوگیری از رفتارهای احتکاری.</p>
|
||
</div>
|
||
<div class="card" style="border-top: 4px solid #F59E0B;">
|
||
<span class="badge badge-amber" style="margin-bottom: 8px;">مرحله دوم</span>
|
||
<h4 style="font-size: 15px; font-weight: 800; margin-bottom: 6px;">تابآوری عملیاتی (Resilience)</h4>
|
||
<p style="font-size: 11px; color: #D97706; font-weight: 700; margin-bottom: 8px;">تمرکززدایی زنجیره تأمین</p>
|
||
<p style="font-size: 12px; color: var(--text-muted);">توزیع بار کالا به هابهای منطقهای؛ تطبیق SLA ارسال از ۲۴ ساعت به ۵ روز و شیفت پنل فروشندگان به خطوط ADSL ثابت.</p>
|
||
</div>
|
||
<div class="card" style="border-top: 4px solid #3B82F6;">
|
||
<span class="badge badge-blue" style="margin-bottom: 8px;">مرحله سوم</span>
|
||
<h4 style="font-size: 15px; font-weight: 800; margin-bottom: 6px;">بازگشت به تعادل (Return)</h4>
|
||
<p style="font-size: 11px; color: #2563EB; font-weight: 700; margin-bottom: 8px;">تخلیه صف و تسویه سریع</p>
|
||
<p style="font-size: 12px; color: var(--text-muted);">تسویه نقدی فوری ۳ تا ۷ روزه با فروشندگان کالاهای ضروری؛ فعالسازی شیفتهای شبانه و اطلاعرسانی شفاف بازههای ارسال.</p>
|
||
</div>
|
||
<div class="card" style="border-top: 4px solid #10B981;">
|
||
<span class="badge badge-emerald" style="margin-bottom: 8px;">مرحله چهارم</span>
|
||
<h4 style="font-size: 15px; font-weight: 800; margin-bottom: 6px;">بازآفرینی مدل (Reimagination)</h4>
|
||
<p style="font-size: 11px; color: #059669; font-weight: 700; margin-bottom: 8px;">مزیت رقابتی پایدار</p>
|
||
<p style="font-size: 12px; color: var(--text-muted);">تثبیت دائم دستهبندی کوله اضطراری، قرارداد ذخیره استراتژیک با کارخانجات باتری و کنسرو، و پیادهسازی پرداخت آفلاین.</p>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Crisis BCG Matrix -->
|
||
<h3 style="font-size: 16px; font-weight: 800; margin-bottom: 14px; color: var(--text-main);">۲. ماتریس سبد کالایی در شرایط بحران (Crisis Portfolio Matrix)</h3>
|
||
<div class="grid-2" style="margin-bottom: 28px;">
|
||
<div class="card" style="background: #FEF2F2; border: 1px solid #FCA5A5;">
|
||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;">
|
||
<h4 style="font-size: 16px; font-weight: 800; color: #991B1B;">ستارههای بحران (Crisis Stars)</h4>
|
||
<span class="badge badge-primary">رشد خیرهکننده تقاضا</span>
|
||
</div>
|
||
<p style="font-size: 12px; color: #7F1D1D; margin-bottom: 10px;"><strong>اقلام:</strong> شارژر خورشیدی (+۱۲۴۵٪)، رادیو جیبی (+۶۲۷٪)، کیف پول رمزارز (+۲۱۸٪)</p>
|
||
<div style="background: white; padding: 10px; border-radius: 8px; font-size: 12px; color: var(--text-main);">
|
||
<strong>دستور استراتژیک:</strong> جذب فوری حداکثر موجودی بازار، مارجینگیری بهینه، و قرار دادن این محصولات در ویترین اصلی اپلیکیشن.
|
||
</div>
|
||
</div>
|
||
|
||
<div class="card" style="background: #ECFDF5; border: 1px solid #6EE7B7;">
|
||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;">
|
||
<h4 style="font-size: 16px; font-weight: 800; color: #065F46;">گاوهای شیرده حیاتی (Life Cash Cows)</h4>
|
||
<span class="badge badge-emerald">تیراژ نجومی و حیاتی</span>
|
||
</div>
|
||
<p style="font-size: 12px; color: #064E3B; margin-bottom: 10px;"><strong>اقلام:</strong> کنسروجات (+۹۶۹٪)، نان خشک (+۸۵۵٪)، برنج و روغن خوراکی (+۴۶۲٪)</p>
|
||
<div style="background: white; padding: 10px; border-radius: 8px; font-size: 12px; color: var(--text-main);">
|
||
<strong>دستور استراتژیک:</strong> تثبیت سختگیرانه قیمت رسمی (MAP)، حذف کارمزد پلتفرم جهت جذب بار عمده و تأمین پایدار سلامت جامعه.
|
||
</div>
|
||
</div>
|
||
|
||
<div class="card" style="background: #F1F5F9; border: 1px solid #CBD5E1;">
|
||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;">
|
||
<h4 style="font-size: 16px; font-weight: 800; color: #334155;">کالاهای راکد موقت (Dormant Dogs)</h4>
|
||
<span class="badge" style="background: #E2E8F0; color: #475569;">افت تقاضای غیرضروری</span>
|
||
</div>
|
||
<p style="font-size: 12px; color: #475569; margin-bottom: 10px;"><strong>اقلام:</strong> پوشاک و کفش (۱۱-٪)، لوازم آرایشی (۱۰-٪)، گوشی پرچمدار (۵-٪)</p>
|
||
<div style="background: white; padding: 10px; border-radius: 8px; font-size: 12px; color: var(--text-main);">
|
||
<strong>دستور استراتژیک:</strong> توقف خریدهای قطعی 1P، آزادسازی فضای انبار مرکزی به نفع مواد غذایی، و توقف هزینهکرد تبلیغاتی.
|
||
</div>
|
||
</div>
|
||
|
||
<div class="card" style="background: #FAF5FF; border: 1px solid #D8B4FE;">
|
||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;">
|
||
<h4 style="font-size: 16px; font-weight: 800; color: #581C87;">موجهای پساجنگ (Post-War Rebounds)</h4>
|
||
<span class="badge badge-purple">تخلیه هیجانات روانی</span>
|
||
</div>
|
||
<p style="font-size: 12px; color: #6B21A8; margin-bottom: 10px;"><strong>اقلام:</strong> عروسک لبوبو (+۳۲۰۰٪)، کنسول بازی (+۸۵۲٪)، گیمپد (+۱۰۲٪)</p>
|
||
<div style="background: white; padding: 10px; border-radius: 8px; font-size: 12px; color: var(--text-main);">
|
||
<strong>دستور استراتژیک:</strong> سوار شدن بر ترندهای مصرفی بدون رسوب انبار؛ استفاده کامل از ظرفیت ارسال مستقیم فروشندگان (SBS).
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Action Plan by Role -->
|
||
<h3 style="font-size: 16px; font-weight: 800; margin-bottom: 14px; color: var(--text-main);">۳. بسته اقدام فوری رهبران ارشد اجرایی (C-Suite Action Matrix)</h3>
|
||
<div class="grid-4">
|
||
<div class="card">
|
||
<strong style="color: var(--primary);">مدیرعامل و هیئت مدیره</strong>
|
||
<p style="font-size: 12px; color: var(--text-muted); margin-top: 6px;">تعامل در بالاترین سطوح با ستاد بحران، صمت و رگولاتوری برای تضمین مجوز تردد ناوگان دیجیاکسپرس و فعالیت خطوط دارورسانی آنلاین.</p>
|
||
</div>
|
||
<div class="card">
|
||
<strong style="color: var(--blue-accent);">معاونت عملیات و زنجیره تأمین</strong>
|
||
<p style="font-size: 12px; color: var(--text-muted); margin-top: 6px;">شکستن انحصار انبارش شادآباد و توزیع ظرفیت انبارش در هابهای منطقهای مشهد، اصفهان و تبریز جهت ایمنسازی چرخه توزیع.</p>
|
||
</div>
|
||
<div class="card">
|
||
<strong style="color: var(--emerald-accent);">مدیر ارشد محصول (CPO)</strong>
|
||
<p style="font-size: 12px; color: var(--text-muted); margin-top: 6px;">توسعه حالت وضعیت اضطراری (Emergency Mode UI) در اپلیکیشن: هشدار تحویل ۵ روزه، اولویتدهی به موجودی انبارهای محلی و سبد بقا.</p>
|
||
</div>
|
||
<div class="card">
|
||
<strong style="color: var(--amber-accent);">مدیر ارشد مالی (CFO)</strong>
|
||
<p style="font-size: 12px; color: var(--text-muted); margin-top: 6px;">تخصیص خط اعتباری نقدی برای پیشخرید غلات و تجهیزات بقا، و اعطای وامهای اعتباری ضروری ۴ ماهه بدون سود از طریق دیجیپی.</p>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
'''
|
||
|
||
insert_target = ' <!-- Section 2: Contracts, Commissions & SLAs -->'
|
||
code = code.replace(insert_target, section_html + '\n' + insert_target)
|
||
|
||
with open('/workspace/ecommerce_research_sources/update_dashboard_with_ecosystem.py', 'w', encoding='utf-8') as f:
|
||
f.write(code)
|
||
|
||
print('Dashboard script successfully patched with C-Level consulting framework.')
|