修复 E 签宝签署方账号标签 #207
@ -1395,7 +1395,7 @@
|
||||
<input class="agreement-control" id="agreement-deadline" name="signing_deadline" type="date" min="{{ now()->toDateString() }}" value="{{ now()->addDays(7)->toDateString() }}" required>
|
||||
</div>
|
||||
<div class="agreement-field">
|
||||
<label for="agreement-esign-account">对方E签宝账号</label>
|
||||
<label for="agreement-esign-account"><span data-primary-esign-label>对方 E 签宝账号</span></label>
|
||||
<input class="agreement-control" id="agreement-esign-account" name="esign_account" type="text" value="" data-esign-account placeholder="手机号或邮箱" autocomplete="email" required>
|
||||
<p class="agreement-help">选择快递公司后自动带出工作平台的“电子签章经办人”(dzqzjbr);如资料未维护,可手工填写对方在 E 签宝实名绑定的手机号或邮箱。</p>
|
||||
</div>
|
||||
@ -1416,7 +1416,7 @@
|
||||
<p class="agreement-help">确认单绑定已审核报价版本,生成后保存该版本快照;变价请生成新版本并重新签署。</p>
|
||||
</div>
|
||||
<div class="agreement-field" data-secondary-signer-fields hidden>
|
||||
<label for="agreement-secondary-esign-account">第二签署方E签宝账号 <span class="agreement-required" aria-hidden="true">*</span></label>
|
||||
<label for="agreement-secondary-esign-account"><span data-secondary-esign-label>第二签署方 E 签宝账号</span> <span class="agreement-required" aria-hidden="true">*</span></label>
|
||||
<input class="agreement-control" id="agreement-secondary-esign-account" name="secondary_esign_account" type="text" placeholder="填写另一签署方的手机号或邮箱" autocomplete="email" disabled>
|
||||
<p class="agreement-help">主体变更、合作合同和授权委托书需要双方分别实名签署;合作合同统一使用我方账号 {{ $agreementCooperationSecondaryEsignAccount }}。</p>
|
||||
</div>
|
||||
@ -2216,6 +2216,24 @@
|
||||
});
|
||||
}
|
||||
|
||||
function refreshSignerAccountLabels(templateType) {
|
||||
var labels = {
|
||||
primary: '对方 E 签宝账号',
|
||||
secondary: '第二签署方 E 签宝账号'
|
||||
};
|
||||
|
||||
if (templateType === 'cooperation-contract') {
|
||||
labels.primary = '快递方 E 签宝账号';
|
||||
labels.secondary = '我方 E 签宝账号';
|
||||
} else if (templateType === 'authorization') {
|
||||
labels.primary = '委托方 E 签宝账号';
|
||||
labels.secondary = '受托方 E 签宝账号';
|
||||
}
|
||||
|
||||
setText('[data-primary-esign-label]', labels.primary);
|
||||
setText('[data-secondary-esign-label]', labels.secondary);
|
||||
}
|
||||
|
||||
function formatDateField(selector, fallback) {
|
||||
var value = fieldValue(selector, '');
|
||||
var parts = value.split('-');
|
||||
@ -2371,6 +2389,7 @@
|
||||
var courier = fieldValue('[name="courier_name"]', '快递公司');
|
||||
var companyName = fieldValue('[name="company_full_name"]', '待填写公司全称');
|
||||
activateTemplate(templateType);
|
||||
refreshSignerAccountLabels(templateType);
|
||||
var secondary = root.querySelector('[data-secondary-signer-fields]');
|
||||
if (secondary) {
|
||||
var needsSecondary = templateType === 'entity-change' || templateType === 'cooperation-contract' || templateType === 'authorization';
|
||||
|
||||
@ -67,7 +67,13 @@ class AgreementSigningPageTest extends FeatureTestCase
|
||||
->assertSee('data-company-name', false)
|
||||
->assertSee('data-subject-linked-name', false)
|
||||
->assertSeeText('签署截止日期')
|
||||
->assertSeeText('对方E签宝账号')
|
||||
->assertSeeText('对方 E 签宝账号')
|
||||
->assertSee('data-primary-esign-label', false)
|
||||
->assertSee('data-secondary-esign-label', false)
|
||||
->assertSee("labels.primary = '快递方 E 签宝账号'", false)
|
||||
->assertSee("labels.secondary = '我方 E 签宝账号'", false)
|
||||
->assertSee("labels.primary = '委托方 E 签宝账号'", false)
|
||||
->assertSee("labels.secondary = '受托方 E 签宝账号'", false)
|
||||
->assertSeeText('合作合同统一使用我方账号 18052733960')
|
||||
->assertSeeText('填写变量')
|
||||
->assertSeeText('签署完成后自动归档')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user