huangbin 4 vuotta sitten
vanhempi
commit
5ee981e5a3

+ 11 - 5
src/views/report/inventory-report/list/category/index.vue

@@ -16,9 +16,15 @@
     <Description v-if="visible"
                  @close="closeDrawer"
                  @changeTab="changeTab"
-                 :columns="columnsDetail"
-                 :tabList="tabList"
-                 :tableList="detailTableList" />
+                 :tabList="tabList">
+      <a-table :columns="columnsDetail"
+               class="topTable"
+               :pagination="false"
+               rowKey="key"
+               :data-source="detailTableList"
+               :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
+      </a-table>
+    </Description>
   </div>
 </template>
 
@@ -108,8 +114,8 @@ export default defineComponent({
                 console.error(`${lable}没有配置对应的code: ${code},`);
                 return;
             }
-            if(param.warehouseinfoid === '--'){
-                param.warehouseinfoid = ""
+            if (param.warehouseinfoid === '--') {
+                param.warehouseinfoid = '';
             }
             // 查询明细数据
             queryResultLoadingAndInfo(qryAreaStockReport, loading, param).then((res) => {

+ 9 - 3
src/views/report/inventory-report/list/warehouse/index.vue

@@ -16,9 +16,15 @@
     <Description v-if="visible"
                  @close="closeDrawer"
                  @changeTab="changeTab"
-                 :columns="columnsDetail"
-                 :tabList="tabList"
-                 :tableList="detailTableList" />
+                 :tabList="tabList">
+      <a-table :columns="columnsDetail"
+               class="topTable"
+               :pagination="false"
+               rowKey="key"
+               :data-source="detailTableList"
+               :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
+      </a-table>
+    </Description>
   </div>
 </template>