Compare commits

..

No commits in common. "cbefad6d00588bc23b638b653634c8f49b74881b" and "dcdd1ff5322fca70257d80d799226165ce2f0b45" have entirely different histories.

15 changed files with 151 additions and 252 deletions

View File

@ -30,13 +30,13 @@
{{ data.total_count }}
</a-descriptions-item>
<a-descriptions-item label="最后交易时间">
{{ data.last_time | formatDate }}
{{ data.last_time }}
</a-descriptions-item>
<a-descriptions-item label="总结余">
{{ data.total_balance }}
{{ data.total_balance }}
</a-descriptions-item>
<a-descriptions-item label="总交易金额">
{{ data.total_amount }}
{{ data.total_amount }}
</a-descriptions-item>
<a-descriptions-item label="状态">
{{ data.status | formatStatus }}
@ -88,7 +88,6 @@
ref="ZkTableList"
:ListUrl="this.BalanceLogSearch" :ListUrlData="this.zkSelectData"
:Columns="this.columns"
:dataId="dataId"
:ListFieldName="this.zkSelectDataFieldName">
</ZkTableList>
@ -98,8 +97,6 @@
</template>
<script>
import BASE_URL from '@/services/Middle/transport/Custom/api.js';
import XEUtils from 'xe-utils' // xe-utils
import ZkTableList from './zkTableList.vue'
// import ZkTable from "@/components/zk/zkTable.vue";
@ -148,7 +145,7 @@ export default {
// =============================== Start ===============================
// {field: 'custom_id', sortable: true, title: 'id', width: 150}, // id
{field: 'custom_id', sortable: true, title: '客户id', width: 150}, // id
{field: 'balance_type', sortable: true, title: '结余类型', width: 120}, // :12
{
@ -179,13 +176,12 @@ export default {
},
filters: {
formatDate: function (value) {
if (!value) {
return '';
}
if (typeof (value) == "number") {
value = new Date(value * 1000);
}
return XEUtils.toDateString(value, 'yyyy-MM-dd')
if (value) {
//
return new Date(value).toLocaleString().replace(/:\d{1,2}$/, ' ');
} else {
return "";
}
},
//
formatStatus: function (value) {

View File

@ -100,7 +100,7 @@ export default {
contact_position: "",
total_ton: 0,
total_count: 0,
last_time: 0,
last_time: "",
remark: "",
status: 1,
total_balance: 0,

View File

@ -32,7 +32,8 @@
<!-- =============================== 表格列 自动生成 Start =============================== -->
<template #status="{ row }"><!-- 这里是自定义列 -->
{{ row.status == 1 ? '正常' : '禁用'}}
<!-- 转换 row.status 的值 如果是true显示开否则显示关-->
<a-switch :checked="row.status ? true : false" @change="onSwitch(row, 'status')"/>
</template>
<!-- =============================== 表格列 自动生成 End =============================== -->
@ -184,7 +185,7 @@ export default {
{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: '最后交易时间',formatter: 'formatDate', width: 250}, //
{field: 'last_time', sortable: true, title: '最后交易时间', width: 250}, //
{
field: 'create_time',
formatter: 'formatDate',
@ -310,7 +311,6 @@ export default {
},
//
loadData({params}) {
params.last_time = Number(params.last_time)
params.start_time = this.start_time; //
params.end_time = this.end_time; //
return this.$mk.getPagedData({url: this.actions.getList, data: params}); //

View File

@ -20,9 +20,6 @@ import UpdateMixin from "@/application/zk/mixins/UpdateComponents.js";
export default {
mixins: [ListMixin, DeleteMixin, DetailMixin, UpdateMixin],
props: {
dataId: {
},
Columns: {
type: Array
},
@ -131,13 +128,6 @@ export default {
}
)
}
this.ListUrlData.search_rules.push(
{
column: "custom_id",
mode: "=",
value: this.dataId
}
)
this.$zk.getPagedData({
url: this.ListUrl,
listFieldName: this.ListFieldName,

View File

@ -24,7 +24,6 @@
<vxe-toolbar ref="xToolbar" custom>
<template #buttons>
<a-button type="primary" icon="delete" @click="pageDelete()">批量删除</a-button>
<a-button class="btns" @click="grantBatch()" type="primary">批量发放工资</a-button>
</template>
</vxe-toolbar>
<!-- 表格区 -->
@ -35,19 +34,17 @@
<!-- =============================== 表格列 自动生成 End =============================== -->
<template #wages_status="{ row }">
<a-tag color="orange" v-if="row.wages_status === 0">
未发放
</a-tag>
<a-tag color="green" v-if="row.wages_status === 1">
已发放
</a-tag>
{{ row.wages_status === 0 ? '未发放' : '已发放' }}
</template>
<template #op="{ row }">
<div class="oplinks">
<a-button @click="grant(row)" type="primary">发放工资</a-button>
<a @click.stop="pageEdit(row)" title="编辑">
<a-icon type="edit" />
</a>
<a @click.stop="pageDelete(row)" title="删除">
<a-icon type="delete" />
</a>
</div>
</template>
@ -104,52 +101,28 @@ export default {
DriverWagesBatchUpdate: `${BASE_URL.BASE_URL}/DriverWages/v1/driver/wages/batchUpdate`, //
DriverWagesBatchCreate: `${BASE_URL.BASE_URL}/DriverWages/v1/driver/wages/batchCreate`, //
DriverWagesBatchHandle: `${BASE_URL.BASE_URL}/DriverWages/v1/driver/wages/batchHandle`, //
DriverWagesPay: `${BASE_URL.BASE_URL}/DriverWages/v1/driver/wages/pay`
// =============================== End ===============================
},
start_time: 0, //
end_time: 0, //
year:[
{label: '2019', value: 2019},
{label: '2020', value: 2020},
{label: '2021', value: 2021},
{label: '2022', value: 2022},
{label: '2023', value: 2023},
{label: '2024', value: 2024},
{label: '2025', value: 2025},
{label: '2026', value: 2026},
{label: '2027', value: 2027},
],
month:[
{label: '1月', value: 1},
{label: '2月', value: 2},
{label: '3月', value: 3},
{label: '4月', value: 4},
{label: '5月', value: 5},
{label: '6月', value: 6},
{label: '7月', value: 7},
{label: '8月', value: 8},
{label: '9月', value: 9},
{label: '10月', value: 10},
{label: '11月', value: 11},
{label: '12月', value: 12},
],
//
searchFormData: {
wages_year: 0,
wages_month: 0,
title: '',
desc: '',
},
//
searchRules: [
{ key: "wages_year", mode: "=" },
{ key: "wages_month", mode: "=" }
{ key: "title", mode: "like" },
{ key: "desc", mode: "like" }
],
//
searchFormItems: [ //
{field: 'wages_year', title: '年份', span: 5, itemRender: {name: '$select',props: { options: this.year }}},
{field: 'wages_month', title: '月份', span: 5, itemRender: {name: '$select',props: { options: this.month }}},
// {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' } }, //
{
align: 'right', span: 4, itemRender: { //
@ -208,19 +181,19 @@ export default {
{ field: 'wages_year', sortable: true, title: '年份', width: 80 }, //
{ field: 'wages_month', sortable: true, title: '月份', width: 70 }, //
{ field: 'code', sortable: true, title: '工资单号', width: 100 }, //
{ field: 'wages_month', sortable: true, title: '月份', width: 80 }, //
{ field: 'code', sortable: true, title: '工资单号', width: 120 }, //
{ field: 'staff_name', sortable: true, title: '司机姓名', width: 120 }, //
{ field: 'staff_code', sortable: true, title: '司机编号', width: 120 }, //
// { field: 'staff_phone', sortable: true, title: '', width: 120 }, //
{ field: 'staff_phone', sortable: true, title: '司机手机', width: 120 }, //
{ field: 'wages_date', sortable: true, title: '工资日期', formatter: 'formatDate', width: 120 }, //
{ field: 'wages_type', sortable: true, title: '类型', width: 100 }, //
{ field: 'wages_amount', sortable: true, title: '金额', width: 100 }, //
{ field: 'wages_balance', sortable: true, title: '帐户结余', width: 120 }, //
{
field: 'wages_status', sortable: true, title: '状态', width: 120,
slots: { default: 'wages_status' }
}, //
{ field: 'wages_date', sortable: true, title: '日期', formatter: 'formatDate', width: 120 }, //
// { field: 'wages_balance', sortable: true, title: '', width: 120 }, //
{ field: 'wages_remark', sortable: true, title: '备注', width: 250 }, //
@ -373,60 +346,7 @@ export default {
this.$refs.xGrid.commitProxy('query') //
},
//
grant(row){
console.log("row",row);
let ids = [row.id]; // id
this.$mk.confirm('您确定要发放吗?').then(type => { //
if (type == 'confirm') { //
this.$mk.post({
url: this.actions.DriverWagesPay, //
loading: "发放中...", //
data: {
ids: ids // id
},
useBigInt: true
}).then(() => { //
this.$mk.success("发放成功"); //
this.onSearch(); //
}).catch((a) => { //
this.$mk.error(a.data.msg); //
});
}
});
},
//
grantBatch(){
let rows = this.$refs.xGrid.getCheckboxRecords(); //
let ids = []; // id
rows.forEach((row) => { //
ids.push(row[this.keyName]); // idid
});
if (!ids.length) { //
this.$mk.error("请选择行"); //
return;
}
this.$mk.confirm('您确定要发放吗?').then(type => { //
if (type == 'confirm') { //
this.$mk.post({
url: this.actions.DriverWagesPay, //
loading: "发放中...", //
data: {
ids: ids // id
},
useBigInt: true
}).then(() => { //
this.$mk.success("发放成功"); //
this.onSearch(); //
}).catch((a) => { //
this.$mk.error(a.data.msg); //
});
}
});
}
},
//
watch: {}
@ -442,9 +362,6 @@ export default {
.gridPanel {
height: calc(100vh - 400px);
}
.btns{
margin-left:10px;
}
</style>
<style>

View File

@ -6,14 +6,13 @@
<!-- </div>-->
<a-descriptions size="small" :title="pageOptions.title" bordered>
<a-descriptions-item label="员工姓名">
{{ staff_detail.name }}
{{ data.staff_detail.name }}
</a-descriptions-item>
<a-descriptions-item label="员工工号">
{{ staff_detail.code }}
{{ data.staff_detail.code }}
</a-descriptions-item>
<a-descriptions-item label="员工电话">
{{ staff_detail.phone }}
{{ data.staff_detail.phone }}
</a-descriptions-item>
<a-descriptions-item label="运输总公里数">
{{ data.transport_mileage }}
@ -41,18 +40,13 @@
</li>
<li>
<div class="btns" style="z-index:99999;">
<div class="btns">
<!-- 增加结余按钮 -->
<a-popconfirm title="是否增加结余?" ok-text="确认" cancel-text="取消" @confirm="addBalance" @cancel="cancel"
autoAdjustOverflow="true"
>
<a-popconfirm title="是否增加结余?" ok-text="确认" cancel-text="取消" @confirm="addBalance" @cancel="cancel">
<a-button class="btn-add-balance" type="primary">增加结余</a-button>
</a-popconfirm>
<!-- 减少结余按钮 -->
<a-popconfirm title="是否减少结余?" ok-text="确认" cancel-text="取消" @confirm="reduceBalance" @cancel="cancel"
autoAdjustOverflow="true"
>
<a-popconfirm title="是否减少结余?" ok-text="确认" cancel-text="取消" @confirm="reduceBalance" @cancel="cancel">
<a-button class="btn-reduce-balance" type="danger"> 减少结余</a-button>
</a-popconfirm>
@ -63,11 +57,11 @@
<!-- 结余日志列表 -->
<div class="balance-log">
<h2>
结余日志
结余日志
</h2>
<ZkTableList ref="ZkTableList" :ListUrl="this.DriverWagesGiornaleLogSearch" :ListUrlData="this.zkSelectData"
:Columns="this.columns" :ListFieldName="this.zkSelectDataFieldName" :dataId="dataId">
:Columns="this.columns" :ListFieldName="this.zkSelectDataFieldName">
</ZkTableList>
</div>
@ -75,7 +69,7 @@
</div>
</template>
<script>
import BASE_URL from '@/services/Middle/transport/DriverWages/api.js';
import BASE_URL from '@/services/Middle/transport/Custom/api.js';
import ZkTableList from './zkTableList.vue'
// import ZkTable from "@/components/zk/zkTable.vue";
@ -129,7 +123,7 @@ export default {
// =============================== Start ===============================
// { type: 'checkbox', width: 50 }, //
{ type: 'checkbox', width: 50 }, //
{ type: 'seq', width: 30 }, //
@ -137,18 +131,18 @@ export default {
{ field: 'code', sortable: true, title: '编码', width: 120 }, //
// { field: 'staff_uid', sortable: true, title: 'uid', width: 250 }, // uid
{ field: 'balance_type', sortable: true, title: '结余类型', width: 100 }, // :12
{ field: 'balance_amount', sortable: true, title: '修改金额', width: 120 }, //
{ field: 'total_balance', sortable: true, title: '总结余金额', width: 120 }, //
{ field: 'remark', sortable: true, title: '备注', width: "auto" }, //
{ field: 'staff_uid', sortable: true, title: '员工uid', width: 250 }, // uid
{ field: 'balance_type', sortable: true, title: '结余类型', width: 250 }, // :12
{ field: 'balance_amount', sortable: true, title: '修改金额', width: 250 }, //
{ field: 'total_balance', sortable: true, title: '总结余金额', width: 250 }, //
{ field: 'remark', sortable: true, title: '备注', width: 250 }, //
{
field: 'create_time',
formatter: 'formatDateTime',
width: 160,
formatter: 'formatDate',
width: 100,
sortable: true,
title: '时间',
title: '创建时间',
showHeaderOverflow: true
}, //
@ -163,8 +157,6 @@ export default {
data: {
},
staff_detail: {
},
}
},
created() {
@ -196,9 +188,9 @@ export default {
},
methods: {
initDetailData() {
// console.log("this.pageOptions.FieldName:", this.pageOptions.FieldName)
// console.log("this.pageOptions.ApiUrl:", this.pageOptions.ApiUrl);
// console.log("this.pageOptions.ApiData:", this.pageOptions.ApiData);
console.log("this.pageOptions.FieldName:", this.pageOptions.FieldName)
console.log("this.pageOptions.ApiUrl:", this.pageOptions.ApiUrl);
console.log("this.pageOptions.ApiData:", this.pageOptions.ApiData);
// this.dataId bigint
// this.dataId
@ -219,7 +211,6 @@ export default {
console.log("a", a)
console.log("this.pageOptions.ApiUrl", this.pageOptions.ApiUrl)
this.data = a.data[this.pageOptions.FieldName];
this.staff_detail = a.data[this.pageOptions.FieldName].staff_detail;
}).catch((a) => {
this.$mk.error(a.msg, "aaa");
});
@ -247,7 +238,7 @@ export default {
this.$zk.post({
url: this.DriverWagesSurplusAdd,
data: {
staff_uid: this.staff_detail.id,
staff_uid: this.pageOptions.ApiData.id,
add_balance: this.amount,
remark: this.remark
},
@ -287,7 +278,7 @@ export default {
url: this.DriverWagesSurplusReduce,
data: {
staff_uid: this.staff_detail.id,
staff_uid: this.pageOptions.ApiData.id,
reduce_balance: this.amount,
remark: this.remark

View File

@ -22,9 +22,9 @@
<vxe-toolbar ref="xToolbar" custom>
<template #buttons>
<!-- <template #buttons>
<a-button type="primary" icon="delete" @click="pageDelete()">批量删除</a-button>
</template>
</template> -->
</vxe-toolbar>
<!-- 表格区 -->
<div class="gridPanel">
@ -48,6 +48,12 @@
<a @click.stop="pageDetail(row)" title="详情">
<a-icon type="file"/>
</a>
<a @click.stop="pageEdit(row)" title="编辑">
<a-icon type="edit" />
</a>
<a @click.stop="pageDelete(row)" title="删除">
<a-icon type="delete" />
</a>
</div>
</template>
@ -203,13 +209,20 @@ export default {
showHeaderOverflow: true
}, //
{
field: 'create_time',
formatter: 'formatDate',
width: 100,
sortable: true,
title: '创建时间',
showHeaderOverflow: true
}, //
// =============================== Start ===============================
{ title: '详情', slots: { default: 'op' }, width: 150, fixed: 'right' }
{ title: '操作', slots: { default: 'op' }, width: 150, fixed: 'right' }
]
}
@ -408,9 +421,7 @@ export default {
},
//
watch: {
}
watch: {}
};
</script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<vxe-grid ref='xGrid' v-bind="gridOptions" @form-submit="initListData" @page-change="handlePageChange">
<!-- 工具栏 -->
<template #toolbar_buttons>
@ -11,17 +10,16 @@
<a-empty/>
</template>
</vxe-grid>
</div>
</template>
<script>
import ListMixin from "@/application/zk/mixins/ListComponents.js";
import DeleteMixin from "@/application/zk/mixins/DeleteComponents.js";
import DetailMixin from "@/application/zk/mixins/DetailComponents.js";
import UpdateMixin from "@/application/zk/mixins/UpdateComponents.js";
export default {
mixins: [ListMixin,],
mixins: [ListMixin, DeleteMixin, DetailMixin, UpdateMixin],
props: {
dataId: {
},
Columns: {
type: Array
},
@ -106,8 +104,6 @@ export default {
//
initListData() {
console.log("dataId :" ,this.dataId);
this.ListUrlData.order_bys = []
this.ListUrlData.order_bys.push({
column: "create_time",
@ -132,13 +128,6 @@ export default {
}
)
}
this.ListUrlData.search_rules.push(
{
column: "staff_uid",
mode: "=",
value: this.dataId
}
)
this.$zk.getPagedData({
url: this.ListUrl,
listFieldName: this.ListFieldName,

View File

@ -204,8 +204,6 @@ export default {
}
}
},
{ field: 'maintenance_date', dataRule: { type: 'timestamp' }, title: '维修日期', span: 6, itemRender: { name: '$input', props: { type: "date" } } },
{
field: 'maintenance_price', title: '维修金额', span: 6, itemRender: {

View File

@ -165,18 +165,27 @@ export default {
// =============================== Start ===============================
{field: 'truck_number_id', sortable: true, title: '车次id', width: 120}, // id
{field: 'truck_number_code', sortable: true, title: '车次单号', width: 120}, //
{field: 'truck_code', sortable: true, title: '车辆编码', width: 120}, //
{field: 'truck_name', sortable: true, title: '车辆名称', width: 120}, //
{field: 'truck_number', sortable: true, title: '车牌号', width: 90}, //
{field: 'oil_consumption_number', sortable: true, title: '油耗数量(升)', width: 130}, //
{field: 'oil_consumption_price', sortable: true, title: '油耗单价(元)', width: 130}, //
{field: 'oil_consumption_total_price', sortable: true, title: '油耗总价(元)', width: 130}, //
{field: 'oil_consumption_date', sortable: true, title: '油耗日期',
formatter: 'formatDate', width: 120}, //
{field: 'oil_consumption_hundred', sortable: true, title: '百公里油耗(升)', width: 140}, //
{field: 'truck_number', sortable: true, title: '车牌号', width: 120}, //
{field: 'oil_consumption_number', sortable: true, title: '油耗数量', width: 250}, //
{field: 'oil_consumption_price', sortable: true, title: '油耗单价', width: 250}, //
{field: 'oil_consumption_total_price', sortable: true, title: '油耗总价', width: 250}, //
{field: 'oil_consumption_date', sortable: true, title: '油耗日期', width: 120}, //
{field: 'oil_consumption_hundred', sortable: true, title: '百公里油耗', width: 250}, //
{field: 'oil_consumption_remark', sortable: true, title: '油耗备注', width: 250}, //
{
field: 'create_time',
formatter: 'formatDate',
width: 100,
sortable: true,
title: '创建时间',
showHeaderOverflow: true
}, //
// =============================== Start ===============================

View File

@ -181,6 +181,15 @@ export default {
{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: 250,
sortable: true,
title: '创建时间',
showHeaderOverflow: true
}, //
{field: 'remark', title: '备注', minWidth: 200}, //
// =============================== Start ===============================

View File

@ -148,7 +148,6 @@ export default {
//
var pageData = {
current_distance:0,
//
currentConfigName: "",
// ID
@ -393,7 +392,6 @@ export default {
onDataChanged: ({value,data}) => {
console.log(value,data)
this.formOptions.data.truck_id = data.id;
this.current_distance = data.current_distance
}
}
}

View File

@ -5,11 +5,11 @@
<a-col :flex="$mk.config.ui.searchFlex">
<!-- 搜索区 -->
<vxe-form :data="searchFormData" :items="searchFormItems" titleColon @submit="onSearch">
<template #date="{ }">
<template #date="{}">
<a-form-item label="创建时间" :style="{ display: 'inline-block', width: 120 }">
</a-form-item>
<a-form-item :style="{ display: 'inline-block', width: 'calc(100% - 120px )' }">
<a-range-picker @change="onDateChange" />
<a-range-picker @change="onDateChange"/>
</a-form-item>
</template>
</vxe-form>
@ -32,7 +32,7 @@
<!-- =============================== 表格列 自动生成 Start =============================== -->
<template #truck_id="{ row }">
{{ row.truck_name }}
{{ row.truck_name }}
</template>
<template #driver_id="{ row }">
{{ row.driver_name }}
@ -80,10 +80,10 @@
<a-icon type="file"/>
</a>
<a @click.stop="pageEdit(row)" title="编辑">
<a-icon type="edit" />
<a-icon type="edit"/>
</a>
<a @click.stop="pageDelete(row)" title="删除">
<a-icon type="delete" />
<a-icon type="delete"/>
</a>
</div>
</template>
@ -141,8 +141,8 @@ export default {
},
//
searchRules: [
{ key: "title", mode: "like" },
{ key: "desc", mode: "like" }
{key: "title", mode: "like"},
{key: "desc", mode: "like"}
],
//
searchFormItems: [ //
@ -150,14 +150,14 @@ export default {
field: 'code',
title: '车次单号',
span: 5,
itemRender: { name: '$input', props: { placeholder: '请输入车次单号' } }
itemRender: {name: '$input', props: {placeholder: '请输入车次单号'}}
},
// {field: 'desc', title: '', span: 5, itemRender: {name: '$input', props: {placeholder: ''}}},
{ span: 8, slots: { default: 'date' } }, //
{span: 8, slots: {default: 'date'}}, //
{
align: 'right', span: 4, itemRender: { //
name: '$buttons', children: [{ props: { type: 'submit', content: '搜索', status: 'primary' } }, //
{ props: { type: 'reset', content: '重置' } }]
name: '$buttons', children: [{props: {type: 'submit', content: '搜索', status: 'primary'}}, //
{props: {type: 'reset', content: '重置'}}]
}
}
],
@ -181,7 +181,7 @@ export default {
ajax: {
// queryreload
query: (options) => { // options
const { page, sorts } = options; //
const {page, sorts} = options; //
var params = {}; //
params.page = page.currentPage; //
params.limit = page.pageSize; //
@ -195,7 +195,7 @@ export default {
})
});
}
return this.loadData({ params }); //
return this.loadData({params}); //
}
}
},
@ -203,50 +203,44 @@ export default {
//
columns: [
{ type: 'checkbox', width: 50 }, //
{ type: 'seq', width: 40 }, //
{type: 'checkbox', width: 50}, //
{type: 'seq', width: 40}, //
// =============================== Start ===============================
{ field: 'code', align: 'center', sortable: true, title: '车次单号', width: 120 }, //
{
field: 'truck_id', align: 'center', sortable: true, title: '车辆', width: 150,
slots: { default: 'truck_id' }
}, // id
{
field: 'driver_id', align: 'center', sortable: true, title: '司机', width: 150,
slots: { default: 'driver_id' }
}, // id
{field: 'code',align: 'center', sortable: true, title: '车次单号', width: 120}, //
{field: 'truck_id', align: 'center',sortable: true, title: '车辆', width: 150,
slots: {default: 'truck_id'}}, // id
{field: 'driver_id',align: 'center', sortable: true, title: '司机', width: 150,
slots: {default: 'driver_id'}}, // id
// {field: 'custom_id', sortable: true, title: 'id', width: 250}, // id
{ field: 'custom_name', align: 'center', sortable: true, title: '客户名称', width: 200 }, //
{field: 'custom_name', align: 'center',sortable: true, title: '客户名称', width: 200}, //
// {field: 'supplier_id', sortable: true, title: 'id', width: 250}, // id
{ field: 'supplier_name', align: 'center', sortable: true, title: '供应商名称', width: 200 }, //
{field: 'supplier_name', align: 'center',sortable: true, title: '供应商名称', width: 200}, //
// {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: 'unit_price', sortable: true, title: '', width: 120}, //
// {field: 'total_price', sortable: true, title: '', width: 120}, //
{
field: 'is_outsourcing', align: 'center', sortable: true, title: '类型', width: 80,
slots: { default: 'is_outsourcing' }
}, //
{field: 'is_outsourcing', align: 'center',sortable: true, title: '类型', width: 80,
slots: {default: 'is_outsourcing'}
}, //
// {field: 'is_need_outbound', sortable: true, title: '', width: 70}, //
{ 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_change_tire', align: 'center',sortable: true, title: '', width: 100,
// slots: {default: 'is_change_tire'}
// }, //
// {field: 'is_repair', align: 'center',sortable: true, title: '', width: 70,
// slots: {default: 'is_repair'}
// }, //
{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: 'is_change_tire', align: 'center',sortable: true, title: '更换轮胎', width: 100,
slots: {default: 'is_change_tire'}
}, //
{field: 'is_repair', align: 'center',sortable: true, title: '维修', width: 70,
slots: {default: 'is_repair'}
}, //
{field: 'is_oil',align: 'center', sortable: true, title: '加油', width: 70,
slots: {default: 'is_oil'}
}, //
// {
// field: 'create_time',
@ -257,8 +251,8 @@ export default {
// showHeaderOverflow: true
// }, //
{ field: 'outbound_mileage', align: 'center', sortable: true, title: '出车公里数', width: 120 }, //
{ field: 'outbound_remark', align: 'center', sortable: true, title: '出车备注', width: 250 }, //
{field: 'outbound_mileage', align: 'center',sortable: true, title: '出车公里数', width: 120}, //
{field: 'outbound_remark', align: 'center',sortable: true, title: '出车备注', width: 250}, //
{
field: 'income', sortable: true, title: '收入', width: 80, fixed: 'right',
align: 'center',
@ -362,10 +356,10 @@ export default {
return row; //
},
//
loadData({ params }) {
loadData({params}) {
params.start_time = this.start_time; //
params.end_time = this.end_time; //
return this.$mk.getPagedData({ url: this.actions.getList, data: params }); //
return this.$mk.getPagedData({url: this.actions.getList, data: params}); //
},
// add / log / setting

View File

@ -30,9 +30,6 @@
<a-descriptions-item label="出车次数">
{{ data.out_count }}
</a-descriptions-item>
<a-descriptions-item label="当前车辆公里数">
{{ data.current_distance }}
</a-descriptions-item>
<a-descriptions-item label="出车总公里数">
{{ data.out_distance }}
</a-descriptions-item>

View File

@ -81,18 +81,18 @@ export default {
{type: 'checkbox', width: 42},
// =============================== Start ===============================
{field: 'name', sortable: true, title: '名称', width: 120}, //
{field: 'code', sortable: true, title: '编码', width: 80}, //
{field: 'code', sortable: true, title: '编码', width: 120}, //
{field: 'plate_number', sortable: true, title: '车牌号', width: 120}, //
{field: 'type', sortable: true, title: '车辆类型', width: 100}, //
{field: 'current_distance', sortable: true, title: '当前公里数', width: 120}, //
{field: 'out_count', sortable: true, title: '出车次数', width: 100}, //
{field: 'out_distance', sortable: true, title: '出车总公里数', width: 130}, //
{field: 'type', sortable: true, title: '车辆类型', width: 120}, //
{field: 'current_distance', sortable: true, title: '当前公里数', width: 150}, //
{field: 'manager_name', sortable: true, title: '负责人姓名', width: 120}, //
{field: 'manager_phone', sortable: true, title: '负责人电话', width: 150}, //
{field: 'out_count', sortable: true, title: '出车次数', width: 120}, //
{field: 'out_distance', sortable: true, title: '出车总公里数', width: 150}, //
{field: 'repair_count', sortable: true, title: '维修次数', width: 100}, //
{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: 'manager_name', sortable: true, title: '负责人姓名', width: 120}, //
{field: 'manager_phone', sortable: true, title: '负责人电话', width: 120}, //
{field: 'remark', sortable: true, title: '车辆备注', minWidth: 250}, //
// =============================== Start ===============================
{title: '操作', fixed: 'right', slots: {default: 'op'}, width: 140}