Преглед на файлове

feat: 增加订单货满列表

zh преди 2 години
родител
ревизия
7841bc9bc8
променени са 2 файла, в които са добавени 101 реда и са изтрити 0 реда
  1. 17 0
      src/api/basic_data/fullCargo.js
  2. 84 0
      src/views/basic_data/fullCargo.vue

+ 17 - 0
src/api/basic_data/fullCargo.js

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

+ 84 - 0
src/views/basic_data/fullCargo.vue

@@ -0,0 +1,84 @@
+<template>
+  <template-page
+    ref="pageRef"
+    :get-list="getList"
+    :operation="operation()"
+    :options-evens-group="optionsEvensGroup"
+    :column-parsing="columnParsing"
+  />
+</template>
+
+<script>
+import TemplatePage from '@/components/template/template-page-1.vue'
+import import_mixin from '@/components/template/import_mixin.js'
+import add_callback_mixin from '@/components/template/add_callback_mixin.js'
+import { getStockCostListFullDate, getStockCostListFullDateV2Export } from '@/api/basic_data/monthlyWarehouseRent'
+export default {
+  components: { TemplatePage },
+  mixins: [import_mixin, add_callback_mixin],
+  data() {
+    return {
+      visible: false,
+      // 事件组合
+      optionsEvensGroup: [
+        [
+          [
+            {
+              name: '月账单更新',
+              click: () => {
+                this.$refs.pageRef.refreshList()
+              }
+            }
+          ]
+        ]
+      ],
+      // 表格属性
+      tableAttributes: {
+        // 启用勾选列
+        selectColumn: true
+      }, // 关闭新增弹窗
+
+      // 表格事件
+      tableEvents: {
+        'selection-change': this.selectionChange
+      },
+      recordSelected: [],
+
+      detailsId: ''
+    }
+  },
+  methods: {
+    // 列表请求函数
+    getList(...p) {
+      this.recordSelected = []
+      return getStockCostListFullDate(...p)
+    },
+    // 列表导出函数
+    exportList: getStockCostListFullDateV2Export,
+    // 表格列解析渲染数据更改
+    columnParsing(_item, defaultData) {
+      return defaultData
+    },
+    // 监听勾选变化
+    selectionChange(data) {
+      this.recordSelected = data
+    },
+    operation() {
+      return (_h, { row, index, column }) => {
+        return (
+          <div class='operation-btns'>
+
+          </div>
+        )
+      }
+    },
+    handleClose() {
+      this.addOff(() => {
+        this.visible = false
+      })()
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped></style>