一些bug的修复
This commit is contained in:
parent
92cb8ec9d9
commit
ba9095178b
@ -93,22 +93,42 @@ export const tinyDelivery = ({
|
||||
page,
|
||||
page_len,
|
||||
order_num,
|
||||
// delivery_id,
|
||||
driver_name,
|
||||
driver_account,
|
||||
// driver_phone,
|
||||
start_time,
|
||||
end_time,
|
||||
supplier_name,
|
||||
site_name
|
||||
// transit_name,
|
||||
// variety_num,
|
||||
site_name,
|
||||
// product_type,
|
||||
// order_ton,
|
||||
// over_ton,
|
||||
// post_fee,
|
||||
// create_time
|
||||
enterprise_id,
|
||||
}) => fetch('/admin/order/tiny_delivery', {
|
||||
page,
|
||||
page_len,
|
||||
order_num,
|
||||
// delivery_id,
|
||||
driver_name,
|
||||
driver_account,
|
||||
// driver_phone,
|
||||
start_time,
|
||||
end_time,
|
||||
supplier_name,
|
||||
site_name
|
||||
// transit_name,
|
||||
// variety_num,
|
||||
site_name,
|
||||
// product_type,
|
||||
// order_ton,
|
||||
// over_ton,
|
||||
// post_fee,
|
||||
// create_time
|
||||
enterprise_id,
|
||||
}, 'POST')
|
||||
|
||||
// 录入运费
|
||||
@ -224,14 +244,16 @@ export const listDriverTiny = ({
|
||||
// driver_name,
|
||||
// driver_account,
|
||||
start_time,
|
||||
end_time
|
||||
end_time,
|
||||
enterprise_id
|
||||
}) => fetch('/admin/order/list_head_order', {
|
||||
page,
|
||||
page_len,
|
||||
head_id,
|
||||
head_name,
|
||||
start_time,
|
||||
end_time
|
||||
end_time,
|
||||
enterprise_id
|
||||
}, 'POST')
|
||||
|
||||
// 编辑运费
|
||||
@ -289,7 +311,12 @@ export const listCost = ({
|
||||
}, 'POST')
|
||||
|
||||
//运费成本详情
|
||||
export const detailCost = (cost_id) => fetch('/admin/order/detail_cost', {cost_id}, 'POST')
|
||||
export const detailCost = ({
|
||||
cost_id,
|
||||
enterprise_id
|
||||
}
|
||||
|
||||
) => fetch('/admin/order/detail_cost', {cost_id,enterprise_id}, 'POST')
|
||||
|
||||
// 运费成本删除
|
||||
export const deleteCost = (cost_id) => fetch('/admin/order/delete_cost', {cost_id}, 'POST')
|
||||
@ -499,13 +526,15 @@ export const listClientAccount = ({
|
||||
page_len,
|
||||
client_name,
|
||||
client_company,
|
||||
account_date
|
||||
account_date,
|
||||
enterprise_id
|
||||
}) => fetch('/admin/order/list_client_account', {
|
||||
page,
|
||||
page_len,
|
||||
client_name,
|
||||
client_company,
|
||||
account_date
|
||||
account_date,
|
||||
enterprise_id
|
||||
}, 'POST')
|
||||
|
||||
// 客户账款-收款明细
|
||||
@ -672,12 +701,14 @@ export const listSupplierAccount = ({
|
||||
page,
|
||||
page_len,
|
||||
supplier_name,
|
||||
account_date
|
||||
account_date,
|
||||
enterprise_id,
|
||||
}) => fetch('/admin/order/list_supplier_account', {
|
||||
page,
|
||||
page_len,
|
||||
supplier_name,
|
||||
account_date
|
||||
account_date,
|
||||
enterprise_id
|
||||
}, 'POST')
|
||||
|
||||
// 供应商账款-付款明细
|
||||
|
@ -1,3 +1,4 @@
|
||||
//配送明细
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!-- 搜索 -->
|
||||
@ -108,7 +109,9 @@ export default {
|
||||
searchForm: {
|
||||
page: 1,
|
||||
page_len: 10,
|
||||
start_time: ''
|
||||
craet_time: '',
|
||||
// 'transit name':'惠州中转站',
|
||||
enterprise_id:1
|
||||
},
|
||||
downloadLoading: false, // 导出按钮状态
|
||||
dialogEntry: false, // 录入信息弹窗
|
||||
@ -127,19 +130,27 @@ export default {
|
||||
this.fetchData()
|
||||
},
|
||||
methods: {
|
||||
// 获取企业列表
|
||||
// 获取配送列表
|
||||
fetchData(obj={}) {
|
||||
if(obj.page) {
|
||||
this.searchForm.page = obj.page
|
||||
this.searchForm.page_len = obj.page_len
|
||||
}
|
||||
this.searchForm.start_time = this.$route.query.start_time?this.$route.query.start_time:this.searchForm.start_time;
|
||||
this.listLoading = true
|
||||
this.searchForm.start_time = this.$route.query.start_time || this.searchForm.start_time;
|
||||
this.$http(tinyDelivery(this.searchForm), (res) => {
|
||||
this.firmList = res.data.result
|
||||
this.total = res.data.data_sum
|
||||
this.listLoading = false
|
||||
})
|
||||
if (res.code === 0) {
|
||||
this.firmList = res.data.result; // 将结果数组赋值给 firmList
|
||||
// console.log('获取到的企业列表:', this.firmList);
|
||||
|
||||
this.total = res.data.data_sum; // 更新 total 为 data_sum
|
||||
this.listLoading = false;
|
||||
} else {
|
||||
console.error('获取数据出错:', res.message);
|
||||
this.listLoading = true;
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error('请求失败:', error);
|
||||
});
|
||||
},
|
||||
// 录入信息
|
||||
handleEntry(id) {
|
||||
|
@ -224,7 +224,8 @@ export default {
|
||||
// 搜索相关数据
|
||||
searchForm: {
|
||||
page: 1,
|
||||
page_len: 100000000
|
||||
page_len: 100000000,
|
||||
enterprise_id:1
|
||||
},
|
||||
baseUrl,
|
||||
percentage: 0, // 进度条数据
|
||||
|
@ -97,7 +97,8 @@ export default {
|
||||
// 搜索相关数据
|
||||
searchForm: {
|
||||
page: 1,
|
||||
page_len: 10
|
||||
page_len: 10,
|
||||
enterprise_id:1
|
||||
},
|
||||
dialogEntry: false,
|
||||
entryInfo: {
|
||||
|
@ -94,7 +94,8 @@ export default {
|
||||
// 搜索相关数据
|
||||
searchForm: {
|
||||
page: 1,
|
||||
page_len: 10
|
||||
page_len: 10,
|
||||
enterprise_id:1
|
||||
},
|
||||
dialogEntry: false,
|
||||
entryInfo: {
|
||||
|
@ -139,6 +139,7 @@ export default {
|
||||
listLoading: true,
|
||||
chilTotal: 0, // 子列表总数
|
||||
msgListLoading: false,
|
||||
enterprise_id:1,
|
||||
// 搜索相关数据
|
||||
searchForm: {
|
||||
page: 1,
|
||||
@ -233,7 +234,8 @@ export default {
|
||||
cost_id ? this.title = '编辑司机成本记录' : this.title = '新增司机成本记录'
|
||||
this.fetchDriver()
|
||||
if(cost_id) {
|
||||
this.$http(detailCost(cost_id), res => {
|
||||
|
||||
this.$http(detailCost(cost_id,enterprise_id), res => {
|
||||
this.entryInfo = res.data
|
||||
this.dialog = true
|
||||
})
|
||||
|
@ -182,7 +182,8 @@ export default {
|
||||
// 搜索相关数据
|
||||
searchForm: {
|
||||
page: 1,
|
||||
page_len: 100000000
|
||||
page_len: 100000000,
|
||||
enterprise_id: 1
|
||||
},
|
||||
baseUrl,
|
||||
clientHeight: 0, // 屏幕的高度
|
||||
|
Loading…
Reference in New Issue
Block a user