出车记录

This commit is contained in:
ljx 2024-04-30 17:57:10 +08:00
parent eaa6d0b59f
commit 1d4a162a06
3 changed files with 19 additions and 7 deletions

View File

@ -52,12 +52,12 @@
<a-tabs default-active-key="1" size="large">
<a-tab-pane key="1" tab="货车收入列表">
<TruckIncomeList :ListUrl="TruckIncomeList" :ListUrlData="TSelectData" :ListFieldName="TSelectDataFieldName"
:Columns="this.$data.Tcolumns" :dataId ="dataId">
:Columns="this.$data.Tcolumns" :truckID="truckID">
</TruckIncomeList>
</a-tab-pane>
<a-tab-pane key="2" tab="出车记录" force-render>
<zkTableList :ListUrl="TrainNumberList" :ListUrlData="zkSelectData" :ListFieldName="zkSelectDataFieldName"
:Columns="this.$data.columns" >
:Columns="this.$data.columns" :truckID="truckID">
</zkTableList>
</a-tab-pane>
@ -187,7 +187,9 @@ export default {
initDetailData() {
console.log("this.pageOptions.FieldName:", this.pageOptions.FieldName)
// this.dataId bigint
this.truckID = this.dataId;
let dataId = this.$mk.toBigInt(this.dataId);
this.$zk.post({
url: this.pageOptions.ApiUrl,
data: {

View File

@ -75,6 +75,7 @@ export default {
Columns: {
type: Array
},
truckID:{},
FormConfig: {
type: Object,
default: () => {
@ -180,6 +181,11 @@ export default {
}
)
}
this.ListUrlData.search_rules.push({
column: "truck_id",
mode: "=",
value: this.truckID
})
this.$zk.getPagedData({
url: this.ListUrl,
listFieldName: this.ListFieldName,

View File

@ -71,7 +71,7 @@ export default {
Columns: {
type: Array
},
dataId:{},
truckID:{},
FormConfig: {
type: Object,
default: () => {
@ -177,7 +177,11 @@ export default {
// }
// )
// }
this.ListUrlData.truck_id = this.$mk.toBigInt(this.dataId);
this.ListUrlData.search_rules.push({
column: "truck_id",
mode: "=",
value: this.truckID
})
this.$zk.getPagedData({
url: this.ListUrl,
listFieldName: this.ListFieldName,
@ -284,9 +288,9 @@ export default {
FieldName: this.DetailFieldName,
title: "详情",
},
// callback: ({success}) => {
// success && this.initListData(); //
// }
callback: ({success}) => {
success && this.initListData(); //
}
})
}
}