Browse Source

no message

linwenxin 1 year ago
parent
commit
6a2dee6eb0
2 changed files with 65 additions and 0 deletions
  1. 17 0
      src/api/existingCostProduct.js
  2. 48 0
      src/views/setting/existingCostProduct.vue

+ 17 - 0
src/api/existingCostProduct.js

@@ -0,0 +1,17 @@
+import request, { postBlob } from '@/utils/request'
+
+export function stockManagerListStockToCostPriceV2(data) {
+  return request({
+    url: `/stock/manager/listStockToCostPriceV2?moduleId=${data.moduleId}`,
+    method: 'post',
+    data
+  })
+}
+
+export function stockManagerListStockToCostPriceV2Export(data, name) {
+  return postBlob({
+    url: '/stock/manager/listStockToCostPriceV2/export',
+    data,
+    name
+  })
+}

+ 48 - 0
src/views/setting/existingCostProduct.vue

@@ -0,0 +1,48 @@
+<template>
+  <template-page ref="pageRef" :getList="getList" :exportList="exportList" :columnParsing="columnParsing"
+    :optionsEvensGroup="optionsEvensGroup">
+  </template-page>
+</template>
+
+<script>
+import TemplatePage from '@/components/template/template-page-1.vue'
+import import_mixin from '@/components/template/import_mixin.js'
+import { stockManagerListStockToCostPriceV2, stockManagerListStockToCostPriceV2Export } from '@/api/existingCostProduct'
+export default {
+  components: { TemplatePage },
+  mixins: [import_mixin],
+  data() {
+    return {
+      // 事件组合
+      optionsEvensGroup: [],
+      // 表格属性
+      tableAttributes: {
+        // 启用勾选列
+        selectColumn: false
+      },
+      // 表格事件
+      tableEvents: {
+        'selection-change': this.selectionChange
+      },
+      recordSelected: []
+    }
+  },
+  created() { },
+  methods: {
+    // 列表请求函数
+    getList: stockManagerListStockToCostPriceV2,
+    // 列表导出函数
+    exportList: stockManagerListStockToCostPriceV2Export,
+    // 表格列解析渲染数据更改
+    columnParsing(item, defaultData) {
+      return defaultData
+    },
+    // 监听勾选变化
+    selectionChange(data) {
+      this.recordSelected = data
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped></style>