|
|
@ -57,7 +57,7 @@ |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
<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> |
|
|
@ -88,7 +88,6 @@ |
|
|
|
exportUrl: prefix + "/export", |
|
|
|
sortStable: true, // 设置为 true 将获得稳定的排序 |
|
|
|
fixedColumns: true, // 启用冻结列 |
|
|
|
rightFixedColumns:1, |
|
|
|
fixedRightNumber: 1, // 冻结右列个数 |
|
|
|
showFooter: true, |
|
|
|
modalName: "销售估价", |
|
|
@ -219,28 +218,29 @@ |
|
|
|
formatter: function(value, row, index) { |
|
|
|
var actions = []; |
|
|
|
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') { |
|
|
|
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') { |
|
|
|
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') { |
|
|
|
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'){ |
|
|
|
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'){ |
|
|
|
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'){ |
|
|
|
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); |
|
|
|
} |
|
|
|
}] |
|
|
|
}; |
|
|
|