应付云仓车费:修复附件列为空 (#328)
This commit is contained in:
parent
b962c23e92
commit
57f2dccfac
@ -124,7 +124,7 @@
|
||||
<td>{{ $value($detail, '银行账号') }}</td>
|
||||
<td class="ding-payable-detail"><details><summary>展开字段({{ count($fields) }} 项)</summary><pre>{{ $json($fields) }}</pre></details></td>
|
||||
<td class="ding-payable-detail"><details><summary>展开付款明细</summary><pre>{{ $json($fields['付款明细'] ?? []) }}</pre></details></td>
|
||||
<td class="ding-payable-detail"><details><summary>展开附件</summary><pre>{{ $json($fields['附件'] ?? ($fields['未签字版合同附件或其他明细附件'] ?? [])) }}</pre></details></td>
|
||||
<td class="ding-payable-detail"><details><summary>展开附件</summary><pre>{{ $json(($fields['附件'] ?? '') ?: ($fields['未签字版合同附件或其他明细附件'] ?? [])) }}</pre></details></td>
|
||||
<td class="ding-payable-detail"><details><summary>展开审批任务</summary><pre>{{ $json($row['tasks'] ?? []) }}</pre></details></td>
|
||||
</tr>
|
||||
@empty
|
||||
|
||||
@ -28,7 +28,17 @@ class DingPayableWorkflowPageTest extends FeatureTestCase
|
||||
'finishTime' => '2026-08-28 11:00:00',
|
||||
],
|
||||
'detail' => ['类型' => '快递运费', '用途' => '拉到江西仓的车费', '付款金额' => '1200'],
|
||||
'fields' => ['应付明细' => [], '付款明细' => [['付款金额' => '1200']], '附件' => []],
|
||||
'fields' => [
|
||||
'应付明细' => [],
|
||||
'付款明细' => [['付款金额' => '1200']],
|
||||
'附件' => '',
|
||||
'未签字版合同附件或其他明细附件' => [[
|
||||
'spaceId' => '369334649',
|
||||
'fileName' => '测试对账附件.xlsx',
|
||||
'fileId' => '123456',
|
||||
'fileType' => 'xlsx',
|
||||
]],
|
||||
],
|
||||
'tasks' => [['status' => 'COMPLETED']],
|
||||
]],
|
||||
'total' => 1,
|
||||
@ -50,6 +60,7 @@ class DingPayableWorkflowPageTest extends FeatureTestCase
|
||||
->assertSee('用途同时包含“仓”“车费”')
|
||||
->assertSee('全部表单字段')
|
||||
->assertSee('审批任务')
|
||||
->assertSee('测试对账附件.xlsx')
|
||||
->assertSee('镜像状态:succeeded');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user