chenrui 2 anni fa
parent
commit
08bd7d2c95

+ 5 - 5
src/views/purchasingManagement/purchaseReturn/detailModal.vue

@@ -35,12 +35,12 @@
       </a-alert>
       <s-table
         class="sTable"
-        ref="table"
+        ref="tableDetail"
         size="small"
-        :rowKey="(record) => record.stockPutSn"
+        :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :defaultLoadData="false"
+        :defaultLoadData="true"
         bordered>
       </s-table>
       <div class="btn-cont"><a-button id="confirmationDetail-modal-back" @click="isShow = false">返回列表</a-button></div>
@@ -136,7 +136,7 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
-        this.$refs.table.clearTable()
+        this.$refs.tableDetail.clearTable()
       } else {
         this.getStatisticsData()
         this.getBasicsInfo()
@@ -146,7 +146,7 @@ export default {
       if (this.isShow && newValue) {
         const _this = this
         setTimeout(() => {
-          _this.$refs.table.refresh(true)
+          _this.$refs.tableDetail.refresh(true)
         }, 200)
       }
     }

+ 1 - 1
src/views/purchasingManagement/purchaseReturn/reviewProgressModal.vue

@@ -14,7 +14,7 @@
         class="sTable fixPagination"
         ref="table"
         size="small"
-        :rowKey="(record) => record.id"
+        :rowKey="(record,index) => {return index}"
         :columns="columns"
         :data="loadData"
         :scroll="{ y: 500 }"