feat: 移除步梯搬运费,所有商品搬运费改为0元
- 清除所有商品的步梯搬运收费配置,floor_fee和free_floor全部置0 - 订单详情、服务详情页移除步梯搬运费相关显示项 - 提现规则调整为全部金额需后台审核,取消小额免审自动转账 - 新增师傅端收支账单明细页面,支持查看结算和提现记录 - 更新提现相关配置,降低最低提现金额至0.1元,取消提现次数限制
这个提交包含在:
@@ -0,0 +1,6 @@
|
||||
-- 2026-11-30: 清除所有商品的步梯搬运收费配置,步梯/电梯仅作为订单标签展示给师傅,不再加收楼层搬运费
|
||||
UPDATE `fa_service`
|
||||
SET `floor_fee` = 0.00,
|
||||
`free_floor` = 0
|
||||
WHERE `floor_fee` <> 0.00
|
||||
OR `free_floor` <> 0;
|
||||
@@ -29,11 +29,11 @@ INSERT INTO `fa_finance_config` (`name`, `group`, `title`, `value`, `remark`, `u
|
||||
('withdraw_enabled', 'withdraw', '提现功能总开关', '1', '1=正常开放提现, 0=暂停提现维护', UNIX_TIMESTAMP()),
|
||||
('withdraw_close_tip', 'withdraw', '暂停提现提示语', '系统正在进行财务结算维护,请稍后再发起提现', '关闭提现开关时向师傅端展示的提示文案', UNIX_TIMESTAMP()),
|
||||
('withdraw_channels', 'withdraw', '开放提现渠道', 'wechat', 'wechat=微信零钱(官方商家转账), bank=银行储蓄卡;小程序合规建议默认仅开启wechat', UNIX_TIMESTAMP()),
|
||||
('withdraw_require_realname', 'withdraw', '强制实名认证方可提现', '1', '1=必须通过师傅实名认证, 0=不强制(注:微信单笔>=2000元强制要求实名)', UNIX_TIMESTAMP()),
|
||||
('withdraw_min_amount', 'withdraw', '单笔最低提现金额(元)', '10.00', '微信新版商家转账要求扣除手续费后实际到账净额不低于0.10元', UNIX_TIMESTAMP()),
|
||||
('withdraw_require_realname', 'withdraw', '强制实名认证方可提现', '0', '1=必须通过师傅实名认证, 0=不强制(注:微信单笔>=2000元强制要求实名)', UNIX_TIMESTAMP()),
|
||||
('withdraw_min_amount', 'withdraw', '单笔最低提现金额(元)', '0.10', '微信新版商家转账要求扣除手续费后实际到账净额不低于0.10元', UNIX_TIMESTAMP()),
|
||||
('withdraw_max_amount', 'withdraw', '单笔最高提现金额(元)', '200.00', '须与微信商户后台商家转账单笔限额一致(微信官方硬上限20000元)', UNIX_TIMESTAMP()),
|
||||
('withdraw_daily_amount', 'withdraw', '单人单日累计提现上限(元)', '200.00', '0表示不限;须不超过微信商户单用户日收款限额', UNIX_TIMESTAMP()),
|
||||
('withdraw_daily_count', 'withdraw', '单人单日最多提现次数', '3', '0表示不限制每日提现申请笔数', UNIX_TIMESTAMP()),
|
||||
('withdraw_daily_count', 'withdraw', '单人单日最多提现次数', '0', '0表示不限制每日提现申请笔数', UNIX_TIMESTAMP()),
|
||||
('withdraw_allow_weekdays', 'withdraw', '允许提现周期(星期)', '1,2,3,4,5,6,7', '1~7代表周一至周日,逗号分隔', UNIX_TIMESTAMP()),
|
||||
('withdraw_time_start', 'withdraw', '每日允许提现开始时间', '00:00', '格式 HH:mm', UNIX_TIMESTAMP()),
|
||||
('withdraw_time_end', 'withdraw', '每日允许提现结束时间', '23:59', '格式 HH:mm', UNIX_TIMESTAMP()),
|
||||
@@ -43,8 +43,9 @@ INSERT INTO `fa_finance_config` (`name`, `group`, `title`, `value`, `remark`, `u
|
||||
('withdraw_fee_min', 'withdraw', '单笔最低保底手续费(元)', '0.00', 'percent模式下单笔手续费下限,0表示不保底', UNIX_TIMESTAMP()),
|
||||
('withdraw_fee_max', 'withdraw', '单笔最高封顶手续费(元)', '0.00', 'percent模式下单笔手续费上限,0表示不封顶', UNIX_TIMESTAMP()),
|
||||
('withdraw_transfer_mode', 'withdraw', '微信渠道打款执行方式', 'wx_mch_transfer', 'wx_mch_transfer=微信APIv3新版商家转账(小程序确认收款), offline_manual=线下打款人工标记', UNIX_TIMESTAMP()),
|
||||
('withdraw_audit_mode', 'withdraw', '提现审核与出款模式', 'manual', 'manual=全部经财务人工审核后打款, auto_small=小额免审自动发起微信商家转账', UNIX_TIMESTAMP()),
|
||||
('withdraw_auto_max_amount', 'withdraw', '小额免审自动转账上限(元)', '50.00', 'auto_small模式下单笔不超过该金额且为微信渠道时自动发起转账', UNIX_TIMESTAMP()),
|
||||
('withdraw_audit_mode', 'withdraw', '提现审核与出款模式', 'manual', 'manual=全部经财务人工审核后打款', UNIX_TIMESTAMP()),
|
||||
('withdraw_audit_sla', 'withdraw', '预计审核处理时效', '24小时内', '向师傅展示的预计财务审核处理时长说明(如:24小时内、1个工作日内)', UNIX_TIMESTAMP()),
|
||||
('withdraw_auto_max_amount', 'withdraw', '小额免审自动转账上限(元)', '0.00', '已停用小额免审,固定为0.00(所有金额均需后台审核)', UNIX_TIMESTAMP()),
|
||||
('wx_transfer_scene_id', 'withdraw', '微信商家转账场景ID', '1005', '微信商户平台已开通的转账场景ID,1005代表佣金报酬', UNIX_TIMESTAMP()),
|
||||
('wx_recv_perception', 'withdraw', '微信收款用户零钱感知', '劳务报酬', '须与微信商户后台场景1005报备感知文案一致(如:劳务报酬)', UNIX_TIMESTAMP()),
|
||||
('wx_job_type', 'withdraw', '微信场景报备-岗位类型', '上门安装维修师傅', '微信V3接口必填报备项,不超过32个字符', UNIX_TIMESTAMP()),
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
-- 对齐微信小程序官方审核规范:
|
||||
-- 1. 不设人为起提门槛与额外实名/次数限制(仅遵守微信零钱最小 ¥0.10、单笔/单日上限 ¥200.00)
|
||||
-- 2. 所有金额提现均需后台财务审核通过后发起微信商家转账(关闭小额免审)
|
||||
-- 3. 免提现手续费
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
UPDATE `fa_finance_config` SET `value` = '0', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_require_realname';
|
||||
UPDATE `fa_finance_config` SET `value` = '0.10', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_min_amount';
|
||||
UPDATE `fa_finance_config` SET `value` = '200.00', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_max_amount';
|
||||
UPDATE `fa_finance_config` SET `value` = '200.00', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_daily_amount';
|
||||
UPDATE `fa_finance_config` SET `value` = '0', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_daily_count';
|
||||
UPDATE `fa_finance_config` SET `value` = 'free', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_fee_mode';
|
||||
UPDATE `fa_finance_config` SET `value` = 'manual', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_audit_mode';
|
||||
UPDATE `fa_finance_config` SET `value` = '0.00', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_auto_max_amount';
|
||||
|
||||
INSERT INTO `fa_finance_config` (`name`, `group`, `title`, `value`, `remark`, `updatetime`)
|
||||
VALUES ('withdraw_audit_sla', 'withdraw', '预计审核处理时效', '24小时内', '向师傅展示的预计财务审核处理时长说明(如:24小时内、1个工作日内)', UNIX_TIMESTAMP())
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`title` = VALUES(`title`),
|
||||
`remark` = VALUES(`remark`),
|
||||
`updatetime` = VALUES(`updatetime`);
|
||||
@@ -229,30 +229,12 @@ class Service extends Backend
|
||||
}
|
||||
$this->error(__('Parameter %s can not be empty', ''));
|
||||
}
|
||||
$this->view->assign(['floorFee' => '10.00', 'freeFloor' => 2]);
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
private function normalizeFloorFees(array $params)
|
||||
{
|
||||
$mode = $this->request->post('floor_fee_mode', '');
|
||||
if ($mode !== 'free' && $mode !== 'paid') {
|
||||
return $params;
|
||||
}
|
||||
$fee = $mode === 'free' ? 0.0 : filter_var($params['floor_fee'] ?? null, FILTER_VALIDATE_FLOAT);
|
||||
if ($fee === false || $fee < 0 || $fee > 99999999.99 || round($fee, 2) !== $fee) {
|
||||
throw new ValidateException('每层费用须为 0 元或正数,且最多保留两位小数');
|
||||
}
|
||||
if ($fee === 0.0) {
|
||||
return array_replace($params, ['floor_fee' => 0, 'free_floor' => 0]);
|
||||
}
|
||||
$freeFloors = filter_var($params['free_floor'] ?? null, FILTER_VALIDATE_INT, [
|
||||
'options' => ['min_range' => 0, 'max_range' => 2147483647],
|
||||
]);
|
||||
if ($freeFloors === false) {
|
||||
throw new ValidateException('免费楼层数须为非负整数');
|
||||
}
|
||||
return array_replace($params, ['floor_fee' => $fee, 'free_floor' => $freeFloors]);
|
||||
return array_replace($params, ['floor_fee' => 0, 'free_floor' => 0]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -425,7 +407,6 @@ class Service extends Backend
|
||||
$this->view->assign("row", $row);
|
||||
$this->view->assign("catName", $catName);
|
||||
$this->view->assign("specs", $specs ?: []);
|
||||
$this->view->assign(['floorFee' => $row->floor_fee, 'freeFloor' => $row->free_floor]);
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
{/if}
|
||||
|
||||
<!-- 现代企业级 SaaS 统一视觉规范样式引擎 -->
|
||||
<link href="__CDN__/assets/css/theme-modern.css?v={$Think.config.site.version|htmlentities}-20261124c" rel="stylesheet">
|
||||
<link href="__CDN__/assets/css/theme-modern.css?v={$Think.config.site.version|htmlentities}-20261130a" rel="stylesheet">
|
||||
|
||||
<!-- 优匠优服 橙白企业级品牌视觉引擎 -->
|
||||
<link href="__CDN__/assets/css/theme-qibing-orange.css?v={$Think.config.site.version|htmlentities}-20261124c" rel="stylesheet">
|
||||
<link href="__CDN__/assets/css/theme-qibing-orange.css?v={$Think.config.site.version|htmlentities}-20261130a" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
/* The image viewer sits above existing dialogs and has its own close control. */
|
||||
@@ -60,7 +60,7 @@
|
||||
var require = {
|
||||
config: {$config|json_encode}
|
||||
};
|
||||
require.config.site.version += "-admin-ui-fix-20261124c";
|
||||
require.config.site.version += "-admin-ui-fix-20261130d";
|
||||
if (require.config.controllername === 'merchant' || require.config.controllername === 'user.user') {
|
||||
require.config.site.version += "-identity-security-20261121";
|
||||
}
|
||||
|
||||
@@ -606,21 +606,17 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">提现审核模式:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<select class="form-control js-wd-audit-mode" name="row[withdraw_audit_mode]">
|
||||
<option value="manual" {if $cfg.withdraw_audit_mode == 'manual'}selected{/if}>全部由财务人工审核(推荐:安全防刷)</option>
|
||||
<option value="auto_small" {if $cfg.withdraw_audit_mode == 'auto_small'}selected{/if}>小额免审自动打款(超过免审额度再转人工)</option>
|
||||
</select>
|
||||
<input type="hidden" name="row[withdraw_audit_mode]" value="manual">
|
||||
<input type="hidden" name="row[withdraw_auto_max_amount]" value="0.00">
|
||||
<p class="form-control-static text-primary"><strong>全部由财务人工审核</strong>(所有金额提现均需后台审核通过后再发起打款)</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group js-wd-auto-max">
|
||||
<label class="control-label col-xs-12 col-sm-2">小额免审上限:</label>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">≤ ¥</span>
|
||||
<input type="number" step="0.01" min="0" max="20000" class="form-control" name="row[withdraw_auto_max_amount]" value="{$cfg.withdraw_auto_max_amount|htmlentities}">
|
||||
<span class="input-group-addon">元免审</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">预计审核时效:</label>
|
||||
<div class="col-xs-12 col-sm-5">
|
||||
<input type="text" maxlength="32" data-rule="required" class="form-control" name="row[withdraw_audit_sla]" value="{$cfg.withdraw_audit_sla|htmlentities}" placeholder="如:24小时内、1个工作日内">
|
||||
<span class="fc-field-note">展示在小程序提现规则中,向师傅与平台审核明确预计人工审核时长</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@
|
||||
<div class="od-card-body">
|
||||
<div class="od-grid-list">
|
||||
<div class="od-item"><span class="od-item-k">基础服务费:</span><span class="od-item-v">¥{$row.base_amount}</span></div>
|
||||
<div class="od-item"><span class="od-item-k">步梯楼层费:</span><span class="od-item-v">¥{$row.floor_amount}</span></div>
|
||||
{if $row.floor_amount > 0}<div class="od-item"><span class="od-item-k">步梯楼层费:</span><span class="od-item-v">¥{$row.floor_amount}</span></div>{/if}
|
||||
<div class="od-item"><span class="od-item-k">远程费:</span><span class="od-item-v">¥{$row.distance_amount}</span></div>
|
||||
<div class="od-item"><span class="od-item-k">加急费:</span><span class="od-item-v">¥{$row.urgent_amount}</span></div>
|
||||
<div class="od-item"><span class="od-item-k">优惠券抵扣:</span><span class="od-item-v" style="color:#16a34a;">-¥{$row.discount_amount}</span></div>
|
||||
|
||||
@@ -93,7 +93,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="service/floor_fee" /}
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">排序权重:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="100">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@@ -112,24 +119,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-4">排序权重:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="100">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-4">上架状态:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="radio">
|
||||
<span class="text-muted">商品新增后先以下架状态保存</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-2">上架状态:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="radio">
|
||||
<span class="text-muted">商品新增后先以下架状态保存</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -216,14 +216,6 @@
|
||||
<dl class="service-detail-metadata">
|
||||
<div><dt>商品编号</dt><dd>{$row.id}</dd></div>
|
||||
{if $row.unit}<div><dt>商品单位</dt><dd>{$row.unit|htmlentities}</dd></div>{/if}
|
||||
<div>
|
||||
<dt>步梯搬运</dt>
|
||||
{if $row.floor_fee > 0}
|
||||
<dd>¥{$row.floor_fee|htmlentities}/层{if $row.free_floor > 0},{$row.free_floor|htmlentities} 层及以下免费{/if}</dd>
|
||||
{else /}
|
||||
<dd>不收费</dd>
|
||||
{/if}
|
||||
</div>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -143,7 +143,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="service/floor_fee" /}
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">排序权重:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@@ -162,25 +169,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-4">排序权重:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-4">上架状态:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="radio">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-bottom:0;">
|
||||
<label class="control-label col-xs-12 col-sm-2">上架状态:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="radio">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1136,17 +1136,12 @@ class Home extends Base
|
||||
$floorAmount = 0;
|
||||
$urgentAmount = 0;
|
||||
} else {
|
||||
$floor = max(0, (int)$params['floor']);
|
||||
$freeFloor = isset($service['free_floor']) && (int)$service['free_floor'] >= 0 ? (int)$service['free_floor'] : 2;
|
||||
$floorFee = isset($service['floor_fee']) && (float)$service['floor_fee'] >= 0 ? (float)$service['floor_fee'] : 10.0;
|
||||
|
||||
if ((int)$params['has_elevator'] === 0 && $floor > $freeFloor) {
|
||||
$floorAmount = ($floor - $freeFloor) * $floorFee;
|
||||
}
|
||||
// 全平台商品步梯搬运不收费,floor / has_elevator 仅作订单楼层与电梯标签保留给接单师傅查看
|
||||
$floorAmount = 0;
|
||||
|
||||
$singleUrgent = max(20.0, min(200.0, round($base * 0.2, 2)));
|
||||
$urgentAmount = (int)$params['urgent'] === 1 ? $singleUrgent : 0;
|
||||
$total = round($base + $floorAmount + $urgentAmount, 2);
|
||||
$total = round($base + $urgentAmount, 2);
|
||||
}
|
||||
|
||||
$discount = 0;
|
||||
@@ -1173,15 +1168,15 @@ class Home extends Base
|
||||
'goods_amount' => $type === 'quote' ? 0 : round($goodsAmount, 2),
|
||||
'addon_amount' => $type === 'quote' ? 0 : round($addonAmount, 2),
|
||||
'base_amount' => $type === 'quote' ? 0 : round($base, 2),
|
||||
'floor_amount' => round($floorAmount, 2),
|
||||
'floor_amount' => 0.0,
|
||||
'urgent_amount' => round($urgentAmount, 2),
|
||||
'estimated_urgent_amount' => round(max(20.0, min(200.0, round($base * 0.2, 2))), 2),
|
||||
'total_amount' => $total,
|
||||
'discount_amount' => round($discount, 2),
|
||||
'pay_amount' => max(0, round($total - $discount, 2)),
|
||||
'coupon' => $couponInfo,
|
||||
'free_floor' => $type === 'custom' ? 0 : ($service ? (int)$service['free_floor'] : 0),
|
||||
'floor_fee' => $type === 'custom' ? 0 : round($service ? (float)$service['floor_fee'] : 0.0, 2),
|
||||
'free_floor' => 0,
|
||||
'floor_fee' => 0.0,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1518,8 +1513,8 @@ class Home extends Base
|
||||
'unit' => $row['unit'],
|
||||
'price_text' => $priceText,
|
||||
'sales' => (int)$row['sales'],
|
||||
'floor_fee' => isset($row['floor_fee']) ? (float)$row['floor_fee'] : 0,
|
||||
'free_floor' => isset($row['free_floor']) ? (int)$row['free_floor'] : 0,
|
||||
'floor_fee' => 0.0,
|
||||
'free_floor' => 0,
|
||||
'need_model' => isset($row['need_model']) ? (int)$row['need_model'] : 1,
|
||||
'description' => isset($row['description']) ? $row['description'] : '',
|
||||
'tag' => isset($row['tag']) && $row['tag'] ? $row['tag'] : '明码标价',
|
||||
|
||||
@@ -1586,45 +1586,17 @@ class Master extends MasterBase
|
||||
return;
|
||||
}
|
||||
|
||||
// 3. 若命中「小额免审自动发起微信转账」,在本地事务外自动发起商家转账(失败必落库记录中文原因并明确回传,严禁静默吞掉)
|
||||
$autoInitiated = false;
|
||||
$canConfirmNow = false;
|
||||
$autoFailReason = '';
|
||||
if (
|
||||
$channel === 'wechat'
|
||||
&& $wdCfg['transfer_mode'] === 'wx_mch_transfer'
|
||||
&& $wdCfg['audit_mode'] === 'auto_small'
|
||||
&& $amount <= (float)$wdCfg['auto_max_amount']
|
||||
) {
|
||||
try {
|
||||
$autoWd = PaymentService::initiateWithdrawTransfer($withdrawId, '小额免审自动发起微信商家转账');
|
||||
$autoInitiated = true;
|
||||
$formattedAuto = $this->formatWithdrawItem($autoWd);
|
||||
$canConfirmNow = !empty($formattedAuto['can_confirm']);
|
||||
} catch (\Throwable $ae) {
|
||||
$autoFailReason = trim((string)$ae->getMessage());
|
||||
Db::name('withdraw')->where('id', $withdrawId)->update([
|
||||
'audit_msg' => mb_substr('【小额免审自动转账失败】' . $autoFailReason, 0, 480),
|
||||
'updatetime' => time(),
|
||||
]);
|
||||
\think\Log::error('[Master::withdraw auto_small] withdraw_id=' . $withdrawId . ' 自动转账失败: ' . $autoFailReason);
|
||||
}
|
||||
}
|
||||
|
||||
if ($canConfirmNow) {
|
||||
$tipMsg = '提现已自动审核通过,请立即确认收款入账微信零钱';
|
||||
} elseif ($autoFailReason !== '') {
|
||||
$tipMsg = '提现申请已提交并冻结金额,但微信自动转账发起失败:' . $autoFailReason . ',已记录原因待财务核查处理';
|
||||
} else {
|
||||
$tipMsg = '提现申请已提交,审核通过后请在钱包内确认收款';
|
||||
}
|
||||
// 3. 所有提现申请均需经过后台财务审核后打款
|
||||
$tipMsg = $channel === 'bank'
|
||||
? '提现申请已提交,审核通过后打款至银行卡'
|
||||
: '提现申请已提交,审核通过后请在钱包内确认收款';
|
||||
|
||||
$this->success($tipMsg, [
|
||||
'withdraw_id' => $withdrawId,
|
||||
'arrive_amount' => $arrive,
|
||||
'auto_initiated' => $autoInitiated,
|
||||
'can_confirm' => $canConfirmNow,
|
||||
'auto_fail_reason' => $autoFailReason,
|
||||
'auto_initiated' => false,
|
||||
'can_confirm' => false,
|
||||
'auto_fail_reason' => '',
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,11 +44,11 @@ class FinanceConfigService
|
||||
'withdraw_enabled' => '1',
|
||||
'withdraw_close_tip' => '系统正在进行财务结算维护,请稍后再发起提现',
|
||||
'withdraw_channels' => 'wechat',
|
||||
'withdraw_require_realname' => '1',
|
||||
'withdraw_min_amount' => '10.00',
|
||||
'withdraw_require_realname' => '0',
|
||||
'withdraw_min_amount' => '0.10',
|
||||
'withdraw_max_amount' => '200.00',
|
||||
'withdraw_daily_amount' => '200.00',
|
||||
'withdraw_daily_count' => '3',
|
||||
'withdraw_daily_count' => '0',
|
||||
'withdraw_allow_weekdays' => '1,2,3,4,5,6,7',
|
||||
'withdraw_time_start' => '00:00',
|
||||
'withdraw_time_end' => '23:59',
|
||||
@@ -59,7 +59,8 @@ class FinanceConfigService
|
||||
'withdraw_fee_max' => '0.00',
|
||||
'withdraw_transfer_mode' => 'wx_mch_transfer',
|
||||
'withdraw_audit_mode' => 'manual',
|
||||
'withdraw_auto_max_amount' => '50.00',
|
||||
'withdraw_audit_sla' => '24小时内',
|
||||
'withdraw_auto_max_amount' => '0.00',
|
||||
'wx_transfer_scene_id' => '1005',
|
||||
'wx_recv_perception' => '劳务报酬',
|
||||
'wx_job_type' => '上门安装维修师傅',
|
||||
@@ -211,9 +212,7 @@ class FinanceConfigService
|
||||
? $all['withdraw_transfer_mode']
|
||||
: 'wx_mch_transfer';
|
||||
|
||||
$auditMode = in_array($all['withdraw_audit_mode'], ['manual', 'auto_small'], true)
|
||||
? $all['withdraw_audit_mode']
|
||||
: 'manual';
|
||||
$auditMode = 'manual';
|
||||
|
||||
return [
|
||||
'enabled' => (int)$all['withdraw_enabled'] === 1 ? 1 : 0,
|
||||
@@ -234,7 +233,8 @@ class FinanceConfigService
|
||||
'fee_max' => round(max(0.00, (float)$all['withdraw_fee_max']), 2),
|
||||
'transfer_mode' => $transferMode,
|
||||
'audit_mode' => $auditMode,
|
||||
'auto_max_amount' => round(max(0.00, (float)$all['withdraw_auto_max_amount']), 2),
|
||||
'audit_sla' => mb_substr(trim((string)($all['withdraw_audit_sla'] ?? '24小时内')) ?: '24小时内', 0, 32),
|
||||
'auto_max_amount' => 0.00,
|
||||
'wx_scene_id' => trim((string)$all['wx_transfer_scene_id']) ?: '1005',
|
||||
'wx_perception' => mb_substr(trim((string)$all['wx_recv_perception']) ?: '劳务报酬', 0, 32),
|
||||
'wx_job_type' => mb_substr(trim((string)$all['wx_job_type']) ?: '上门安装维修师傅', 0, 32),
|
||||
@@ -351,14 +351,20 @@ class FinanceConfigService
|
||||
$minFmt = number_format($cfg['min_amount'], 2, '.', '');
|
||||
$maxFmt = number_format($cfg['max_amount'], 2, '.', '');
|
||||
|
||||
if ($cfg['daily_amount'] > 0) {
|
||||
if ($cfg['min_amount'] <= 0.10) {
|
||||
$amountRuleText = '平台不设额外门槛,限额按微信零钱转账规范执行';
|
||||
$amountGridValue = '按微信限额';
|
||||
$dailyLimitSub = '平台不设额外门槛';
|
||||
} elseif ($cfg['daily_amount'] > 0) {
|
||||
$dailyAmtTxt = rtrim(rtrim(number_format($cfg['daily_amount'], 2, '.', ''), '0'), '.');
|
||||
$remainAmtTxt = rtrim(rtrim(number_format(max(0.00, (float)$remainDailyAmount), 2, '.', ''), '0'), '.');
|
||||
$remainAmtFmt = number_format(max(0.00, (float)$remainDailyAmount), 2, '.', '');
|
||||
$amountRuleText = "单笔 ¥{$minFmt} ~ ¥{$maxFmt},每日累计上限 ¥{$dailyAmtTxt}(今日剩余 ¥{$remainAmtFmt})";
|
||||
$amountGridValue = "¥{$minFmt} ~ ¥{$maxTxt}";
|
||||
$dailyLimitSub = "日限 ¥{$dailyAmtTxt} · 剩 ¥{$remainAmtTxt}";
|
||||
} else {
|
||||
$amountRuleText = "单笔 ¥{$minFmt} ~ ¥{$maxFmt},每日不限累计额度";
|
||||
$amountGridValue = "¥{$minFmt} ~ ¥{$maxTxt}";
|
||||
$dailyLimitSub = '单日不限累计额度';
|
||||
}
|
||||
|
||||
@@ -368,74 +374,65 @@ class FinanceConfigService
|
||||
$dailyCountSub = "今日剩余 {$remainDailyCount} 次";
|
||||
} else {
|
||||
$dailyCountText = '每日不限提现次数';
|
||||
$dailyCountMain = '每日不限次数';
|
||||
$dailyCountSub = '不限申请笔数';
|
||||
$dailyCountMain = '不限次数';
|
||||
$dailyCountSub = '随结随提,灵活申请';
|
||||
}
|
||||
|
||||
$weekdayLabel = self::formatAllowWeekdaysLabel($cfg['allow_weekdays']);
|
||||
$openTimeText = $weekdayLabel . ' ' . $cfg['time_start'] . ' - ' . $cfg['time_end'];
|
||||
$timeGridSub = ($cfg['time_start'] === '00:00' && $cfg['time_end'] === '23:59')
|
||||
? $weekdayLabel . '全天开放'
|
||||
: $weekdayLabel . '开放申请';
|
||||
$auditSla = $cfg['audit_sla'] ?: '24小时内';
|
||||
|
||||
$arrivalParts = [];
|
||||
if (in_array('wechat', $cfg['channels'], true)) {
|
||||
if ($cfg['transfer_mode'] === 'wx_mch_transfer') {
|
||||
if ($cfg['audit_mode'] === 'auto_small' && $cfg['auto_max_amount'] > 0) {
|
||||
$autoMaxTxt = rtrim(rtrim(number_format($cfg['auto_max_amount'], 2, '.', ''), '0'), '.');
|
||||
$arrivalParts[] = "微信零钱:单笔 ≤ ¥{$autoMaxTxt} 免审自动发起转账,24小时内确认收款实时到账;超出额度经财务审核通过后,确认收款实时到账";
|
||||
} else {
|
||||
$arrivalParts[] = '微信零钱:财务审核通过后发起转账,24小时内在页面确认收款实时到账';
|
||||
}
|
||||
$arrivalParts[] = "微信零钱:提交后预计{$auditSla}完成财务审核并发起转账,请在24小时内确认收款后实时到账(逾期未确认资金自动退回账户余额)";
|
||||
} else {
|
||||
$arrivalParts[] = '微信零钱:财务审核并人工打款后到账';
|
||||
$arrivalParts[] = "微信零钱:提交后预计{$auditSla}完成财务审核并人工打款到账";
|
||||
}
|
||||
}
|
||||
if (in_array('bank', $cfg['channels'], true)) {
|
||||
$arrivalParts[] = '银行储蓄卡:财务审核并打款至收款银行卡后到账';
|
||||
$arrivalParts[] = "银行储蓄卡:提交后预计{$auditSla}完成财务审核并打款至收款银行卡";
|
||||
}
|
||||
$arrivalTimeText = implode(';', $arrivalParts);
|
||||
|
||||
if (in_array('wechat', $cfg['channels'], true) && $cfg['transfer_mode'] === 'wx_mch_transfer') {
|
||||
if ($cfg['audit_mode'] === 'auto_small' && $cfg['auto_max_amount'] > 0) {
|
||||
$autoMaxTxt = rtrim(rtrim(number_format($cfg['auto_max_amount'], 2, '.', ''), '0'), '.');
|
||||
$arrivalMain = '确认收款实时到账';
|
||||
$arrivalSub = "≤¥{$autoMaxTxt}免审 · 24h内确认";
|
||||
} else {
|
||||
$arrivalMain = '审核后实时到账';
|
||||
$arrivalSub = '转账后24h内确认收款';
|
||||
}
|
||||
$arrivalMain = "{$auditSla}审核";
|
||||
$arrivalSub = '通过后确认即入账';
|
||||
} else {
|
||||
$arrivalMain = '财务审核打款';
|
||||
$arrivalSub = in_array('bank', $cfg['channels'], true) ? '审核后打款至银行卡' : '审核后人工打款到账';
|
||||
$arrivalMain = "{$auditSla}打款";
|
||||
$arrivalSub = in_array('bank', $cfg['channels'], true) ? '财务审核后打款到账' : '审核后人工打款到账';
|
||||
}
|
||||
|
||||
$realnameText = $cfg['require_realname']
|
||||
? '需完成师傅实名认证审核通过后方可发起提现'
|
||||
: ($cfg['max_amount'] >= self::WX_TRANSFER_REALNAME_THRESHOLD
|
||||
? '单笔满 ¥2,000.00 需完成实名认证'
|
||||
: '大额提现按微信规范校验实名');
|
||||
? '需完成师傅实名认证及校验6位支付密码,保障您的资金安全'
|
||||
: '提现需校验6位支付密码,保障您的资金安全';
|
||||
|
||||
$ruleGrid = [
|
||||
['key' => 'amount', 'label' => '可提现额度', 'value' => "¥{$minTxt} ~ ¥{$maxTxt}", 'sub' => $dailyLimitSub],
|
||||
['key' => 'count', 'label' => '每日提现次数', 'value' => $dailyCountMain, 'sub' => $dailyCountSub],
|
||||
['key' => 'time', 'label' => '提现时间', 'value' => "{$cfg['time_start']} - {$cfg['time_end']}", 'sub' => $weekdayLabel . '开放申请'],
|
||||
['key' => 'amount', 'label' => '提现额度', 'value' => $amountGridValue, 'sub' => $dailyLimitSub],
|
||||
['key' => 'count', 'label' => '每日次数', 'value' => $dailyCountMain, 'sub' => $dailyCountSub],
|
||||
['key' => 'time', 'label' => '提现时间', 'value' => "{$cfg['time_start']} - {$cfg['time_end']}", 'sub' => $timeGridSub],
|
||||
['key' => 'arrival', 'label' => '到账时间', 'value' => $arrivalMain, 'sub' => $arrivalSub],
|
||||
];
|
||||
|
||||
$transferNotice = ($cfg['transfer_mode'] === 'wx_mch_transfer')
|
||||
? "工单完工核销后即可申请提现,{$feeText};提交后预计{$auditSla}由财务审核并发起转账,24小时内确认收款入账,逾期未确认或驳回将全额退回余额。"
|
||||
: "工单完工核销后即可申请提现,{$feeText};提交后预计{$auditSla}由财务审核打款,异常或驳回资金将全额退回余额。";
|
||||
|
||||
$rules = [
|
||||
['key' => 'amount', 'label' => '可提现额度', 'value' => $amountRuleText],
|
||||
['key' => 'count', 'label' => '每日提现次数', 'value' => $dailyCountText],
|
||||
['key' => 'time', 'label' => '提现时间', 'value' => $openTimeText],
|
||||
['key' => 'arrival', 'label' => '到账时间', 'value' => $arrivalTimeText],
|
||||
['key' => 'fee', 'label' => '手续费说明', 'value' => $feeText],
|
||||
['key' => 'auth', 'label' => '认证要求', 'value' => $realnameText],
|
||||
['key' => 'notice', 'label' => '到账与费用', 'value' => $transferNotice],
|
||||
['key' => 'security', 'label' => '安全校验', 'value' => $realnameText . '。'],
|
||||
];
|
||||
|
||||
$ruleTip = "单笔 ¥{$minTxt}~¥{$maxTxt} 可提现,{$dailyCountText},{$openTimeText} 开放,{$feeText}。";
|
||||
$ruleTip = "{$amountRuleText},{$dailyCountText},{$openTimeText} 开放,{$arrivalMain},{$feeText}。";
|
||||
if (!$cfg['enabled']) {
|
||||
$ruleTip = $cfg['close_tip'];
|
||||
}
|
||||
|
||||
$arrivalDesc = $cfg['transfer_mode'] === 'wx_mch_transfer'
|
||||
? ($cfg['audit_mode'] === 'auto_small' ? '微信零钱(小额免审,确认收款即到账)' : '微信零钱(审核后小程序确认收款即到账)')
|
||||
? "微信零钱({$auditSla}审核,确认收款即到账)"
|
||||
: '微信零钱 / 人工财务打款';
|
||||
|
||||
return [
|
||||
@@ -462,6 +459,7 @@ class FinanceConfigService
|
||||
'fee_text' => $feeText,
|
||||
'transfer_mode' => $cfg['transfer_mode'],
|
||||
'audit_mode' => $cfg['audit_mode'],
|
||||
'audit_sla' => $auditSla,
|
||||
'auto_max_amount' => $cfg['auto_max_amount'],
|
||||
'arrival_desc' => $arrivalDesc,
|
||||
'amount_rule_text' => $amountRuleText,
|
||||
@@ -780,16 +778,18 @@ class FinanceConfigService
|
||||
$clean['withdraw_transfer_mode'] = $input['withdraw_transfer_mode'];
|
||||
}
|
||||
if (isset($input['withdraw_audit_mode'])) {
|
||||
if (!in_array($input['withdraw_audit_mode'], ['manual', 'auto_small'], true)) {
|
||||
throw new \InvalidArgumentException('无效的提现审核模式');
|
||||
$clean['withdraw_audit_mode'] = 'manual';
|
||||
$clean['withdraw_auto_max_amount'] = '0.00';
|
||||
}
|
||||
if (isset($input['withdraw_audit_sla'])) {
|
||||
$sla = trim((string)$input['withdraw_audit_sla']);
|
||||
if ($sla === '') {
|
||||
throw new \InvalidArgumentException('预计审核处理时效不能为空');
|
||||
}
|
||||
$clean['withdraw_audit_mode'] = $input['withdraw_audit_mode'];
|
||||
$clean['withdraw_audit_sla'] = mb_substr($sla, 0, 32);
|
||||
}
|
||||
if (isset($input['withdraw_auto_max_amount'])) {
|
||||
if (!is_numeric($input['withdraw_auto_max_amount']) || (float)$input['withdraw_auto_max_amount'] < 0 || (float)$input['withdraw_auto_max_amount'] > self::WX_TRANSFER_HARD_MAX) {
|
||||
throw new \InvalidArgumentException('小额免审自动转账上限须在 ¥0 ~ ¥20,000 之间');
|
||||
}
|
||||
$clean['withdraw_auto_max_amount'] = number_format(round((float)$input['withdraw_auto_max_amount'], 2), 2, '.', '');
|
||||
$clean['withdraw_auto_max_amount'] = '0.00';
|
||||
}
|
||||
|
||||
foreach ([
|
||||
|
||||
@@ -337,18 +337,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout',
|
||||
$('.js-wd-fee-mode').on('change', syncWdFeeMode);
|
||||
$('.js-wd-fee-field').on('input change', updateWithdrawFeePreview);
|
||||
|
||||
// 提现小额自动审核联动
|
||||
var syncWdAuditMode = function () {
|
||||
var am = $('.js-wd-audit-mode').val() || 'manual';
|
||||
if (am === 'auto_small') {
|
||||
$('.js-wd-auto-max').show();
|
||||
} else {
|
||||
$('.js-wd-auto-max').hide();
|
||||
}
|
||||
};
|
||||
syncWdAuditMode();
|
||||
$('.js-wd-audit-mode').on('change', syncWdAuditMode);
|
||||
|
||||
Form.api.bindevent($("#commission-default-form"), function (data, ret) {
|
||||
syncFormTokens(ret);
|
||||
}, function (data, ret) {
|
||||
|
||||
@@ -196,7 +196,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout',
|
||||
title: __('Operate'),
|
||||
table: table,
|
||||
class: 'col-operate-fixed',
|
||||
width: '260px',
|
||||
width: '250px',
|
||||
maxOperateButtons: 0,
|
||||
events: Table.api.events.operate,
|
||||
buttons: [
|
||||
{
|
||||
@@ -207,9 +208,20 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout',
|
||||
classname: 'btn btn-xs btn-info btn-detailone',
|
||||
extend: 'data-area=\'["85%","85%"]\''
|
||||
},
|
||||
{
|
||||
name: 'edit',
|
||||
text: '编辑',
|
||||
title: function (row) {
|
||||
return '编辑【' + row.name + '】商品档案与规格';
|
||||
},
|
||||
icon: 'fa fa-pencil',
|
||||
classname: 'btn btn-xs btn-success btn-editone',
|
||||
url: 'service/edit',
|
||||
extend: 'data-area=\'["88%","85%"]\''
|
||||
},
|
||||
{
|
||||
name: 'pricing_main',
|
||||
text: '服务与价格配置',
|
||||
text: '定价',
|
||||
title: function (row) {
|
||||
return '配置【' + row.name + '】的服务与价格';
|
||||
},
|
||||
@@ -218,17 +230,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout',
|
||||
url: 'service/pricing_main',
|
||||
extend: 'data-area=\'["92%","88%"]\''
|
||||
},
|
||||
{
|
||||
name: 'edit',
|
||||
text: '编辑商品',
|
||||
title: function (row) {
|
||||
return '编辑【' + row.name + '】商品档案与规格';
|
||||
},
|
||||
icon: 'fa fa-pencil',
|
||||
classname: 'btn btn-xs btn-success btn-dialog btn-editone',
|
||||
url: 'service/edit',
|
||||
extend: 'data-area=\'["88%","85%"]\''
|
||||
},
|
||||
{
|
||||
name: 'gallery',
|
||||
text: '图库',
|
||||
@@ -239,7 +240,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout',
|
||||
classname: 'btn btn-xs btn-info btn-dialog btn-gallery-srv',
|
||||
url: function (row) {
|
||||
return 'service/gallery/index?service_id=' + row.id + '&cat_id=' + row.cat_id;
|
||||
}
|
||||
},
|
||||
dropdown: '更多'
|
||||
},
|
||||
{
|
||||
name: 'del',
|
||||
text: '删除',
|
||||
title: __('Del'),
|
||||
classname: 'btn btn-xs btn-danger btn-delone',
|
||||
extend: 'data-toggle="tooltip" data-container="body"',
|
||||
dropdown: '更多'
|
||||
}
|
||||
],
|
||||
formatter: Table.api.formatter.operate
|
||||
@@ -666,12 +676,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout',
|
||||
// ==================== 3. 商品与规格基础档案编辑 ====================
|
||||
add: function () {
|
||||
Controller.api.bindSpecSimpleEvents();
|
||||
Controller.api.bindFloorFees();
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
},
|
||||
edit: function () {
|
||||
Controller.api.bindSpecSimpleEvents();
|
||||
Controller.api.bindFloorFees();
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
},
|
||||
detail: function () {
|
||||
@@ -820,23 +828,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout',
|
||||
},
|
||||
|
||||
api: {
|
||||
bindFloorFees: function () {
|
||||
var $mode = $('#c-floor_fee_mode');
|
||||
var $fee = $('#c-floor_fee');
|
||||
function syncMode() {
|
||||
var free = $mode.val() === 'free';
|
||||
if (!free && Number($fee.val()) === 0) $fee.val('');
|
||||
$('#floor-fee-paid-fields').prop('hidden', free).find('input').prop('disabled', free);
|
||||
}
|
||||
$mode.on('change', syncMode).closest('form').on('reset', function () {
|
||||
setTimeout(syncMode, 0);
|
||||
});
|
||||
$fee.on('change', function () {
|
||||
if (this.value !== '' && Number(this.value) === 0) {
|
||||
$mode.val('free').trigger('change');
|
||||
}
|
||||
});
|
||||
},
|
||||
bindSpecSimpleEvents: function () {
|
||||
var specIndex = 1000;
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ function assertFloorFee(array $product, array $address, float $expected)
|
||||
assertFloorFee($product, $address, 0.0);
|
||||
|
||||
$product['floor_fee'] = '8.50';
|
||||
assertFloorFee($product, $address, 25.5);
|
||||
assertFloorFee($product, $address, 0.0);
|
||||
|
||||
$product['free_floor'] = 0;
|
||||
assertFloorFee($product, $address, 42.5);
|
||||
assertFloorFee($product, $address, 0.0);
|
||||
|
||||
$address['has_elevator'] = 1;
|
||||
assertFloorFee($product, $address, 0.0);
|
||||
|
||||
@@ -30,12 +30,6 @@
|
||||
<text class="fee-value">¥{{ fmt(addonAmount) }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 楼层上楼费 -->
|
||||
<view class="fee-row" v-if="Number(floorAmount) > 0">
|
||||
<text class="fee-label">步梯搬运费</text>
|
||||
<text class="fee-value">¥{{ fmt(floorAmount) }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 加急费 -->
|
||||
<view class="fee-row" v-if="Number(urgentAmount) > 0">
|
||||
<text class="fee-label">加急服务费</text>
|
||||
|
||||
@@ -188,10 +188,6 @@
|
||||
<text class="k">{{ priceType === 'custom' ? '您的出价' : `商品基础工费 (${goodsGroups.length}组)` }}</text>
|
||||
<text class="v">¥{{ totalGroupBasePrice }}</text>
|
||||
</view>
|
||||
<view class="li" v-if="priceType !== 'custom'">
|
||||
<text class="k">楼层费</text>
|
||||
<text class="v">¥{{ amount.floor_amount }}</text>
|
||||
</view>
|
||||
<view class="li" v-if="priceType !== 'custom' && amount.urgent_amount > 0">
|
||||
<text class="k">加急费</text>
|
||||
<text class="v">¥{{ amount.urgent_amount }}</text>
|
||||
@@ -205,7 +201,7 @@
|
||||
<text class="v big">¥{{ finalPayPrice }}</text>
|
||||
</view>
|
||||
<text class="fee-note" v-if="priceType === 'quote'">先支付参考价,选定师傅报价后按最终报价结算</text>
|
||||
<text class="fee-note" v-if="priceType === 'custom'">自主定价为含楼层/加急的总价,师傅接单即按此价服务</text>
|
||||
<text class="fee-note" v-if="priceType === 'custom'">自主定价为含加急等全部服务的总价,师傅接单即按此价服务</text>
|
||||
</view>
|
||||
|
||||
<view class="bar">
|
||||
@@ -316,10 +312,9 @@
|
||||
if (priceType.value === 'custom') {
|
||||
return Number(userPrice.value) || 0;
|
||||
}
|
||||
const floor = amount.value ? Number(amount.value.floor_amount || 0) : 0;
|
||||
const urg = urgent.value ? Math.round(totalGroupBasePrice.value * 0.2) : 0;
|
||||
const disc = amount.value ? Number(amount.value.discount_amount || 0) : 0;
|
||||
return Math.max(0.01, totalGroupBasePrice.value + floor + urg - disc).toFixed(2);
|
||||
return Math.max(0.01, totalGroupBasePrice.value + urg - disc).toFixed(2);
|
||||
});
|
||||
|
||||
const modes = [
|
||||
@@ -332,7 +327,7 @@
|
||||
|
||||
const modeNote = computed(() => {
|
||||
if (priceType.value === 'quote') return '发布后进入报价大厅,师傅提交报价,您对比价格与评分后选择';
|
||||
if (priceType.value === 'custom') return '填写您愿意支付的总价(含楼层等),师傅认可即可接单';
|
||||
if (priceType.value === 'custom') return '填写您愿意支付的总价,师傅认可即可接单';
|
||||
return '按平台标准一口价结算,抢单后 2 小时内师傅主动联系确认';
|
||||
});
|
||||
|
||||
|
||||
@@ -400,7 +400,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 无电梯步梯层数步进器(实时联动计算步梯搬运费) -->
|
||||
<!-- 无电梯步梯层数步进器(仅作为楼层标签展示给接单师傅,不收取步梯搬运费) -->
|
||||
<view class="form-row" v-if="form.has_elevator === 0">
|
||||
<view class="fr-label">
|
||||
<text class="req-star">*</text>
|
||||
@@ -659,10 +659,6 @@
|
||||
<text class="cfc-label">增项服务费</text>
|
||||
<text class="cfc-val">¥{{ formatMoney(displayAddonAmount) }}</text>
|
||||
</view>
|
||||
<view class="cfc-row" v-if="amount && Number(amount.floor_amount) > 0">
|
||||
<text class="cfc-label">步梯搬运费</text>
|
||||
<text class="cfc-val">¥{{ formatMoney(amount.floor_amount) }}</text>
|
||||
</view>
|
||||
<view class="cfc-row" v-if="isUrgent && amount && Number(amount.urgent_amount) > 0">
|
||||
<text class="cfc-label">加急服务费</text>
|
||||
<text class="cfc-val">¥{{ formatMoney(amount.urgent_amount) }}</text>
|
||||
@@ -2484,9 +2480,6 @@
|
||||
if (priceType.value === 'quote') return '价格待师傅接单报价';
|
||||
if (priceType.value === 'custom') return '自主定价全包服务';
|
||||
const tips = [];
|
||||
if (amount.value && Number(amount.value.floor_amount) > 0) {
|
||||
tips.push(`含步梯搬运费¥${amount.value.floor_amount}`);
|
||||
}
|
||||
if (amount.value && Number(amount.value.discount_amount) > 0) {
|
||||
tips.push(`已优惠¥${amount.value.discount_amount}`);
|
||||
}
|
||||
|
||||
@@ -34,18 +34,10 @@
|
||||
<text class="k">基础费用</text>
|
||||
<text class="v">¥{{ detail.base_price }} / {{ detail.unit || '次' }}</text>
|
||||
</view>
|
||||
<view class="li">
|
||||
<text class="k">楼层搬运</text>
|
||||
<text class="v">{{ detail.floor_fee }} 元/层({{ detail.free_floor }} 层内免费)</text>
|
||||
</view>
|
||||
<view class="li">
|
||||
<view class="li no-border">
|
||||
<text class="k">加急服务</text>
|
||||
<text class="v">基础价 20%</text>
|
||||
</view>
|
||||
<view class="li no-border">
|
||||
<text class="k">电梯说明</text>
|
||||
<text class="v">无电梯超免楼层按楼层费计收</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card">
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
<view class="assets-box">
|
||||
<view class="asset-top">
|
||||
<text class="asset-title">可提现工钱(元)</text>
|
||||
<view class="bill-link clickable-hover" @tap="go('/pages/master/wallet')">
|
||||
<view class="bill-link clickable-hover" @tap="go('/pages/master/bills')">
|
||||
<text class="bill-txt">账单明细</text>
|
||||
<image class="arrow-ico" src="/static/icons/arrow-right-white.svg" mode="aspectFit" />
|
||||
</view>
|
||||
|
||||
@@ -87,6 +87,15 @@
|
||||
"disableScroll": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/master/bills",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"backgroundColor": "#F5F6F8",
|
||||
"enablePullDownRefresh": false,
|
||||
"disableScroll": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/master/credit",
|
||||
"style": { "navigationStyle": "custom", "backgroundColor": "#F5F6F8" }
|
||||
|
||||
@@ -0,0 +1,746 @@
|
||||
<template>
|
||||
<view class="bills-page">
|
||||
<YjyfNavBar theme="white" title="收支账单明细" :border="true" :fixed="true" :placeholder="true" />
|
||||
|
||||
<!-- 吸顶分类 Tabs -->
|
||||
<view class="tabs-header">
|
||||
<view
|
||||
class="tab-item clickable-hover"
|
||||
:class="{ active: filterType === 'all' }"
|
||||
@tap="switchTab('all')"
|
||||
>
|
||||
<text class="tab-label">全部</text>
|
||||
<view class="tab-indicator" v-if="filterType === 'all'"></view>
|
||||
</view>
|
||||
<view
|
||||
class="tab-item clickable-hover"
|
||||
:class="{ active: filterType === 'settle' }"
|
||||
@tap="switchTab('settle')"
|
||||
>
|
||||
<text class="tab-label">结算</text>
|
||||
<view class="tab-indicator" v-if="filterType === 'settle'"></view>
|
||||
</view>
|
||||
<view
|
||||
class="tab-item clickable-hover"
|
||||
:class="{ active: filterType === 'withdraw' }"
|
||||
@tap="switchTab('withdraw')"
|
||||
>
|
||||
<view class="tab-label-wrap">
|
||||
<text class="tab-label">提现记录</text>
|
||||
<text class="tab-badge" v-if="pendingConfirmList.length > 0">{{ pendingConfirmList.length }}</text>
|
||||
</view>
|
||||
<view class="tab-indicator" v-if="filterType === 'withdraw'"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 待确认收款提醒横幅(仅在提现记录 Tab 下展示,避免跨页与跨 Tab 重复占屏) -->
|
||||
<view class="receive-banner" v-if="filterType === 'withdraw' && pendingConfirmList.length > 0">
|
||||
<image class="receive-ico" src="/static/icons/transfer-receive.svg" mode="aspectFit" />
|
||||
<view class="receive-main">
|
||||
<text class="receive-title">
|
||||
{{ pendingConfirmList.length > 1
|
||||
? `${pendingConfirmList.length} 笔提现审核已通过,待确认收款`
|
||||
: `提现审核已通过 · 实到 ¥${formatMoney(pendingConfirmList[0].arrive_amount)}` }}
|
||||
</text>
|
||||
<text class="receive-sub">点击右侧按钮确认收款,资金即时入账</text>
|
||||
</view>
|
||||
<view
|
||||
class="receive-btn clickable-hover"
|
||||
:class="{ disabled: confirmingId > 0 }"
|
||||
@tap="handleConfirmReceive(pendingConfirmList[0])"
|
||||
>
|
||||
{{ confirmingId === pendingConfirmList[0].id ? '调起中...' : '确认收款' }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 独立滚动视口 -->
|
||||
<scroll-view
|
||||
class="bills-scroll"
|
||||
scroll-y
|
||||
:refresher-enabled="true"
|
||||
:refresher-triggered="refreshing"
|
||||
@refresherrefresh="onRefresh"
|
||||
>
|
||||
<!-- 提现记录视图 -->
|
||||
<template v-if="filterType === 'withdraw'">
|
||||
<view class="list-panel" v-if="withdrawList.length > 0">
|
||||
<view
|
||||
class="log-row clickable-hover"
|
||||
v-for="w in withdrawList"
|
||||
:key="w.id"
|
||||
@tap="openWithdrawDetail(w)"
|
||||
>
|
||||
<image class="wd-row-ico" src="/static/icons/withdraw-record.svg" mode="aspectFit" />
|
||||
<view class="log-main">
|
||||
<view class="log-title-line">
|
||||
<text class="log-type">{{ w.channel === 'bank' ? '提现至银行卡' : '提现至微信零钱' }}</text>
|
||||
<text class="wd-status-tag" :class="withdrawStatusClass(w)">{{ w.status_text }}</text>
|
||||
</view>
|
||||
<text class="log-remark">
|
||||
实到 ¥{{ formatMoney(w.arrive_amount) }}{{ Number(w.fee) > 0 ? ` · 手续费 ¥${formatMoney(w.fee)}` : ' · 免手续费' }}
|
||||
</text>
|
||||
<text class="wd-fail-txt" v-if="w.fail_reason || (w.status === 'reject' && w.audit_msg)">
|
||||
原因:{{ w.fail_reason || w.audit_msg }}
|
||||
</text>
|
||||
<text class="log-time">{{ w.time_text || fullTimeText(w.createtime) }}</text>
|
||||
</view>
|
||||
<view class="log-right">
|
||||
<view class="log-amt-wrap">
|
||||
<text class="log-amt minus">-{{ formatMoney(w.amount) }}</text>
|
||||
<view
|
||||
v-if="w.can_confirm"
|
||||
class="wd-confirm-pill clickable-hover"
|
||||
:class="{ disabled: confirmingId > 0 }"
|
||||
@tap.stop="handleConfirmReceive(w)"
|
||||
>
|
||||
{{ confirmingId === w.id ? '调起中...' : '确认收款' }}
|
||||
</view>
|
||||
<text class="log-bal" v-else>{{ w.transfer_state_text || w.status_text }}</text>
|
||||
</view>
|
||||
<image v-if="!w.can_confirm" class="row-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="empty-box" v-else-if="!loading">
|
||||
<image class="empty-img" src="/static/icons/empty-orders.svg" mode="aspectFit" />
|
||||
<text class="empty-txt">暂无提现申请记录</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<!-- 钱包收支流水视图 -->
|
||||
<template v-else>
|
||||
<view class="list-panel" v-if="filteredLogs.length > 0">
|
||||
<view
|
||||
class="log-row clickable-hover"
|
||||
v-for="l in filteredLogs"
|
||||
:key="l.id || l.createtime"
|
||||
@tap="openLogDetail(l)"
|
||||
>
|
||||
<view class="log-main">
|
||||
<view class="log-title-line">
|
||||
<text class="log-type">{{ logTypeText(l.type) }}</text>
|
||||
<text class="log-order-tag" v-if="Number(l.order_id) > 0">关联工单</text>
|
||||
</view>
|
||||
<text class="log-remark">{{ l.remark || '账单收支变动' }}</text>
|
||||
<text class="log-time">{{ fullTimeText(l.createtime) }}</text>
|
||||
</view>
|
||||
<view class="log-right">
|
||||
<view class="log-amt-wrap">
|
||||
<text class="log-amt" :class="{ minus: Number(l.amount) < 0 }">
|
||||
{{ Number(l.amount) > 0 ? '+' : '' }}{{ formatMoney(l.amount) }}
|
||||
</text>
|
||||
<text class="log-bal">余额 ¥{{ formatMoney(l.balance) }}</text>
|
||||
</view>
|
||||
<image class="row-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="empty-box" v-else-if="!loading">
|
||||
<image class="empty-img" src="/static/icons/empty-orders.svg" mode="aspectFit" />
|
||||
<text class="empty-txt">暂无对应账单明细</text>
|
||||
</view>
|
||||
</template>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 提现单详情半屏抽屉 -->
|
||||
<view class="drawer-mask" v-if="activeWithdraw" @tap="activeWithdraw = null">
|
||||
<view class="drawer-panel" @tap.stop>
|
||||
<view class="drawer-head">
|
||||
<text class="drawer-title">提现单详情</text>
|
||||
<view class="drawer-close" @tap="activeWithdraw = null">
|
||||
<image class="close-ico" src="/static/icons/close.svg" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="detail-hero">
|
||||
<text class="dh-type">{{ activeWithdraw.status_text }}</text>
|
||||
<text class="dh-amt minus">-¥{{ formatMoney(activeWithdraw.amount) }}</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-cells">
|
||||
<view class="d-cell">
|
||||
<text class="d-lab">实际到账净额</text>
|
||||
<text class="d-val highlight">¥{{ formatMoney(activeWithdraw.arrive_amount) }}</text>
|
||||
</view>
|
||||
<view class="d-cell">
|
||||
<text class="d-lab">手续费</text>
|
||||
<text class="d-val">¥{{ formatMoney(activeWithdraw.fee) }}</text>
|
||||
</view>
|
||||
<view class="d-cell">
|
||||
<text class="d-lab">收款方式</text>
|
||||
<text class="d-val">{{ activeWithdraw.channel === 'bank' ? '银行卡' : '微信零钱(商家转账)' }}</text>
|
||||
</view>
|
||||
<view class="d-cell">
|
||||
<text class="d-lab">申请时间</text>
|
||||
<text class="d-val">{{ activeWithdraw.time_text || fullTimeText(activeWithdraw.createtime) }}</text>
|
||||
</view>
|
||||
<view class="d-cell" v-if="activeWithdraw.confirm_time > 0">
|
||||
<text class="d-lab">到账时间</text>
|
||||
<text class="d-val">{{ fullTimeText(activeWithdraw.confirm_time) }}</text>
|
||||
</view>
|
||||
<view class="d-cell" v-if="activeWithdraw.out_bill_no">
|
||||
<text class="d-lab">转账单号</text>
|
||||
<text class="d-val">{{ activeWithdraw.out_bill_no }}</text>
|
||||
</view>
|
||||
<view class="d-cell" v-if="activeWithdraw.fail_reason || activeWithdraw.audit_msg">
|
||||
<text class="d-lab">处理说明</text>
|
||||
<text class="d-val multi">{{ activeWithdraw.fail_reason || activeWithdraw.audit_msg }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view
|
||||
v-if="activeWithdraw.can_confirm"
|
||||
class="drawer-submit clickable-hover"
|
||||
:class="{ disabled: confirmingId > 0 }"
|
||||
@tap="handleConfirmReceive(activeWithdraw, true)"
|
||||
>
|
||||
{{ confirmingId === activeWithdraw.id ? '正在调起确认收款...' : '确认收款入账微信零钱' }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 账单流水详情半屏抽屉 -->
|
||||
<view class="drawer-mask" v-if="activeLog" @tap="activeLog = null">
|
||||
<view class="drawer-panel" @tap.stop>
|
||||
<view class="drawer-head">
|
||||
<text class="drawer-title">账单流水详情</text>
|
||||
<view class="drawer-close" @tap="activeLog = null">
|
||||
<image class="close-ico" src="/static/icons/close.svg" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="detail-hero">
|
||||
<text class="dh-type">{{ logTypeText(activeLog.type) }}</text>
|
||||
<text class="dh-amt" :class="{ minus: Number(activeLog.amount) < 0 }">
|
||||
{{ Number(activeLog.amount) > 0 ? '+' : '' }}{{ formatMoney(activeLog.amount) }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="detail-cells">
|
||||
<view class="d-cell">
|
||||
<text class="d-lab">变动后余额</text>
|
||||
<text class="d-val">¥{{ formatMoney(activeLog.balance) }}</text>
|
||||
</view>
|
||||
<view class="d-cell">
|
||||
<text class="d-lab">发生时间</text>
|
||||
<text class="d-val">{{ fullTimeText(activeLog.createtime) }}</text>
|
||||
</view>
|
||||
<view class="d-cell" v-if="activeLog.id">
|
||||
<text class="d-lab">流水编号</text>
|
||||
<text class="d-val">#{{ activeLog.id }}</text>
|
||||
</view>
|
||||
<view class="d-cell">
|
||||
<text class="d-lab">明细说明</text>
|
||||
<text class="d-val multi">{{ activeLog.remark || '-' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view
|
||||
v-if="Number(activeLog.order_id) > 0"
|
||||
class="drawer-submit clickable-hover"
|
||||
@tap="goOrderDetail(activeLog.order_id)"
|
||||
>
|
||||
查看关联工单详情
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed } from 'vue';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
import api from '@/utils/api.js';
|
||||
import { invokeMerchantTransferConfirm } from '@/utils/pay.js';
|
||||
|
||||
const filterType = ref('all');
|
||||
const logs = ref([]);
|
||||
const withdrawList = ref([]);
|
||||
const pendingConfirmList = ref([]);
|
||||
const loading = ref(true);
|
||||
const refreshing = ref(false);
|
||||
const confirmingId = ref(0);
|
||||
const activeLog = ref(null);
|
||||
const activeWithdraw = ref(null);
|
||||
|
||||
const filteredLogs = computed(() => {
|
||||
if (filterType.value === 'all') return logs.value;
|
||||
return logs.value.filter(l => l.type === filterType.value);
|
||||
});
|
||||
|
||||
function formatMoney(v) {
|
||||
const num = Number(v || 0);
|
||||
return Number.isFinite(num) ? num.toFixed(2) : '0.00';
|
||||
}
|
||||
|
||||
function logTypeText(t) {
|
||||
return { settle: '工单结算入账', withdraw: '提现变动', income: '奖励补贴入账', refund: '退款扣减' }[t] || '收支变动';
|
||||
}
|
||||
|
||||
function withdrawStatusClass(w) {
|
||||
if (!w) return 'st-wait';
|
||||
if (w.can_confirm) return 'st-confirm';
|
||||
if (w.status === 'done') return 'st-done';
|
||||
if (w.status === 'reject') return 'st-reject';
|
||||
return 'st-wait';
|
||||
}
|
||||
|
||||
function fullTimeText(ts) {
|
||||
if (!ts) return '';
|
||||
const d = new Date(Number(ts) * 1000);
|
||||
const p = (n) => (n < 10 ? '0' + n : n);
|
||||
return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}`;
|
||||
}
|
||||
|
||||
function switchTab(tab) {
|
||||
filterType.value = tab;
|
||||
}
|
||||
|
||||
async function load() {
|
||||
try {
|
||||
const res = await api.masterIncome();
|
||||
logs.value = res.logs || [];
|
||||
withdrawList.value = res.withdraw_list || [];
|
||||
pendingConfirmList.value = res.pending_confirm_withdraws || [];
|
||||
if (activeWithdraw.value) {
|
||||
const refreshed = withdrawList.value.find(item => item.id === activeWithdraw.value.id);
|
||||
activeWithdraw.value = refreshed || null;
|
||||
}
|
||||
} catch (e) {
|
||||
} finally {
|
||||
loading.value = false;
|
||||
refreshing.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
async function onRefresh() {
|
||||
refreshing.value = true;
|
||||
await load();
|
||||
}
|
||||
|
||||
async function handleConfirmReceive(item, closeDrawerOnDone = false) {
|
||||
if (!item || !item.id || confirmingId.value > 0) return;
|
||||
confirmingId.value = item.id;
|
||||
try {
|
||||
const res = await invokeMerchantTransferConfirm(item.id);
|
||||
if (closeDrawerOnDone && res && res.done) {
|
||||
activeWithdraw.value = null;
|
||||
}
|
||||
await load();
|
||||
} catch (e) {
|
||||
if (e && e.code === undefined && !e.handledToast && e.message) {
|
||||
uni.showToast({ title: e.message, icon: 'none' });
|
||||
}
|
||||
await load();
|
||||
} finally {
|
||||
confirmingId.value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function openLogDetail(item) {
|
||||
activeLog.value = item;
|
||||
}
|
||||
|
||||
function openWithdrawDetail(item) {
|
||||
activeWithdraw.value = item;
|
||||
}
|
||||
|
||||
function goOrderDetail(orderId) {
|
||||
activeLog.value = null;
|
||||
uni.navigateTo({ url: `/pages/master/detail?id=${orderId}` });
|
||||
}
|
||||
|
||||
onLoad((options) => {
|
||||
const tab = options && options.tab;
|
||||
if (tab === 'all' || tab === 'settle' || tab === 'withdraw') {
|
||||
filterType.value = tab;
|
||||
}
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
load();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bills-page {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background: $yjyf-bg-page;
|
||||
}
|
||||
|
||||
.tabs-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: $yjyf-bg-card;
|
||||
border-bottom: 1rpx solid $yjyf-border-color;
|
||||
padding: 0 $yjyf-space-md;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tab-item {
|
||||
flex: 1;
|
||||
height: 88rpx;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.tab-label-wrap {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
}
|
||||
.tab-label {
|
||||
font-size: $yjyf-font-body;
|
||||
color: $yjyf-text-secondary;
|
||||
font-weight: 500;
|
||||
}
|
||||
.tab-item.active .tab-label {
|
||||
color: $yjyf-primary;
|
||||
font-weight: 700;
|
||||
}
|
||||
.tab-badge {
|
||||
min-width: 30rpx;
|
||||
height: 30rpx;
|
||||
padding: 0 8rpx;
|
||||
border-radius: $yjyf-radius-pill;
|
||||
background: $yjyf-success;
|
||||
color: $yjyf-bg-card;
|
||||
font-size: $yjyf-font-micro;
|
||||
font-weight: 700;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.tab-indicator {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 48rpx;
|
||||
height: 6rpx;
|
||||
border-radius: 3rpx;
|
||||
background: $yjyf-primary;
|
||||
}
|
||||
|
||||
.receive-banner {
|
||||
margin: 20rpx $yjyf-space-md 0;
|
||||
padding: 20rpx 22rpx;
|
||||
background: $yjyf-bg-card;
|
||||
border: 2rpx solid rgba($yjyf-success, 0.3);
|
||||
border-radius: $yjyf-radius-md;
|
||||
box-shadow: $yjyf-shadow-card;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.receive-ico {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
margin-right: 16rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.receive-main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-right: 16rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.receive-title {
|
||||
font-size: $yjyf-font-body;
|
||||
font-weight: 700;
|
||||
color: $yjyf-text-main;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.receive-sub {
|
||||
margin-top: 4rpx;
|
||||
font-size: $yjyf-font-micro;
|
||||
color: $yjyf-text-secondary;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.receive-btn {
|
||||
height: 60rpx;
|
||||
padding: 0 24rpx;
|
||||
border-radius: $yjyf-radius-pill;
|
||||
background: $yjyf-success;
|
||||
color: $yjyf-bg-card;
|
||||
font-size: $yjyf-font-sub;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.receive-btn.disabled {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.bills-scroll {
|
||||
flex: 1;
|
||||
height: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.list-panel {
|
||||
margin: 20rpx $yjyf-space-md 48rpx;
|
||||
padding: 0 $yjyf-space-md;
|
||||
background: $yjyf-bg-card;
|
||||
border-radius: $yjyf-radius-md;
|
||||
box-shadow: $yjyf-shadow-card;
|
||||
}
|
||||
|
||||
.wd-row-ico {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
margin-right: 16rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.wd-status-tag {
|
||||
height: 36rpx;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 8rpx;
|
||||
font-size: $yjyf-font-micro;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wd-status-tag.st-confirm {
|
||||
background: rgba($yjyf-success, 0.12);
|
||||
color: $yjyf-success;
|
||||
}
|
||||
.wd-status-tag.st-done {
|
||||
background: $yjyf-bg-page;
|
||||
color: $yjyf-text-secondary;
|
||||
}
|
||||
.wd-status-tag.st-reject {
|
||||
background: rgba($yjyf-danger, 0.1);
|
||||
color: $yjyf-danger;
|
||||
}
|
||||
.wd-status-tag.st-wait {
|
||||
background: rgba($yjyf-warning, 0.14);
|
||||
color: $yjyf-warning;
|
||||
}
|
||||
.wd-fail-txt {
|
||||
margin-top: 6rpx;
|
||||
font-size: $yjyf-font-micro;
|
||||
color: $yjyf-danger;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.wd-confirm-pill {
|
||||
margin-top: 10rpx;
|
||||
height: 48rpx;
|
||||
padding: 0 20rpx;
|
||||
border-radius: $yjyf-radius-pill;
|
||||
background: $yjyf-success;
|
||||
color: $yjyf-bg-card;
|
||||
font-size: $yjyf-font-micro;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.wd-confirm-pill.disabled {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.log-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 24rpx 0;
|
||||
border-bottom: 1rpx solid $yjyf-border-color;
|
||||
}
|
||||
.log-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.log-main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-right: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.log-title-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
}
|
||||
.log-type {
|
||||
font-size: $yjyf-font-body;
|
||||
font-weight: 600;
|
||||
color: $yjyf-text-main;
|
||||
}
|
||||
.log-order-tag {
|
||||
height: 36rpx;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 8rpx;
|
||||
background: $yjyf-primary-bg;
|
||||
color: $yjyf-primary;
|
||||
font-size: $yjyf-font-micro;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
.log-remark {
|
||||
margin-top: 8rpx;
|
||||
font-size: $yjyf-font-sub;
|
||||
color: $yjyf-text-secondary;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.log-time {
|
||||
margin-top: 6rpx;
|
||||
font-size: $yjyf-font-micro;
|
||||
color: $yjyf-text-muted;
|
||||
}
|
||||
.log-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.log-amt-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
}
|
||||
.log-amt {
|
||||
font-size: $yjyf-font-title;
|
||||
font-weight: 700;
|
||||
color: $yjyf-success;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.log-amt.minus {
|
||||
color: $yjyf-danger;
|
||||
}
|
||||
.log-bal {
|
||||
margin-top: 6rpx;
|
||||
font-size: $yjyf-font-micro;
|
||||
color: $yjyf-text-muted;
|
||||
}
|
||||
.row-arrow {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
margin-left: 12rpx;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.empty-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 120rpx 0 60rpx;
|
||||
}
|
||||
.empty-img {
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.empty-txt {
|
||||
font-size: $yjyf-font-sub;
|
||||
color: $yjyf-text-secondary;
|
||||
}
|
||||
|
||||
.drawer-mask {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 900;
|
||||
background: rgba(0, 0, 0, 0.48);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.drawer-panel {
|
||||
background: $yjyf-bg-card;
|
||||
border-radius: 28rpx 28rpx 0 0;
|
||||
padding: 28rpx $yjyf-space-lg calc(32rpx + env(safe-area-inset-bottom));
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.drawer-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
.drawer-title {
|
||||
font-size: $yjyf-font-title;
|
||||
font-weight: 700;
|
||||
color: $yjyf-text-main;
|
||||
}
|
||||
.drawer-close {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.close-ico {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
}
|
||||
.detail-hero {
|
||||
padding: 24rpx 0 28rpx;
|
||||
border-bottom: 1rpx solid $yjyf-border-color;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.dh-type {
|
||||
font-size: $yjyf-font-sub;
|
||||
color: $yjyf-text-secondary;
|
||||
}
|
||||
.dh-amt {
|
||||
margin-top: 12rpx;
|
||||
font-size: 56rpx;
|
||||
font-weight: 700;
|
||||
color: $yjyf-success;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.dh-amt.minus {
|
||||
color: $yjyf-danger;
|
||||
}
|
||||
.detail-cells {
|
||||
padding: 16rpx 0;
|
||||
}
|
||||
.d-cell {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 16rpx 0;
|
||||
}
|
||||
.d-lab {
|
||||
font-size: $yjyf-font-sub;
|
||||
color: $yjyf-text-secondary;
|
||||
flex-shrink: 0;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
.d-val {
|
||||
font-size: $yjyf-font-sub;
|
||||
color: $yjyf-text-main;
|
||||
font-weight: 500;
|
||||
text-align: right;
|
||||
}
|
||||
.d-val.multi {
|
||||
line-height: 1.5;
|
||||
}
|
||||
.d-val.highlight {
|
||||
color: $yjyf-success;
|
||||
font-weight: 700;
|
||||
}
|
||||
.drawer-submit {
|
||||
margin-top: 28rpx;
|
||||
height: 88rpx;
|
||||
border-radius: $yjyf-radius-pill;
|
||||
background: $yjyf-gradient-primary;
|
||||
color: $yjyf-bg-card;
|
||||
font-size: $yjyf-font-body;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: $yjyf-shadow-card;
|
||||
}
|
||||
.drawer-submit.disabled {
|
||||
opacity: 0.55;
|
||||
}
|
||||
</style>
|
||||
@@ -95,7 +95,7 @@
|
||||
</view>
|
||||
<view class="meta-pills">
|
||||
<text class="m-pill">楼层 {{ order.floor || 1 }} 层</text>
|
||||
<text class="m-pill">{{ Number(order.has_elevator) ? '有电梯' : '步梯搬运' }}</text>
|
||||
<text class="m-pill">{{ Number(order.has_elevator) ? '有电梯' : '步梯无电梯' }}</text>
|
||||
<text class="m-pill" v-if="order.distance_km !== null && order.distance_km !== undefined">距您 {{ order.distance_km }}km</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
文件差异内容过多而无法显示
加载差异
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="48" height="48" fill="none">
|
||||
<rect x="2" y="2" width="20" height="20" rx="6" fill="#FFF7F0"/>
|
||||
<rect x="7" y="6" width="10" height="12" rx="1.8" stroke="#F0710D" stroke-width="1.7"/>
|
||||
<path d="M9.5 10H14.5" stroke="#F0710D" stroke-width="1.7" stroke-linecap="round"/>
|
||||
<path d="M9.5 13H14.5" stroke="#F0710D" stroke-width="1.7" stroke-linecap="round"/>
|
||||
<path d="M9.5 15.6H12.5" stroke="#F0710D" stroke-width="1.7" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
之后 宽度: | 高度: | 大小: 520 B |
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="48" height="48" fill="none">
|
||||
<rect x="2" y="2" width="20" height="20" rx="6" fill="#FFF7F0"/>
|
||||
<path d="M7.5 13V11.5C7.5 9.01 9.51 7 12 7C14.49 7 16.5 9.01 16.5 11.5V13" stroke="#F0710D" stroke-width="1.7" stroke-linecap="round"/>
|
||||
<rect x="6" y="12" width="2.5" height="4" rx="1.2" stroke="#F0710D" stroke-width="1.6"/>
|
||||
<rect x="15.5" y="12" width="2.5" height="4" rx="1.2" stroke="#F0710D" stroke-width="1.6"/>
|
||||
<path d="M16.5 16C16.5 17.2 15.2 17.8 13 17.8" stroke="#F0710D" stroke-width="1.6" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
之后 宽度: | 高度: | 大小: 603 B |
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="48" height="48" fill="none">
|
||||
<rect x="2" y="2" width="20" height="20" rx="6" fill="#FFF7F0"/>
|
||||
<circle cx="12" cy="12" r="5.5" stroke="#F0710D" stroke-width="1.7"/>
|
||||
<path d="M12 9V12.2L14 13.4" stroke="#F0710D" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
之后 宽度: | 高度: | 大小: 358 B |
在新工单中引用
屏蔽一个用户