From 4d1a1d0467bdef3af85e3ca61edf8f482f118185 Mon Sep 17 00:00:00 2001
From: ljx <864490211@qq.com>
Date: Mon, 17 Jun 2024 11:31:23 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=AF=A6=E6=83=85=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Middle/transport/Custom/Custom/Detail.vue | 83 +++++--------------
1 file changed, 21 insertions(+), 62 deletions(-)
diff --git a/src/pages/Middle/transport/Custom/Custom/Detail.vue b/src/pages/Middle/transport/Custom/Custom/Detail.vue
index bc72d47..47891bc 100644
--- a/src/pages/Middle/transport/Custom/Custom/Detail.vue
+++ b/src/pages/Middle/transport/Custom/Custom/Detail.vue
@@ -138,6 +138,12 @@
{{ row.status == 1 ? '正常' : '禁用'}}
+
+ {{ row.custom_soil_quality_material_detail.name }}
+
+
+ {{ row.soil_quality_material_detail.name }}
+
@@ -345,42 +351,18 @@ export default {
// =============================== 表格列 自动生成 Start ===============================
{ field: 'code', align: 'center', sortable: true, title: '车次单号', width: 120 }, // 车次单号
{
- field: 'truck_id', align: 'center', sortable: true, title: '车辆', width: 150,
- slots: { default: 'truck_id' }
+ field: 'truck_name', align: 'center', sortable: true, title: '车辆', width: 100
}, // 车辆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: 'unit_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: 'return_date', align: 'center', sortable: true, formatter: 'formatDate', title: '回车日期', width: 100 }, // 回车日期
- {
- field: 'is_oil', align: 'center', sortable: true, title: '是否加油', width: 70,
- slots: { default: 'is_oil' }
- },
+ { field: 'outbound_date', align: 'center', sortable: true, formatter: 'formatDate', title: '出车日期', width: 120 }, // 出车日期
+ { field: 'return_date', align: 'center', sortable: true, formatter: 'formatDate', title: '回车日期', width: 120 }, // 回车日期
{ field: 'outbound_mileage', align: 'center', sortable: true, title: '出车公里数', width: 120 }, // 出车公里数
- { field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', width: 250 }, // 出车备注
- { 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',
- }, // 利润
+ { field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', minWidth: 120 }, // 出车备注
];
let supplierColunms = [
{ type: 'checkbox', width: 50 }, // 多选框
@@ -388,42 +370,19 @@ export default {
// =============================== 表格列 自动生成 Start ===============================
{ field: 'code', align: 'center', sortable: true, title: '车次单号', width: 120 }, // 车次单号
{
- field: 'truck_id', align: 'center', sortable: true, title: '车辆', width: 150,
- slots: { default: 'truck_id' }
+ field: 'truck_name', align: 'center', sortable: true, title: '车辆', width: 100
}, // 车辆id
- // { field: 'custom_name', align: 'center', sortable: true, title: '客户名称', width: 100 }, // 客户名称
- { field: 'supplier_name', align: 'center', sortable: true, title: '供应商名称', width: 120 }, // 客户名称
+ { field: 'custom_name', align: 'center', sortable: true, title: '客户名称', width: 100 }, // 客户名称
+ {
+ 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: 'buy_unit_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: 'return_date', align: 'center', sortable: true, formatter: 'formatDate', title: '回车日期', width: 100 }, // 回车日期
- {
- field: 'is_oil', align: 'center', sortable: true, title: '是否加油', width: 70,
- slots: { default: 'is_oil' }
- },
+ { field: 'outbound_date', align: 'center', sortable: true, formatter: 'formatDate', title: '出车日期', width: 120 }, // 出车日期
+ { field: 'return_date', align: 'center', sortable: true, formatter: 'formatDate', title: '回车日期', width: 120 }, // 回车日期
{ field: 'outbound_mileage', align: 'center', sortable: true, title: '出车公里数', width: 120 }, // 出车公里数
- { field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', width: 250 }, // 出车备注
- { 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',
- }, // 利润
+ { field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', width: 120 }, // 出车备注
];
// this.dataId 转换为bigint
// 如果this.dataId是对象,则需要转换为数字