Commit 4f54ea7a by 孙龙

订单相关操作按钮

parent 45e72bdc
<?php
namespace App\Admin\Service;
use App\Models\Cms\CmsUser;
use App\Models\Increasid;
use App\Models\Order;
use App\Models\OrderAddress;
use App\Models\OrderPrice;
use Dcat\Admin\Grid;
class BaseService
{
public function startTransaction(){
\DB::connection("mysql")->beginTransaction();
}
public function commitTransaction(){
\DB::connection("mysql")->commit();
}
public function rollBackTransaction(){
\DB::connection("mysql")->rollBack();
}
}
<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
class OrderPrice extends Model
{
use HasDateTimeFormatter;
protected $table = 'order_price';
protected $primaryKey = 'price_id';
public $timestamps = false;
public static $PRICE_TYPE_LIST=[
"活动优惠"=>-8,
"支付优惠"=>-7,
"运费优惠"=>-6,
"尾款减款"=>-5,
"优惠券优惠金额"=>-4,
"尾款"=>-3,
"预付款"=>-2,
"付款"=>-1,
"货款"=>1,
"附加费"=>2,
"运费"=>3,
"退款"=>4,
"支付手续费"=>5,
];
}
<?php
return [
'Currency' => [
1 => '人民币',
2 => '美元',
3 => '港币',
4 => '欧元',
5 => '英镑',
6 => '瑞士法郎',
7 => '澳大利亚元',
8 => '加拿大元',
9 => '日元',
10 => '新加坡元',
11 => '新台币',
],
'CurrencyEn' => [
1 => 'RMB',
2 => 'USD',
3 => 'HKD',
4 => 'EUR',
5 => 'GBP',
6 => 'CHF',
7 => 'ADLY',
8 => 'JND',
9 => 'JPY',
10 => 'XJP',
11 => 'XTB',
],
'currency_code' => [
1 => 'RMB',
2 => 'USD',
3 => 'HKD',
4 => 'EUR',
5 => 'GBP',
6 => 'CHF',
7 => 'ADLY',
8 => 'JND',
9 => 'JPY',
10 => 'XJP',
11 => 'XTB',
],
'currency_sign' => [
1 => '¥',
2 => '$',
3 => 'HK$',
4 => '€',
5 => '£',
6 => '₣',
7 => 'S/',
8 => 'C$',
9 => 'J¥',
10 => 'S$',
11 => 'NT',
]
];
\ No newline at end of file
<?php
return [
'labels' => [
'OrderPrice' => 'OrderPrice',
'order-price' => 'OrderPrice',
],
'fields' => [
'order_id' => '订单ID',
'order_sn' => '订单号',
'price' => '金额',
'price_type' => '金额类型',
'currency' => '币种',
'create_time' => '添加时间',
],
'options' => [
],
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment