祁鹏飞 3 місяців тому
батько
коміт
000f4ad1ce

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