This commit is contained in:
parent
1204d024a6
commit
a5db38b3c8
|
|
@ -103,19 +103,21 @@ export default {
|
|||
|
||||
//搜索区
|
||||
searchFormData: {
|
||||
title: '',
|
||||
desc: '',
|
||||
type:'',
|
||||
status:''
|
||||
},
|
||||
// 搜索区配置
|
||||
searchRules: [
|
||||
{key: "title", mode: "like"},
|
||||
{key: "desc", mode: "like"}
|
||||
{key: "code", mode: "like"},
|
||||
{key: "name", mode: "like"}
|
||||
],
|
||||
//搜索区
|
||||
searchFormItems: [ // 子项
|
||||
{field: 'title', title: '标题', span: 5, itemRender: {name: '$input', props: {placeholder: '请输入标题'}}},
|
||||
{field: 'desc', title: '描述', span: 5, itemRender: {name: '$input', props: {placeholder: '请输入描述'}}},
|
||||
{span: 8, slots: {default: 'date'}}, // 自定义列
|
||||
{field: 'code', title: '编码', span: 4, itemRender: {name: '$input', props: {placeholder: '请输入编码'}}},
|
||||
{field: 'name', title: '名称', span: 4, itemRender: {name: '$input', props: {placeholder: '请输入名称'}}},
|
||||
{field: 'type', title: '类型', span: 3, itemRender: { name: '$select', props: {options:[{value:'',label:"====全部===="},{value:"0",label:"客户"},{value:"1",label:"供应商"}] } }},
|
||||
{field: 'status', title: '状态', span: 3, itemRender: { name: '$select', props: {options:[{value:'',label:"====全部===="},{value:"0",label:"禁用"},{value:"1",label:"启用"}] } }},
|
||||
{span: 6, slots: {default: 'date'}}, // 自定义列
|
||||
{
|
||||
align: 'right', span: 4, itemRender: { // 按钮列
|
||||
name: '$buttons', children: [{props: {type: 'submit', content: '搜索', status: 'primary'}}, // 搜索按钮
|
||||
|
|
@ -172,15 +174,25 @@ export default {
|
|||
// =============================== 表格列 自动生成 Start ===============================
|
||||
|
||||
|
||||
{field: 'code', sortable: true, title: '编码', width: 250}, // 编码
|
||||
{field: 'name', sortable: true, title: '名称', width: 250}, // 名称
|
||||
{field: 'type', sortable: true, title: '客户类型', width: 150}, // 客户类型
|
||||
{field: 'industry', sortable: true, title: '客户行业', width: 150}, // 客户行业
|
||||
{field: 'contact', sortable: true, title: '客户联系人', width: 250}, // 客户联系人
|
||||
{field: 'contact_phone', sortable: true, title: '客户联系人电话', width: 250}, // 客户联系人电话
|
||||
{field: 'total_ton', sortable: true, title: '总计交易吨数', width: 250}, // 总计交易吨数
|
||||
{field: 'total_count', sortable: true, title: '总计交易次数', width: 250}, // 总计交易次数
|
||||
{field: 'code', sortable: true, title: '编码', width: 150}, // 编码
|
||||
{field: 'name', title: '名称', width: 150}, // 名称
|
||||
{field: 'type', sortable: true, title: '类型',formatter: this.formatType, width: 150}, // 客户类型
|
||||
{field: 'industry', sortable: true, title: '行业', width: 150}, // 客户行业
|
||||
{field: 'contact', title: '联系人', width: 150}, // 客户联系人
|
||||
{field: 'contact_phone', sortable: true, title: '联系人电话', width: 150}, // 客户联系人电话
|
||||
{field: 'total_ton', sortable: true, title: '总计交易吨数', width: 150}, // 总计交易吨数
|
||||
{field: 'total_count', sortable: true, title: '总计交易次数', width: 150}, // 总计交易次数
|
||||
{field: 'last_time', sortable: true, title: '最后交易时间', width: 250}, // 最后交易时间
|
||||
{
|
||||
field: 'create_time',
|
||||
formatter: 'formatDate',
|
||||
width: 250,
|
||||
sortable: true,
|
||||
title: '创建时间',
|
||||
showHeaderOverflow: true
|
||||
}, // 创建时间
|
||||
{field: 'total_balance', sortable: true, title: '总结余', width: 150}, // 总结余
|
||||
{field: 'total_amount', sortable: true, title: '总交易金额', width: 150}, // 总交易金额
|
||||
{field: 'remark', sortable: true, title: '备注', width: 250}, // 备注
|
||||
{
|
||||
field: 'status',
|
||||
|
|
@ -191,17 +203,6 @@ export default {
|
|||
showHeaderOverflow: true
|
||||
}, // 状态
|
||||
|
||||
{
|
||||
field: 'create_time',
|
||||
formatter: 'formatDate',
|
||||
width: 100,
|
||||
sortable: true,
|
||||
title: '创建时间',
|
||||
showHeaderOverflow: true
|
||||
}, // 创建时间
|
||||
|
||||
{field: 'total_balance', sortable: true, title: '总结余', width: 250}, // 总结余
|
||||
{field: 'total_amount', sortable: true, title: '总交易金额', width: 250}, // 总交易金额
|
||||
|
||||
// =============================== 表格列 自动生成 Start ===============================
|
||||
|
||||
|
|
@ -360,7 +361,14 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
|
||||
formatType({ cellValue }) { // 格式化状态
|
||||
if (cellValue && (cellValue.toLowerCase() == '0')) {
|
||||
return '客户';
|
||||
}
|
||||
if (cellValue && (cellValue.toLowerCase() == '1')) {
|
||||
return '经销商';
|
||||
}
|
||||
},
|
||||
// 搜索
|
||||
onSearch() {
|
||||
this.$refs.xGrid.commitProxy('query') // 提交搜索
|
||||
|
|
|
|||
|
|
@ -44,7 +44,10 @@
|
|||
</a>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template #image="{ row }">
|
||||
<img v-if="row.image" :src="row.image" style="width:60px;height: 60px;"
|
||||
@click.stop="$hevueImgPreview(row.image)">
|
||||
</template>
|
||||
</vxe-grid>
|
||||
</div>
|
||||
|
||||
|
|
@ -175,21 +178,19 @@ export default {
|
|||
// =============================== 表格列 自动生成 Start ===============================
|
||||
|
||||
|
||||
{field: 'code', sortable: true, title: '编码', width: 250}, // 编码
|
||||
{field: 'name', sortable: true, title: '品名', width: 250}, // 品名
|
||||
{field: 'description', sortable: true, title: '描述', width: 250}, // 描述
|
||||
{field: 'image', sortable: true, title: '图片', width: 250}, // 图片
|
||||
{field: 'remark', sortable: true, title: '备注', width: 250}, // 备注
|
||||
|
||||
{field: 'code', sortable: true, title: '编码', width: 150}, // 编码
|
||||
{field: 'name', sortable: true, title: '品名', width: 150}, // 品名
|
||||
{field: 'description', title: '描述', width: 250}, // 描述
|
||||
{ title: '图片', slots: { default: 'image' }, width: 120 },
|
||||
{
|
||||
field: 'create_time',
|
||||
formatter: 'formatDate',
|
||||
width: 100,
|
||||
width: 250,
|
||||
sortable: true,
|
||||
title: '创建时间',
|
||||
showHeaderOverflow: true
|
||||
}, // 创建时间
|
||||
|
||||
{field: 'remark', title: '备注', minWidth: 200}, // 备注
|
||||
|
||||
// =============================== 表格列 自动生成 Start ===============================
|
||||
|
||||
|
|
|
|||
|
|
@ -103,8 +103,8 @@ export default {
|
|||
],
|
||||
//搜索区
|
||||
searchFormItems: [ // 子项
|
||||
{field: 'title', title: '标题', span: 5, itemRender: {name: '$input', props: {placeholder: '请输入标题'}}},
|
||||
{field: 'desc', title: '描述', span: 5, itemRender: {name: '$input', props: {placeholder: '请输入描述'}}},
|
||||
{field: 'code', title: '车次单号', span: 5, itemRender: {name: '$input', props: {placeholder: '请输入车次单号'}}},
|
||||
// {field: 'desc', title: '描述', span: 5, itemRender: {name: '$input', props: {placeholder: '请输入描述'}}},
|
||||
{span: 8, slots: {default: 'date'}}, // 自定义列
|
||||
{
|
||||
align: 'right', span: 4, itemRender: { // 按钮列
|
||||
|
|
@ -156,30 +156,31 @@ export default {
|
|||
// 表格列配置
|
||||
columns: [
|
||||
{type: 'checkbox', width: 50}, // 多选框
|
||||
{type: 'seq', width: 30}, // 序号
|
||||
{type: 'seq', width: 40}, // 序号
|
||||
|
||||
|
||||
// =============================== 表格列 自动生成 Start ===============================
|
||||
|
||||
|
||||
{field: 'code', sortable: true, title: '车次单号', width: 250}, // 车次单号
|
||||
{field: 'custom_id', sortable: true, title: '客户id', width: 250}, // 客户id
|
||||
// {field: 'custom_id', sortable: true, title: '客户id', width: 250}, // 客户id
|
||||
{field: 'custom_name', sortable: true, title: '客户名称', width: 250}, // 客户名称
|
||||
{field: 'supplier_id', sortable: true, title: '供应商id', width: 250}, // 供应商id
|
||||
{field: 'supplier_name', sortable: true, title: '客户名称', width: 250}, // 客户名称
|
||||
{field: 'soil_quality_material_id', sortable: true, title: '物料品名id', width: 250}, // 物料品名id
|
||||
{field: 'outbound_soil_quality_material_id', sortable: true, title: '出库物料土质id', width: 250}, // 出库物料土质id
|
||||
{field: 'warehousing_soil_quality_material_id', sortable: true, title: '入库物料土质id', width: 250}, // 入库物料土质id
|
||||
{field: 'outbound_remark', sortable: true, title: '出车备注', width: 250}, // 出车备注
|
||||
// {field: 'supplier_id', sortable: true, title: '供应商id', width: 250}, // 供应商id
|
||||
{field: 'supplier_name', sortable: true, title: '供应商名称', width: 250}, // 客户名称
|
||||
// {field: 'soil_quality_material_id', sortable: true, title: '物料品名id', width: 250}, // 物料品名id
|
||||
// {field: 'outbound_soil_quality_material_id', sortable: true, title: '出库物料土质id', width: 250}, // 出库物料土质id
|
||||
// {field: 'warehousing_soil_quality_material_id', sortable: true, title: '入库物料土质id', width: 250}, // 入库物料土质id
|
||||
|
||||
{field: 'is_outsourcing', sortable: true, title: '是否委外', width: 250}, // 是否委外
|
||||
{field: 'outsourcing_truck_number', sortable: true, title: '委外车牌号', width: 250}, // 委外车牌号
|
||||
{field: 'outsourcing_driver_name', sortable: true, title: '委外司机姓名', width: 250}, // 委外司机姓名
|
||||
{field: 'outsourcing_driver_phone', sortable: true, title: '委外司机手机号', width: 250}, // 委外司机手机号
|
||||
{field: 'is_need_outbound', sortable: true, title: '是否需要出车', width: 250}, // 是否需要出车
|
||||
{field: 'truck_id', sortable: true, title: '车辆id', width: 250}, // 车辆id
|
||||
{field: 'truck_id', sortable: true, title: '车辆', width: 250}, // 车辆id
|
||||
{field: 'driver_id', sortable: true, title: '司机id', width: 250}, // 司机id
|
||||
{field: 'outbound_date', sortable: true, title: '出车日期', width: 250}, // 出车日期
|
||||
{field: 'return_date', sortable: true, title: '回车日期', width: 250}, // 回车日期
|
||||
{field: 'outbound_remark', sortable: true, title: '出车备注', width: 250}, // 出车备注
|
||||
{field: 'end_mileage', sortable: true, title: '结束公里数', width: 250}, // 结束公里数
|
||||
{field: 'driver_subsidy_remark', sortable: true, title: '司机补贴备注', width: 250}, // 司机补贴备注
|
||||
{field: 'is_change_tire', sortable: true, title: '是否更换轮胎', width: 250}, // 是否更换轮胎
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ export default {
|
|||
{field: 'change_tyre_count', sortable: true, title: '更换轮胎次数', width: 130}, // 更换轮胎次数
|
||||
{field: 'add_oil_count', sortable: true, title: '加油次数', width: 100}, // 加油次数
|
||||
{field: 'add_oil_litre', sortable: true, title: '加油总升数', width: 120}, // 加油总升数
|
||||
{field: 'remark', sortable: true, title: '车辆备注', width: 250}, // 车辆备注
|
||||
{field: 'remark', sortable: true, title: '车辆备注', minWidth: 250}, // 车辆备注
|
||||
// =============================== 表格列 自动生成 Start ===============================
|
||||
{title: '操作', fixed: 'right', slots: {default: 'op'}, width: 140}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue