|
@ -65,7 +65,8 @@ const tableData = ref([]) |
|
|
// 搜索====================================== |
|
|
// 搜索====================================== |
|
|
// 搜索detail |
|
|
// 搜索detail |
|
|
const refundUser = ref({ |
|
|
const refundUser = ref({ |
|
|
market: "" |
|
|
|
|
|
|
|
|
market: "", |
|
|
|
|
|
refundType: "" |
|
|
}) |
|
|
}) |
|
|
// 搜索对象 |
|
|
// 搜索对象 |
|
|
const getObj = ref({ |
|
|
const getObj = ref({ |
|
@ -163,6 +164,7 @@ const getSelectBy = async function (val) { |
|
|
refundUser: { ...refundUser.value, flag: showEmployeeData.value ? 0 : 1 } |
|
|
refundUser: { ...refundUser.value, flag: showEmployeeData.value ? 0 : 1 } |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
console.log('===============================',refundUser.value) |
|
|
// 复制一份 refundUser.value 并移除排序字段和排序方式 |
|
|
// 复制一份 refundUser.value 并移除排序字段和排序方式 |
|
|
const detailWithoutSort = { |
|
|
const detailWithoutSort = { |
|
|
...refundUser.value, |
|
|
...refundUser.value, |
|
@ -203,8 +205,6 @@ const getSelectBy = async function (val) { |
|
|
// 存储分页总数 |
|
|
// 存储分页总数 |
|
|
total.value = result.data.total |
|
|
total.value = result.data.total |
|
|
console.log('total', total.value) |
|
|
console.log('total', total.value) |
|
|
// 调用分类的方法 |
|
|
|
|
|
handleClick() |
|
|
|
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.log('请求失败', error) |
|
|
console.log('请求失败', error) |
|
|
// 在这里可以处理错误逻辑,比如显示错误提示等 |
|
|
// 在这里可以处理错误逻辑,比如显示错误提示等 |
|
@ -260,21 +260,6 @@ const get7Days = function () { |
|
|
getSelectBy() |
|
|
getSelectBy() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//点击标签页 |
|
|
|
|
|
// 设置tab.props.name默认为all |
|
|
|
|
|
const tabName = ref('all') |
|
|
|
|
|
const handleClick = function (tab, event) { |
|
|
|
|
|
if (tab.props.name === 'all') { |
|
|
|
|
|
adminAll() |
|
|
|
|
|
} else if (tab.props.name === 'wait') { |
|
|
|
|
|
adminWait() |
|
|
|
|
|
} else if (tab.props.name === 'pass') { |
|
|
|
|
|
adminPass() |
|
|
|
|
|
} else if (tab.props.name === 'reject') { |
|
|
|
|
|
adminReject() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const delObj = ref({}) |
|
|
const delObj = ref({}) |
|
|
const del = function (row) { |
|
|
const del = function (row) { |
|
|
delObj.value.detailId = row.detailId |
|
|
delObj.value.detailId = row.detailId |
|
@ -374,7 +359,8 @@ const exportExcel = async function () { |
|
|
startTime: refundUser.value.startTime || '', |
|
|
startTime: refundUser.value.startTime || '', |
|
|
endTime: refundUser.value.endTime || '', |
|
|
endTime: refundUser.value.endTime || '', |
|
|
goodsName: refundUser.value.goodsName || '', |
|
|
goodsName: refundUser.value.goodsName || '', |
|
|
flag: showEmployeeData.value ? 0 : 1 |
|
|
|
|
|
|
|
|
flag: showEmployeeData.value ? 0 : 1, |
|
|
|
|
|
refundType: refundUser.value.refundType || '', |
|
|
}, |
|
|
}, |
|
|
page: getObj.pageNum, |
|
|
page: getObj.pageNum, |
|
|
size: total.value |
|
|
size: total.value |
|
|