客户详情列表修改
This commit is contained in:
parent
ff11a35a0d
commit
4d1a1d0467
|
|
@ -138,6 +138,12 @@
|
||||||
<template #status="{ row }"><!-- 这里是自定义列 -->
|
<template #status="{ row }"><!-- 这里是自定义列 -->
|
||||||
{{ row.status == 1 ? '正常' : '禁用'}}
|
{{ row.status == 1 ? '正常' : '禁用'}}
|
||||||
</template>
|
</template>
|
||||||
|
<template #CustomSoilQualityMaterialDetail="{ row }">
|
||||||
|
{{ row.custom_soil_quality_material_detail.name }}
|
||||||
|
</template>
|
||||||
|
<template #SupplierSoilQualityMaterialDetail="{ row }">
|
||||||
|
{{ row.soil_quality_material_detail.name }}
|
||||||
|
</template>
|
||||||
</vxe-grid>
|
</vxe-grid>
|
||||||
</div>
|
</div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
|
|
@ -345,42 +351,18 @@ export default {
|
||||||
// =============================== 表格列 自动生成 Start ===============================
|
// =============================== 表格列 自动生成 Start ===============================
|
||||||
{ field: 'code', align: 'center', sortable: true, title: '车次单号', width: 120 }, // 车次单号
|
{ field: 'code', align: 'center', sortable: true, title: '车次单号', width: 120 }, // 车次单号
|
||||||
{
|
{
|
||||||
field: 'truck_id', align: 'center', sortable: true, title: '车辆', width: 150,
|
field: 'truck_name', align: 'center', sortable: true, title: '车辆', width: 100
|
||||||
slots: { default: 'truck_id' }
|
|
||||||
}, // 车辆id
|
}, // 车辆id
|
||||||
{ field: 'custom_name', align: 'center', sortable: true, title: '客户名称', width: 100 }, // 客户名称
|
{
|
||||||
// { field: 'supplier_name', align: 'center', sortable: true, title: '供应商名称', width: 100 }, // 客户名称
|
field: "custom_soil_quality_material_detail", align: 'center', sortable: true, title: '物料名', width: 100,slots: { default: 'CustomSoilQualityMaterialDetail'}
|
||||||
|
}, // 物料名
|
||||||
{ field: 'customer_warehousing_tonnage', align: 'center', sortable: true, title: '吨位', width: 100 }, // 吨位
|
{ field: 'customer_warehousing_tonnage', align: 'center', sortable: true, title: '吨位', width: 100 }, // 吨位
|
||||||
{ field: 'unit_price', align: 'center', sortable: true, title: '单价', width: 100 }, // 单价
|
{ field: 'unit_price', align: 'center', sortable: true, title: '单价', width: 100 }, // 单价
|
||||||
{ field: 'total_price', align: 'center', sortable: true, title: '总价', width: 100 }, // 总价
|
{ field: 'total_price', align: 'center', sortable: true, title: '总价', width: 100 }, // 总价
|
||||||
{ field: 'outbound_date', align: 'center', sortable: true, formatter: 'formatDate', title: '出车日期', width: 100 }, // 出车日期
|
{ field: 'outbound_date', align: 'center', sortable: true, formatter: 'formatDate', title: '出车日期', width: 120 }, // 出车日期
|
||||||
{ field: 'return_date', align: 'center', sortable: true, formatter: 'formatDate', title: '回车日期', width: 100 }, // 回车日期
|
{ field: 'return_date', align: 'center', sortable: true, formatter: 'formatDate', title: '回车日期', width: 120 }, // 回车日期
|
||||||
{
|
|
||||||
field: 'is_oil', align: 'center', sortable: true, title: '是否加油', width: 70,
|
|
||||||
slots: { default: 'is_oil' }
|
|
||||||
},
|
|
||||||
{ field: 'outbound_mileage', align: 'center', sortable: true, title: '出车公里数', width: 120 }, // 出车公里数
|
{ field: 'outbound_mileage', align: 'center', sortable: true, title: '出车公里数', width: 120 }, // 出车公里数
|
||||||
{ field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', width: 250 }, // 出车备注
|
{ field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', minWidth: 120 }, // 出车备注
|
||||||
{ field: 'accessories_fee', align: 'center', sortable: true, title: '配件费', width: 120 }, // 配件费
|
|
||||||
{ field: 'repair_fee', align: 'center', sortable: true, title: '维修费', width: 120 }, // 维修费
|
|
||||||
{ field: 'electric_fee', align: 'center', sortable: true, title: '电器费', width: 120 }, // 电器费
|
|
||||||
{ field: 'tire_cost', align: 'center', sortable: true, title: '轮胎费', width: 120 }, // 轮胎费
|
|
||||||
{ field: 'tire_fee', align: 'center', sortable: true, title: '轮胎工费', width: 120 }, // 轮胎工费
|
|
||||||
{ field: 'other_fee', align: 'center', sortable: true, title: '其他费用', width: 120 }, // 其他费用
|
|
||||||
{ field: 'truck_profit', align: 'center', sortable: true, title: '车利润', width: 120 }, // 车利润
|
|
||||||
{ field: 'material_profit', align: 'center', sortable: true, title: '土利润', width: 120 }, // 土利润
|
|
||||||
{
|
|
||||||
field: 'income', sortable: true, title: '收入', width: 80, fixed: 'right',
|
|
||||||
align: 'center',
|
|
||||||
}, // 收入
|
|
||||||
{
|
|
||||||
field: 'cost', sortable: true, title: '成本', width: 80, fixed: 'right',
|
|
||||||
align: 'center',
|
|
||||||
}, // 成本
|
|
||||||
{
|
|
||||||
field: 'profit', sortable: true, title: '利润', width: 80, fixed: 'right',
|
|
||||||
align: 'center',
|
|
||||||
}, // 利润
|
|
||||||
];
|
];
|
||||||
let supplierColunms = [
|
let supplierColunms = [
|
||||||
{ type: 'checkbox', width: 50 }, // 多选框
|
{ type: 'checkbox', width: 50 }, // 多选框
|
||||||
|
|
@ -388,42 +370,19 @@ export default {
|
||||||
// =============================== 表格列 自动生成 Start ===============================
|
// =============================== 表格列 自动生成 Start ===============================
|
||||||
{ field: 'code', align: 'center', sortable: true, title: '车次单号', width: 120 }, // 车次单号
|
{ field: 'code', align: 'center', sortable: true, title: '车次单号', width: 120 }, // 车次单号
|
||||||
{
|
{
|
||||||
field: 'truck_id', align: 'center', sortable: true, title: '车辆', width: 150,
|
field: 'truck_name', align: 'center', sortable: true, title: '车辆', width: 100
|
||||||
slots: { default: 'truck_id' }
|
|
||||||
}, // 车辆id
|
}, // 车辆id
|
||||||
// { field: 'custom_name', align: 'center', sortable: true, title: '客户名称', width: 100 }, // 客户名称
|
{ field: 'custom_name', align: 'center', sortable: true, title: '客户名称', width: 100 }, // 客户名称
|
||||||
{ field: 'supplier_name', align: 'center', sortable: true, title: '供应商名称', width: 120 }, // 客户名称
|
{
|
||||||
|
field: "supplier_soil_quality_material_detail", align: 'center', sortable: true, title: '物料名', width: 100,slots: { default: 'SupplierSoilQualityMaterialDetail'}
|
||||||
|
}, // 物料名
|
||||||
{ field: 'supplier_outbound_tonnage', align: 'center', sortable: true, title: '吨位', width: 100 }, // 吨位
|
{ field: 'supplier_outbound_tonnage', align: 'center', sortable: true, title: '吨位', width: 100 }, // 吨位
|
||||||
{ field: 'buy_unit_price', align: 'center', sortable: true, title: '单价', width: 100 }, // 单价
|
{ field: 'buy_unit_price', align: 'center', sortable: true, title: '单价', width: 100 }, // 单价
|
||||||
{ field: 'buy_total_price', align: 'center', sortable: true, title: '总价', width: 100 }, // 总价
|
{ field: 'buy_total_price', align: 'center', sortable: true, title: '总价', width: 100 }, // 总价
|
||||||
{ field: 'outbound_date', align: 'center', sortable: true, formatter: 'formatDate', title: '出车日期', width: 100 }, // 出车日期
|
{ field: 'outbound_date', align: 'center', sortable: true, formatter: 'formatDate', title: '出车日期', width: 120 }, // 出车日期
|
||||||
{ field: 'return_date', align: 'center', sortable: true, formatter: 'formatDate', title: '回车日期', width: 100 }, // 回车日期
|
{ field: 'return_date', align: 'center', sortable: true, formatter: 'formatDate', title: '回车日期', width: 120 }, // 回车日期
|
||||||
{
|
|
||||||
field: 'is_oil', align: 'center', sortable: true, title: '是否加油', width: 70,
|
|
||||||
slots: { default: 'is_oil' }
|
|
||||||
},
|
|
||||||
{ field: 'outbound_mileage', align: 'center', sortable: true, title: '出车公里数', width: 120 }, // 出车公里数
|
{ field: 'outbound_mileage', align: 'center', sortable: true, title: '出车公里数', width: 120 }, // 出车公里数
|
||||||
{ field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', width: 250 }, // 出车备注
|
{ field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', width: 120 }, // 出车备注
|
||||||
{ field: 'accessories_fee', align: 'center', sortable: true, title: '配件费', width: 120 }, // 配件费
|
|
||||||
{ field: 'repair_fee', align: 'center', sortable: true, title: '维修费', width: 120 }, // 维修费
|
|
||||||
{ field: 'electric_fee', align: 'center', sortable: true, title: '电器费', width: 120 }, // 电器费
|
|
||||||
{ field: 'tire_cost', align: 'center', sortable: true, title: '轮胎费', width: 120 }, // 轮胎费
|
|
||||||
{ field: 'tire_fee', align: 'center', sortable: true, title: '轮胎工费', width: 120 }, // 轮胎工费
|
|
||||||
{ field: 'other_fee', align: 'center', sortable: true, title: '其他费用', width: 120 }, // 其他费用
|
|
||||||
{ field: 'truck_profit', align: 'center', sortable: true, title: '车利润', width: 120 }, // 车利润
|
|
||||||
{ field: 'material_profit', align: 'center', sortable: true, title: '土利润', width: 120 }, // 土利润
|
|
||||||
{
|
|
||||||
field: 'income', sortable: true, title: '收入', width: 80, fixed: 'right',
|
|
||||||
align: 'center',
|
|
||||||
}, // 收入
|
|
||||||
{
|
|
||||||
field: 'cost', sortable: true, title: '成本', width: 80, fixed: 'right',
|
|
||||||
align: 'center',
|
|
||||||
}, // 成本
|
|
||||||
{
|
|
||||||
field: 'profit', sortable: true, title: '利润', width: 80, fixed: 'right',
|
|
||||||
align: 'center',
|
|
||||||
}, // 利润
|
|
||||||
];
|
];
|
||||||
// this.dataId 转换为bigint
|
// this.dataId 转换为bigint
|
||||||
// 如果this.dataId是对象,则需要转换为数字
|
// 如果this.dataId是对象,则需要转换为数字
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue