祁鹏飞 3 bulan lalu
induk
melakukan
000f4ad1ce

+ 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
 }
 }