feat(admin): 后台全站中文化
- 补齐后台字段、枚举、状态、动作中文语言包,覆盖业务模块与 FastAdmin 基础页面 - 新增 order/banner/service/review/service.cat 等模块语言包,统一字段文案 - 订单表头/状态/支付/结算/加急/电梯/评价改为中文展示,订单表单改为中文下拉/单选 - 发票类型、优惠券类型、师傅/商家审核、提现/结算/申诉状态按模块中文覆盖 - 后台菜单与权限节点标题统一改为中文 - 移除英文语言入口,仅保留简体中文 - 右侧主题配色名称、页脚版权文案改为中文 - 新增 schema_phase9_admin_zh.sql 菜单节点中文迁移
这个提交包含在:
40
db/schema_phase9_admin_zh.sql
普通文件
40
db/schema_phase9_admin_zh.sql
普通文件
@@ -0,0 +1,40 @@
|
||||
-- ============================================================================
|
||||
-- 优匠优服 · Phase 9 后台全站中文
|
||||
-- 仅更新后台菜单/权限节点标题,不改业务数据
|
||||
-- ============================================================================
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
-- 一级/页面菜单
|
||||
UPDATE `fa_auth_rule` SET `title`='控制台' WHERE `name`='dashboard';
|
||||
UPDATE `fa_auth_rule` SET `title`='常规管理' WHERE `name`='general';
|
||||
UPDATE `fa_auth_rule` SET `title`='分类管理' WHERE `name`='category';
|
||||
UPDATE `fa_auth_rule` SET `title`='插件管理' WHERE `name`='addon';
|
||||
UPDATE `fa_auth_rule` SET `title`='权限管理' WHERE `name`='auth';
|
||||
UPDATE `fa_auth_rule` SET `title`='系统配置' WHERE `name`='general/config';
|
||||
UPDATE `fa_auth_rule` SET `title`='附件管理' WHERE `name`='general/attachment';
|
||||
UPDATE `fa_auth_rule` SET `title`='个人资料' WHERE `name`='general/profile';
|
||||
UPDATE `fa_auth_rule` SET `title`='管理员管理' WHERE `name`='auth/admin';
|
||||
UPDATE `fa_auth_rule` SET `title`='管理员日志' WHERE `name`='auth/adminlog';
|
||||
UPDATE `fa_auth_rule` SET `title`='角色组' WHERE `name`='auth/group';
|
||||
UPDATE `fa_auth_rule` SET `title`='菜单规则' WHERE `name`='auth/rule';
|
||||
UPDATE `fa_auth_rule` SET `title`='会员管理' WHERE `name`='user';
|
||||
UPDATE `fa_auth_rule` SET `title`='会员列表' WHERE `name`='user/user';
|
||||
UPDATE `fa_auth_rule` SET `title`='会员分组' WHERE `name`='user/group';
|
||||
UPDATE `fa_auth_rule` SET `title`='会员规则' WHERE `name`='user/rule';
|
||||
|
||||
-- 权限节点动作文案
|
||||
UPDATE `fa_auth_rule` SET `title`='查看' WHERE `title`='View';
|
||||
UPDATE `fa_auth_rule` SET `title`='添加' WHERE `title`='Add';
|
||||
UPDATE `fa_auth_rule` SET `title`='编辑' WHERE `title`='Edit';
|
||||
UPDATE `fa_auth_rule` SET `title`='删除' WHERE `title`='Delete';
|
||||
UPDATE `fa_auth_rule` SET `title`='删除' WHERE `title`='Del';
|
||||
UPDATE `fa_auth_rule` SET `title`='批量更新' WHERE `title`='Multi';
|
||||
UPDATE `fa_auth_rule` SET `title`='详情' WHERE `title`='Detail';
|
||||
UPDATE `fa_auth_rule` SET `title`='选择附件' WHERE `title`='Select attachment';
|
||||
UPDATE `fa_auth_rule` SET `title`='更新个人信息' WHERE `title`='Update profile';
|
||||
UPDATE `fa_auth_rule` SET `title`='配置' WHERE `title`='Setting';
|
||||
UPDATE `fa_auth_rule` SET `title`='刷新' WHERE `title`='Refresh';
|
||||
UPDATE `fa_auth_rule` SET `title`='本地插件' WHERE `title`='Local addon';
|
||||
UPDATE `fa_auth_rule` SET `title`='启用/禁用' WHERE `title`='Update state';
|
||||
|
||||
-- 回滚:按原英文标题反向 UPDATE(建议先从备份 fa_auth_rule 恢复)
|
||||
@@ -23,6 +23,12 @@ class Order extends Backend
|
||||
parent::_initialize();
|
||||
$this->model = new \app\admin\model\Order;
|
||||
$this->view->assign("priceTypeList", $this->model->getPriceTypeList());
|
||||
$this->view->assign("statusList", $this->model->getStatusList());
|
||||
$this->view->assign("payStatusList", $this->model->getPayStatusList());
|
||||
$this->view->assign("settleStatusList", $this->model->getSettleStatusList());
|
||||
$this->view->assign("isReviewList", $this->model->getIsReviewList());
|
||||
$this->view->assign("hasElevatorList", $this->model->getHasElevatorList());
|
||||
$this->view->assign("urgentList", $this->model->getUrgentList());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -221,4 +221,186 @@ return [
|
||||
'User Module' => '会员模块',
|
||||
'Register' => '注册',
|
||||
'User Center' => '会员中心',
|
||||
|
||||
// ==================== 业务后台字段与状态中文 ====================
|
||||
'Accept_rate' => '接单率',
|
||||
'Accept_time' => '接单时间',
|
||||
'Account' => '账号',
|
||||
'Addon info name incorrect' => '插件信息名称不正确',
|
||||
'Addon info version incorrect' => '插件信息版本不正确',
|
||||
'Address' => '服务地址',
|
||||
'Admin Email' => '管理员邮箱',
|
||||
'Admin Password' => '管理员密码',
|
||||
'Admin Username' => '管理员用户名',
|
||||
'Amount' => '金额',
|
||||
'Appoint_time' => '预约时间',
|
||||
'Arrive_amount' => '到账金额',
|
||||
'Arrive_time' => '到达时间',
|
||||
'Audit' => '审核',
|
||||
'Audit_msg' => '审核意见',
|
||||
'Badge' => '角标',
|
||||
'Bank' => '银行卡',
|
||||
'Base_amount' => '基础金额',
|
||||
'Base_price' => '基础价',
|
||||
'Cancel_reason' => '取消原因',
|
||||
'Cash' => '现金券',
|
||||
'Cat_id' => '类目ID',
|
||||
'Cert_images' => '资质图片',
|
||||
'Channel' => '提现渠道',
|
||||
'Commission' => '佣金',
|
||||
'Commission_rate' => '佣金比例',
|
||||
'Contact' => '联系人',
|
||||
'Contact_time' => '联系客户时间',
|
||||
'Control panel' => '控制台',
|
||||
'Coupon_id' => '优惠券ID',
|
||||
'Date_text' => '日期文案',
|
||||
'Deduct' => '扣款',
|
||||
'Discount' => '折扣券',
|
||||
'Discount Rate' => '折扣率',
|
||||
'Discount_amount' => '优惠金额',
|
||||
'Distance_amount' => '距离费',
|
||||
'District' => '区县',
|
||||
'Done' => '已完成',
|
||||
'End_time' => '结束时间',
|
||||
'Failed to copy %s to %s' => '复制 %s 到 %s 失败',
|
||||
'Fee' => '费用',
|
||||
'Female' => '女',
|
||||
'Finish_time' => '完工时间',
|
||||
'Fixed' => '一口价',
|
||||
'Floor' => '楼层',
|
||||
'Floor_amount' => '楼层费',
|
||||
'Floor_fee' => '楼层费单价',
|
||||
'Free_floor' => '免费楼层',
|
||||
'Frozen_money' => '冻结金额',
|
||||
'Goods_images' => '商品图片',
|
||||
'Goods_model' => '商品型号',
|
||||
'Goods_num' => '商品数量',
|
||||
'Handling' => '处理中',
|
||||
'Has_elevator' => '有无电梯',
|
||||
'Idcard_back' => '身份证反面',
|
||||
'Idcard_front' => '身份证正面',
|
||||
'Idcard_no' => '身份证号',
|
||||
'Install Successed' => '安装成功',
|
||||
'Install now' => '立即安装',
|
||||
'Installing' => '安装中',
|
||||
'Installing FastAdmin' => '正在安装 FastAdmin',
|
||||
'Invalid request' => '无效请求',
|
||||
'Invoice_account' => '银行账号',
|
||||
'Invoice_bank' => '开户行',
|
||||
'Invoice_no' => '发票号码',
|
||||
'Invoice_tax_no' => '纳税人识别号',
|
||||
'Invoice_title' => '发票抬头',
|
||||
'Is_anonymous' => '是否匿名',
|
||||
'Is_read' => '是否已读',
|
||||
'Is_review' => '是否已评价',
|
||||
'Issued' => '已开票',
|
||||
'Lat' => '纬度',
|
||||
'Legal_person' => '法人代表',
|
||||
'License_image' => '营业执照',
|
||||
'License_no' => '统一社会信用代码',
|
||||
'Link' => '跳转链接',
|
||||
'Lng' => '经度',
|
||||
'Master' => '师傅',
|
||||
'Master_id' => '师傅ID',
|
||||
'Max_price' => '最高价',
|
||||
'Merchant_id' => '商家ID',
|
||||
'Min_amount' => '最低消费',
|
||||
'Misjudge' => '误判',
|
||||
'Monthly' => '月结',
|
||||
'Multiple Nav' => '多级导航',
|
||||
'Multiple Tab' => '多标签页',
|
||||
'My Website' => '我的网站',
|
||||
'Mysql Database' => '数据库名',
|
||||
'Mysql Hostname' => '数据库主机',
|
||||
'Mysql Hostport' => '数据库端口',
|
||||
'Mysql Password' => '数据库密码',
|
||||
'Mysql Prefix' => '数据表前缀',
|
||||
'Mysql Username' => '数据库用户名',
|
||||
'Need_model' => '是否填写型号',
|
||||
'No Results were found' => '未找到记录',
|
||||
'Off' => '暂停接单',
|
||||
'Offline' => '线下结算',
|
||||
'On' => '接单中',
|
||||
'Ontime_rate' => '准时率',
|
||||
'Order' => '订单',
|
||||
'Order_amount' => '订单金额',
|
||||
'Order_count' => '订单数',
|
||||
'Order_id' => '订单ID',
|
||||
'Order_no' => '订单号',
|
||||
'Other' => '其他',
|
||||
'PDO is not currently installed and cannot be installed' => '未安装 PDO 扩展,无法继续安装',
|
||||
'Pass' => '已通过',
|
||||
'Password is too weak' => '密码强度太弱',
|
||||
'Pay_amount' => '实付金额',
|
||||
'Pay_status' => '支付状态',
|
||||
'Pay_time' => '支付时间',
|
||||
'Pay_type' => '支付方式',
|
||||
'Pending' => '待审核',
|
||||
'Please go to the official website to download the full package or resource package and try to install' => '请前往官网下载完整包或资源包后重试',
|
||||
'Please input correct database' => '请输入正确的数据库名',
|
||||
'Please input correct website' => '请输入正确的网站地址',
|
||||
'Prepay' => '预付',
|
||||
'Price_type' => '计价方式',
|
||||
'Province' => '省份',
|
||||
'Quote' => '师傅报价',
|
||||
'Range' => '按面积计价',
|
||||
'Realname' => '真实姓名',
|
||||
'Receive_id' => '接收人ID',
|
||||
'Receive_type' => '接收类型',
|
||||
'Received' => '已领取',
|
||||
'Refund_amount' => '退款金额',
|
||||
'Reject' => '已驳回',
|
||||
'Remind' => '提醒',
|
||||
'Repeat Password' => '确认密码',
|
||||
'Reply' => '回复',
|
||||
'Review' => '评价',
|
||||
'Sales' => '销量',
|
||||
'Serve_radius' => '服务半径',
|
||||
'Service_id' => '服务ID',
|
||||
'Service_image' => '服务图片',
|
||||
'Service_name' => '服务名称',
|
||||
'Settle_amount' => '结算金额',
|
||||
'Settle_status' => '结算状态',
|
||||
'Settle_time' => '结算时间',
|
||||
'Settle_type' => '结算方式',
|
||||
'Settled' => '已结算',
|
||||
'Special' => '专用发票',
|
||||
'Start_time' => '开始时间',
|
||||
'Subtitle' => '副标题',
|
||||
'System' => '系统',
|
||||
'Tags' => '标签',
|
||||
'Tax_no' => '税号',
|
||||
'The current PHP %s is too low, please use PHP %s or higher' => '当前 PHP 版本 %s 过低,请使用 PHP %s 或更高版本',
|
||||
'The current permissions are insufficient to write the configuration file application/database.php' => '当前权限不足,无法写入配置文件 application/database.php',
|
||||
'The current permissions are insufficient to write the file %s' => '当前权限不足,无法写入文件 %s',
|
||||
'The system has been installed. If you need to reinstall, please remove %s first' => '系统已安装,如需重新安装请先删除 %s',
|
||||
'The two passwords you entered did not match' => '两次输入的密码不一致',
|
||||
'Toggle navigation' => '切换导航',
|
||||
'Toggle the left sidebar' => '切换左侧边栏',
|
||||
'Total' => '合计',
|
||||
'Total_amount' => '订单总额',
|
||||
'Transaction_id' => '交易流水号',
|
||||
'Unit' => '单位',
|
||||
'Unknown' => '未知',
|
||||
'Urgent' => '是否加急',
|
||||
'Urgent_amount' => '加急费',
|
||||
'Verify_code' => '验收码',
|
||||
'Verify_status' => '审核状态',
|
||||
'Verify_time' => '验收时间',
|
||||
'Wait' => '待处理',
|
||||
'Website' => '网站',
|
||||
'Wechat' => '微信',
|
||||
'Work_status' => '接单状态',
|
||||
'You' => '你',
|
||||
'ZinArchive not install' => 'ZinArchive 压缩扩展未安装',
|
||||
'Custom' => '用户自主定价',
|
||||
'普通发票' => '普通发票',
|
||||
'专用发票' => '专用发票',
|
||||
'User_id' => '用户ID',
|
||||
'Avatar' => '头像',
|
||||
'City' => '城市',
|
||||
'Level' => '等级',
|
||||
'Images' => '图片',
|
||||
'Remark' => '备注',
|
||||
'Url' => '链接地址',
|
||||
];
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Misjudge' => '误判',
|
||||
'Review' => '评价',
|
||||
'Deduct' => '扣款',
|
||||
'Other' => '其他',
|
||||
'Wait' => '待处理',
|
||||
'Handling' => '处理中',
|
||||
'Done' => '已完成',
|
||||
'Reject' => '已驳回',
|
||||
];
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Badge' => '角标文案',
|
||||
'Title' => '主标题',
|
||||
'Subtitle' => '副标题',
|
||||
'Date_text' => '活动日期',
|
||||
'Theme' => '主题样式',
|
||||
'Action_text' => '按钮文案',
|
||||
'Stats' => '统计数据',
|
||||
'Image' => '运营图',
|
||||
'Link' => '跳转链接',
|
||||
'Weigh' => '权重',
|
||||
'Status' => '状态',
|
||||
];
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Cash' => '现金券',
|
||||
'Discount' => '折扣券',
|
||||
'Total' => '发行量',
|
||||
'Received' => '已领取',
|
||||
];
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Ordinary' => '普通发票',
|
||||
'Special' => '专用发票',
|
||||
'Wait' => '开票中',
|
||||
'Issued' => '已开票',
|
||||
'Reject' => '已驳回',
|
||||
];
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Off' => '暂停接单',
|
||||
'On' => '接单中',
|
||||
'Pending' => '待审核',
|
||||
'Pass' => '已通过',
|
||||
'Reject' => '未通过',
|
||||
];
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Prepay' => '预付',
|
||||
'Monthly' => '月结',
|
||||
'Pending' => '待审核',
|
||||
'Pass' => '已通过',
|
||||
'Reject' => '未通过',
|
||||
];
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'User' => '用户',
|
||||
'Master' => '师傅',
|
||||
'System' => '系统',
|
||||
'Audit' => '审核',
|
||||
'Remind' => '提醒',
|
||||
'Order' => '订单',
|
||||
];
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Order_no' => '订单号',
|
||||
'User_id' => '下单用户',
|
||||
'Master_id' => '接单师傅',
|
||||
'Service_id' => '服务ID',
|
||||
'Cat_id' => '类目ID',
|
||||
'Service_name' => '服务名称',
|
||||
'Service_image' => '服务主图',
|
||||
'Goods_images' => '商品图片',
|
||||
'Goods_model' => '商品型号',
|
||||
'Goods_num' => '商品数量',
|
||||
'Floor' => '楼层',
|
||||
'Has_elevator' => '有无电梯',
|
||||
'Urgent' => '是否加急',
|
||||
'Remark' => '备注/施工要求',
|
||||
'Contact' => '联系人',
|
||||
'Mobile' => '联系电话',
|
||||
'Province' => '省份',
|
||||
'City' => '城市',
|
||||
'District' => '区县',
|
||||
'Address' => '详细地址',
|
||||
'Lng' => '经度',
|
||||
'Lat' => '纬度',
|
||||
'Appoint_time' => '预约上门时间',
|
||||
'Base_amount' => '基础价',
|
||||
'Floor_amount' => '楼层费',
|
||||
'Distance_amount' => '距离费',
|
||||
'Urgent_amount' => '加急费',
|
||||
'Discount_amount' => '优惠金额',
|
||||
'Total_amount' => '订单总额',
|
||||
'Pay_amount' => '实付金额',
|
||||
'Status' => '订单状态',
|
||||
'Pay_status' => '支付状态',
|
||||
'Pay_type' => '支付方式',
|
||||
'Pay_time' => '支付时间',
|
||||
'Transaction_id' => '交易流水号',
|
||||
'Coupon_id' => '优惠券ID',
|
||||
'Accept_time' => '接单时间',
|
||||
'Contact_time' => '联系客户时间',
|
||||
'Arrive_time' => '到达时间',
|
||||
'Start_time' => '开始服务时间',
|
||||
'Finish_time' => '完工时间',
|
||||
'Verify_time' => '验收时间',
|
||||
'Verify_code' => '验收码',
|
||||
'Settle_status' => '结算状态',
|
||||
'Settle_amount' => '结算金额',
|
||||
'Cancel_reason' => '取消原因',
|
||||
'Refund_amount' => '退款金额',
|
||||
'Is_review' => '是否已评价',
|
||||
'Price_type' => '计价方式',
|
||||
'Createtime' => '创建时间',
|
||||
'Updatetime' => '更新时间',
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Score' => '星级(1-5)',
|
||||
'Tags' => '标签',
|
||||
'Reply' => '师傅回复',
|
||||
];
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Cat_id' => '类目ID',
|
||||
'Name' => '服务名称',
|
||||
'Image' => '主图',
|
||||
'Price_type' => '计价方式',
|
||||
'Base_price' => '基础价',
|
||||
'Max_price' => '区间上限',
|
||||
'Unit' => '计价单位',
|
||||
'Floor_fee' => '楼层费(元/层)',
|
||||
'Free_floor' => '免费楼层数',
|
||||
'Need_model' => '是否需填型号',
|
||||
'Description' => '服务说明',
|
||||
'Sales' => '销量',
|
||||
];
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Pid' => '父级ID',
|
||||
'Name' => '类目名称',
|
||||
'Icon' => '图标标识',
|
||||
'Weigh' => '权重',
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Wait' => '待结算',
|
||||
'Settled' => '已结算',
|
||||
'Offline' => '线下结算',
|
||||
];
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Wechat' => '微信',
|
||||
'Bank' => '银行卡',
|
||||
'Wait' => '待审核',
|
||||
'Pass' => '已通过',
|
||||
'Reject' => '已驳回',
|
||||
'Done' => '已打款',
|
||||
];
|
||||
@@ -33,7 +33,7 @@ class Invoice extends Model
|
||||
|
||||
public function getTypeList()
|
||||
{
|
||||
return ['normal' => __('Normal'), 'special' => __('Special')];
|
||||
return ['normal' => __('Ordinary'), 'special' => __('Special')];
|
||||
}
|
||||
|
||||
public function getStatusList()
|
||||
|
||||
@@ -26,6 +26,12 @@ class Order extends Model
|
||||
// 追加属性
|
||||
protected $append = [
|
||||
'price_type_text',
|
||||
'status_text',
|
||||
'pay_status_text',
|
||||
'settle_status_text',
|
||||
'is_review_text',
|
||||
'has_elevator_text',
|
||||
'urgent_text',
|
||||
'appoint_time_text',
|
||||
'pay_time_text',
|
||||
'accept_time_text',
|
||||
@@ -51,6 +57,75 @@ class Order extends Model
|
||||
return $list[$value] ?? '';
|
||||
}
|
||||
|
||||
public function getStatusList()
|
||||
{
|
||||
return [
|
||||
0 => '待支付', 1 => '待接单', 2 => '报价中', 3 => '已接单', 4 => '待上门',
|
||||
5 => '已到达', 6 => '服务中', 7 => '待验收', 8 => '已完成', 9 => '已取消', 10 => '售后中',
|
||||
];
|
||||
}
|
||||
|
||||
public function getPayStatusList()
|
||||
{
|
||||
return [0 => '未支付', 1 => '已支付', 2 => '已退款'];
|
||||
}
|
||||
|
||||
public function getSettleStatusList()
|
||||
{
|
||||
return [0 => '未结算', 1 => '已结算'];
|
||||
}
|
||||
|
||||
public function getIsReviewList()
|
||||
{
|
||||
return [0 => '未评价', 1 => '已评价'];
|
||||
}
|
||||
|
||||
public function getHasElevatorList()
|
||||
{
|
||||
return [0 => '无电梯', 1 => '有电梯'];
|
||||
}
|
||||
|
||||
public function getUrgentList()
|
||||
{
|
||||
return [0 => '普通', 1 => '加急'];
|
||||
}
|
||||
|
||||
public function getStatusTextAttr($value, $data)
|
||||
{
|
||||
$list = $this->getStatusList();
|
||||
return $list[(int)($data['status'] ?? 0)] ?? '';
|
||||
}
|
||||
|
||||
public function getPayStatusTextAttr($value, $data)
|
||||
{
|
||||
$list = $this->getPayStatusList();
|
||||
return $list[(int)($data['pay_status'] ?? 0)] ?? '';
|
||||
}
|
||||
|
||||
public function getSettleStatusTextAttr($value, $data)
|
||||
{
|
||||
$list = $this->getSettleStatusList();
|
||||
return $list[(int)($data['settle_status'] ?? 0)] ?? '';
|
||||
}
|
||||
|
||||
public function getIsReviewTextAttr($value, $data)
|
||||
{
|
||||
$list = $this->getIsReviewList();
|
||||
return $list[(int)($data['is_review'] ?? 0)] ?? '';
|
||||
}
|
||||
|
||||
public function getHasElevatorTextAttr($value, $data)
|
||||
{
|
||||
$list = $this->getHasElevatorList();
|
||||
return $list[(int)($data['has_elevator'] ?? 0)] ?? '';
|
||||
}
|
||||
|
||||
public function getUrgentTextAttr($value, $data)
|
||||
{
|
||||
$list = $this->getUrgentList();
|
||||
return $list[(int)($data['urgent'] ?? 0)] ?? '';
|
||||
}
|
||||
|
||||
|
||||
public function getAppointTimeTextAttr($value, $data)
|
||||
{
|
||||
|
||||
@@ -39,26 +39,26 @@
|
||||
<div class="form-group"><label class="control-sidebar-subheading"><input type="checkbox" data-sidebarskin="toggle" class="pull-right"> {:__('Toggle Right Sidebar Skin')}</label><p>{:__('Toggle between dark and light skins for the right sidebar')}</p></div>
|
||||
<h4 class="control-sidebar-heading">{:__('Skins')}</h4>
|
||||
<ul class="list-unstyled clearfix skin-list">
|
||||
<li><a href="javascript:;" data-skin="skin-blue" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #4e73df;"></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Blue</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Black</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-purple" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #605ca8;"></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Purple</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-green" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 7px;" class="bg-green-active"></span><span class="bg-green" style="width: 80%; height: 7px;"></span></div><div><span style="width: 20%; height: 20px; background: #000;"></span><span style="width: 80%; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Green</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-red" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 7px;" class="bg-red-active"></span><span class="bg-red" style="width: 80%; height: 7px;"></span></div><div><span style="width: 20%; height: 20px; background: #000;"></span><span style="width: 80%; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Red</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-yellow" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 7px;" class="bg-yellow-active"></span><span class="bg-yellow" style="width: 80%; height: 7px;"></span></div><div><span style="width: 20%; height: 20px; background: #000;"></span><span style="width: 80%; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Yellow</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-blue" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #4e73df;"></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">蓝色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">黑色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-purple" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #605ca8;"></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">紫色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-green" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 7px;" class="bg-green-active"></span><span class="bg-green" style="width: 80%; height: 7px;"></span></div><div><span style="width: 20%; height: 20px; background: #000;"></span><span style="width: 80%; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">绿色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-red" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 7px;" class="bg-red-active"></span><span class="bg-red" style="width: 80%; height: 7px;"></span></div><div><span style="width: 20%; height: 20px; background: #000;"></span><span style="width: 80%; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">红色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-yellow" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 7px;" class="bg-yellow-active"></span><span class="bg-yellow" style="width: 80%; height: 7px;"></span></div><div><span style="width: 20%; height: 20px; background: #000;"></span><span style="width: 80%; height: 20px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">黄色</p></li>
|
||||
|
||||
<li><a href="javascript:;" data-skin="skin-blue-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px; background: #4e73df;"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Blue Light</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px; background: #000;"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Black Light</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-purple-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px; background: #605ca8;"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Purple Light</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-green-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px;" class="bg-green"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Green Light</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-red-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px;" class="bg-red"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Red Light</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-yellow-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px;" class="bg-yellow"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">Yellow Light</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-blue-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px; background: #4e73df;"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">浅蓝色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px; background: #000;"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">浅黑色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-purple-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px; background: #605ca8;"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">浅紫色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-green-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px;" class="bg-green"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">浅绿色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-red-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px;" class="bg-red"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">浅红色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-yellow-light" class="clearfix full-opacity-hover"><div><span style="width: 100%; height: 7px;" class="bg-yellow"></span></div><div><span style="width: 100%; height: 20px; background: #f9fafc;"></span></div></a><p class="text-center no-margin" style="font-size: 12px">浅黄色</p></li>
|
||||
|
||||
<li><a href="javascript:;" data-skin="skin-black-blue" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px; background: #4e73df;"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Black Blue</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-purple" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px; background: #605ca8;"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Black Purple</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-green" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px;" class="bg-green"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Black Green</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-red" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px;" class="bg-red"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Black Red</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-yellow" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px;" class="bg-yellow"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Black Yellow</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-pink" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px; background: #f5549f;"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">Black Pink</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-blue" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px; background: #4e73df;"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">黑蓝色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-purple" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px; background: #605ca8;"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">黑紫色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-green" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px;" class="bg-green"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">黑绿色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-red" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px;" class="bg-red"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">黑红色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-yellow" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px;" class="bg-yellow"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">黑黄色</p></li>
|
||||
<li><a href="javascript:;" data-skin="skin-black-pink" class="clearfix full-opacity-hover"><div><span style="width: 20%; height: 27px; background: #000;"><span style="width: 100%; height: 3px; margin-top:10px; background: #f5549f;"></span></span><span style="width: 80%; height: 27px; background: #f4f5f7;"></span></div></a><p class="text-center no-margin">黑粉色</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
|
||||
@@ -53,9 +53,6 @@
|
||||
<li class="{$config['language']=='zh-cn'?'active':''}">
|
||||
<a href="?ref=addtabs&lang=zh-cn">简体中文</a>
|
||||
</li>
|
||||
<li class="{$config['language']=='en'?'active':''}">
|
||||
<a href="?ref=addtabs&lang=en">English</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Discount')}:</label>
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Discount Rate')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-discount" data-rule="required" class="form-control" step="0.01" name="row[discount]" type="number" value="1.00">
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Discount')}:</label>
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Discount Rate')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-discount" data-rule="required" class="form-control" step="0.01" name="row[discount]" type="number" value="{$row.discount|htmlentities}">
|
||||
</div>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<footer class="main-footer hide">
|
||||
<div class="pull-right hidden-xs">
|
||||
</div>
|
||||
<strong>Copyright © 2017-{:date("Y")} <a href="__PUBLIC__">{$site.name|htmlentities}</a>.</strong> All rights reserved.
|
||||
<strong>版权所有 © 2017-{:date("Y")} <a href="__PUBLIC__">{$site.name|htmlentities}</a>.</strong>
|
||||
</footer>
|
||||
|
||||
<!-- 右侧控制栏 -->
|
||||
|
||||
@@ -97,13 +97,13 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Has_elevator')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-has_elevator" data-rule="required" class="form-control" name="row[has_elevator]" type="number" value="1">
|
||||
{:build_radios('row[has_elevator]', $hasElevatorList, 1)}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Urgent')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-urgent" data-rule="required" class="form-control" name="row[urgent]" type="number" value="0">
|
||||
{:build_radios('row[urgent]', $urgentList, 0)}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -211,13 +211,21 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-status" data-rule="required" class="form-control" name="row[status]" type="number" value="0">
|
||||
<select id="c-status" data-rule="required" class="form-control selectpicker" name="row[status]">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-pay_status" data-rule="required" class="form-control" name="row[pay_status]" type="number" value="0">
|
||||
<select id="c-pay_status" data-rule="required" class="form-control selectpicker" name="row[pay_status]">
|
||||
{foreach name="payStatusList" item="vo"}
|
||||
<option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -289,7 +297,11 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Settle_status')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-settle_status" data-rule="required" class="form-control" name="row[settle_status]" type="number" value="0">
|
||||
<select id="c-settle_status" data-rule="required" class="form-control selectpicker" name="row[settle_status]">
|
||||
{foreach name="settleStatusList" item="vo"}
|
||||
<option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -313,7 +325,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Is_review')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-is_review" data-rule="required" class="form-control" name="row[is_review]" type="number" value="0">
|
||||
{:build_radios('row[is_review]', $isReviewList, 0)}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group layer-footer">
|
||||
|
||||
@@ -97,13 +97,13 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Has_elevator')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-has_elevator" data-rule="required" class="form-control" name="row[has_elevator]" type="number" value="{$row.has_elevator|htmlentities}">
|
||||
{:build_radios('row[has_elevator]', $hasElevatorList, $row['has_elevator'])}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Urgent')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-urgent" data-rule="required" class="form-control" name="row[urgent]" type="number" value="{$row.urgent|htmlentities}">
|
||||
{:build_radios('row[urgent]', $urgentList, $row['urgent'])}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -211,13 +211,21 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-status" data-rule="required" class="form-control" name="row[status]" type="number" value="{$row.status|htmlentities}">
|
||||
<select id="c-status" data-rule="required" class="form-control selectpicker" name="row[status]">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<option value="{$key}" {in name="key" value="$row.status"}selected{/in}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-pay_status" data-rule="required" class="form-control" name="row[pay_status]" type="number" value="{$row.pay_status|htmlentities}">
|
||||
<select id="c-pay_status" data-rule="required" class="form-control selectpicker" name="row[pay_status]">
|
||||
{foreach name="payStatusList" item="vo"}
|
||||
<option value="{$key}" {in name="key" value="$row.pay_status"}selected{/in}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -289,7 +297,11 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Settle_status')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-settle_status" data-rule="required" class="form-control" name="row[settle_status]" type="number" value="{$row.settle_status|htmlentities}">
|
||||
<select id="c-settle_status" data-rule="required" class="form-control selectpicker" name="row[settle_status]">
|
||||
{foreach name="settleStatusList" item="vo"}
|
||||
<option value="{$key}" {in name="key" value="$row.settle_status"}selected{/in}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -313,7 +325,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Is_review')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-is_review" data-rule="required" class="form-control" name="row[is_review]" type="number" value="{$row.is_review|htmlentities}">
|
||||
{:build_radios('row[is_review]', $isReviewList, $row['is_review'])}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group layer-footer">
|
||||
|
||||
@@ -48,7 +48,7 @@ return [
|
||||
// 默认语言
|
||||
'default_lang' => 'zh-cn',
|
||||
// 允许的语言列表
|
||||
'allow_lang_list' => ['zh-cn', 'en'],
|
||||
'allow_lang_list' => ['zh-cn'],
|
||||
// 应用类库后缀
|
||||
'class_suffix' => false,
|
||||
// 控制器类后缀
|
||||
|
||||
在新工单中引用
屏蔽一个用户