easyUI 表格可编辑列的问题

<table id="dg"></table>



        $('#dg')
                .datagrid(
                        {
                            url : '${pageContext.request.contextPath}/purchase/msWarehouseReceiptDetails/findDeails',
                            queryParams : {
                                materialNumber : rows[0].warehouseReceiptNumber
                            },
                            pagination : true,
                            pageSize : 5,
                            pageList: [5, 10],
                            rownumbers : false,
                            striped : false,
                            singleSelect : true,
                            idField : 'id',
                            nowrap : true,
                            pagePosition : 'top',
                            totalProperty : "total",
                            rowsProperty : "elcForecasts",
                            columns : [ [ {
                                field : 'materialNumber',
                                title : '编码',
                                width : 100,

                            }, {
                                field : 'commoditySpecification',
                                title : '规格',
                                width : 100,
                                editor : {
                                    type : 'numberbox',
                                    options : {
                                        required : 'required',
                                        precision : 0
                                    }
                                }
                            }, {
                                field : 'unitPrice',
                                title : '本次进价',
                                width : 100,

                            }, {
                                field : 'expectedNumber',
                                title : '预计到货数',
                                width : 100,

                            }, {
                                field : 'thisTimeNumber',
                                title : '本次入库数',
                                width : 100,

                            }, {
                                field : 'deliveryAddress',
                                title : '发货地址',
                                width : 100,

                            }, {
                                field : 'deliveryMethods',
                                title : '运货方式',
                                width : 100,

                            }, {
                                field : 'logisticsCompany',
                                title : '物流公司',
                                width : 100,

                            }, {
                                field : 'shipmentNumber',
                                title : '物流单号',
                                width : 100,

                            }, {
                                field : 'remark',
                                title : '备注',
                                width : 100,

                            } ] ],
                        });
                        
                        
                        
                        
                        

为什么这样子写了以后,表格数据显示正常,但点击“规格”那一列的时候无法编辑,是哪儿写错了

先感谢各位大神们的解答,小弟感激不尽

阅读 1.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题