huangxiaoqiang
2025-02-09 d40b63ad393e8af2a6f50ac055f582727dba6f28
组盘页面优化
已修改3个文件
已添加1个文件
113 ■■■■■ 文件已修改
Code Management/WMS/WIDESEA_WMSClient/src/router/tables.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxingInfo.vue 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/Dt_BillGroupStock.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Code Management/WMS/WIDESEA_WMSClient/src/router/tables.js
@@ -214,7 +214,7 @@
  {
    path: '/DtBoxing',
    name: 'DtBoxing',
    component: () => import('@/views/widesea_wms/stock/DtBoxing.vue'),
    component: () => import('@/views/widesea_wms/stock/DtBoxingInfo.vue'),
    meta: {
      keepAlive: false
    }
Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue
@@ -28,6 +28,7 @@
                { field: 'createDate', title: '创建时间', type: 'int', sort: true, width: 100, hidden: true, align: 'left' },
            ],
            detailColumns: [
                { title: "电芯序列号", field: "serialNumber", type: "text" },
                { title: "物料编号", field: "materielCode", type: "text" },
                { title: "物料名称", field: "materielName", type: "text" },
                { title: "库存状态", field: "status", type: "text" },
@@ -60,17 +61,31 @@
            }
        };
    },
    methods: {
        onInit() {
            // this.dropdownItems.unshift({
            //     name: '按钮', //按钮名称
            //     icon: 'el-icon-document', //按钮图标vue2版本见iview文档icon,vue3版本见element ui文档icon(注意不是element puls文档)
            //     type: 'primary', //按钮样式vue2版本见iview文档button,vue3版本见element ui文档button
            //     value: '321', //按钮值
            //     onClick: function () {
            //         this.$Message.success('点击了按钮');
            //     }
            // });
            this.dropdownItems.unshift({
                name: '删除', //按钮名称
                icon: 'el-icon-document', //按钮图标vue2版本见iview文档icon,vue3版本见element ui文档icon(注意不是element puls文档)
                type: 'primary', //按钮样式vue2版本见iview文档button,vue3版本见element ui文档button
                value: '321', //按钮值
                onClick: function () {
                    let rows = this.table.columns;
                    if (rows.length == 0) return this.$error("请选择数据!");
                    if (rows.length > 1) return this.$error("只能选择一条数据!");
                    this.http
                        .post("api/DtBoxing/Delete?locationID=" + rows[0].palletCode, "", "数据处理中...")
                        .then((x) => {
                            if (x.status) {
                                this.$Message.success('成功.');
                                this.refresh();
                            } else {
                                return this.$error(x.message);
                            }
                        });
                }
            });
        },
    },
    created() {
Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxingInfo.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,77 @@
<!--
*Author:jxx
 *Contact:283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/widesea_wms/invoices/Dt_InboundOrder.js此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/widesea_wms/stock/DtBoxingInfo.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'id',
            footer: "Foots",
            cnName: '组盘信息',
            name: 'stock/DtBoxingInfo',
            url: "/BoxingInfo/",
            sortName: "id"
        });
        const editFormFields = ref({
        });
        const editFormOptions = ref([
        ]);
        const searchFormFields = ref({});
        const searchFormOptions = ref([
            [
                { "title": "托盘条码", "field": "palletCode", type: "text" },
                { "title": "物料编号", "field": "materielCode", type: "text" },
                { "title": "库存状态", "field": "status", type: "select", dataKey: "StockState", data: [] },
                { "title": "组盘类型", "field": "groupType", type: "select", dataKey: "GroupType", data: [] },
            ]
        ]);
        const columns = ref([
            { field: 'id', title: '库存ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' },
            { field: 'palletCode', title: '托盘条码', type: 'string', width: 110, align: 'left', sort: true, link: true, },
            { field: 'locationCode', title: '库位', type: 'string', width: 110, align: 'left' },
            { field: 'isFull', title: '是否满盘', type: 'bool', width: 110, align: 'left' },
            // { field: 'state', title: '库存状态', type: 'int', width: 110, align: 'left', bind: { key: "StockState", data: [] } },
            { field: 'remark', title: '备注', type: 'string', width: 120, align: 'left' },
            { field: 'createDate', title: '创建时间', type: 'int', sort: true, width: 100, align: 'left' },
        ]);
        const detail = ref({
            cnName: "组盘明细信息",
            table: "DtBoxingInfoDetail",
            columns: [
                { title: "电芯序列号", field: "serialNumber", type: "text" },
                { title: "物料编号", field: "materielCode", type: "text" },
                { title: "物料名称", field: "materielName", type: "text" },
                { title: "库存状态", field: "status", type: "text" },
                { title: "组盘数量", field: "stockQuantity", type: "text" },
                { title: "创建时间", field: "createDate", type: "text" },
            ],
            sortName: "id",
            key: "BoxingInfoId"
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>
Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/Dt_BillGroupStock.vue
@@ -47,6 +47,7 @@
                { "title": "库存类型", "field": "isFull", type: "select", dataKey: "isFull", data: [] },
            ],[
                { "title": "库位号", "field": "locationCode", type: "text" },
                { "title": "巷道", "field": "roadwayNo", type: "text" },
            ]
        ]);
        const columns = ref(