feat: 完善协议管理、师傅资质认证、分账配置并完成测试环境全量部署与同步
这个提交包含在:
@@ -0,0 +1,516 @@
|
||||
<style>
|
||||
.ag-tabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
.ag-tabs > li > a {
|
||||
font-weight: 600;
|
||||
color: #4b5563;
|
||||
}
|
||||
.ag-tabs > li.active > a {
|
||||
color: #f0710d !important;
|
||||
}
|
||||
.ag-tab-badge {
|
||||
display: inline-block;
|
||||
margin-left: 6px;
|
||||
padding: 1px 6px;
|
||||
border-radius: 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
background: #fff7ed;
|
||||
color: #ea580c;
|
||||
border: 1px solid #fed7aa;
|
||||
}
|
||||
.ag-tab-badge.is-hidden {
|
||||
background: #f3f4f6;
|
||||
color: #6b7280;
|
||||
border-color: #d1d5db;
|
||||
}
|
||||
|
||||
.ag-meta-banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 10px 14px;
|
||||
margin-bottom: 16px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-left: 3px solid #f0710d;
|
||||
border-radius: 6px;
|
||||
font-size: 13px;
|
||||
color: #475569;
|
||||
}
|
||||
.ag-meta-time {
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
}
|
||||
.ag-dirty-pill {
|
||||
display: none;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
font-size: 11px;
|
||||
background: #fef3c7;
|
||||
color: #b45309;
|
||||
font-weight: 600;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ag-dirty-pill.is-visible {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.ag-editor-wrap {
|
||||
border: 1px solid #d2d6de;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
transition: border-color 0.15s ease;
|
||||
}
|
||||
.ag-editor-wrap:focus-within {
|
||||
border-color: #f0710d;
|
||||
}
|
||||
.ag-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
padding: 8px 10px;
|
||||
background: #f8fafc;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
.ag-tool-groups {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.ag-tool-sep {
|
||||
width: 1px;
|
||||
height: 18px;
|
||||
background: #cbd5e1;
|
||||
margin: 0 4px;
|
||||
}
|
||||
.ag-tool-btn {
|
||||
height: 28px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 4px;
|
||||
background: #ffffff;
|
||||
color: #334155;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 26px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.ag-tool-btn:hover {
|
||||
background: #fff7ed;
|
||||
border-color: #fdba74;
|
||||
color: #ea580c;
|
||||
}
|
||||
.ag-tool-btn.is-active {
|
||||
background: #f0710d;
|
||||
border-color: #f0710d;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.ag-editor-surface {
|
||||
min-height: 430px;
|
||||
max-height: 600px;
|
||||
overflow-y: auto;
|
||||
padding: 16px 18px;
|
||||
font-size: 14px;
|
||||
line-height: 1.75;
|
||||
color: #334155;
|
||||
outline: none;
|
||||
background: #ffffff;
|
||||
}
|
||||
.ag-editor-surface h2 {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: #1f1f1f;
|
||||
margin: 18px 0 10px;
|
||||
}
|
||||
.ag-editor-surface h3 {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: #1f1f1f;
|
||||
margin: 14px 0 8px;
|
||||
}
|
||||
.ag-editor-surface p {
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.ag-editor-surface ul,
|
||||
.ag-editor-surface ol {
|
||||
padding-left: 22px;
|
||||
margin: 8px 0 12px;
|
||||
}
|
||||
.ag-editor-surface blockquote {
|
||||
margin: 10px 0;
|
||||
padding: 10px 14px;
|
||||
background: #fff7f0;
|
||||
border-left: 3px solid #f0710d;
|
||||
color: #444444;
|
||||
font-size: 13.5px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
}
|
||||
.ag-source-textarea {
|
||||
min-height: 430px;
|
||||
max-height: 600px;
|
||||
border: none !important;
|
||||
border-radius: 0 !important;
|
||||
font-family: Consolas, Monaco, "Courier New", monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
resize: vertical;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.ag-submit-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: 18px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid #eef0f3;
|
||||
}
|
||||
.ag-btn-primary {
|
||||
background: #f0710d;
|
||||
border-color: #f0710d;
|
||||
color: #ffffff;
|
||||
}
|
||||
.ag-btn-primary:hover,
|
||||
.ag-btn-primary:focus {
|
||||
background: #d96207;
|
||||
border-color: #d96207;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* 右侧小程序实时预览模拟框 */
|
||||
.ag-preview-card {
|
||||
background: #f5f6f8;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
padding: 14px;
|
||||
}
|
||||
.ag-preview-caption {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 12.5px;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
}
|
||||
.ag-preview-mode-group {
|
||||
display: inline-flex;
|
||||
border: 1px solid #cbd5e1;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
}
|
||||
.ag-preview-mode-btn {
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 3px 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ag-preview-mode-btn.is-active {
|
||||
background: #fff7ed;
|
||||
color: #f0710d;
|
||||
font-weight: 600;
|
||||
}
|
||||
.ag-phone-diff-tip {
|
||||
display: none;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 10px;
|
||||
margin-bottom: 10px;
|
||||
background: #fff7f0;
|
||||
border: 1px solid #fed7aa;
|
||||
border-radius: 8px;
|
||||
font-size: 12px;
|
||||
color: #9a3412;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.ag-phone-diff-tip.is-visible {
|
||||
display: flex;
|
||||
}
|
||||
.ag-phone-diff-swatch {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 3px;
|
||||
background: #ffe2b0;
|
||||
border: 1px solid #fdba74;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.ag-phone-frame {
|
||||
background: #f5f6f8;
|
||||
border: 1px solid #cbd5e1;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
.ag-phone-topbar {
|
||||
height: 44px;
|
||||
background: #ffffff;
|
||||
border-bottom: 1px solid #f0f0f2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
padding: 0 44px;
|
||||
}
|
||||
.ag-phone-back {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
color: #1f1f1f;
|
||||
font-size: 15px;
|
||||
}
|
||||
.ag-phone-nav-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1f1f1f;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ag-phone-body {
|
||||
height: 540px;
|
||||
overflow-y: auto;
|
||||
padding: 12px;
|
||||
}
|
||||
.ag-phone-doc-head {
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
padding: 14px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.ag-phone-doc-title {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: #1f1f1f;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.ag-phone-doc-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 12px;
|
||||
color: #888888;
|
||||
}
|
||||
.ag-phone-ver-pill {
|
||||
background: #fff7f0;
|
||||
color: #f0710d;
|
||||
border: 1px solid rgba(240, 113, 13, 0.24);
|
||||
padding: 1px 8px;
|
||||
border-radius: 999px;
|
||||
font-weight: 600;
|
||||
font-size: 11px;
|
||||
}
|
||||
.ag-phone-doc-content {
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
padding: 14px;
|
||||
font-size: 13.5px;
|
||||
line-height: 1.75;
|
||||
color: #444444;
|
||||
word-break: break-word;
|
||||
}
|
||||
.ag-phone-doc-content h2 {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #1f1f1f;
|
||||
margin: 14px 0 8px;
|
||||
}
|
||||
.ag-phone-doc-content h3 {
|
||||
font-size: 14.5px;
|
||||
font-weight: 700;
|
||||
color: #1f1f1f;
|
||||
margin: 12px 0 6px;
|
||||
}
|
||||
.ag-phone-doc-content h2:first-child,
|
||||
.ag-phone-doc-content h3:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.ag-phone-doc-content p {
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.ag-phone-doc-content ul,
|
||||
.ag-phone-doc-content ol {
|
||||
padding-left: 18px;
|
||||
margin: 6px 0 10px;
|
||||
}
|
||||
.ag-phone-doc-content blockquote {
|
||||
margin: 10px 0;
|
||||
padding: 8px 12px;
|
||||
background: #fff7f0;
|
||||
border-left: 3px solid #f0710d;
|
||||
color: #444444;
|
||||
font-size: 13px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="panel panel-default panel-intro">
|
||||
<div class="panel-heading">
|
||||
{:build_heading(null, FALSE)}
|
||||
<ul class="nav nav-tabs ag-tabs" id="ag-tabs">
|
||||
{foreach $agreements as $idx => $ag}
|
||||
<li class="{$idx === 0 ? 'active' : ''}" data-code="{$ag.code|htmlentities}">
|
||||
<a href="javascript:;" class="js-ag-tab" data-code="{$ag.code|htmlentities}">
|
||||
<i class="fa fa-file-text-o"></i> {$ag.tab_name|htmlentities}
|
||||
{if $ag.status === 'hidden'}
|
||||
<span class="ag-tab-badge is-hidden">已停用</span>
|
||||
{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<!-- 左侧编辑表单 -->
|
||||
<div class="col-xs-12 col-md-7">
|
||||
<div class="ag-meta-banner">
|
||||
<div>
|
||||
<i class="fa fa-info-circle text-warning"></i>
|
||||
<span id="ag-scene-desc"></span>
|
||||
<span id="ag-dirty-pill" class="ag-dirty-pill">有未保存修改</span>
|
||||
</div>
|
||||
<div class="ag-meta-time">
|
||||
编码:<code id="ag-code-label"></code> · 修订 #<span id="ag-revision-num">1</span> · 最近更新:<span id="ag-update-time"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="agreement-form" class="form-horizontal" role="form" method="POST" action="{:url('agreement/save')}">
|
||||
{:token()}
|
||||
<input type="hidden" id="ag-input-code" name="code" value="">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">协议标题:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<input type="text" id="ag-input-title" name="row[title]" maxlength="100" class="form-control" placeholder="请输入协议展示标题,如:优匠优服用户服务协议" {if !$canSave}readonly{/if}>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">版本与日期:</label>
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">版本</span>
|
||||
<input type="text" id="ag-input-version" name="row[version]" maxlength="32" class="form-control" placeholder="如 v1.0" {if !$canSave}readonly{/if}>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">生效日期</span>
|
||||
<input type="date" id="ag-input-effective" name="row[effective_date]" class="form-control" {if !$canSave}readonly{/if}>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ag-status-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">展示状态:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="row[status]" value="normal" {if !$canSave}disabled{/if}> 正常展示</label>
|
||||
<label style="margin-left:16px;"><input type="radio" name="row[status]" value="hidden" id="ag-status-hidden" {if !$canSave}disabled{/if}> 暂不展示</label>
|
||||
</div>
|
||||
<span class="help-block" id="ag-core-tip" style="margin:4px 0 0;font-size:12px;color:#64748b;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">协议正文:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="ag-editor-wrap">
|
||||
<div class="ag-toolbar">
|
||||
<div class="ag-tool-groups" id="ag-toolbar-btns">
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="formatBlock" data-val="H2" title="一级章节标题">章节 H2</button>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="formatBlock" data-val="H3" title="二级小节标题">小节 H3</button>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="formatBlock" data-val="P" title="正文段落">正文</button>
|
||||
<span class="ag-tool-sep"></span>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="bold" title="加粗"><i class="fa fa-bold"></i></button>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="italic" title="斜体"><i class="fa fa-italic"></i></button>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="underline" title="下划线"><i class="fa fa-underline"></i></button>
|
||||
<span class="ag-tool-sep"></span>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="insertUnorderedList" title="无序列表"><i class="fa fa-list-ul"></i></button>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="insertOrderedList" title="有序列表"><i class="fa fa-list-ol"></i></button>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="formatBlock" data-val="BLOCKQUOTE" title="重点提示框"><i class="fa fa-quote-left"></i> 提示框</button>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="insertHorizontalRule" title="分割线">—</button>
|
||||
<span class="ag-tool-sep"></span>
|
||||
<button type="button" class="ag-tool-btn js-cmd" data-cmd="removeFormat" title="清除格式"><i class="fa fa-eraser"></i></button>
|
||||
</div>
|
||||
<button type="button" class="ag-tool-btn" id="ag-toggle-source"><i class="fa fa-code"></i> HTML 源码</button>
|
||||
</div>
|
||||
|
||||
<div id="ag-visual-editor" class="ag-editor-surface" contenteditable="{if $canSave}true{else}false{/if}"></div>
|
||||
<textarea id="ag-source-editor" name="row[content]" class="form-control ag-source-textarea hidden" {if !$canSave}readonly{/if}></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $canSave}
|
||||
<div class="ag-submit-bar">
|
||||
<div class="col-sm-offset-2 col-sm-10" style="padding-left:0;">
|
||||
<button type="submit" id="ag-submit-btn" class="btn ag-btn-primary">
|
||||
<i class="fa fa-save"></i> 保存并发布生效
|
||||
</button>
|
||||
<button type="button" id="ag-reset-btn" class="btn btn-default" style="margin-left:8px;">
|
||||
<i class="fa fa-undo"></i> 撤销当前修改
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- 右侧小程序独立页实时预览 -->
|
||||
<div class="col-xs-12 col-md-5">
|
||||
<div class="ag-preview-card">
|
||||
<div class="ag-preview-caption">
|
||||
<span><i class="fa fa-mobile fa-lg"></i> 小程序独立页面实时预览</span>
|
||||
<div class="ag-preview-mode-group hidden" id="ag-preview-mode-group">
|
||||
<button type="button" class="ag-preview-mode-btn is-active js-preview-mode" data-mode="normal">标准正文</button>
|
||||
<button type="button" class="ag-preview-mode-btn js-preview-mode" data-mode="diff">首看变更高亮</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ag-phone-frame">
|
||||
<div class="ag-phone-topbar">
|
||||
<span class="ag-phone-back"><i class="fa fa-angle-left"></i></span>
|
||||
<span class="ag-phone-nav-title" id="ag-preview-nav-title">协议详情</span>
|
||||
</div>
|
||||
<div class="ag-phone-body">
|
||||
<div class="ag-phone-doc-head">
|
||||
<div class="ag-phone-doc-title" id="ag-preview-title"></div>
|
||||
<div class="ag-phone-doc-meta">
|
||||
<span class="ag-phone-ver-pill" id="ag-preview-version"></span>
|
||||
<span id="ag-preview-effective"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ag-phone-diff-tip" id="ag-preview-diff-tip">
|
||||
<span class="ag-phone-diff-swatch"></span>
|
||||
<span id="ag-preview-diff-tip-text">条款已更新,浅橙色背景为本次调整内容(仅用户首次查看时标注)</span>
|
||||
</div>
|
||||
<div class="ag-phone-doc-content" id="ag-preview-content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script id="agreements-initial-data" type="application/json">{$agreementsJson}</script>
|
||||
@@ -0,0 +1,503 @@
|
||||
<style>
|
||||
.fc-section-block {
|
||||
margin-top: 22px;
|
||||
padding-top: 18px;
|
||||
border-top: 1px solid #eef0f3;
|
||||
}
|
||||
.fc-section-block:first-child {
|
||||
margin-top: 4px;
|
||||
padding-top: 0;
|
||||
border-top: none;
|
||||
}
|
||||
.fc-section-head {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
margin: 0 0 14px 0;
|
||||
padding-left: 10px;
|
||||
border-left: 3px solid #18bc9c;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.fc-section-head small {
|
||||
font-weight: 400;
|
||||
color: #6b7280;
|
||||
margin-left: 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.fc-guide-bar {
|
||||
background: #f6f9fc;
|
||||
border: 1px solid #e3ebf3;
|
||||
border-radius: 4px;
|
||||
padding: 9px 12px;
|
||||
margin-bottom: 12px;
|
||||
font-size: 12.5px;
|
||||
color: #475569;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.fc-guide-bar strong {
|
||||
color: #1e293b;
|
||||
}
|
||||
.fc-field-note {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
font-size: 12px;
|
||||
color: #888888;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.fc-inline-range {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.fc-inline-range .input-group {
|
||||
flex: 1;
|
||||
}
|
||||
.fc-calc-bar {
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 4px;
|
||||
padding: 8px 12px;
|
||||
font-size: 13px;
|
||||
color: #334155;
|
||||
}
|
||||
.fc-submit-bar {
|
||||
margin-top: 20px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid #eef0f3;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table {
|
||||
width: 100% !important;
|
||||
min-width: 100% !important;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table > thead > tr > th,
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td {
|
||||
padding: 9px 8px !important;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table > thead > tr > th[data-field="id"],
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td[data-field="id"] {
|
||||
min-width: 68px !important;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table > thead > tr > th[data-field="weigh"],
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td[data-field="weigh"] {
|
||||
min-width: 84px !important;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table > thead > tr > th[data-field="id"] .th-inner,
|
||||
.fc-rule-table-wrap .bootstrap-table .table > thead > tr > th[data-field="weigh"] .th-inner {
|
||||
text-overflow: clip !important;
|
||||
overflow: visible !important;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td {
|
||||
white-space: normal !important;
|
||||
word-break: break-word;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td:nth-child(1),
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td:nth-child(2),
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td:nth-child(7),
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td:nth-child(8),
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td:last-child {
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table > thead > tr > th:last-child,
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td:last-child {
|
||||
position: static !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.fc-rule-table-wrap .bootstrap-table .table > tbody > tr > td:last-child .btn {
|
||||
padding: 4px 8px !important;
|
||||
font-size: 12px !important;
|
||||
line-height: 1.4 !important;
|
||||
}
|
||||
.fc-rule-table-wrap .fixed-table-body {
|
||||
min-height: 120px !important;
|
||||
padding-bottom: 12px !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="panel panel-default panel-intro">
|
||||
<div class="panel-heading">
|
||||
{:build_heading(null, FALSE)}
|
||||
<ul class="nav nav-tabs" id="fc-main-tabs">
|
||||
<li class="active">
|
||||
<a href="#tab-commission" data-toggle="tab"><i class="fa fa-percent"></i> 订单抽佣</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#tab-withdraw" data-toggle="tab"><i class="fa fa-credit-card"></i> 提现规则</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="tab-content">
|
||||
<!-- 页签 1:订单抽佣规则与默认设置 -->
|
||||
<div class="tab-pane fade active in" id="tab-commission">
|
||||
<div class="fc-section-block">
|
||||
<div class="fc-section-head">按订单条件抽佣<small>按实际下单条件自动匹配不同抽佣方案</small></div>
|
||||
<div class="fc-guide-bar">
|
||||
<strong>匹配说明:</strong>新订单按 <strong>优先级从高到低</strong> 匹配(优先级相同时,限制条件越具体越先命中),命中第一条即生效;若都不符合,则按下方「兜底默认抽佣」执行。已下单工单永久保留下单时的方案。
|
||||
</div>
|
||||
|
||||
<div id="toolbar" class="toolbar">
|
||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i></a>
|
||||
{if $auth->check('finance_config/rule_add')}
|
||||
<a href="javascript:;" class="btn btn-success btn-add" title="新增规则"><i class="fa fa-plus"></i> 新增规则</a>
|
||||
{/if}
|
||||
{if $auth->check('finance_config/rule_multi')}
|
||||
<a class="btn btn-info btn-disabled disabled btn-multi" href="javascript:;" data-params="status=normal"><i class="fa fa-check"></i> 启用</a>
|
||||
<a class="btn btn-warning btn-disabled disabled btn-multi" href="javascript:;" data-params="status=hidden"><i class="fa fa-ban"></i> 停用</a>
|
||||
{/if}
|
||||
{if $auth->check('finance_config/rule_del')}
|
||||
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled" title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="fc-rule-table-wrap">
|
||||
<table id="table" class="table table-striped table-bordered table-hover"
|
||||
data-operate-edit="{:$auth->check('finance_config/rule_edit')}"
|
||||
data-operate-del="{:$auth->check('finance_config/rule_del')}"
|
||||
width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="commission-default-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('finance_config/save')}">
|
||||
{:token()}
|
||||
<input type="hidden" name="section" value="commission_default">
|
||||
|
||||
<div class="fc-section-block">
|
||||
<div class="fc-section-head">施工增项抽佣设置<small>对所有新创建订单通用</small></div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">增项补差价:</label>
|
||||
<div class="col-xs-12 col-sm-7">
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="row[include_diff_in_commission]" value="1" {if $cfg.include_diff_in_commission == '1'}checked{/if}> 算入抽佣(按主单 + 补差价总额抽佣)</label>
|
||||
<label style="margin-left:16px;"><input type="radio" name="row[include_diff_in_commission]" value="0" {if $cfg.include_diff_in_commission == '0'}checked{/if}> 增项免抽佣(补差价 100% 归师傅)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fc-section-block">
|
||||
<div class="fc-section-head">兜底默认抽佣<small>仅当订单未命中上方任何启用规则时使用</small></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">默认抽佣方式:</label>
|
||||
<div class="col-xs-12 col-sm-5">
|
||||
<select id="c-default_calc_mode" class="form-control js-def-calc-mode js-def-field" name="row[default_calc_mode]">
|
||||
{foreach name="calcModeList" item="vo"}
|
||||
<option value="{$key}" {if $cfg.default_calc_mode == $key}selected{/if}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group js-def-rate-box">
|
||||
<label class="control-label col-xs-12 col-sm-2">默认抽佣比例:</label>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<div class="input-group">
|
||||
<input id="c-default_commission_rate" type="number" step="0.01" min="0" max="100" class="form-control js-def-field" name="row[default_commission_rate]" value="{$cfg.default_commission_rate|htmlentities}">
|
||||
<span class="input-group-addon">%</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group js-def-fixed-box">
|
||||
<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 id="c-default_fixed_fee" type="number" step="0.01" min="0" class="form-control js-def-field" name="row[default_fixed_fee]" value="{$cfg.default_fixed_fee|htmlentities}">
|
||||
<span class="input-group-addon">元/单</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">默认保底 / 封顶:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="fc-inline-range">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最少收 ¥</span>
|
||||
<input id="c-default_min_commission" type="number" step="0.01" min="0" class="form-control js-def-field" name="row[default_min_commission]" value="{$cfg.default_min_commission|htmlentities}">
|
||||
</div>
|
||||
<span>~</span>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最多收 ¥</span>
|
||||
<input id="c-default_max_commission" type="number" step="0.01" min="0" class="form-control js-def-field" name="row[default_max_commission]" value="{$cfg.default_max_commission|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
<span class="fc-field-note">填 0 表示不限制单笔最少或最多抽佣金额</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">试算参考:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="fc-calc-bar js-def-preview">按 ¥200.00 订单试算中...</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $auth->check('finance_config/save')}
|
||||
<div class="form-group fc-submit-bar">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存抽佣默认设置</button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- 页签 2:提现与微信小程序商家转账规则 -->
|
||||
<div class="tab-pane fade" id="tab-withdraw">
|
||||
<form id="withdraw-config-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('finance_config/save')}">
|
||||
{:token()}
|
||||
<input type="hidden" name="section" value="withdraw">
|
||||
|
||||
<div class="fc-section-block">
|
||||
<div class="fc-section-head">基础开关与实名要求</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">提现总开关:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="row[withdraw_enabled]" value="1" {if $cfg.withdraw_enabled == '1'}checked{/if}> 正常开放</label>
|
||||
<label style="margin-left:16px;"><input type="radio" name="row[withdraw_enabled]" value="0" {if $cfg.withdraw_enabled == '0'}checked{/if}> 暂停提现</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">暂停提示语:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<input type="text" maxlength="200" class="form-control" name="row[withdraw_close_tip]" value="{$cfg.withdraw_close_tip|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">提现渠道:</label>
|
||||
<div class="col-xs-12 col-sm-7">
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" name="row[withdraw_channels][]" value="wechat" {if in_array('wechat', $withdrawCfg.channels)}checked{/if}> 微信零钱(小程序标准通道)</label>
|
||||
<label style="margin-left:18px;"><input type="checkbox" name="row[withdraw_channels][]" value="bank" {if in_array('bank', $withdrawCfg.channels)}checked{/if}> 银行储蓄卡(人工财务打款)</label>
|
||||
</div>
|
||||
<span class="fc-field-note">微信小程序提审建议默认仅勾选「微信零钱」,避免收集银行卡隐私信息触发类目审核风险</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">实名要求:</label>
|
||||
<div class="col-xs-12 col-sm-7">
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="row[withdraw_require_realname]" value="1" {if $cfg.withdraw_require_realname == '1'}checked{/if}> 必须实名认证通过方可提现</label>
|
||||
<label style="margin-left:16px;"><input type="radio" name="row[withdraw_require_realname]" value="0" {if $cfg.withdraw_require_realname == '0'}checked{/if}> 小额免强制实名(满 ¥2,000 微信仍强制校验姓名)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fc-section-block">
|
||||
<div class="fc-section-head">额度、次数与开放时间</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">单笔限额:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="fc-inline-range">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最低 ¥</span>
|
||||
<input type="number" step="0.01" min="0.10" max="20000" data-rule="required" class="form-control" name="row[withdraw_min_amount]" value="{$cfg.withdraw_min_amount|htmlentities}">
|
||||
</div>
|
||||
<span>~</span>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最高 ¥</span>
|
||||
<input type="number" step="0.01" min="0.10" max="20000" data-rule="required" class="form-control" name="row[withdraw_max_amount]" value="{$cfg.withdraw_max_amount|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
<span class="fc-field-note">微信商家转账硬性规定:实到净额最低 ¥0.10,单笔最高不超过 ¥20,000.00</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">每人每日上限:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="fc-inline-range">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">日累计 ¥</span>
|
||||
<input type="number" step="0.01" min="0" class="form-control" name="row[withdraw_daily_amount]" value="{$cfg.withdraw_daily_amount|htmlentities}">
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">日次数</span>
|
||||
<input type="number" step="1" min="0" class="form-control" name="row[withdraw_daily_count]" value="{$cfg.withdraw_daily_count|htmlentities}">
|
||||
<span class="input-group-addon">次</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="fc-field-note">填 0 表示不限制单日累计金额或次数</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">可提现日期:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="checkbox">
|
||||
{php}$dayLabels = [1=>'周一',2=>'周二',3=>'周三',4=>'周四',5=>'周五',6=>'周六',7=>'周日'];{/php}
|
||||
{foreach name="dayLabels" item="dName" key="dNum"}
|
||||
<label style="margin-right:14px;">
|
||||
<input type="checkbox" name="row[withdraw_allow_weekdays][]" value="{$dNum}" {if in_array($dNum, $withdrawCfg.allow_weekdays)}checked{/if}> {$dName}
|
||||
</label>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">每日时段:</label>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<div class="fc-inline-range">
|
||||
<input type="text" class="form-control" name="row[withdraw_time_start]" value="{$cfg.withdraw_time_start|htmlentities}" placeholder="00:00">
|
||||
<span>~</span>
|
||||
<input type="text" class="form-control" name="row[withdraw_time_end]" value="{$cfg.withdraw_time_end|htmlentities}" placeholder="23:59">
|
||||
</div>
|
||||
<span class="fc-field-note">24小时制 时:分(全天开放填 00:00 ~ 23:59)</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fc-section-block">
|
||||
<div class="fc-section-head">提现手续费</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">收取方式:</label>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<select id="c-wd-fee-mode" class="form-control js-wd-fee-mode js-wd-fee-field" name="row[withdraw_fee_mode]">
|
||||
<option value="percent" {if $cfg.withdraw_fee_mode == 'percent'}selected{/if}>按提现金额比例 (%)</option>
|
||||
<option value="fixed" {if $cfg.withdraw_fee_mode == 'fixed'}selected{/if}>每笔固定手续费 (元)</option>
|
||||
<option value="free" {if $cfg.withdraw_fee_mode == 'free'}selected{/if}>免收手续费(平台承担)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group js-wd-fee-percent">
|
||||
<label class="control-label col-xs-12 col-sm-2">费率与上下限:</label>
|
||||
<div class="col-xs-12 col-sm-7">
|
||||
<div class="fc-inline-range">
|
||||
<div class="input-group">
|
||||
<input id="c-wd-fee-rate" type="number" step="0.01" min="0" max="50" class="form-control js-wd-fee-field" name="row[withdraw_fee_rate]" value="{$cfg.withdraw_fee_rate|htmlentities}">
|
||||
<span class="input-group-addon">%</span>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最少 ¥</span>
|
||||
<input id="c-wd-fee-min" type="number" step="0.01" min="0" class="form-control js-wd-fee-field" name="row[withdraw_fee_min]" value="{$cfg.withdraw_fee_min|htmlentities}">
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最多 ¥</span>
|
||||
<input id="c-wd-fee-max" type="number" step="0.01" min="0" class="form-control js-wd-fee-field" name="row[withdraw_fee_max]" value="{$cfg.withdraw_fee_max|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
<span class="fc-field-note">最少与最多填 0 表示不限制</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group js-wd-fee-fixed">
|
||||
<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 id="c-wd-fee-fixed" type="number" step="0.01" min="0" class="form-control js-wd-fee-field" name="row[withdraw_fee_fixed]" value="{$cfg.withdraw_fee_fixed|htmlentities}">
|
||||
<span class="input-group-addon">元/笔</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">试算参考:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="fc-calc-bar js-wd-fee-preview">按提现 ¥100.00 试算中...</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fc-section-block">
|
||||
<div class="fc-section-head">打款审核与微信商家转账(场景 1005)</div>
|
||||
|
||||
<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" name="row[withdraw_transfer_mode]">
|
||||
<option value="wx_mch_transfer" {if $cfg.withdraw_transfer_mode == 'wx_mch_transfer'}selected{/if}>微信自动打款(新版商家转账,师傅在小程序内确认收款)</option>
|
||||
<option value="offline_manual" {if $cfg.withdraw_transfer_mode == 'offline_manual'}selected{/if}>线下人工打款(财务转账后在后台点完成)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</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>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">转账场景与感知:</label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="fc-inline-range">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">场景编号</span>
|
||||
<input type="text" maxlength="16" data-rule="required" class="form-control" name="row[wx_transfer_scene_id]" value="{$cfg.wx_transfer_scene_id|htmlentities}">
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">收款感知</span>
|
||||
<input type="text" maxlength="32" data-rule="required" class="form-control" name="row[wx_recv_perception]" value="{$cfg.wx_recv_perception|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
<span class="fc-field-note">须与微信商户后台开通的转账场景一致(默认场景 1005 对应“劳务报酬”)</span>
|
||||
</div>
|
||||
</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[wx_job_type]" value="{$cfg.wx_job_type|htmlentities}" placeholder="限32字,如:上门安装维修师傅">
|
||||
</div>
|
||||
</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[wx_reward_desc]" value="{$cfg.wx_reward_desc|htmlentities}" placeholder="限32字,如:平台工单安装维修劳务报酬">
|
||||
</div>
|
||||
</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[wx_transfer_remark]" value="{$cfg.wx_transfer_remark|htmlentities}" placeholder="限32字,师傅微信收款账单中显示">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $auth->check('finance_config/save')}
|
||||
<div class="form-group fc-submit-bar">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 保存提现规则</button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
{include file="finance_config/rule_form" /}
|
||||
</form>
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
{include file="finance_config/rule_form" /}
|
||||
</form>
|
||||
@@ -0,0 +1,210 @@
|
||||
<style>
|
||||
.fc-rule-group-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
margin: 14px 0 10px 0;
|
||||
padding: 6px 10px;
|
||||
background: #f5f7fa;
|
||||
border-left: 3px solid #18bc9c;
|
||||
}
|
||||
.fc-rule-group-title small {
|
||||
font-weight: 400;
|
||||
color: #6b7280;
|
||||
margin-left: 6px;
|
||||
}
|
||||
.fc-preview-box {
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 4px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.fc-preview-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
.fc-preview-input {
|
||||
width: 130px;
|
||||
display: inline-table;
|
||||
}
|
||||
.fc-preview-result {
|
||||
font-size: 13px;
|
||||
color: #1f2937;
|
||||
}
|
||||
</style>
|
||||
|
||||
{:token()}
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">规则名称:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<input id="c-name" data-rule="required" maxlength="80" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}" placeholder="如:商家大单 6% 封顶50 / 卫浴加急单固定15元">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fc-rule-group-title">一、哪些订单适用本规则<small>不需要限制的项保持“不限”即可</small></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">订单类型:</label>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<select id="c-order_mode" class="form-control js-rule-field" name="row[order_mode]">
|
||||
{foreach name="orderModeList" item="vo"}
|
||||
<option value="{$key}" {if $row.order_mode == $key}selected{/if}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<label class="control-label col-xs-12 col-sm-2">下单人:</label>
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<select id="c-customer_type" class="form-control js-rule-field" name="row[customer_type]">
|
||||
{foreach name="customerTypeList" item="vo"}
|
||||
<option value="{$key}" {if $row.customer_type == $key}selected{/if}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">服务分类:</label>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<select id="c-cat_id" class="form-control js-rule-field" name="row[cat_id]">
|
||||
{foreach name="catMap" item="vo"}
|
||||
<option value="{$key}" {if (int)$row.cat_id === (int)$key}selected{/if}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<label class="control-label col-xs-12 col-sm-2">是否加急:</label>
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<select id="c-urgent_mode" class="form-control js-rule-field" name="row[urgent_mode]">
|
||||
{foreach name="urgentModeList" item="vo"}
|
||||
<option value="{$key}" {if $row.urgent_mode == $key}selected{/if}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">订单金额:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">满 ¥</span>
|
||||
<input id="c-min_amount" type="number" step="0.01" min="0" class="form-control js-rule-field" name="row[min_amount]" value="{$row.min_amount|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">至 ¥</span>
|
||||
<input id="c-max_amount" type="number" step="0.01" min="0" class="form-control js-rule-field" name="row[max_amount]" value="{$row.max_amount|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="help-block" style="margin-bottom:0;font-size:12px;">两边填 0 表示不限金额;只填左边“满 ¥500”表示 500 元及以上适用。师傅报价单会在选定报价后按最终成交价自动匹配。</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fc-rule-group-title">二、平台怎么抽佣<small>下单即锁定规则,后续修改不影响历史订单</small></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">抽佣方式:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<select id="c-calc_mode" class="form-control js-rule-calc-mode js-rule-field" name="row[calc_mode]">
|
||||
{foreach name="calcModeList" item="vo"}
|
||||
<option value="{$key}" {if $row.calc_mode == $key}selected{/if}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group js-rule-rate-box">
|
||||
<label class="control-label col-xs-12 col-sm-2">抽佣比例:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<div class="input-group">
|
||||
<input id="c-commission_rate" type="number" step="0.01" min="0" max="100" class="form-control js-rule-field" name="row[commission_rate]" value="{$row.commission_rate|htmlentities}">
|
||||
<span class="input-group-addon">%(如填 10 表示每 100 元订单平台抽 10 元)</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group js-rule-fixed-box" style="display:none;">
|
||||
<label class="control-label col-xs-12 col-sm-2">每单固定费:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">¥</span>
|
||||
<input id="c-fixed_fee" type="number" step="0.01" min="0" class="form-control js-rule-field" name="row[fixed_fee]" value="{$row.fixed_fee|htmlentities}">
|
||||
<span class="input-group-addon">元 / 单(无论金额大小每单固定加收)</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">单笔上下限:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最少收 ¥</span>
|
||||
<input id="c-min_commission" type="number" step="0.01" min="0" class="form-control js-rule-field" name="row[min_commission]" value="{$row.min_commission|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">最多收 ¥</span>
|
||||
<input id="c-max_commission" type="number" step="0.01" min="0" class="form-control js-rule-field" name="row[max_commission]" value="{$row.max_commission|htmlentities}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="help-block" style="margin-bottom:0;font-size:12px;">填 0 表示不限制;最多抽佣不会超过订单实付总额。</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">试算看看:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<div class="fc-preview-box">
|
||||
<div class="fc-preview-row">
|
||||
<span>假设订单金额</span>
|
||||
<div class="input-group input-group-sm fc-preview-input">
|
||||
<span class="input-group-addon">¥</span>
|
||||
<input type="number" step="1" min="0" class="form-control js-rule-test-amount" value="200">
|
||||
</div>
|
||||
<span class="fc-preview-result js-rule-preview-text">-</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fc-rule-group-title">三、优先级与启用状态</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">优先级:</label>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
|
||||
<span class="help-block" style="margin-bottom:0;font-size:12px;">数字越大越先匹配(常规填 100,基础默认填 10~30)</span>
|
||||
</div>
|
||||
<label class="control-label col-xs-12 col-sm-2">状态:</label>
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<div class="radio">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<label style="margin-right:14px;"><input name="row[status]" type="radio" value="{$key}" {if $row.status == $key}checked{/if}> {$vo}</label>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">备注:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<input type="text" maxlength="255" class="form-control" name="row[remark]" value="{$row.remark|htmlentities}" placeholder="选填,方便财务对账时识别该规则用途">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group layer-footer">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -117,16 +117,16 @@
|
||||
<div style="font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 8px;">身份证正反面照片:</div>
|
||||
<div class="idcard-preview-box">
|
||||
<div class="idcard-img-wrap">
|
||||
<a href="{$row.idcard_front|default='/assets/img/avatar.png'|htmlentities}" target="_blank">
|
||||
<img src="{$row.idcard_front|default='/assets/img/avatar.png'|htmlentities}" onerror="this.src='/assets/img/avatar.png'" />
|
||||
<a href="{$row.idcard_front_watermark|default=$row.idcard_front|default='/assets/img/avatar.png'|htmlentities}" target="_blank" title="点击查看安全防伪原图">
|
||||
<img src="{$row.idcard_front_watermark|default=$row.idcard_front|default='/assets/img/avatar.png'|htmlentities}" onerror="this.src='/assets/img/avatar.png'" />
|
||||
</a>
|
||||
<div class="tag">身份证人像面</div>
|
||||
<div class="tag">身份证人像面 (防伪水印)</div>
|
||||
</div>
|
||||
<div class="idcard-img-wrap">
|
||||
<a href="{$row.idcard_back|default='/assets/img/avatar.png'|htmlentities}" target="_blank">
|
||||
<img src="{$row.idcard_back|default='/assets/img/avatar.png'|htmlentities}" onerror="this.src='/assets/img/avatar.png'" />
|
||||
<a href="{$row.idcard_back_watermark|default=$row.idcard_back|default='/assets/img/avatar.png'|htmlentities}" target="_blank" title="点击查看安全防伪原图">
|
||||
<img src="{$row.idcard_back_watermark|default=$row.idcard_back|default='/assets/img/avatar.png'|htmlentities}" onerror="this.src='/assets/img/avatar.png'" />
|
||||
</a>
|
||||
<div class="tag">身份证国徽面</div>
|
||||
<div class="tag">身份证国徽面 (防伪水印)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -155,6 +155,39 @@
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="md-card">
|
||||
<div class="md-card-header">
|
||||
<h4 class="md-card-title"><i class="fa fa-id-badge"></i> 技能资质证书 ({:count($certs)})</h4>
|
||||
</div>
|
||||
<div class="md-card-body">
|
||||
{if !empty($certs)}
|
||||
<table class="table table-bordered table-condensed" style="font-size: 12px; margin-bottom: 0;">
|
||||
<thead><tr class="active"><th>证书名称</th><th>证件照片</th><th>有效期至</th><th>状态</th></tr></thead>
|
||||
<tbody>
|
||||
{foreach name="certs" item="ct"}
|
||||
<tr>
|
||||
<td><strong>{$ct.cert_name|htmlentities}</strong>{if $ct.is_custom == 1} <span class="label label-info">自定义</span>{/if}</td>
|
||||
<td>
|
||||
{if !empty($ct.cert_image)}
|
||||
<a href="{$ct.cert_image|cdnurl|htmlentities}" target="_blank"><img src="{$ct.cert_image|cdnurl|htmlentities}" style="width:44px;height:30px;object-fit:cover;border-radius:4px;border:1px solid #cbd5e1;" /></a>
|
||||
{else /}<span class="text-muted">无</span>{/if}
|
||||
</td>
|
||||
<td>{if $ct.is_long_term == 1}长期有效{else/}{$ct.expire_date|default='-'|htmlentities}{/if}</td>
|
||||
<td>
|
||||
{if $ct.status == 'pass'}<span class="label label-success">已通过</span>
|
||||
{elseif $ct.status == 'reject'/}<span class="label label-danger" title="{$ct.audit_msg|htmlentities}">已驳回</span>
|
||||
{else/}<span class="label label-warning">待审核</span>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{else /}
|
||||
<div style="text-align: center; color: #94a3b8; padding: 14px 0;">暂未上传技能资质证书</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
<form id="audit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
<div class="panel panel-default" style="margin-bottom: 15px;">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title"><i class="fa fa-id-badge"></i> 证书申报信息(只读核验)</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<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">
|
||||
<p class="form-control-static">
|
||||
<strong>{$row.master.realname|default='-'|htmlentities}</strong>
|
||||
{if !empty($row.master.mobile)}<span class="text-muted">({$row.master.mobile|htmlentities})</span>{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<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">
|
||||
<p class="form-control-static">
|
||||
<strong>{$row.cert_name|htmlentities}</strong>
|
||||
{if $row.is_custom == 1}<span class="label label-info" style="margin-left:6px;">自定义</span>{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<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">
|
||||
<p class="form-control-static">
|
||||
{if $row.is_long_term == 1}
|
||||
<span class="label label-success">长期有效</span>
|
||||
{else/}
|
||||
<strong>{$row.expire_date|default='未填写'|htmlentities}</strong>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<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">
|
||||
<p class="form-control-static">{$row.updatetime|default=$row.createtime|datetime}</p>
|
||||
</div>
|
||||
</div>
|
||||
</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">
|
||||
{if !empty($row.cert_image)}
|
||||
<a href="{$row.cert_image|cdnurl|htmlentities}" target="_blank" title="点击在新窗口查看高清原图">
|
||||
<img src="{$row.cert_image|cdnurl|htmlentities}" style="max-width:420px;max-height:280px;border-radius:6px;border:1px solid #e2e8f0;background:#f8fafc;padding:4px;" />
|
||||
</a>
|
||||
<div class="help-block" style="margin-bottom:0;">点击图片可在新标签页放大核验证件编号与有效期</div>
|
||||
{else/}
|
||||
<span class="text-muted">未上传照片</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title"><i class="fa fa-gavel"></i> 平台审核结论</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">审核状态:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="radio">
|
||||
{foreach name="statusList" item="vo"}
|
||||
<label for="row[status]-{$key}" style="margin-right:16px;">
|
||||
<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>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2" for="c-audit_msg">审核意见:</label>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<textarea id="c-audit_msg" class="form-control" rows="3" name="row[audit_msg]" placeholder="通过可留空或填备注;选择驳回时请务必写明驳回原因(例如:照片模糊、证书已过期、非本人证件)">{$row.audit_msg|htmlentities}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group layer-footer">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,54 @@
|
||||
<div style="padding: 8px;">
|
||||
<table class="table table-bordered table-striped" style="margin-bottom: 14px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th style="width:120px;">申报师傅</th>
|
||||
<td><strong>{$row.master.realname|default='-'|htmlentities}</strong>({$row.master.mobile|default='-'|htmlentities})</td>
|
||||
<th style="width:120px;">证书名称</th>
|
||||
<td>
|
||||
<strong>{$row.cert_name|htmlentities}</strong>
|
||||
{if $row.is_custom == 1}<span class="label label-info">自定义</span>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>证件有效期</th>
|
||||
<td>
|
||||
{if $row.is_long_term == 1}
|
||||
<span class="label label-success">长期有效</span>
|
||||
{else/}
|
||||
{$row.expire_date|default='未填写'|htmlentities}
|
||||
{/if}
|
||||
</td>
|
||||
<th>当前审核状态</th>
|
||||
<td>
|
||||
{if $row.status == 'pass'}<span class="label label-success">已通过</span>
|
||||
{elseif $row.status == 'reject'/}<span class="label label-danger">已驳回</span>
|
||||
{else/}<span class="label label-warning">待审核</span>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>审核意见</th>
|
||||
<td colspan="3">{$row.audit_msg|default='暂无审核意见'|htmlentities}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>提交时间</th>
|
||||
<td>{$row.createtime|datetime}</td>
|
||||
<th>最后更新时间</th>
|
||||
<td>{$row.updatetime|datetime}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="panel panel-default" style="margin-bottom: 0;">
|
||||
<div class="panel-heading"><strong>证书原图核验</strong></div>
|
||||
<div class="panel-body text-center">
|
||||
{if !empty($row.cert_image)}
|
||||
<a href="{$row.cert_image|cdnurl|htmlentities}" target="_blank">
|
||||
<img src="{$row.cert_image|cdnurl|htmlentities}" style="max-width:100%;max-height:420px;border-radius:6px;border:1px solid #e2e8f0;" />
|
||||
</a>
|
||||
{else/}
|
||||
<span class="text-muted">未上传照片</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,30 @@
|
||||
<div class="panel panel-default panel-intro">
|
||||
<div class="panel-heading">
|
||||
{:build_heading(null,FALSE)}
|
||||
<ul class="nav nav-tabs" data-field="status">
|
||||
<li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">全部证书</a></li>
|
||||
{foreach name="statusList" item="vo"}
|
||||
<li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="myTabContent" class="tab-content">
|
||||
<div class="tab-pane fade active in" id="one">
|
||||
<div class="widget-body no-padding">
|
||||
<div id="toolbar" class="toolbar">
|
||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i></a>
|
||||
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('master_cert/del')?'':'hide'}" title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||
data-operate-detail="{:$auth->check('master_cert/detail')}"
|
||||
data-operate-audit="{:$auth->check('master_cert/audit')}"
|
||||
data-operate-del="{:$auth->check('master_cert/del')}"
|
||||
width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -363,8 +363,9 @@
|
||||
<div class="od-item"><span class="od-item-k">支付状态:</span><span class="od-item-v"><span class="label {if $row.pay_status==1}label-success{elseif $row.pay_status==2/}label-danger{else/}label-default{/if}">{$row.pay_status_text}</span></span></div>
|
||||
<div class="od-item"><span class="od-item-k">支付渠道:</span><span class="od-item-v">{$row.pay_type|default='微信支付'|htmlentities}</span></div>
|
||||
<div class="od-item" style="grid-column: span 2;"><span class="od-item-k">交易流水号:</span><span class="od-item-v"><code>{$row.transaction_id|default='-'|htmlentities}</code></span></div>
|
||||
<div class="od-item"><span class="od-item-k">师傅结算款:</span><span class="od-item-v" style="color:#10b981; font-weight:700;">¥{if !empty($settle)}{$settle.settle_amount} (抽成¥{$settle.commission}){else/}{$row.settle_amount}{/if}</span></div>
|
||||
<div class="od-item"><span class="od-item-k">抽佣规则快照:</span><span class="od-item-v"><span class="label label-info">{if !empty($settle)}{$settle.commission_rate|htmlentities}%{else/}{$settlePreview.commission_rate|default='10.00'|htmlentities}%{/if}</span> <small class="text-muted">{$settlePreview.rule_name|default=''|htmlentities}</small></span></div>
|
||||
<div class="od-item"><span class="od-item-k">结算状态:</span><span class="od-item-v">{$row.settle_status_text}</span></div>
|
||||
<div class="od-item" style="grid-column: span 2;"><span class="od-item-k">师傅结算款:</span><span class="od-item-v" style="color:#10b981; font-weight:700;">{if !empty($settle)}¥{$settle.settle_amount}(平台抽佣 ¥{$settle.commission}){elseif $row.settle_status == 1/}¥{$row.settle_amount}{else/}预计 ¥{:number_format($settlePreview.settle_amount, 2, '.', '')}(预计抽佣 ¥{:number_format($settlePreview.commission, 2, '.', '')}){/if}</span></div>
|
||||
<div class="od-item" style="grid-column: span 2;">
|
||||
<span class="od-item-k">发票状态:</span>
|
||||
<span class="od-item-v">
|
||||
@@ -439,6 +440,94 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 3.5 微信支付与原路退款交易流水诊断 -->
|
||||
<div class="od-card">
|
||||
<div class="od-card-header">
|
||||
<h4 class="od-card-title"><i class="fa fa-wechat"></i> 微信支付与原路退款交易流水 ({:count($payOrders)})</h4>
|
||||
<span class="text-muted" style="font-size:12px;">展示网关真实回执、异常中文诊断与人工同步/重退入口</span>
|
||||
</div>
|
||||
<div class="od-card-body">
|
||||
{if !empty($payOrders)}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-condensed" style="margin-bottom:0; font-size:12.5px;">
|
||||
<thead>
|
||||
<tr style="background:#f8fafc;">
|
||||
<th style="width:55px;">ID</th>
|
||||
<th style="width:105px;">支付场景</th>
|
||||
<th>商户单号 / 微信单号 / 退款单号</th>
|
||||
<th style="width:90px;">金额</th>
|
||||
<th style="width:130px;">流水 / 退款状态</th>
|
||||
<th>失败错误码与中文诊断</th>
|
||||
<th style="width:140px;">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="payOrders" item="po"}
|
||||
<tr>
|
||||
<td>#{$po.id}</td>
|
||||
<td>{$po.scene_text|htmlentities}</td>
|
||||
<td>
|
||||
<div>商户:<code>{$po.out_trade_no|htmlentities}</code></div>
|
||||
{if !empty($po.transaction_id)}<div style="margin-top:2px;">微信:<code>{$po.transaction_id|htmlentities}</code></div>{/if}
|
||||
{if !empty($po.refund_no)}<div style="margin-top:2px;">退款单:<code>{$po.refund_no|htmlentities}</code>{if !empty($po.refund_id)}({$po.refund_id|htmlentities}){/if}</div>{/if}
|
||||
</td>
|
||||
<td>
|
||||
<div style="font-weight:700; color:#ea580c;">¥{$po.amount|number_format=2}</div>
|
||||
{if $po.refund_amount > 0}<div style="font-size:11px; color:#64748b;">退 ¥{$po.refund_amount|number_format=2}</div>{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $po.status == 'paid'}<span class="label label-success">{$po.status_text}</span>
|
||||
{elseif $po.status == 'refunded'/}<span class="label label-info">{$po.status_text}</span>
|
||||
{elseif $po.status == 'refunding'/}<span class="label label-warning">{$po.status_text}</span>
|
||||
{elseif $po.status == 'pay_failed' || $po.status == 'refund_failed'/}<span class="label label-danger">{$po.status_text}</span>
|
||||
{else/}<span class="label label-default">{$po.status_text}</span>{/if}
|
||||
{if $po.refund_status && $po.refund_status != 'none'}
|
||||
<div style="margin-top:4px; font-size:11px; color:#475569;">{$po.refund_status_text}</div>
|
||||
{/if}
|
||||
{if !empty($po.last_sync_time)}
|
||||
<div style="margin-top:2px; font-size:11px; color:#94a3b8;">同步于 {:date('m-d H:i:s', $po.last_sync_time)}</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if !empty($po.fail_reason) || !empty($po.fail_code)}
|
||||
<div style="background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; border-radius:6px; padding:6px 8px; line-height:1.5;">
|
||||
{if !empty($po.fail_code)}<div><strong>错误码:</strong><code>{$po.fail_code|htmlentities}</code></div>{/if}
|
||||
<div><strong>原因:</strong>{$po.fail_reason|default='未知异常'|htmlentities}</div>
|
||||
</div>
|
||||
{else /}
|
||||
<span class="text-muted">-</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $po.status == 'pending' || $po.status == 'pay_failed' || $po.status == 'refunding' || $po.status == 'refund_failed'}
|
||||
<button type="button" class="btn btn-xs btn-warning js-sync-pay-order" data-id="{$po.id}" style="margin-bottom:4px;">
|
||||
<i class="fa fa-refresh"></i> 同步微信状态
|
||||
</button>
|
||||
{/if}
|
||||
{if $po.status == 'refund_failed' || ($po.status == 'paid' && $row.status == 9 && $row.settle_status != 1)}
|
||||
<button type="button" class="btn btn-xs btn-danger js-retry-refund" data-id="{$po.id}" data-outno="{$po.out_trade_no|htmlentities}">
|
||||
<i class="fa fa-undo"></i> 重试原路退款
|
||||
</button>
|
||||
{/if}
|
||||
{if $po.status == 'refunded' || $po.status == 'closed' || ($po.status == 'paid' && ($row.status != 9 || $row.settle_status == 1))}
|
||||
<span class="text-muted" style="font-size:11px;">无需人工处置</span>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{elseif $row.pay_status == 1 && ($row.pay_type == 'wechat' || $row.pay_type == '')/}
|
||||
<div style="background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; border-radius:6px; padding:10px 12px;">
|
||||
<i class="fa fa-exclamation-triangle"></i> <strong>资金流水缺失告警:</strong>当前订单显示已支付(渠道:{$row.pay_type|default='未记录'|htmlentities}),但未关联任何 <code>fa_pay_order</code> 微信交易单,系统已禁止自动假退款,如需退款请先核查微信商户平台流水。
|
||||
</div>
|
||||
{else /}
|
||||
<div class="text-muted" style="padding:8px 0;">暂无微信支付交易流水记录</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 4. 现场施工取证照片画廊 -->
|
||||
<div class="od-card">
|
||||
<div class="od-card-header">
|
||||
|
||||
@@ -169,6 +169,7 @@
|
||||
</div>
|
||||
<span class="msg-box n-right" for="c-image"></span>
|
||||
</div>
|
||||
<p class="help-block" style="margin:6px 0 0;font-size:12px;color:#64748b;">上传后同时作为小程序「系统图库」该商品的默认参考图;如需配置多款参考图,可在下方细分规格上传或前往「系统图库」管理。</p>
|
||||
<ul class="row list-inline faupload-preview plupload-preview" id="p-image"></ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -208,11 +209,12 @@
|
||||
<table class="table table-bordered table-hover" id="specs-table" style="margin-bottom: 0;">
|
||||
<thead>
|
||||
<tr class="active">
|
||||
<th style="width: 55px; text-align: center;">序号</th>
|
||||
<th style="width: 260px;">细分规格/款式名称</th>
|
||||
<th style="width: 220px;">特殊规格一口价(选填)</th>
|
||||
<th style="width: 50px; text-align: center;">序号</th>
|
||||
<th style="width: 220px;">细分规格/款式名称</th>
|
||||
<th style="width: 155px; text-align: center;">规格参考图(选填)</th>
|
||||
<th style="width: 195px;">特殊规格一口价(选填)</th>
|
||||
<th>规格说明或施工提示(选填)</th>
|
||||
<th style="width: 75px; text-align: center;">操作</th>
|
||||
<th style="width: 65px; text-align: center;">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="specs-tbody"></tbody>
|
||||
|
||||
@@ -397,6 +397,7 @@
|
||||
</div>
|
||||
<span class="msg-box n-right" for="c-image"></span>
|
||||
</div>
|
||||
<p class="help-block" style="margin:6px 0 0;font-size:12px;color:#64748b;">上传后同时作为小程序「系统图库」该商品的默认参考图;如需配置多款参考图,可在下方细分规格上传或前往「系统图库」管理。</p>
|
||||
<ul class="row list-inline faupload-preview plupload-preview" id="p-image"></ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -438,21 +439,32 @@
|
||||
<table class="table table-bordered table-hover" id="specs-table" style="margin-bottom: 0;">
|
||||
<thead>
|
||||
<tr class="active">
|
||||
<th style="width: 55px; text-align: center;">序号</th>
|
||||
<th style="width: 260px;">细分规格/款式名称</th>
|
||||
<th style="width: 220px;">特殊规格一口价(选填)</th>
|
||||
<th style="width: 50px; text-align: center;">序号</th>
|
||||
<th style="width: 220px;">细分规格/款式名称</th>
|
||||
<th style="width: 155px; text-align: center;">规格参考图(选填)</th>
|
||||
<th style="width: 195px;">特殊规格一口价(选填)</th>
|
||||
<th>规格说明或施工提示(选填)</th>
|
||||
<th style="width: 75px; text-align: center;">操作</th>
|
||||
<th style="width: 65px; text-align: center;">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="specs-tbody">
|
||||
{foreach name="specs" item="sp" key="idx"}
|
||||
<?php $spImgRaw = isset($sp['image']) ? trim((string)$sp['image']) : ''; $spImgFull = $spImgRaw !== '' ? (strpos($spImgRaw, 'http') === 0 ? $spImgRaw : cdnurl($spImgRaw, true)) : ''; ?>
|
||||
<tr data-id="{$sp.id}">
|
||||
<td style="text-align: center; vertical-align: middle; color: #64748b; font-weight: 600;">{$idx+1}</td>
|
||||
<td>
|
||||
<input type="hidden" name="specs[{$idx}][id]" value="{$sp.id}">
|
||||
<input type="text" name="specs[{$idx}][name]" class="form-control input-sm" value="{$sp.name|htmlentities}" placeholder="如:普通坐便器(马桶) / 智能马桶">
|
||||
</td>
|
||||
<td style="text-align: center; vertical-align: middle;">
|
||||
<div class="spec-img-cell" style="display:inline-flex;align-items:center;gap:6px;">
|
||||
<input type="hidden" name="specs[{$idx}][image]" class="spec-img-input" value="{$spImgRaw|htmlentities}">
|
||||
<img class="spec-img-preview" src="{$spImgFull|htmlentities}" style="width:34px;height:34px;border-radius:4px;object-fit:cover;border:1px solid #cbd5e1;{if !$spImgFull}display:none;{/if}" onclick="window.open(this.src)" title="点击查看大图">
|
||||
<button type="button" class="btn btn-xs btn-default btn-upload-spec-img"><i class="fa fa-upload"></i> {if $spImgFull}更换{else/}上传{/if}</button>
|
||||
<button type="button" class="btn btn-xs btn-link text-danger btn-clear-spec-img" style="padding:0 2px;{if !$spImgFull}display:none;{/if}" title="移除图片"><i class="fa fa-times"></i></button>
|
||||
<input type="file" class="spec-img-file" accept="image/*" style="display:none;">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon">¥</span>
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">所属类目:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-cat_id" data-source="service/cat/index" data-params='{"custom[id]":["<>",15]}' class="form-control selectpage" name="row[cat_id]" type="text" value="{$initCatId|htmlentities}" placeholder="可先选择服务类目筛选商品">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">所属商品:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-service_id" data-rule="required" data-source="service/index" class="form-control selectpage" name="row[service_id]" type="text" value="{$initServiceId|htmlentities}" placeholder="请选择关联的商品(必填)">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">款式/图片名称:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-title" class="form-control" name="row[title]" type="text" value="" placeholder="如:软体床、25kg商用和面机(留空默认取商品名称)">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">系统参考图:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="">
|
||||
<div class="input-group-addon no-border no-padding">
|
||||
<span><button type="button" id="faupload-image" class="btn btn-danger faupload plupload" data-category="service" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> 批量上传</button></span>
|
||||
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 附件选择</button></span>
|
||||
</div>
|
||||
<span class="msg-box n-right" for="c-image"></span>
|
||||
</div>
|
||||
<p class="help-block" style="margin:6px 0 0;font-size:12px;color:#64748b;">支持一次选择多张图片批量入库,小程序端在选择对应类目与商品时自动展示。</p>
|
||||
<ul class="row list-inline faupload-preview plupload-preview" id="p-image"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">排序权重:</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 class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">显示状态:</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="normal"}checked{/in} /> {$vo}</label>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group layer-footer">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,63 @@
|
||||
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">所属类目:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-cat_id" data-source="service/cat/index" data-params='{"custom[id]":["<>",15]}' class="form-control selectpage" name="row[cat_id]" type="text" value="{$row.cat_id|htmlentities}" placeholder="选择服务类目">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">所属商品:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-service_id" data-rule="required" data-source="service/index" class="form-control selectpage" name="row[service_id]" type="text" value="{$row.service_id|htmlentities}" placeholder="请选择关联的商品">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">款式/图片名称:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}" placeholder="如:软体床、25kg商用和面机">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">系统参考图:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
|
||||
<div class="input-group-addon no-border no-padding">
|
||||
<span><button type="button" id="faupload-image" class="btn btn-danger faupload plupload" data-category="service" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传图片</button></span>
|
||||
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 附件选择</button></span>
|
||||
</div>
|
||||
<span class="msg-box n-right" for="c-image"></span>
|
||||
</div>
|
||||
<ul class="row list-inline faupload-preview plupload-preview" id="p-image"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">排序权重:</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 class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">显示状态:</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>
|
||||
|
||||
<div class="form-group layer-footer">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,38 @@
|
||||
<div class="panel panel-default panel-intro">
|
||||
<div class="panel-heading">
|
||||
{:build_heading(null,FALSE)}
|
||||
{if !$initServiceId}
|
||||
<ul class="nav nav-tabs" data-field="cat_id">
|
||||
<li class="{:$Think.get.cat_id === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">全部图库</a></li>
|
||||
{foreach name="catList" item="vo"}
|
||||
<li class="{:$Think.get.cat_id === (string)$vo.id ? 'active' : ''}"><a href="#t-{$vo.id}" data-value="{$vo.id}" data-toggle="tab">{$vo.name}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else/}
|
||||
<div style="padding: 6px 0 2px; font-size: 13px; color: #475569;">
|
||||
当前筛选商品:<strong style="color:#ea580c;">{$initServiceName|htmlentities}</strong>(小程序下单选择对应类目进入「系统图库」时展示以下参考图片)
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="myTabContent" class="tab-content">
|
||||
<div class="tab-pane fade active in" id="one">
|
||||
<div class="widget-body no-padding">
|
||||
<div id="toolbar" class="toolbar">
|
||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i> </a>
|
||||
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('service/gallery/add')?'':'hide'}" title="上传添加系统图库"><i class="fa fa-plus"></i> 添加图库图片</a>
|
||||
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('service/gallery/edit')?'':'hide'}" title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>
|
||||
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('service/gallery/del')?'':'hide'}" title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||
data-operate-detail="0"
|
||||
data-operate-edit="{:$auth->check('service/gallery/edit')}"
|
||||
data-operate-del="{:$auth->check('service/gallery/del')}"
|
||||
width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -18,6 +18,7 @@
|
||||
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('service/add')?'':'hide'}" title="{:__('Add')}"><i class="fa fa-plus"></i> {:__('Add')}</a>
|
||||
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('service/edit')?'':'hide'}" title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>
|
||||
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('service/del')?'':'hide'}" title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>
|
||||
<a href="{:url('service/gallery/index')}" class="btn btn-info btn-addtabs {:$auth->check('service/gallery/index')?'':'hide'}" title="系统图库"><i class="fa fa-picture-o"></i> 系统图库</a>
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||
data-operate-detail="{:$auth->check('service/detail')}"
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
<div class="widget-body no-padding">
|
||||
<div id="toolbar" class="toolbar">
|
||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i></a>
|
||||
{if $auth->check('finance_config/index')}
|
||||
<a href="{:url('finance_config/index')}" class="btn btn-info btn-addtabs" title="财务配置"><i class="fa fa-sliders"></i> 财务配置</a>
|
||||
{/if}
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||
data-operate-detail="{:$auth->check('settle/detail')}"
|
||||
|
||||
@@ -27,7 +27,25 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 wd-kv"><span class="k">提现渠道:</span><span class="label label-primary">{$channelList[$row.channel]|default=$row.channel|htmlentities}</span></div>
|
||||
<div class="col-sm-6 wd-kv"><span class="k">收款账号:</span><code>{$row.account|htmlentities}</code></div>
|
||||
<div class="col-sm-6 wd-kv"><span class="k">收款账号:</span><code>{$row.account|default='微信零钱'|htmlentities}</code></div>
|
||||
{if !empty($row.out_bill_no)}
|
||||
<div class="col-sm-6 wd-kv"><span class="k">商户转账单:</span><code>{$row.out_bill_no|htmlentities}</code></div>
|
||||
<div class="col-sm-6 wd-kv"><span class="k">微信转账单:</span><code>{$row.transfer_bill_no|default='-'|htmlentities}</code></div>
|
||||
<div class="col-sm-6 wd-kv"><span class="k">微信转账态:</span><span class="label label-info">{$row.transfer_state_text|default=$row.transfer_state|htmlentities}</span></div>
|
||||
<div class="col-sm-6 wd-kv"><span class="k">确认收款时:</span>{if $row.confirm_time}{:date('Y-m-d H:i:s', $row.confirm_time)}{else/}-{/if}</div>
|
||||
{/if}
|
||||
{if !empty($row.fail_reason) || !empty($row.fail_code)}
|
||||
<div class="col-sm-12" style="margin-top:8px; margin-bottom:10px;">
|
||||
<div class="alert alert-danger" style="margin-bottom:0; padding:10px 14px; border-radius:6px;">
|
||||
<i class="fa fa-exclamation-triangle"></i> <strong>微信转账异常 / 失败原因</strong>
|
||||
{if !empty($row.fail_code)} <span class="label label-danger">{$row.fail_code|htmlentities}</span>{/if}
|
||||
<div style="margin-top:5px;">{$row.fail_reason|default='未知异常,请同步微信状态或查看日志'|htmlentities}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if !empty($row.last_sync_time)}
|
||||
<div class="col-sm-6 wd-kv"><span class="k">最近查单:</span>{:date('Y-m-d H:i:s', $row.last_sync_time)}</div>
|
||||
{/if}
|
||||
<div class="col-sm-6 wd-kv"><span class="k">申请时间:</span>{:date('Y-m-d H:i:s', $row.createtime)}</div>
|
||||
<div class="col-sm-6 wd-kv"><span class="k">更新时间:</span>{:date('Y-m-d H:i:s', $row.updatetime)}</div>
|
||||
<div class="col-sm-12 wd-kv" style="margin-bottom:0;"><span class="k">财务批注:</span>{$row.audit_msg|default='-'|htmlentities}</div>
|
||||
|
||||
@@ -37,11 +37,41 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">结算账户:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static">{$channelList[$row.channel]|default=$row.channel} · {$row.account|htmlentities}</p>
|
||||
<p class="form-control-static">{$channelList[$row.channel]|default=$row.channel} · {$row.account|default='微信零钱'|htmlentities}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if !empty($row.out_bill_no)}
|
||||
<div class="row">
|
||||
<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">
|
||||
<p class="form-control-static"><code>{$row.out_bill_no|htmlentities}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<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">
|
||||
<p class="form-control-static"><span class="label label-info">{$transferStateLabel|htmlentities}</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if !empty($row.fail_reason) || !empty($row.fail_code)}
|
||||
<div class="alert alert-danger" style="margin-bottom:12px; border-radius:6px;">
|
||||
<i class="fa fa-exclamation-triangle"></i> <strong>上次微信转账失败 / 异常诊断</strong>
|
||||
{if !empty($row.fail_code)} <span class="label label-danger">{$row.fail_code|htmlentities}</span>{/if}
|
||||
<div style="margin-top:4px; line-height:1.6;">{$row.fail_reason|htmlentities}</div>
|
||||
{if !empty($row.last_sync_time)}
|
||||
<div style="margin-top:4px; font-size:12px; opacity:0.85;">最近核验时间:{:date('Y-m-d H:i:s', $row.last_sync_time)}({if !empty($row.retry_count)}已重试 {$row.retry_count} 次{/if})</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{if $row.status != 'wait'}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">已填批注:</label>
|
||||
@@ -60,7 +90,15 @@
|
||||
<h4 class="panel-title"><i class="fa fa-check-square-o"></i> 财务审核操作</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{if $row.status == 'wait'}
|
||||
{if $row.transfer_state == 'UNKNOWN_TIMEOUT'}
|
||||
<p class="text-danger" style="margin-top:0"><i class="fa fa-warning"></i> 该笔提现上次请求微信网关超时,可能已被受理。为严防双倍出款,系统已锁定重发,请先选择「同步微信转账最新状态」核实后再决定后续操作。</p>
|
||||
{elseif ($row.transfer_state == 'FAIL' || $row.transfer_state == 'NOT_FOUND') && !empty($useWxApi) /}
|
||||
<p class="text-warning" style="margin-top:0"><i class="fa fa-info-circle"></i> 上次微信转账未成功出款。在排查修复上方失败原因(如商户余额不足、IP 白名单或配置错误)后,可选择「重新发起微信商家转账」使用递增单号安全重试,或选择驳回退回师傅余额。</p>
|
||||
{elseif !empty($useWxApi) && $row.status == 'wait' /}
|
||||
<p class="text-muted" style="margin-top:0">选择「审核通过并发起微信商家转账」将直接调用微信支付 V3(场景 1005 佣金报酬)向师傅发起转账,师傅在小程序「我的钱包」点击确认收款后即自动入账微信零钱。</p>
|
||||
{elseif $row.channel == 'wechat' && !empty($row.out_bill_no) /}
|
||||
<p class="text-muted" style="margin-top:0">该笔提现已发起微信商家转账,正在等待师傅在小程序「我的钱包」确认收款。可点击「同步微信最新状态」刷新结果,或在师傅收款前选择「撤销转账并退回余额」。</p>
|
||||
{elseif $row.status == 'wait' /}
|
||||
<p class="text-muted" style="margin-top:0">审核通过后资金保持冻结,待打款后标记「打款完成」划出冻结金额;驳回将自动退回师傅钱包余额。</p>
|
||||
{else /}
|
||||
<p class="text-muted" style="margin-top:0">该单已审核通过,请线下完成打款后标记「打款完成」,系统将自动划出冻结金额;如审核有误可驳回,将自动退回师傅余额。</p>
|
||||
@@ -70,13 +108,15 @@
|
||||
<label class="control-label col-xs-12 col-sm-2">审核操作:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<div class="radio" style="margin-top:5px">
|
||||
{foreach name="flowOptions" item="op"}
|
||||
{foreach name="flowOptions" item="op" key="idx"}
|
||||
{if $op == 'pass'}
|
||||
<label><input name="row[status]" type="radio" value="pass" checked /> 审核通过</label>
|
||||
<label><input name="row[status]" type="radio" value="pass" {if $idx==0}checked{/if} /> {if !empty($row.out_bill_no)}重新发起微信商家转账{elseif !empty($useWxApi)/}审核通过并发起微信商家转账{else/}审核通过{/if}</label>
|
||||
{elseif $op == 'sync' /}
|
||||
<label><input name="row[status]" type="radio" value="sync" {if $idx==0}checked{/if} /> 同步微信转账最新状态</label>
|
||||
{elseif $op == 'reject' /}
|
||||
<label><input name="row[status]" type="radio" value="reject" /> 驳回(退回余额)</label>
|
||||
<label><input name="row[status]" type="radio" value="reject" {if $idx==0}checked{/if} /> {if !empty($row.out_bill_no)}撤销/核查微信转账并驳回(退回余额){else/}驳回(退回余额){/if}</label>
|
||||
{elseif $op == 'done' /}
|
||||
<label><input name="row[status]" type="radio" value="done" checked /> 标记打款完成</label>
|
||||
<label><input name="row[status]" type="radio" value="done" {if $idx==0}checked{/if} /> 标记线下打款完成</label>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
<div class="widget-body no-padding">
|
||||
<div id="toolbar" class="toolbar">
|
||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i></a>
|
||||
{if $auth->check('finance_config/index')}
|
||||
<a href="{:url('finance_config/index')}#tab-withdraw" class="btn btn-info btn-addtabs" title="提现配置"><i class="fa fa-sliders"></i> 提现配置</a>
|
||||
{/if}
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||
data-operate-detail="{:$auth->check('withdraw/detail')}"
|
||||
|
||||
在新工单中引用
屏蔽一个用户