diff --git a/ruoyi-admin/src/main/resources/templates/system/salesOrder/detail.html b/ruoyi-admin/src/main/resources/templates/system/salesOrder/detail.html index 3396927c..31705e1a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/salesOrder/detail.html +++ b/ruoyi-admin/src/main/resources/templates/system/salesOrder/detail.html @@ -319,6 +319,7 @@ var processMethodDatas = [[${@dict.getType('processMethod')}]]; var sysSalesOrder = [[${sysSalesOrder}]]; var loginName = [[${@permission.getPrincipalProperty('loginName')}]]; + var warehouseDeptDatas = [[${@dict.getType('warehouseDept')}]]; $("#form-salesOrder-edit").validate({focusCleanup: true}); $(function() { var options = { diff --git a/ruoyi-admin/src/main/resources/templates/system/salesOrder/edit.html b/ruoyi-admin/src/main/resources/templates/system/salesOrder/edit.html index 394c8a70..1388ed20 100644 --- a/ruoyi-admin/src/main/resources/templates/system/salesOrder/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/salesOrder/edit.html @@ -331,6 +331,7 @@ var sysUnitClassDatas = [[${@dict.getType('sys_unit_class')}]]; var processMethodDatas = [[${@dict.getType('processMethod')}]]; var sysSalesOrder = [[${sysSalesOrder}]]; + var warehouseDeptDatas = [[${@dict.getType('warehouseDept')}]]; $("#form-salesOrder-edit").validate({focusCleanup: true}); $(function() { var options = { @@ -341,13 +342,15 @@ sidePagination: "client", uniqueId: "index", model: "物料报价信息", + fixedColumns: true, // 启用冻结列 + rightFixedColumns:1, + fixedRightNumber: 1, // 冻结右列个数 columns: [ {checkbox: true}, {field: 'id',title: '主键id',align: 'center',visible: false}, - {field: 'index',align: 'center', title: "序号", - formatter: function (value, row, index) { - return $.common.serialNumber(value, index); - } + {field: 'materialIndex',title: '序号',align: 'center', + formatter: function(value, row, index) {return index+1; + } }, {title: '物料索引id',field: 'materialId',align: 'center',visible: false}, {title: '料号',field: 'materialCode',align: 'center'}, @@ -375,7 +378,9 @@ } }, { title: '入库部门',field: 'warehouseDept',align: 'center', - formatter: function(value, row, index) {} + formatter: function(value, row, index) { + return $.table.selectDictLabel(warehouseDeptDatas, value); + } }, { title: '对外售价',field: 'materialSole', editable: { @@ -473,7 +478,6 @@ return value + "天数"; } }, - }, { title: '录入人',field: 'createBy',align: 'center',visible: false}, { title: '录入时间',field: 'createTime',align: 'center',visible: false}, @@ -488,7 +492,7 @@ {title: '操作', align: 'center', formatter: function (value, row, index) { var actions = []; - actions.push('删除 '); + actions.push('删除 '); return actions.join(''); } } @@ -644,6 +648,14 @@ if (rmb1== null){ rmb1 = 0; } + var rows = $("#bootstrap-table-editOrder").bootstrapTable('getData').length; + for(var i=0;i 0) { @@ -461,7 +461,7 @@ // 传递参数查询参数 pageSize: params.limit, pageNum: params.offset / params.limit + 1, - quoteId: sysSalesOrder.salesOrderCode + quoteId: sysSalesOrderCode }; return curParams; }