Browse Source

[fix]销售管理

修改销售估价列表页面表头的按钮,按钮采用统一样式;修改操作栏按钮样式样式统一,操作栏引用$.table.dropdownToggle方法;
dev
liuxiaoxu 3 weeks ago
parent
commit
3c639ba3fe
  1. 20
      ruoyi-admin/src/main/resources/templates/sales/estimate/estimate.html

20
ruoyi-admin/src/main/resources/templates/sales/estimate/estimate.html

@ -57,7 +57,7 @@
</a> </a>
</div> </div>
<div class="col-sm-12 select-table table-striped"> <div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table" style="white-space:nowrap"></table> <table id="bootstrap-table"></table>
</div> </div>
</div> </div>
</div> </div>
@ -88,7 +88,6 @@
exportUrl: prefix + "/export", exportUrl: prefix + "/export",
sortStable: true, // 设置为 true 将获得稳定的排序 sortStable: true, // 设置为 true 将获得稳定的排序
fixedColumns: true, // 启用冻结列 fixedColumns: true, // 启用冻结列
rightFixedColumns:1,
fixedRightNumber: 1, // 冻结右列个数 fixedRightNumber: 1, // 冻结右列个数
showFooter: true, showFooter: true,
modalName: "销售估价", modalName: "销售估价",
@ -219,28 +218,29 @@
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
if (row.estimateStatus != '1' && row.estimateStatus != '2' && row.estimateStatus != '3') { if (row.estimateStatus != '1' && row.estimateStatus != '2' && row.estimateStatus != '3') {
actions.push('<a class="btn btn-success btn-xs ' + addDetailFlag + '" href="javascript:void(0)" onclick="addDetail(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>详情</a> '); actions.push('<a class="' + addDetailFlag + '" href="javascript:void(0)" onclick="addDetail(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>详情</a> ');
} }
if (row.estimateStatus != '0' && row.estimateStatus != '2' && row.estimateStatus != '3') { if (row.estimateStatus != '0' && row.estimateStatus != '2' && row.estimateStatus != '3') {
actions.push('<a class="btn btn-success btn-xs ' + engineeringAddDetailFlag + '" href="javascript:void(0)" onclick="engineeringAddDetail(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>详情</a> '); actions.push('<a class=" ' + engineeringAddDetailFlag + '" href="javascript:void(0)" onclick="engineeringAddDetail(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>详情</a> ');
} }
if (row.estimateStatus != '0' && row.estimateStatus != '1' && row.estimateStatus != '3') { if (row.estimateStatus != '0' && row.estimateStatus != '1' && row.estimateStatus != '3') {
actions.push('<a class="btn btn-success btn-xs ' + purchaseAddDetailFlag + '" href="javascript:void(0)" onclick="purchaseAddDetail(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>详情</a> '); actions.push('<a class=" ' + purchaseAddDetailFlag + '" href="javascript:void(0)" onclick="purchaseAddDetail(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>详情</a> ');
} }
if (row.estimateStatus != '0' && row.estimateStatus != '1' && row.estimateStatus != '2') { if (row.estimateStatus != '0' && row.estimateStatus != '1' && row.estimateStatus != '2') {
actions.push('<a class="btn btn-success btn-xs ' + ceoAddDetailFlag + '" href="javascript:void(0)" onclick="ceoAddDetail(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>详情</a> '); actions.push('<a class=" ' + ceoAddDetailFlag + '" href="javascript:void(0)" onclick="ceoAddDetail(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>详情</a> ');
} }
if(row.estimateStatus == '0'){ if(row.estimateStatus == '0'){
actions.push('<a class="btn btn-success btn-xs ' + engineeringAddFlag + '" href="javascript:void(0)" onclick="engineeringAdd(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>添加BOM</a> '); actions.push('<a class=" ' + engineeringAddFlag + '" href="javascript:void(0)" onclick="engineeringAdd(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>添加BOM</a> ');
} }
if(row.estimateStatus == '1'){ if(row.estimateStatus == '1'){
actions.push('<a class="btn btn-success btn-xs ' + purchaseAddFlag + '" href="javascript:void(0)" onclick="purchaseAdd(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>采购成本</a> '); actions.push('<a class=" ' + purchaseAddFlag + '" href="javascript:void(0)" onclick="purchaseAdd(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>采购成本</a> ');
} }
if(row.estimateStatus == '2'){ if(row.estimateStatus == '2'){
actions.push('<a class="btn btn-success btn-xs ' + ceoAddFlag + '" href="javascript:void(0)" onclick="ceoAdd(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>经营成本</a> '); actions.push('<a class="' + ceoAddFlag + '" href="javascript:void(0)" onclick="ceoAdd(\'' + row.salesEstimateId + '\')"><i class="fa fa-edit"></i>经营成本</a> ');
} }
return actions.join(''); var actionLinks = actions.join('');
return $.table.dropdownToggle(actionLinks);
} }
}] }]
}; };

Loading…
Cancel
Save