|
@ -106,7 +106,7 @@ |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="erp:material:add"> |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="erp:material:add"> |
|
|
<i class="fa fa-plus"></i> 添加 |
|
|
<i class="fa fa-plus"></i> 添加 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-success" onclick="showItem()" shiro:hasPermission="erp:material:item"> |
|
|
<a class="btn btn-success" onclick="" shiro:hasPermission="erp:material:item"> |
|
|
<i class="fa fa-plus"></i> 技术团队配置 |
|
|
<i class="fa fa-plus"></i> 技术团队配置 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-warning" onclick="exportSelect()" shiro:hasPermission="erp:material:export"> |
|
|
<a class="btn btn-warning" onclick="exportSelect()" shiro:hasPermission="erp:material:export"> |
|
@ -118,174 +118,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 技术团队配置 --> |
|
|
|
|
|
<div class="modal fade" id="productItemModel"> |
|
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
|
<div class="modal-content message_align"> |
|
|
|
|
|
<div class="modal-header"> |
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
|
|
|
|
|
<span aria-hidden="true">×</span></button> |
|
|
|
|
|
<h4 class="modal-title">技术团队配置</h4> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="modal-body"> |
|
|
|
|
|
<form id="form-product-material row"> |
|
|
|
|
|
<div class="form-group col-sm-6"> |
|
|
|
|
|
<label class="col-sm-4 col-form-label">料号:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<input type="text" name="materialNo" class="form-control" disabled /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group col-sm-6"> |
|
|
|
|
|
<label class="col-sm-4 col-form-label">物料名称:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<input type="text" name="materialName" class="form-control" disabled /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group col-sm-6"> |
|
|
|
|
|
<label class="col-sm-4 col-form-label">生产团队ID:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<select name="id" class="form-control-sm" required> |
|
|
|
|
|
<option value=""></option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group col-sm-6"> |
|
|
|
|
|
<label class="col-sm-4 col-form-label">生产团队名称:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<select name="productItem" class="form-control" required> |
|
|
|
|
|
<option></option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">职能:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">电气技术人员:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">结构技术人员:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">软件技术人员:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">测试技术人员:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">主管1:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">主管2:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">经理:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">总监:</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="functions" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="dianqi" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="struct" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="soft" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="test" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="zhuguan1" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="zhuguan2" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="manger" class="form-control" type="text" readonly> |
|
|
|
|
|
</div>--> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="director" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="modal-footer"> |
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button> |
|
|
|
|
|
<button type="button" onclick="AuditConfirmSubmit(1)" class="btn btn-danger" data-dismiss="modal">确认</button> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- 审核 --> |
|
|
|
|
|
<div class="modal fade" id="auditMaterial"> |
|
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
|
<div class="modal-content message_align"> |
|
|
|
|
|
<div class="modal-header"> |
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span |
|
|
|
|
|
aria-hidden="true">×</span></button> |
|
|
|
|
|
<h4 class="modal-title">审核确认信息</h4> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="modal-body" style="height: 180px"> |
|
|
|
|
|
<form id="form-audit-material"> |
|
|
|
|
|
<input id="auditMaterial_id" name="id" type="text" hidden> |
|
|
|
|
|
<div class="form-group" hidden="hidden"> |
|
|
|
|
|
<label class="col-sm-3 control-label is-required">物料编号:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<input id="auditMaterial_No" name="materialNo" class="form-control" type="text" |
|
|
|
|
|
readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<label class="col-sm-3 control-label">审核否:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<input id="auditMaterial_auditStatus" name="auditStatus" class="form-control" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group" hidden="hidden"> |
|
|
|
|
|
<label class="col-sm-3 control-label">审核时间:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<div class="input-group date"> |
|
|
|
|
|
<input id="auditMaterial_updateTime" name="updateTime" class="form-control " |
|
|
|
|
|
placeholder="yyyy-MM-dd HH:mm:ss" type="datetime" > |
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group" > |
|
|
|
|
|
<label class="col-sm-3 control-label">备注:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<div class="input-group date"> |
|
|
|
|
|
<textarea id="auditMaterial_remark" name="remark" class="form-control " type="area" > </textarea> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<label class="col-sm-3 control-label">审核人:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<input id="auditMaterial_updateBy" name="updateBy" class="form-control" type="text"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="modal-footer"> |
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button> |
|
|
|
|
|
<button type="button" onclick="AuditConfirmSubmit(1)" class="btn btn-danger" data-dismiss="modal">审核通过</button> |
|
|
|
|
|
<button type="button" onclick="AuditConfirmSubmit(2)" class="btn btn-danger" data-dismiss="modal">审核拒绝</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<th:block th:include="include :: footer" /> |
|
|
<th:block th:include="include :: footer" /> |
|
|
<th:block th:include="include :: select2-js" /> |
|
|
<th:block th:include="include :: select2-js" /> |
|
|
<script th:src="@{/js/activiti.js}"></script> |
|
|
<script th:src="@{/js/activiti.js}"></script> |
|
@ -554,714 +386,16 @@ |
|
|
// 详情 |
|
|
// 详情 |
|
|
actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-eye"></i> 详情</a> '); |
|
|
actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-eye"></i> 详情</a> '); |
|
|
|
|
|
|
|
|
/*actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
|
|
|
actions.push('<a class="btn btn-primary btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="showdetails(\'' + index + '\')"><i class="fa fa-eye"></i>详情</a> '); |
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + auditFlag + '" href="javascript:void(0)" onclick="showMaterial(\'' + index + '\')"><i class="fa fa-file-o"></i>审核</a> '); |
|
|
|
|
|
if(row.delFlag == '0'){ |
|
|
|
|
|
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a>'); |
|
|
|
|
|
}else{ |
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a>'); |
|
|
|
|
|
}*/ |
|
|
|
|
|
return actions.join(''); |
|
|
return actions.join(''); |
|
|
} |
|
|
} |
|
|
}] |
|
|
}] |
|
|
}; |
|
|
}; |
|
|
$.table.init(options); |
|
|
$.table.init(options); |
|
|
}); |
|
|
}); |
|
|
function showdetails(data) { |
|
|
|
|
|
// var enterpriseCode=data[0].enterpriseCode; |
|
|
|
|
|
console.log(data); |
|
|
|
|
|
$("#detail_materialNo").val(data[0].materialNo); |
|
|
|
|
|
$("#detail_materialName").val(data[0].materialName); |
|
|
|
|
|
$("#detail_materialType").val(data[0].materialType); |
|
|
|
|
|
$("#detail_processMethod").val(data[0].processMethod); |
|
|
|
|
|
$("#detail_unit").val(data[0].unit); |
|
|
|
|
|
$("#detail_brand").val(data[0].brand); |
|
|
|
|
|
// $("input[name='confirmTax']").val(data[0].confirmTax) |
|
|
|
|
|
$("#detail_describe").val(data[0].describe); |
|
|
|
|
|
$("#detail_warehouseDept").val(data[0].warehouseDept); |
|
|
|
|
|
|
|
|
|
|
|
// 技术团队人员信息 |
|
|
|
|
|
$('#item-table').bootstrapTable('destroy'); |
|
|
|
|
|
$('#item-table').bootstrapTable({ |
|
|
|
|
|
pagination: true, |
|
|
|
|
|
pageNumber: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
pageList: [10, 25, 50, 100], |
|
|
|
|
|
showRefresh: false, |
|
|
|
|
|
method: "post", |
|
|
|
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
|
|
|
striped: true, // 是否显示行间隔色 |
|
|
|
|
|
cache: false, // 是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*) |
|
|
|
|
|
sidePagination: "server", // 分页方式:client客户端分页,server服务端分页(*) |
|
|
|
|
|
clickToSelect: true, // 是否启用点击选中行 |
|
|
|
|
|
showToggle: false, // 是否显示详细视图和列表视图的切换按钮 |
|
|
|
|
|
cardView: false, // 是否显示详细视图 |
|
|
|
|
|
detailView: false, // 是否显示父子表 |
|
|
|
|
|
smartDisplay: false, // 加了这个才显示每页显示的行数 |
|
|
|
|
|
showExport: false, // 是否显示导出按钮 |
|
|
|
|
|
singleSelect: true, |
|
|
|
|
|
paginationDetailHAlign: ' hiddenDetailInfo', |
|
|
|
|
|
height: 150, |
|
|
|
|
|
queryParams: function (params) { |
|
|
|
|
|
//console.log("123"); |
|
|
|
|
|
var curParams = { |
|
|
|
|
|
// 传递参数查询参数 |
|
|
|
|
|
pageSize: params.limit, |
|
|
|
|
|
pageNum: params.offset / params.limit + 1, |
|
|
|
|
|
materialId: data[0].materialId |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
return curParams |
|
|
|
|
|
}, |
|
|
|
|
|
columns: [{ |
|
|
|
|
|
checkbox: true |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'id', |
|
|
|
|
|
title: '生产团队的id', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'types', |
|
|
|
|
|
title: '生产团队类型' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'productItem', |
|
|
|
|
|
title: '生产团队成员' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'updateTime', |
|
|
|
|
|
title: '修改时间' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'functions', |
|
|
|
|
|
title: '职能' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'dianqi', |
|
|
|
|
|
title: '电气技术人员' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'struct', |
|
|
|
|
|
title: '结构技术人员' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'soft', |
|
|
|
|
|
title: '软件技术人员' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'test', |
|
|
|
|
|
title: '测试技术人员' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'zhuguan1', |
|
|
|
|
|
title: '主管1' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'zhuguan2', |
|
|
|
|
|
title: '主管2' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'manger', |
|
|
|
|
|
title: '经理' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'director', |
|
|
|
|
|
title: '总监' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '操作', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
var actions = []; |
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
|
|
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> '); |
|
|
|
|
|
if(row.delFlag == '0'){ |
|
|
|
|
|
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> '); |
|
|
|
|
|
}else{ |
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> '); |
|
|
|
|
|
} |
|
|
|
|
|
return actions.join(''); |
|
|
|
|
|
} |
|
|
|
|
|
}] |
|
|
|
|
|
}); |
|
|
|
|
|
// 销售价历史 |
|
|
|
|
|
$('#xioashou-table').bootstrapTable('destroy'); |
|
|
|
|
|
$('#xioashou-table').bootstrapTable({ |
|
|
|
|
|
url: '/sales/salesOrderDetail/list', |
|
|
|
|
|
pagination: true, |
|
|
|
|
|
pageNumber: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
pageList: [10, 25, 50, 100], |
|
|
|
|
|
showRefresh: false, |
|
|
|
|
|
method: "post", |
|
|
|
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
|
|
|
striped: true, // 是否显示行间隔色 |
|
|
|
|
|
cache: false, // 是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*) |
|
|
|
|
|
sidePagination: "server", // 分页方式:client客户端分页,server服务端分页(*) |
|
|
|
|
|
clickToSelect: true, // 是否启用点击选中行 |
|
|
|
|
|
showToggle: false, // 是否显示详细视图和列表视图的切换按钮 |
|
|
|
|
|
cardView: false, // 是否显示详细视图 |
|
|
|
|
|
detailView: false, // 是否显示父子表 |
|
|
|
|
|
smartDisplay: false, // 加了这个才显示每页显示的行数 |
|
|
|
|
|
showExport: false, // 是否显示导出按钮 |
|
|
|
|
|
singleSelect: true, |
|
|
|
|
|
paginationDetailHAlign: ' hiddenDetailInfo', |
|
|
|
|
|
height: 150, |
|
|
|
|
|
queryParams: function (params) { |
|
|
|
|
|
//console.log("123"); |
|
|
|
|
|
var curParams = { |
|
|
|
|
|
// 传递参数查询参数 |
|
|
|
|
|
pageSize: params.limit, |
|
|
|
|
|
pageNum: params.offset / params.limit + 1, |
|
|
|
|
|
finishProductCode: $("#materialNo").val() |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
return curParams |
|
|
|
|
|
}, |
|
|
|
|
|
columns: [ |
|
|
|
|
|
// { |
|
|
|
|
|
// checkbox: true |
|
|
|
|
|
// }, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'salesFinishId', |
|
|
|
|
|
title: '订单id', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'salesOrderCode', |
|
|
|
|
|
title: '订单编号' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'salesOrderNumber', |
|
|
|
|
|
title: '订单号码' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'enterpriseCode', |
|
|
|
|
|
title: '客户代码' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'enterpriseName', |
|
|
|
|
|
title: '客户名称' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'paymentTerms', |
|
|
|
|
|
title: '付款条件' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'deliveryConditions', |
|
|
|
|
|
title: '交货条件' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'deliveryMethod', |
|
|
|
|
|
title: '交货方式' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'orderReceivingMode', |
|
|
|
|
|
title: '接单方式' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'customerContact', |
|
|
|
|
|
title: '联系人' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'customerFactory', |
|
|
|
|
|
title: '客户厂区' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'contactNumber', |
|
|
|
|
|
title: '联系电话' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'businessMembers', |
|
|
|
|
|
title: '业务人员' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'customerFax', |
|
|
|
|
|
title: '传真号码' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'deliveryAddress', |
|
|
|
|
|
title: '交货地点' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'orderReceivingTime', |
|
|
|
|
|
title: '接单日期' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'billingTime', |
|
|
|
|
|
title: '开单日期时间' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'customerRemarks', |
|
|
|
|
|
title: '备注内容' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'currentInventory', |
|
|
|
|
|
title: '当前库存数', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'creditLimit', |
|
|
|
|
|
title: '信用额度', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'unpaidAmount', |
|
|
|
|
|
title: '未付款数', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'availableCredit', |
|
|
|
|
|
title: '可用额度', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'confirmTax', |
|
|
|
|
|
title: '是否含税', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'taxRate', |
|
|
|
|
|
title: '税率', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'totalAmount', |
|
|
|
|
|
title: '合计金额', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'modificationTime', |
|
|
|
|
|
title: '修改日期', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'confirmTime', |
|
|
|
|
|
title: '确认日期', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'fileUpload', |
|
|
|
|
|
title: '文件存储', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'confirmNo', |
|
|
|
|
|
title: '确认否', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
return $.table.selectDictLabel(whetherDatas, value); |
|
|
|
|
|
}, |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'confirmName', |
|
|
|
|
|
title: '确认人', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'auditNo', |
|
|
|
|
|
title: '结案否', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
return $.table.selectDictLabel(whetherDatas, value); |
|
|
|
|
|
}, |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'auditName', |
|
|
|
|
|
title: '结案人', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'auditTime', |
|
|
|
|
|
title: '结案时间', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'auditRemarks', |
|
|
|
|
|
title: '结案备注', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'nationalTaxBill', |
|
|
|
|
|
title: '是否开国税发票', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'finishProductCode', |
|
|
|
|
|
title: '成品代码' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'finishProductName', |
|
|
|
|
|
title: '成品名称' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'specificationModel', |
|
|
|
|
|
title: '规格型号' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'customerNumber', |
|
|
|
|
|
title: '客户料号' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'typeMachine', |
|
|
|
|
|
title: '机种' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'inventoryUnit', |
|
|
|
|
|
title: '单位' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'stockUnitWeight', |
|
|
|
|
|
title: '重量' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'commonCurrency', |
|
|
|
|
|
title: '币别', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
return $.table.selectDictLabel(commonCurrencyDatas, value); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'processPrice', |
|
|
|
|
|
title: '单价' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'productQuantity', |
|
|
|
|
|
title: '数量' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'amountMoney', |
|
|
|
|
|
title: '金额' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'deliveryTime', |
|
|
|
|
|
title: '交期' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'line', |
|
|
|
|
|
title: 'Line#' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'versionNumber', |
|
|
|
|
|
title: '版本号' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'salesExplain', |
|
|
|
|
|
title: '说明' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'customerUseOrNot', |
|
|
|
|
|
title: '客户使用否', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
return $.table.selectDictLabel(whetherDatas, value); |
|
|
|
|
|
}, |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'customerUseQuantity', |
|
|
|
|
|
title: '客户使用数量', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'customerUseRemarks', |
|
|
|
|
|
title: '客户使用备注说明', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'accountReconciliationOrNot', |
|
|
|
|
|
title: '对账否', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
return $.table.selectDictLabel(whetherDatas, value); |
|
|
|
|
|
}, |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'accountReconciliationPerson', |
|
|
|
|
|
title: '对账人', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'accountReconciliationTime', |
|
|
|
|
|
title: '对账时间', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}] |
|
|
|
|
|
}); |
|
|
|
|
|
//采购价历史 |
|
|
|
|
|
$('#purser-table').bootstrapTable('destroy'); |
|
|
|
|
|
$('#purser-table').bootstrapTable({ |
|
|
|
|
|
url: '/purchase/purchaseMaterial/list', |
|
|
|
|
|
pagination: true, |
|
|
|
|
|
pageNumber: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
pageList: [10, 25, 50, 100], |
|
|
|
|
|
showRefresh: false, |
|
|
|
|
|
method: "post", |
|
|
|
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
|
|
|
striped: true, // 是否显示行间隔色 |
|
|
|
|
|
cache: false, // 是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*) |
|
|
|
|
|
sidePagination: "server", // 分页方式:client客户端分页,server服务端分页(*) |
|
|
|
|
|
clickToSelect: true, // 是否启用点击选中行 |
|
|
|
|
|
showToggle: false, // 是否显示详细视图和列表视图的切换按钮 |
|
|
|
|
|
cardView: false, // 是否显示详细视图 |
|
|
|
|
|
detailView: false, // 是否显示父子表 |
|
|
|
|
|
smartDisplay: false, // 加了这个才显示每页显示的行数 |
|
|
|
|
|
showExport: false, // 是否显示导出按钮 |
|
|
|
|
|
singleSelect: true, |
|
|
|
|
|
paginationDetailHAlign: ' hiddenDetailInfo', |
|
|
|
|
|
height: 150, |
|
|
|
|
|
queryParams: function (params) { |
|
|
|
|
|
//console.log("123"); |
|
|
|
|
|
var curParams = { |
|
|
|
|
|
// 传递参数查询参数 |
|
|
|
|
|
pageSize: params.limit, |
|
|
|
|
|
pageNum: params.offset / params.limit + 1, |
|
|
|
|
|
materialCode: data[0].materialNo |
|
|
|
|
|
}; |
|
|
|
|
|
return curParams |
|
|
|
|
|
}, |
|
|
|
|
|
columns: [{ |
|
|
|
|
|
checkbox: true |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'purchaseOrderId', |
|
|
|
|
|
title: '采购订单id' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'purchaseOrderNumber', |
|
|
|
|
|
title: '订购单号' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'supplierCode', |
|
|
|
|
|
title: '供应商代码' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'supplierName', |
|
|
|
|
|
title: '供应商名称' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'rawSubsidiaryCode', |
|
|
|
|
|
title: '原辅料代码' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'rawSubsidiaryName', |
|
|
|
|
|
title: '原辅料名称' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'specificationModel', |
|
|
|
|
|
title: '规格型号' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'commonCurrency', |
|
|
|
|
|
title: '币别', |
|
|
|
|
|
formatter: function(value, row, index) { |
|
|
|
|
|
return $.table.selectDictLabel(commonCurrencyDatas, value); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'purchasingUnit', |
|
|
|
|
|
title: '采购单位' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'purchasePrice', |
|
|
|
|
|
title: '采购单价' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'materialQuantity', |
|
|
|
|
|
title: '数量' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'amountMoney', |
|
|
|
|
|
title: '金额' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'deliveryTime', |
|
|
|
|
|
title: '交期' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'purchaseExplain', |
|
|
|
|
|
title: '说明' |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
}); |
|
|
|
|
|
//操作历史 |
|
|
|
|
|
$('#oper-table').bootstrapTable('destroy'); |
|
|
|
|
|
$('#oper-table').bootstrapTable({ |
|
|
|
|
|
url: '/system/customer/operList', |
|
|
|
|
|
pagination: true, |
|
|
|
|
|
pageNumber: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
pageList: [10, 25, 50, 100], |
|
|
|
|
|
showRefresh: false, |
|
|
|
|
|
method: "post", |
|
|
|
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
|
|
|
striped: true, // 是否显示行间隔色 |
|
|
|
|
|
cache: false, // 是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*) |
|
|
|
|
|
sidePagination: "server", // 分页方式:client客户端分页,server服务端分页(*) |
|
|
|
|
|
clickToSelect: true, // 是否启用点击选中行 |
|
|
|
|
|
showToggle: false, // 是否显示详细视图和列表视图的切换按钮 |
|
|
|
|
|
cardView: false, // 是否显示详细视图 |
|
|
|
|
|
detailView: false, // 是否显示父子表 |
|
|
|
|
|
smartDisplay: false, // 加了这个才显示每页显示的行数 |
|
|
|
|
|
showExport: false, // 是否显示导出按钮 |
|
|
|
|
|
singleSelect: true, |
|
|
|
|
|
paginationDetailHAlign: ' hiddenDetailInfo', |
|
|
|
|
|
height: 150, |
|
|
|
|
|
queryParams: function (params) { |
|
|
|
|
|
//console.log("123"); |
|
|
|
|
|
var curParams = { |
|
|
|
|
|
// 传递参数查询参数 |
|
|
|
|
|
pageSize: params.limit, |
|
|
|
|
|
pageNum: params.offset / params.limit + 1, |
|
|
|
|
|
enterpriseCode: data[0].enterpriseCode |
|
|
|
|
|
}; |
|
|
|
|
|
// console.log(data[0].enterpriseCode) |
|
|
|
|
|
return curParams |
|
|
|
|
|
}, |
|
|
|
|
|
columns: [ |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'id', |
|
|
|
|
|
title: '操作历史记录id', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'enterpriseCode', |
|
|
|
|
|
title: '物料编号', |
|
|
|
|
|
visible: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'enterpriseName', |
|
|
|
|
|
title: '物料名称', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'purser', |
|
|
|
|
|
title: '事业部' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'operPeople', |
|
|
|
|
|
title: '操作人' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'oper', |
|
|
|
|
|
field: '操作' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'createTime', |
|
|
|
|
|
field: '操作时间', |
|
|
|
|
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
field: 'operStatus', |
|
|
|
|
|
title: '操作状态', |
|
|
|
|
|
formatter: function (value,index,row){ |
|
|
|
|
|
if (value == 0){ |
|
|
|
|
|
return '成功'; |
|
|
|
|
|
}else{ |
|
|
|
|
|
return '失败'; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
}); |
|
|
|
|
|
$("#detailsModal").modal("show"); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
//审核弹窗 |
|
|
|
|
|
function showMaterial(index){ |
|
|
|
|
|
var rows=$("#bootstrap-table").bootstrapTable("getData")[index]; |
|
|
|
|
|
console.log(rows); |
|
|
|
|
|
$("#auditMaterial_id").val(rows.id); |
|
|
|
|
|
$("#auditMaterial").modal("show"); |
|
|
|
|
|
}; |
|
|
|
|
|
//提交审核 |
|
|
|
|
|
function AuditConfirmSubmit(number) { |
|
|
|
|
|
$("#auditMaterial_auditStatus").val(number); |
|
|
|
|
|
var remark = $("#auditMaterial_remark").val(); |
|
|
|
|
|
if(number == 2 && remark==null || remark== ''){ |
|
|
|
|
|
$.modal.error("审核拒绝需要填写理由"); |
|
|
|
|
|
}else{ |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: prefix + "/audit", |
|
|
|
|
|
type: "post", |
|
|
|
|
|
resultType: "json", |
|
|
|
|
|
data: $('#form-audit-material').serialize(), |
|
|
|
|
|
success: function (resp) { |
|
|
|
|
|
console.log(resp) |
|
|
|
|
|
$("#bootstrap-table").bootstrapTable('refresh'); |
|
|
|
|
|
if (resp.msg == 0) { |
|
|
|
|
|
$.modal.msgSuccess("审核成功!") |
|
|
|
|
|
} else { |
|
|
|
|
|
$.modal.msgError("审核失败") |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
error: function () { |
|
|
|
|
|
$.modal.msgError("出错了!"); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
//技术团队配置 |
|
|
|
|
|
function showItem(){ |
|
|
|
|
|
var data = $("#bootstrap-table").bootstrapTable("getSelections"); |
|
|
|
|
|
if (data.length==1){ |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: prefix + "/getMItem", |
|
|
|
|
|
type: "post", |
|
|
|
|
|
resultType: "json", |
|
|
|
|
|
data: { |
|
|
|
|
|
materialNo:data[0].materialNo |
|
|
|
|
|
}, |
|
|
|
|
|
success: function (resp) { |
|
|
|
|
|
console.log(resp); |
|
|
|
|
|
}, |
|
|
|
|
|
error: function () { |
|
|
|
|
|
$.modal.msgError("出错了!"); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$("#productItemModel").modal("show"); |
|
|
|
|
|
}else if(data.length > 1){ |
|
|
|
|
|
$.modal.msgError("只能选择一个") |
|
|
|
|
|
}else{ |
|
|
|
|
|
$.modal.msgError("请选择要添加的对象") |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: ctx + "system/item/list", |
|
|
|
|
|
type: "POST", |
|
|
|
|
|
success: function (res) { |
|
|
|
|
|
// console.log(res) |
|
|
|
|
|
if (res.rows.length > 0) { |
|
|
|
|
|
productItems = res.rows; |
|
|
|
|
|
//alert(JSON.stringify(data)); |
|
|
|
|
|
// console.log(res.rows) |
|
|
|
|
|
for (let i in productItems) { |
|
|
|
|
|
$("select[name='productItem']").append("<option value='" + productItems[i].productItem + "'>" +productItems[i].productItem + "</option>"); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
$.modal.msgError(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
error: function () { |
|
|
|
|
|
$.modal.msgError("后台出错啦!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
$("select[name='productItem']").change(function () { |
|
|
|
|
|
console.log(productItems); |
|
|
|
|
|
if($("select[name='productItem']").val()!=null) { |
|
|
|
|
|
$("input[id='itemId']").val(productItems[i].id); |
|
|
|
|
|
$("input[name='functions']").val(productItems[i].functions); |
|
|
|
|
|
// $("input[name='businessMembers']").val(productItems[i].businessMembers) |
|
|
|
|
|
$("input[name='dainqi']").val(productItems[i].dianqi); |
|
|
|
|
|
$("input[name='struct']").val(productItems[i].struct); |
|
|
|
|
|
$("input[name='soft']").val(productItems[i].soft); |
|
|
|
|
|
$("input[name='test']").val(productItems[i].test); |
|
|
|
|
|
$("input[name='zhuguan1']").val(productItems[i].zhuguan1); |
|
|
|
|
|
$("input[name='zhuguan2']").val(productItems[i].zhuguan2); |
|
|
|
|
|
$("input[name='manger']").val(productItems[i].manger); |
|
|
|
|
|
$("input[name='director']").val(productItems[i].director); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
//导出数据 |
|
|
//导出数据 |
|
|
function exportSelect() { |
|
|
function exportSelect() { |
|
|
var ids = $.table.selectColumns("id"); |
|
|
var ids = $.table.selectColumns("id"); |
|
|