|
@@ -67,6 +67,8 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
|
|
reportQueryDateType: 0,//时间类型 1 充值时间 0 创建时间
|
|
reportQueryDateType: 0,//时间类型 1 充值时间 0 创建时间
|
|
salesmanId: undefined,//账期类型
|
|
salesmanId: undefined,//账期类型
|
|
accountPeriod: undefined,//业务员
|
|
accountPeriod: undefined,//业务员
|
|
|
|
+ reportBatchQuery: false,//报表账单分批查询
|
|
|
|
+ lastCycleOrder: false,//上周期收货订单
|
|
consumeFlag: 1,
|
|
consumeFlag: 1,
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -90,6 +92,7 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
|
|
inputMultiOrders: '',//单号文本框1
|
|
inputMultiOrders: '',//单号文本框1
|
|
inputOrders: '',//单号文本框2
|
|
inputOrders: '',//单号文本框2
|
|
reportType: 0,//报表类型
|
|
reportType: 0,//报表类型
|
|
|
|
+ customerBillId: undefined,//标识客户账单的账单id
|
|
})
|
|
})
|
|
// 操作类别
|
|
// 操作类别
|
|
const actionOptions: ActionOptions[] = [
|
|
const actionOptions: ActionOptions[] = [
|
|
@@ -129,6 +132,10 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
|
|
history.state.periodBeginDate = undefined
|
|
history.state.periodBeginDate = undefined
|
|
history.state.periodEndDate = undefined
|
|
history.state.periodEndDate = undefined
|
|
}
|
|
}
|
|
|
|
+ if (state.customerBillId) {
|
|
|
|
+ dealData.customerBillId = state.customerBillId
|
|
|
|
+ history.state.customerBillId = undefined
|
|
|
|
+ }
|
|
}
|
|
}
|
|
onBeforeMount(() => {
|
|
onBeforeMount(() => {
|
|
initStartAndEndDates()
|
|
initStartAndEndDates()
|
|
@@ -178,8 +185,10 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
|
|
dealData.reportType = 0
|
|
dealData.reportType = 0
|
|
hanlClearOrderIdList()
|
|
hanlClearOrderIdList()
|
|
for (const key of Object.keys(queryUserMoneySumDetailForm)) {
|
|
for (const key of Object.keys(queryUserMoneySumDetailForm)) {
|
|
- if (isBoolean(queryUserMoneySumDetailForm[key])) {
|
|
|
|
|
|
+ if (key == 'validData' && isBoolean(queryUserMoneySumDetailForm[key])) {
|
|
queryUserMoneySumDetailForm[key] = true;
|
|
queryUserMoneySumDetailForm[key] = true;
|
|
|
|
+ } else if (isBoolean(queryUserMoneySumDetailForm[key])) {
|
|
|
|
+ queryUserMoneySumDetailForm[key] = false;
|
|
} else if (isArray(queryUserMoneySumDetailForm[key])) {
|
|
} else if (isArray(queryUserMoneySumDetailForm[key])) {
|
|
queryUserMoneySumDetailForm[key] = [];
|
|
queryUserMoneySumDetailForm[key] = [];
|
|
} else {
|
|
} else {
|
|
@@ -190,6 +199,7 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
|
|
queryUserMoneySumDetailForm.total = 0
|
|
queryUserMoneySumDetailForm.total = 0
|
|
queryUserMoneySumDetailForm.reportQueryDateType = 0
|
|
queryUserMoneySumDetailForm.reportQueryDateType = 0
|
|
queryUserMoneySumDetailForm.consumeFlag = 1
|
|
queryUserMoneySumDetailForm.consumeFlag = 1
|
|
|
|
+ dealData.customerBillId = undefined
|
|
initStartAndEndDates()
|
|
initStartAndEndDates()
|
|
}
|
|
}
|
|
|
|
|
|
@@ -296,6 +306,11 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
|
|
const { sizeChange, currentChange, searchBtn, resetBtn, listParams } = useQueryList<UserMoneyDetailParam>(initList, resetParams, queryUserMoneySumDetailForm)
|
|
const { sizeChange, currentChange, searchBtn, resetBtn, listParams } = useQueryList<UserMoneyDetailParam>(initList, resetParams, queryUserMoneySumDetailForm)
|
|
const exportBillBtn = async () => {
|
|
const exportBillBtn = async () => {
|
|
const params = await flatDate()
|
|
const params = await flatDate()
|
|
|
|
+ // 判断时间类型为收货时间且客户账单id为空提示
|
|
|
|
+ if (params.reportQueryDateType === 1 && !dealData.customerBillId) {
|
|
|
|
+ createMessage.warning('按收货日期导出费用,请从相应账单跳转!')
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
// 导出币种默认值
|
|
// 导出币种默认值
|
|
if (!params.currencyCode) params.currencyCode = "CNY"
|
|
if (!params.currencyCode) params.currencyCode = "CNY"
|
|
if (!isNumber(params.reportQueryDateType)) {
|
|
if (!isNumber(params.reportQueryDateType)) {
|
|
@@ -341,6 +356,10 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // 分期导出change事件
|
|
|
|
+ const changeReportBatchQuery = (val) => {
|
|
|
|
+ if (!val) queryUserMoneySumDetailForm.lastCycleOrder = false
|
|
|
|
+ }
|
|
// 平账
|
|
// 平账
|
|
const hanleBalanced = async (data) => {
|
|
const hanleBalanced = async (data) => {
|
|
const res = await api_UserBalance(data)
|
|
const res = await api_UserBalance(data)
|
|
@@ -462,6 +481,7 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
|
|
accountPeriodTypeList,
|
|
accountPeriodTypeList,
|
|
allPaymentPlatformList,
|
|
allPaymentPlatformList,
|
|
getFeeTotalAmount,
|
|
getFeeTotalAmount,
|
|
|
|
+ changeReportBatchQuery,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|