chenrui 4 lat temu
rodzic
commit
12a24ee8f6

+ 9 - 4
src/views/salesManagement/backorder/detailModal.vue

@@ -22,10 +22,10 @@
       <!-- alert -->
       <a-alert type="info" showIcon style="margin-bottom:10px">
         <div slot="message">
-          缺货总款数:<strong>{{ (detailData&&detailData.totalCategory)||detailData.totalCategory==0 ? detailData.totalCategory : '--' }}</strong>,
-          缺货总数量:<strong>{{ (detailData&&detailData.totalQty)||detailData.totalQty==0 ? detailData.totalQty : '--' }}</strong>,
-          缺货总售价:<strong>{{ (detailData&&detailData.totalAmount)||detailData.totalAmount==0 ? detailData.totalAmount : '--' }}</strong></div>
-      </a-alert>
+          缺货总款数:<strong>{{ detailData ? ((detailData.totalCategory || detailData.totalCategory==0) ? detailData.totalCategory : '--') : '--' }}</strong>,
+          缺货总数量:<strong>{{ detailData ? ((detailData.totalQty || detailData.totalQty==0) ? detailData.totalQty : '--') : '--' }}</strong>,
+          缺货总售价:<strong>{{ detailData ? ((detailData.totalAmount || detailData.totalAmount==0) ? detailData.totalAmount : '--') : '--' }}</strong>
+        </div></a-alert>
       <!-- 列表 -->
       <s-table
         class="sTable"
@@ -34,6 +34,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
+        :defaultLoadData="false"
         :scroll="{ x: 1040, y: 500 }"
         bordered>
       </s-table>
@@ -111,7 +112,11 @@ export default {
     },
     itemSn (newValue, oldValue) {
       if (this.isShow && newValue) {
+        const _this = this
         this.getDetail()
+        setTimeout(() => {
+          _this.$refs.table.refresh(true)
+        }, 200)
       }
     }
   }