Browse Source

feat: 对接辅材库存三级帐

linwenxin 1 năm trước cách đây
mục cha
commit
cd410fe4d2

+ 16 - 0
src/api/inventoryManagement.js

@@ -20,4 +20,20 @@ export function websitStockImportM(data) {
   return handleImport('/websit/stock/importM', data.formdata, data.id || '')
 }
 
+export function websitStockAccList(data) {
+  return request({
+    url: `/websit/stock/acc/list?moduleId=${data.moduleId}`,
+    method: 'post',
+    data
+  })
+}
+
+export function websitStockAccListExport(data, name) {
+  return postBlob({
+    url: '/websit/stock/acc/list/export',
+    data,
+    name
+  })
+}
+
 // --------------------------------------------------------

+ 62 - 0
src/views/auxiliaryFittings/inventoryManagement/auxiliaryInventoryDetails/index.vue

@@ -0,0 +1,62 @@
+<template>
+  <template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents"
+    :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
+    :exportList="exportList">
+  </template-page>
+</template>
+
+<script>
+import TemplatePage from '@/components/template/template-page-1.vue'
+import import_mixin from '@/components/template/import_mixin.js'
+import { websitStockAccList, websitStockAccListExport, } from "@/api/inventoryManagement";
+import { commonTemplateDownload } from '@/api/common.js'
+export default {
+  components: { TemplatePage },
+  mixins: [import_mixin],
+  data() {
+    return {
+      // 事件组合
+      optionsEvensGroup: [],
+      // 表格属性
+      tableAttributes: {
+        // 启用勾选列
+        selectColumn: false
+      },
+      // 表格事件
+      tableEvents: {
+        'selection-change': this.selectionChange
+      },
+      // 勾选选中行
+      recordSelected: [],
+    }
+  },
+  computed: {
+    // 更多参数
+    moreParameters() {
+      return []
+    },
+  },
+  methods: {
+    // 列表请求函数
+    getList: websitStockAccList,
+    // 列表导出函数
+    exportList: websitStockAccListExport,
+    // 表格列解析渲染数据更改
+    columnParsing(item, defaultData) {
+      return defaultData
+    },
+    // 监听勾选变化
+    selectionChange(data) {
+      this.recordSelected = data
+    },
+    // 表格操作列
+    operation(h, { row, index, column }) {
+      return (
+        <div class='operation-btns'></div>
+      )
+    },
+  }
+}
+</script>
+
+<style lang="scss" scoped></style>