Browse Source

bug修改

祁鹏飞 3 months ago
parent
commit
000f4ad1ce
2 changed files with 2 additions and 2 deletions
  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 减数
  * @param subtrahend 减数
  * @returns 差值,若接口无数据则返回 0
  * @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 })
   const res = await api.financeApi.calSub({ minuend, subtrahend })
   return res.data || 0
   return res.data || 0
 }
 }

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

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