出车记录
This commit is contained in:
parent
eaa6d0b59f
commit
1d4a162a06
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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(); // 如果成功,初始化列表数据
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue