出车记录

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

View File

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

View File

@ -71,7 +71,7 @@ export default {
Columns: { Columns: {
type: Array type: Array
}, },
dataId:{}, truckID:{},
FormConfig: { FormConfig: {
type: Object, type: Object,
default: () => { 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({ this.$zk.getPagedData({
url: this.ListUrl, url: this.ListUrl,
listFieldName: this.ListFieldName, listFieldName: this.ListFieldName,
@ -284,9 +288,9 @@ export default {
FieldName: this.DetailFieldName, FieldName: this.DetailFieldName,
title: "详情", title: "详情",
}, },
// callback: ({success}) => { callback: ({success}) => {
// success && this.initListData(); // success && this.initListData(); //
// } }
}) })
} }
} }