祁鹏飞 3 месяцев назад
Родитель
Сommit
000f4ad1ce
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/views/platform/ticket.vue
  2. 1 1
      src/views/receivable/handingFee/ticket.vue

+ 1 - 1
src/views/platform/ticket.vue

@@ -577,7 +577,7 @@ const handleChange = async () => {
  * @param subtrahend 减数
  * @returns 差值,若接口无数据则返回 0
  */
-const calSub = async (minuend: number, subtrahend: number) => {
+const calSub = async (minuend: number = 0, subtrahend: number) => {
   const res = await api.financeApi.calSub({ minuend, subtrahend })
   return res.data || 0
 }

+ 1 - 1
src/views/receivable/handingFee/ticket.vue

@@ -543,7 +543,7 @@ const handleChange1 = async () => {
  * @param subtrahend 减数
  * @returns 差值,若接口无数据则返回 0
  */
-const calSub = async (minuend: number, subtrahend: number) => {
+const calSub = async (minuend: number = 0, subtrahend: number) => {
   const res = await api.financeApi.calSub({ minuend, subtrahend })
   return res.data || 0
 }