Explorar o código

托书参照装箱单面料分页

jbb %!s(int64=2) %!d(string=hai) anos
pai
achega
47b889c7fa

+ 1 - 1
src/views/book/book-list.vue

@@ -122,7 +122,7 @@
     <!-- 抽屉 -->
     <addBook-drawer ref="addBookDrawer" :father="aa" @ok="modalFormOk" @back="getBookList"></addBook-drawer>
     <detailsBook-drawer ref="detailsBookDrawer" :father="bb" @ok="modalFormOk"></detailsBook-drawer>
-    <editBook-drawer ref="editBookDrawer" :father="cc" @ok="modalFormOk"></editBook-drawer>
+    <!-- <editBook-drawer ref="editBookDrawer" :father="cc" @ok="modalFormOk"></editBook-drawer> -->
   </div>
 </template>
 

+ 17 - 1
src/views/book/detailsBookDrawer.vue

@@ -155,7 +155,6 @@
               :pagination="ipagination"
               :scroll="{ x: 1500 }"
               @change="handleTableChange"
-              :footer="addBookFooterShow"
             >
             </a-table>
           </a-form-model>
@@ -455,6 +454,23 @@ export default {
   },
   created() {},
   methods: {
+
+    //  // 新增托书 子表合计
+    // addBookFooterShow(data) {
+    //   console.log('新增托书 子表 ----合计行')
+    //   console.log('data', data)
+    //   return (
+    //     <a-table
+    //       rowKey={Math.random}
+    //       bordered={false}
+    //       pagination={false}
+    //       columns={this.addBookColumns}
+    //       dataSource={this.addBookFooterDataSource || []}
+    //       showHeader={false}
+    //     ></a-table>
+    //   )
+    // },
+    
     // 抽屉 取消
     handleCancel() {
       console.log('点击抽屉取消')

+ 12 - 3
src/views/book/packingListModalFabrics.vue

@@ -54,7 +54,7 @@
           :columns="packingListColumns"
           :data-source="packingListData"
           :loading="loading"
-          :pagination="ipagination"
+          :pagination="pagination"
           :row-key="record => record.id"
           :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
           @change="handleTableChange"
@@ -254,7 +254,8 @@ export default {
       errorFather:[],
       // orderDataform: this.$form.createForm(this),
       confirmLoading: false,
-      packingListModalFabrics: false
+      packingListModalFabrics: false,
+      pagination:{}
     }
   },
   // 接收父组件 方法
@@ -271,6 +272,11 @@ export default {
       PackingList(this.queryParam).then(res => {
           if (res.success) {
            this.packingListData = res.result.records
+           this.pagination = {
+              total: res.result.total,
+              current: res.result.current,
+              pageSize: res.result.size
+            }
           }else {
              this.$message.error(res.message);
           }
@@ -343,7 +349,10 @@ export default {
     handleCancel() {
       this.close()
     },
-    handleTableChange() {},
+    handleTableChange(pagination, filters, sorter) {
+      this.queryParam.pageNo = pagination.current
+      this.getPackingList()
+    },
     // 选中行
     onSelectChange(keys, rows) {
       this.selectedRowKeys = keys