chenrui vor 3 Jahren
Ursprung
Commit
9288b4a0c6

+ 1 - 1
src/views/reportData/stockExpenditureReport/list.vue

@@ -203,7 +203,7 @@ export default {
       this.spinning = true
       reportStockOutList(params).then(res => {
         this.listLoading = false
-        if (res.status == 200) {
+        if (res.status == 200 && res.data) {
           const reportStockOutVOList = (res.data && res.data.reportStockOutVOList) ? res.data.reportStockOutVOList : []
           const totalQty = (res.data && (res.data.totalQty || res.data.totalQty == 0)) ? res.data.totalQty : '--'
           const totalPrice = (res.data && (res.data.totalPrice || res.data.totalPrice == 0)) ? res.data.totalPrice : '--'

+ 1 - 1
src/views/reportData/stockIncomeReport/list.vue

@@ -203,7 +203,7 @@ export default {
       this.spinning = true
       reportStockPutList(params).then(res => {
         this.listLoading = false
-        if (res.status == 200) {
+        if (res.status == 200 && res.data) {
           const reportStockPutVOList = (res.data && res.data.reportStockPutVOList) ? res.data.reportStockPutVOList : []
           const totalQty = (res.data && (res.data.totalQty || res.data.totalQty == 0)) ? res.data.totalQty : '--'
           const totalPrice = (res.data && (res.data.totalPrice || res.data.totalPrice == 0)) ? res.data.totalPrice : '--'