feat: 【后台配置订单列表】新增是否使用材料、材料凭证图片组字段
This commit is contained in:
parent
886cd60929
commit
0be26ff745
|
|
@ -61,7 +61,26 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||
{field: 'refund_amount', title: __('Refund_amount'), operate:false},
|
||||
{field: 'real_amount', title: __('Real_amount'), operate:false},
|
||||
{field: 'cost', title: __('Cost'), operate:false},
|
||||
{field: 'material_cost', title: __('材料成本'), operate:false},
|
||||
{
|
||||
field: 'material_cost_text', title: '材料',
|
||||
operate: false,
|
||||
cellStyle: {css: {"text-align": "left !important"}},
|
||||
formatter: function (val, row) {
|
||||
let status = {
|
||||
"0": "<span style='color: orange'>未使用</span>",
|
||||
"1": "<span style='color: green'>已使用</span>",
|
||||
}
|
||||
let res = `
|
||||
<span>是否使用材料:${status[row.is_material_used]}</span><br>
|
||||
`;
|
||||
if (row.is_material_used === 1) {
|
||||
res += `<span>材料成本:¥${row.material_cost}</span><br>`
|
||||
}
|
||||
return res
|
||||
}},
|
||||
{field: 'material_images', title: __('材料凭证'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
|
||||
|
||||
|
||||
{field: 'performance', title: __('Performance'), operate:false},
|
||||
|
||||
// {field: 'dispatch_type', title: __('Dispatch_type')},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user