This commit is contained in:
parent
38d26b7b67
commit
b964a7ea73
|
|
@ -11,6 +11,7 @@ use Beike\Admin\View\Components\Filter;
|
|||
use Beike\Admin\View\Components\Header;
|
||||
use Beike\Admin\View\Components\Sidebar;
|
||||
use Beike\Admin\View\Components\Alert;
|
||||
use Beike\Admin\View\Components\NoData;
|
||||
use Beike\Admin\View\Components\Form\Image;
|
||||
use Beike\Admin\View\Components\Form\Input;
|
||||
use Beike\Admin\View\Components\Form\Select;
|
||||
|
|
@ -57,6 +58,7 @@ class AdminServiceProvider extends ServiceProvider
|
|||
'form-select' => Select::class,
|
||||
'form-image' => Image::class,
|
||||
'form-textarea' => Textarea::class,
|
||||
'no-data' => NoData::class,
|
||||
]);
|
||||
|
||||
$this->registerGuard();
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace Beike\Admin\View\Components;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class NoData extends Component
|
||||
{
|
||||
public string $text;
|
||||
|
||||
public function __construct(?string $text = '')
|
||||
{
|
||||
$this->text = $text ?: trans('common.no_data');
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('admin::components.no-data');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 600 600" height="600px" width="600px">
|
||||
<title>暂无数据</title>
|
||||
<defs>
|
||||
<linearGradient id="linearGradient-1" y2="100%" x2="40.7922325%" y1="98.8%" x1="92.5182204%">
|
||||
<stop offset="0%" stop-opacity="0" stop-color="#E0E5EF"></stop>
|
||||
<stop offset="100%" stop-color="#E0E5EF"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-2" y2="100%" x2="40.8959812%" y1="98.8%" x1="92.0391457%">
|
||||
<stop offset="0%" stop-opacity="0" stop-color="#E0E5EF"></stop>
|
||||
<stop offset="100%" stop-color="#E0E5EF"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-3" y2="0%" x2="40.8303266%" y1="44.8891047%" x1="40.8303266%">
|
||||
<stop offset="0%" stop-opacity="0.237740043" stop-color="#E8EBF1"></stop>
|
||||
<stop offset="100%" stop-color="#A2ABB9"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-4" y2="0%" x2="37.124508%" y1="100%" x1="68.7014022%">
|
||||
<stop offset="0%" stop-color="#A2ABB9"></stop>
|
||||
<stop offset="100%" stop-color="#E7EAF0"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-5" y2="26.6086532%" x2="9.1779311%" y1="73.3913468%" x1="109.293263%">
|
||||
<stop offset="0%" stop-color="#A2ABB9"></stop>
|
||||
<stop offset="100%" stop-color="#E7EAF0"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-6" y2="24.5435832%" x2="100%" y1="77.7414362%" x1="0%">
|
||||
<stop offset="0%" stop-color="#A2ABB9"></stop>
|
||||
<stop offset="100%" stop-color="#E4E7EE"></stop>
|
||||
<stop offset="100%" stop-color="#E7EAF0"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-7" y2="41.5032298%" x2="100%" y1="64.3569622%" x1="-8.44229913%">
|
||||
<stop offset="0%" stop-color="#A2ABB9"></stop>
|
||||
<stop offset="100%" stop-color="#E7EAF0"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-8" y2="40.9645663%" x2="100%" y1="59.0354337%" x1="0%">
|
||||
<stop offset="0%" stop-color="#A2ABB9"></stop>
|
||||
<stop offset="100%" stop-color="#E7EAF0"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-9" y2="12.7233123%" x2="102.03032%" y1="79.5688319%" x1="8.4152772%">
|
||||
<stop offset="0%" stop-color="#C0C7D2"></stop>
|
||||
<stop offset="100%" stop-color="#A2ABB9"></stop>
|
||||
<stop offset="100%" stop-color="#909AA9"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-10" y2="34.6534484%" x2="102.03032%" y1="62.1732813%" x1="8.4152772%">
|
||||
<stop offset="0%" stop-color="#C0C7D2"></stop>
|
||||
<stop offset="100%" stop-color="#A2ABB9"></stop>
|
||||
<stop offset="100%" stop-color="#909AA9"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-11" y2="33.8305484%" x2="102.03032%" y1="62.8260268%" x1="8.4152772%">
|
||||
<stop offset="0%" stop-color="#C0C7D2"></stop>
|
||||
<stop offset="100%" stop-color="#A2ABB9"></stop>
|
||||
<stop offset="100%" stop-color="#909AA9"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-12" y2="0%" x2="95.9765041%" y1="100%" x1="4.02349593%">
|
||||
<stop offset="0%" stop-color="#909AA9"></stop>
|
||||
<stop offset="100%" stop-color="#C0C7D2"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-13" y2="-8.94613558%" x2="36.4862226%" y1="100%" x1="70.4685578%">
|
||||
<stop offset="0%" stop-color="#909AA9"></stop>
|
||||
<stop offset="100%" stop-color="#C0C7D2"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient-14" y2="26.3639335%" x2="100%" y1="73.6360665%" x1="0%">
|
||||
<stop offset="0%" stop-color="#909AA9"></stop>
|
||||
<stop offset="100%" stop-color="#C0C7D2"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g fill-rule="evenodd" fill="none" stroke-width="1" stroke="none" id="暂无数据">
|
||||
<path opacity="0.60159418" fill="#F3F3FA" id="背景" d="M297.367308,77 C348.402047,77 395.459601,93.7621592 433.168202,121.998683 L418,122 C410.820298,122 405,127.820298 405,135 L405,135 L405,136 C405,143.179702 410.820298,149 418,149 L418,149 L463.178198,148.999242 C471.748983,158.235916 479.533899,168.191223 486.428804,178.762649 L507.876923,178.762791 C515.60891,178.762791 521.876923,185.030804 521.876923,192.762791 L521.876923,193.544186 C521.876923,199.932 517.59881,205.320607 511.751467,207.001125 L492,207 C483.163444,207 476,214.163444 476,223 L476,223 L476,228 C476,236.836556 483.163444,244 492,244 L492,244 L559.901402,243.999959 C566.852284,245.741603 572,252.03011 572,259.52093 L572,260.413953 C572,269.250509 564.836556,276.413953 556,276.413953 L520.819517,276.412835 C521.518998,283.515523 521.876923,290.716616 521.876923,298 C521.876923,420.05493 421.360544,519 297.367308,519 C198.189346,519 114.031537,455.696384 84.3182822,367.897256 L75.8924419,367.897674 C72.4862578,367.897674 69.725,365.136417 69.725,361.730233 C69.725,359.131567 71.3322058,356.908285 73.6068281,356.000174 L84,356 C91.1797017,356 97,350.179702 97,343 L97,343 L97,342 C97,334.820298 91.1797017,329 84,329 L84,329 L75.0490717,329.000249 C75.0414555,328.94684 75.0338587,328.893426 75.0262812,328.840005 L52.8540698,328.837209 C47.1770963,328.837209 42.575,324.235113 42.575,318.55814 C42.575,312.881166 47.1770963,308.27907 52.8540698,308.27907 L73.0963108,308.280676 C72.9378097,304.873341 72.8576923,301.445881 72.8576923,298 C72.8576923,265.369974 80.0416047,234.391611 92.9374566,206.513874 L57,206.516279 C41.536027,206.516279 29,193.980252 29,178.516279 L29,176.953488 C29,162.030754 40.6738617,149.834597 55.387455,148.999146 L182,149 C187.522847,149 192,144.522847 192,139 C192,133.477153 187.522847,129 182,129 L182,129 L152.69142,128.999011 C152.935414,128.796407 153.179853,128.594307 153.424735,128.392711 L138.848077,128.395349 C128.354667,128.395349 119.848077,119.888759 119.848077,109.395349 L119.848077,108.334884 C119.848077,97.8414735 128.354667,89.3348837 138.848077,89.3348837 L223.230522,89.3331487 C246.439795,81.3435511 271.388251,77 297.367308,77 Z"></path>
|
||||
<g fill-rule="nonzero" transform="translate(122.000000, 350.000000)" id="树">
|
||||
<path fill="url(#linearGradient-1)" id="路径" d="M58.0342261,43.3864542 C58.1512897,43.8539178 58.297619,44.3505977 58.4732143,44.876494 L58.8244047,46.2788845 C58.9414682,46.746348 59,47.1261621 59,47.4183267 C59,49.0544489 58.5610119,50.500664 57.6830357,51.7569721 C56.8050595,53.0132802 55.6636905,53.933599 54.2589286,54.5179283 C53.7321429,54.5763612 53.1760913,54.6055777 52.5907738,54.6055777 C52.1225198,54.6640106 51.5957341,54.693227 51.0104167,54.693227 L49.3422619,54.693227 L35.6458333,54.8685259 L35.6458333,69.505976 C35.6458333,71.6679947 35.6897321,73.8446215 35.7775297,76.0358565 C35.8653273,78.2270916 35.9677579,80.1992032 36.0848214,81.9521912 C36.2018849,84.0557769 36.3482143,86.0717131 36.5238095,88 L23.8809524,88 L24.1443452,84.5816733 C24.202877,83.2377159 24.2614087,81.4116866 24.3199405,79.1035857 C24.3784723,76.7954847 24.4077382,73.7131474 24.4077381,69.8565737 L24.4077381,56.4462151 C23.4126984,57.3227092 22.3005953,57.7609562 21.0714286,57.7609562 C20.0763889,57.7609562 19.2130457,57.5272244 18.4813989,57.0597609 C17.749752,56.5922974 17.1498016,55.9495352 16.6815476,55.1314741 L6.7604167,54.6055777 C4.82886905,54.1381142 3.21924603,53.1593625 1.93154762,51.6693227 C0.643849205,50.1792828 0,48.4116866 0,46.3665339 C0,46.0159362 0.0292658638,45.6945551 0.0877975915,45.4023904 C0.146329319,45.1102257 0.234126939,44.818061 0.351190452,44.5258964 L2.54613093,39.4422311 C2.66319444,38.1567065 3.02901785,36.9588314 3.64360117,35.8486056 C4.25818448,34.7383798 5.0337301,33.7742364 5.97023803,32.9561753 L19.7544642,7.45019919 L19.8422618,7.45019919 C20.954365,5.40504648 22.2713292,3.65205843 23.7931546,2.19123506 C25.31498,0.730411687 27.2757935,0 29.6755951,0 C31.7827379,0 33.6703867,0.55511288 35.3385415,1.66533864 C37.0066963,2.7755644 38.2504959,4.23638777 39.0699404,6.04780876 L50.1324403,27.6972112 C52.1225197,28.3984064 53.7614086,29.625498 55.049107,31.378486 C56.3368054,33.131474 56.9806546,35.1474103 56.9806546,37.4262948 C56.9806546,38.3612217 56.8343252,39.3545816 56.5416665,40.4063745 L58.0342261,43.3864542 Z"></path>
|
||||
<path fill="url(#linearGradient-1)" id="路径" d="M368.034226,43.3864542 C368.15129,43.8539178 368.297619,44.3505977 368.473214,44.876494 L368.824405,46.2788845 C368.941468,46.746348 369,47.1261621 369,47.4183267 C369,49.0544489 368.561012,50.500664 367.683036,51.7569721 C366.805059,53.0132802 365.66369,53.933599 364.258929,54.5179283 C363.732143,54.5763612 363.176091,54.6055777 362.590774,54.6055777 C362.12252,54.6640106 361.595734,54.693227 361.010417,54.693227 L359.342262,54.693227 L345.645833,54.8685259 L345.645833,69.505976 C345.645833,71.6679947 345.689732,73.8446215 345.77753,76.0358565 C345.865327,78.2270916 345.967758,80.1992032 346.084821,81.9521912 C346.201885,84.0557769 346.348214,86.0717131 346.52381,88 L333.880952,88 L334.144345,84.5816733 C334.202877,83.2377159 334.261409,81.4116866 334.319941,79.1035857 C334.378472,76.7954847 334.407738,73.7131474 334.407738,69.8565737 L334.407738,56.4462151 C333.412698,57.3227092 332.300595,57.7609562 331.071429,57.7609562 C330.076389,57.7609562 329.213046,57.5272244 328.481399,57.0597609 C327.749752,56.5922974 327.149802,55.9495352 326.681548,55.1314741 L316.760417,54.6055777 C314.828869,54.1381142 313.219246,53.1593625 311.931548,51.6693227 C310.643849,50.1792828 310,48.4116866 310,46.3665339 C310,46.0159362 310.029266,45.6945551 310.087798,45.4023904 C310.146329,45.1102257 310.234127,44.818061 310.35119,44.5258964 L312.546131,39.4422311 C312.663194,38.1567065 313.029018,36.9588314 313.643601,35.8486056 C314.258184,34.7383798 315.03373,33.7742364 315.970238,32.9561753 L329.754464,7.45019919 L329.842262,7.45019919 C330.954365,5.40504648 332.271329,3.65205843 333.793155,2.19123506 C335.31498,0.730411687 337.275793,0 339.675595,0 C341.782738,0 343.670387,0.55511288 345.338542,1.66533864 C347.006696,2.7755644 348.250496,4.23638777 349.06994,6.04780876 L360.13244,27.6972112 C362.12252,28.3984064 363.761409,29.625498 365.049107,31.378486 C366.336805,33.131474 366.980655,35.1474103 366.980655,37.4262948 C366.980655,38.3612217 366.834325,39.3545816 366.541666,40.4063745 L368.034226,43.3864542 Z"></path>
|
||||
<path fill="url(#linearGradient-2)" id="路径" d="M331.247024,53.0189244 C331.338294,53.3854582 331.452381,53.7749005 331.589286,54.187251 L331.863095,55.2868526 C331.954365,55.6533865 332,55.9511952 332,56.1802789 C332,57.4631474 331.657738,58.5971116 330.973214,59.5821713 C330.28869,60.5672311 329.39881,61.2888446 328.303571,61.747012 C327.892857,61.7928287 327.459325,61.815737 327.002976,61.815737 C326.637897,61.8615538 326.227183,61.8844621 325.770833,61.8844621 L324.470238,61.8844621 L313.791667,62.0219123 L313.791667,73.4990039 C313.791667,75.1942231 313.825893,76.9008964 313.894345,78.6190239 C313.962798,80.3371514 314.042659,81.8834661 314.133929,83.2579681 C314.225198,84.9073705 314.339286,86.4880478 314.47619,88 L304.619048,88 L304.824405,85.3197211 C304.87004,84.2659363 304.915675,82.8341634 304.96131,81.0244024 C305.006945,79.2146414 305.029762,76.7978088 305.029762,73.7739044 L305.029762,63.2589642 C304.253968,63.9462152 303.386905,64.2898407 302.428571,64.2898407 C301.652778,64.2898407 300.979663,64.1065737 300.409226,63.7400398 C299.83879,63.3735059 299.371032,62.8695219 299.005952,62.2280876 L291.270833,61.815737 C289.764881,61.4492032 288.509921,60.6817729 287.505952,59.5134462 C286.501984,58.3451195 286,56.9591633 286,55.3555777 C286,55.0806773 286.022817,54.8286852 286.068452,54.5996016 C286.114087,54.3705179 286.18254,54.1414342 286.27381,53.9123506 L287.985119,49.9262948 C288.076389,48.9183267 288.361607,47.9790837 288.840774,47.1085658 C289.31994,46.2380478 289.924603,45.4820717 290.654762,44.8406374 L301.401786,24.8416335 L301.470238,24.8416335 C302.337301,23.2380478 303.364087,21.8635458 304.550595,20.7181275 C305.737103,19.5727092 307.265873,19 309.136905,19 C310.779762,19 312.251488,19.435259 313.552083,20.3057769 C314.852678,21.1762948 315.822421,22.3217131 316.461309,23.7420319 L325.086309,40.7171315 C326.637897,41.2669323 327.915674,42.2290837 328.919643,43.6035856 C329.923611,44.9780876 330.425595,46.5587649 330.425595,48.3456175 C330.425595,49.0786852 330.311508,49.8575697 330.083333,50.6822709 L331.247024,53.0189244 Z"></path>
|
||||
</g>
|
||||
<g transform="translate(432.000000, 350.000000)" id="树备份"></g>
|
||||
<path fill="#E7EAF0" id="形状结合" d="M284.5,415 C345.879626,415 401.152405,420.00678 439.78802,428.003897 C477.575063,428.25539 508,439.574053 508,453.5 C508,464.536605 488.890416,473.935603 462.149089,477.485699 C455.766823,479.373982 448.582636,481.153843 440.691453,482.807922 C440.896873,483.861698 441,484.926358 441,486 C441,510.300529 388.1696,530 323,530 C264.367989,530 215.723701,514.054651 206.554085,493.159086 C128.319357,487.218328 73,472.596236 73,455.5 C73,433.132468 167.691775,415 284.5,415 Z"></path>
|
||||
<polygon points="363.298928 356.995669 427.002627 356.995669 491.129281 625.088615 314.129281 583.660964" transform="translate(402.629281, 491.042142) rotate(-50.000000) translate(-402.629281, -491.042142)" opacity="0.5" fill-rule="nonzero" fill="url(#linearGradient-3)" id="路径"></polygon>
|
||||
<g fill-rule="nonzero" transform="translate(189.000000, 330.000000)" id="盒子">
|
||||
<polygon points="201 12.7067625 100 0 100 50.3903202 199.386579 62" fill="#A2ABB9" id="路径"></polygon>
|
||||
<polygon points="20 16.4427802 99.987634 0 100 56.6562847 20 73" fill="#C0C7D2" id="路径"></polygon>
|
||||
<polygon points="114 38.1720413 200 16 200 120.827959 114 143" fill="#A2ABB9" id="路径"></polygon>
|
||||
<polygon points="21 19 115 37.7478716 114.453134 143 21 122.123516" fill="#C0C7D2" id="路径"></polygon>
|
||||
<polygon points="115 38.1783853 20.1674254 18 0 55.1682773 96.4435797 78" fill="#D1D6E2" id="路径"></polygon>
|
||||
<polygon points="115 37.7180598 201.085973 14 223 50.9121418 140.547214 78" fill="#C0C7D2" id="路径"></polygon>
|
||||
</g>
|
||||
<g transform="translate(199.406195, 150.173605)" id="编组-2">
|
||||
<path stroke-linecap="round" stroke="url(#linearGradient-4)" id="路径-2" d="M12.8514226,44.7969677 C-11.5621571,79.7561392 -1.19226035,105.848478 43.9611129,123.073985"></path>
|
||||
<path stroke-linecap="round" stroke="url(#linearGradient-5)" id="路径-3" d="M4.44970359,117.185016 C12.7132973,127.453701 20.2198793,132.588044 26.9694497,132.588044"></path>
|
||||
<path stroke-linecap="round" stroke="url(#linearGradient-6)" id="路径-4" d="M203.823578,0 C204.92876,31.0718408 175.729368,52.829047 116.2254,65.2716187"></path>
|
||||
<path stroke-linecap="round" stroke="url(#linearGradient-7)" id="路径-5" d="M211.759579,39.0997846 C197.161422,51.3353751 185.74451,57.4531703 177.508843,57.4531703"></path>
|
||||
<path stroke-linecap="round" stroke="url(#linearGradient-8)" id="路径-6" d="M187.593805,110.147353 C130.131321,103.209739 94.0178367,118.00794 79.2533523,154.541954"></path>
|
||||
<path fill-rule="nonzero" fill="url(#linearGradient-9)" id="路径-7" d="M11.5093354,68.8102346 C45.4547011,74.1282704 59.3496721,83.520243 53.1942484,96.9861522 C47.0388248,110.452061 33.1438537,101.060089 11.5093354,68.8102346 Z"></path>
|
||||
<path fill-rule="nonzero" fill="url(#linearGradient-10)" id="路径-8" d="M133.423579,39.0997846 C138.390623,21.5158495 151.370755,15.6545378 172.363976,21.5158495 C171.459084,29.5824143 158.478952,35.443726 133.423579,39.0997846 Z"></path>
|
||||
<path fill-rule="nonzero" fill="url(#linearGradient-11)" id="路径-9" d="M87.8999453,167.54286 C103.402211,137.393016 125.066821,128.807673 152.893777,141.786829 C139.913645,165.79978 118.249034,174.385124 87.8999453,167.54286 Z"></path>
|
||||
<path stroke-linecap="round" stroke="url(#linearGradient-12)" id="路径-10" d="M128.595635,48.2764775 C132.394434,40.1340242 137.393824,34.9204682 143.593805,32.6358093"></path>
|
||||
<path stroke-linecap="round" stroke="url(#linearGradient-13)" id="路径-11" d="M43.9611129,93.0093929 C51.0613868,94.6545032 54.6115238,101.483261 54.6115238,113.495667"></path>
|
||||
<path stroke-linecap="round" stroke="url(#linearGradient-14)" id="路径-12" d="M81.2533523,177.184117 C87.0177476,166.181813 95.0188725,160.680661 105.256727,160.680661"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 16 KiB |
|
|
@ -0,0 +1,4 @@
|
|||
<div class="d-flex flex-column align-center align-items-center mb-4">
|
||||
<img src="{{ asset('image/no-data.svg') }}" class="img-fluid wp-400">
|
||||
<div class="text-secondary fs-4">{{ $text }}</div>
|
||||
</div>
|
||||
|
|
@ -3,76 +3,86 @@
|
|||
@section('title', __('admin/order.list'))
|
||||
|
||||
@section('content')
|
||||
<div id="customer-app" class="card">
|
||||
<div id="customer-app" class="card h-min-600">
|
||||
<div class="card-body">
|
||||
<div class="bg-light p-4 mb-3" id="app">
|
||||
<el-form :inline="true" :model="filter" class="demo-form-inline" label-width="100px">
|
||||
<div>
|
||||
<el-form-item label="{{ __('order.number') }}">
|
||||
<el-input v-model="filter.number" size="small" placeholder="{{ __('order.number') }}"></el-input>
|
||||
@if (count($orders))
|
||||
<div class="bg-light p-4 mb-3" id="app">
|
||||
<el-form :inline="true" :model="filter" class="demo-form-inline" label-width="100px">
|
||||
<div>
|
||||
<el-form-item label="{{ __('order.number') }}">
|
||||
<el-input v-model="filter.number" size="small" placeholder="{{ __('order.number') }}"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="{{ __('order.customer_name') }}">
|
||||
<el-input v-model="filter.customer_name" size="small" placeholder="{{ __('order.customer_name') }}">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="{{ __('order.email') }}">
|
||||
<el-input v-model="filter.email" size="small" placeholder="{{ __('order.email') }}"></el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item label="{{ __('order.created_at') }}">
|
||||
<el-form-item>
|
||||
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" size="small"
|
||||
placeholder="{{ __('common.pick_datetime') }}" v-model="filter.start" style="width: 100%;">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<span>-</span>
|
||||
<el-form-item>
|
||||
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" size="small"
|
||||
placeholder="{{ __('common.pick_datetime') }}" v-model="filter.end" style="width: 100%;">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
<el-form-item label="{{ __('order.customer_name') }}">
|
||||
<el-input v-model="filter.customer_name" size="small" placeholder="{{ __('order.customer_name') }}"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="{{ __('order.email') }}">
|
||||
<el-input v-model="filter.email" size="small" placeholder="{{ __('order.email') }}"></el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item label="{{ __('order.created_at') }}">
|
||||
<el-form-item>
|
||||
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" size="small"
|
||||
placeholder="{{ __('common.pick_datetime') }}" v-model="filter.start" style="width: 100%;"></el-date-picker>
|
||||
</el-form-item>
|
||||
<span>-</span>
|
||||
<el-form-item>
|
||||
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" size="small"
|
||||
placeholder="{{ __('common.pick_datetime') }}" v-model="filter.end" style="width: 100%;"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-form>
|
||||
|
||||
<div class="row">
|
||||
<label class="wp-100"></label>
|
||||
<div class="col-auto">
|
||||
<button type="button" @click="search" class="btn btn-outline-primary btn-sm">{{ __('common.filter') }}</button>
|
||||
<button type="button" @click="exportOrder" class="btn btn-outline-primary btn-sm ms-1">{{ __('common.export') }}</button>
|
||||
<button type="button" @click="resetSearch" class="btn btn-outline-secondary btn-sm ms-1">{{ __('common.reset') }}</button>
|
||||
<div class="row">
|
||||
<label class="wp-100"></label>
|
||||
<div class="col-auto">
|
||||
<button type="button" @click="search"
|
||||
class="btn btn-outline-primary btn-sm">{{ __('common.filter') }}</button>
|
||||
<button type="button" @click="exportOrder"
|
||||
class="btn btn-outline-primary btn-sm ms-1">{{ __('common.export') }}</button>
|
||||
<button type="button" @click="resetSearch"
|
||||
class="btn btn-outline-secondary btn-sm ms-1">{{ __('common.reset') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('order.id') }}</th>
|
||||
<th>{{ __('order.number') }}</th>
|
||||
<th>{{ __('order.customer_name') }}</th>
|
||||
<th>{{ __('order.payment_method') }}</th>
|
||||
<th>{{ __('order.status') }}</th>
|
||||
<th>{{ __('order.total') }}</th>
|
||||
<th>{{ __('order.created_at') }}</th>
|
||||
<th>{{ __('order.updated_at') }}</th>
|
||||
<th>{{ __('common.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($orders as $order)
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{ $order->id }}</td>
|
||||
<td>{{ $order->number }}</td>
|
||||
<td>{{ sub_string($order->customer_name, 14) }}</td>
|
||||
<td>{{ $order->payment_method_name }}</td>
|
||||
<td>{{ $order->status_format }}</td>
|
||||
<td>{{ $order->total_format }}</td>
|
||||
<td>{{ $order->created_at }}</td>
|
||||
<td>{{ $order->updated_at }}</td>
|
||||
<td><a href="{{ admin_route('orders.show', [$order->id]) }}" class="btn btn-outline-secondary btn-sm">查看</a>
|
||||
</td>
|
||||
<th>{{ __('order.id') }}</th>
|
||||
<th>{{ __('order.number') }}</th>
|
||||
<th>{{ __('order.customer_name') }}</th>
|
||||
<th>{{ __('order.payment_method') }}</th>
|
||||
<th>{{ __('order.status') }}</th>
|
||||
<th>{{ __('order.total') }}</th>
|
||||
<th>{{ __('order.created_at') }}</th>
|
||||
<th>{{ __('order.updated_at') }}</th>
|
||||
<th>{{ __('common.action') }}</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{ $orders->withQueryString()->links('admin::vendor/pagination/bootstrap-4') }}
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($orders as $order)
|
||||
<tr>
|
||||
<td>{{ $order->id }}</td>
|
||||
<td>{{ $order->number }}</td>
|
||||
<td>{{ sub_string($order->customer_name, 14) }}</td>
|
||||
<td>{{ $order->payment_method_name }}</td>
|
||||
<td>{{ $order->status_format }}</td>
|
||||
<td>{{ $order->total_format }}</td>
|
||||
<td>{{ $order->created_at }}</td>
|
||||
<td>{{ $order->updated_at }}</td>
|
||||
<td><a href="{{ admin_route('orders.show', [$order->id]) }}"
|
||||
class="btn btn-outline-secondary btn-sm">查看</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
{{ $orders->withQueryString()->links('admin::vendor/pagination/bootstrap-4') }}
|
||||
@else
|
||||
<x-admin-no-data />
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -3,46 +3,48 @@
|
|||
@section('title', '售后申请列表')
|
||||
|
||||
@section('content')
|
||||
<div id="customer-app" class="card">
|
||||
<div class="card-body">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>客户姓名</th>
|
||||
<th>邮箱</th>
|
||||
<th>电话号码</th>
|
||||
<th>商品</th>
|
||||
<th>商品型号</th>
|
||||
<th>数量</th>
|
||||
<th>服务类型</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($rmas as $rma)
|
||||
<tr>
|
||||
<td>{{ $rma->name }}</td>
|
||||
<td>{{ $rma->email }}</td>
|
||||
<td>{{ $rma->telephone }}</td>
|
||||
<td>{{ $rma->product_name }}</td>
|
||||
<td>{{ $rma->model }}</td>
|
||||
<td>{{ $rma->quantity }}</td>
|
||||
<td>{{ $rma->type }}</td>
|
||||
<td>{{ $rma->status }}</td>
|
||||
<td><a href="{{ admin_route('rmas.show', [$rma->id]) }}" class="btn btn-outline-secondary btn-sm">查看</a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{ $rmas->links('admin::vendor/pagination/bootstrap-4') }}
|
||||
</div>
|
||||
<div id="customer-app" class="card h-min-600">
|
||||
<div class="card-body">
|
||||
@if (count($rmas))
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>客户姓名</th>
|
||||
<th>邮箱</th>
|
||||
<th>电话号码</th>
|
||||
<th>商品</th>
|
||||
<th>商品型号</th>
|
||||
<th>数量</th>
|
||||
<th>服务类型</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($rmas as $rma)
|
||||
<tr>
|
||||
<td>{{ $rma->name }}</td>
|
||||
<td>{{ $rma->email }}</td>
|
||||
<td>{{ $rma->telephone }}</td>
|
||||
<td>{{ $rma->product_name }}</td>
|
||||
<td>{{ $rma->model }}</td>
|
||||
<td>{{ $rma->quantity }}</td>
|
||||
<td>{{ $rma->type }}</td>
|
||||
<td>{{ $rma->status }}</td>
|
||||
<td><a href="{{ admin_route('rmas.show', [$rma->id]) }}" class="btn btn-outline-secondary btn-sm">查看</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
{{ $rmas->links('admin::vendor/pagination/bootstrap-4') }}
|
||||
@else
|
||||
<x-admin-no-data/>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('footer')
|
||||
<script>
|
||||
|
||||
</script>
|
||||
<script></script>
|
||||
@endpush
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ return [
|
|||
'error_required_email' => 'Please enter your email',
|
||||
'unauthenticated' => 'Please login first',
|
||||
'success' => 'Success',
|
||||
'no_data' => 'No data~',
|
||||
'created_success' => 'Created Successfully!',
|
||||
'deleted_success' => 'Deleted Successfully!',
|
||||
'restored_success' => 'Restore Successfully!',
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ return [
|
|||
'error_required_email' => '请填写邮箱',
|
||||
'unauthenticated' => '请先登录',
|
||||
'success' => '成功',
|
||||
'no_data' => '暂无数据~',
|
||||
'created_success' => '创建成功!',
|
||||
'deleted_success' => '删除成功!',
|
||||
'restored_success' => '恢复成功!',
|
||||
|
|
|
|||
Loading…
Reference in New Issue