|
|
@ -137,6 +137,8 @@ |
|
|
|
<script th:src="@{/js/activiti.js}"></script> |
|
|
|
<script th:inline="javascript"> |
|
|
|
var editFlag = [[${@permission.hasPermi('purchase:purchaseOrder:edit')}]]; |
|
|
|
var addPurchaseOrderStorageFlag = [[${@permission.hasPermi('purchase:purchaseOrder:addPurchaseOrderStorage')}]]; |
|
|
|
|
|
|
|
var auditStatusDatas = [[${@dict.getType('auditStatus')}]]; |
|
|
|
var useStatusDatas = [[${@dict.getType('useStatus')}]]; |
|
|
|
var eceiptStatusDatas = [[${@dict.getType('sys_eceipt_status')}]]; |
|
|
@ -219,14 +221,15 @@ |
|
|
|
var actions = []; |
|
|
|
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.purchaseOrderId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
|
// actions.push('<a class="btn btn-danger btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.purchaseOrderId + '\')"><i class="fa fa-detail"></i>详情</a>') |
|
|
|
actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.modal.open(\'添加入库通知检验单\',\'' + prefix+"/addPurchaseOrderStorage/"+row.purchaseOrderCode + '\')">入库通知</a> '); |
|
|
|
|
|
|
|
|
|
|
|
if(row.auditStatus=="1" && row.useStatus=="1" && !row.cancelInstanceId) { |
|
|
|
// 作废 |
|
|
|
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.purchaseOrderId + '\')"><i class="fa fa-remove"></i> 作废</a>'); |
|
|
|
// 编辑 |
|
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.purchaseOrderId + '\')"><i class="fa fa-edit"></i> 编辑</a> '); |
|
|
|
// 已作废 |
|
|
|
// 入库通知 |
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + addPurchaseOrderStorageFlag + '" href="javascript:void(0)" onclick="$.modal.open(\'添加入库通知检验单\',\'' + prefix+"/addPurchaseOrderStorage/"+row.purchaseOrderCode + '\')">入库通知</a> '); |
|
|
|
}else{ |
|
|
|
actions.push('<a class="btn btn-default btn-xs" href="javascript:void(0)" disabled><i class="fa fa-edit"></i> 编辑</a> '); |
|
|
|
} |
|
|
|