This commit is contained in:
xman 2025-03-04 09:49:31 +08:00
parent 9492976638
commit 2dabba3ae7
4 changed files with 14 additions and 0 deletions

View File

@ -31,6 +31,8 @@ class Income extends Backend
$this->model = new \app\admin\model\OrderIncome;
$this->view->assign("itemTypeList", $this->model->getItemTypeList());
$this->view->assign("incomeTypeList", $this->model->getIncomeTypeList());
$this->view->assign("statusList", $this->model->getStatusList());
}

View File

@ -10,6 +10,12 @@ return [
'Item_type 2' => '尾款',
'Item_type 3' => '全款',
'Item_type 4' => '其它',
'Status' => '审核状态',
'Status 0' => '待审核',
'Status 1' => '通过',
'Status -1' => '未通过',
'Audit_remark' => '审核备注',
'Amount' => '收款金额',
'Income_type' => '收款方式',
'Income_type 1' => '平台收款',

View File

@ -40,6 +40,10 @@ class OrderIncome extends Model
return ['1' => __('Income_type 1'), '2' => __('Income_type 2')];
}
public function getStatusList()
{
return ['0' => __('Status 0'), '1' => __('Status 1'), '-1' => __('Status -1')];
}
public function getItemTypeTextAttr($value, $data)
{

View File

@ -39,6 +39,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'payment_time', title: __('Payment_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
{field: 'image', title: __('凭证'), events: Table.api.events.image, formatter: Table.api.formatter.image, operate: false},
{field: 'remark', title: __('备注'), operate: false},
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1'),"-1":__('Status -1')}, formatter: Table.api.formatter.status},
{field: 'audit_remark', title: __('审核备注'), operate: false},
// {field: 'admin_id', title: __('Admin_id')},
{field: 'admin_user', title: __('Admin_user'), operate: 'LIKE'},
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},