客户详情列表修改

This commit is contained in:
ljx 2024-06-17 11:31:23 +08:00
parent ff11a35a0d
commit 4d1a1d0467
1 changed files with 21 additions and 62 deletions

View File

@ -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