Browse Source

bug修复

chenrui 3 years ago
parent
commit
9976575ac8
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/inventoryManagement/inventoryChecking/detailModal.vue

+ 4 - 2
src/views/inventoryManagement/inventoryChecking/detailModal.vue

@@ -43,7 +43,7 @@
           </a-descriptions-item>
           <a-descriptions-item label="盘点类型">{{ (basicInfoData&&basicInfoData.checkTypeDictValue) || '--' }}</a-descriptions-item>
           <a-descriptions-item label="是否区分仓库" v-if="basicInfoData&&basicInfoData.checkType=='SELECT'">{{ (basicInfoData&&basicInfoData.warehouseFlagDictValue) || '--' }}</a-descriptions-item>
-          <a-descriptions-item label="盘点仓库" v-if="basicInfoData&&basicInfoData.warehouseFlag=='1'">{{ (basicInfoData&&basicInfoData.warehouseNameList) || '--' }}</a-descriptions-item>
+          <a-descriptions-item label="盘点仓库" v-if="basicInfoData&&basicInfoData.warehouseFlag=='1'" :span="3">{{ (basicInfoData&&basicInfoData.warehouseNameList) || '--' }}</a-descriptions-item>
           <a-descriptions-item label="创建人">{{ (basicInfoData&&basicInfoData.creatorName) || '--' }}</a-descriptions-item>
           <a-descriptions-item label="创建时间">{{ (basicInfoData&&basicInfoData.createDate) || '--' }}</a-descriptions-item>
           <a-descriptions-item label="审核时间">{{ (basicInfoData&&basicInfoData.checkSuperviseTime) || '--' }}</a-descriptions-item>
@@ -218,7 +218,9 @@ export default {
       checkWarehouseDetailCount(Object.assign(this.queryParam, { checkWarehouseSn: this.itemSn })).then(res => {
         if (res.status == 200) {
           this.productTotal = res.data
-          this.productTotal.checkLossQty = Math.abs(this.productTotal.checkLossQty || 0)
+          if (res.data && res.data.checkLossQty) {
+            this.productTotal.checkLossQty = Math.abs(this.productTotal.checkLossQty || 0)
+          }
         } else {
           this.productTotal = null
         }