|
@ -109,13 +109,7 @@ |
|
|
<a class="btn btn-success" onclick="showItem()" shiro:hasPermission="erp:material:item"> |
|
|
<a class="btn btn-success" onclick="showItem()" shiro:hasPermission="erp:material:item"> |
|
|
<i class="fa fa-plus"></i> 技术团队配置 |
|
|
<i class="fa fa-plus"></i> 技术团队配置 |
|
|
</a> |
|
|
</a> |
|
|
<!--<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="erp:material:edit"> |
|
|
<a class="btn btn-warning" onclick="exportSelect()" shiro:hasPermission="erp:material:export"> |
|
|
<i class="fa fa-edit"></i> 修改 |
|
|
|
|
|
</a> |
|
|
|
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="erp:material:remove"> |
|
|
|
|
|
<i class="fa fa-remove"></i> 删除 |
|
|
|
|
|
</a>--> |
|
|
|
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="erp:material:export"> |
|
|
|
|
|
<i class="fa fa-download"></i> 导出 |
|
|
<i class="fa fa-download"></i> 导出 |
|
|
</a> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
@ -274,89 +268,101 @@ |
|
|
aria-hidden="true">×</span></button> |
|
|
aria-hidden="true">×</span></button> |
|
|
<h4 class="modal-title">技术团队配置</h4> |
|
|
<h4 class="modal-title">技术团队配置</h4> |
|
|
</div> |
|
|
</div> |
|
|
<div class="modal-body" style="height: 180px"> |
|
|
<div class="modal-body"> |
|
|
<form id="form-product-material"> |
|
|
<form id="form-product-material row"> |
|
|
<div class="form-group"> |
|
|
<div class="form-group col-sm-6"> |
|
|
<label class="col-sm-3 control-label">料号:</label> |
|
|
<label class="col-sm-4 col-form-label">料号:</label> |
|
|
<div class="col-sm-8"> |
|
|
<div class="col-sm-8"> |
|
|
<input name="materialNo" class="form-control" type="text" readonly> |
|
|
<input type="text" name="materialNo" class="form-control" readonly> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group col-sm-6"> |
|
|
<label class="col-sm-3 control-label">物料名称:</label> |
|
|
<label class="col-sm-4 col-form-label">物料名称:</label> |
|
|
<div class="col-sm-8"> |
|
|
<div class="col-sm-8"> |
|
|
<input name="materialName" class="form-control" type="text" readonly> |
|
|
<input type="text" name="materialName" class="form-control" readonly> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<input name="itemId" type="hidden"> |
|
|
<input name="itemId" type="hidden"> |
|
|
<div class="form-group"> |
|
|
<div class="form-group col-sm-6"> |
|
|
<label class="col-sm-3 control-label">生产团队id:</label> |
|
|
<label class="col-sm-4 col-form-label">生产团队ID:</label> |
|
|
<div class="col-sm-8"> |
|
|
<div class="col-sm-8"> |
|
|
<select name="id" class="form-control-sm" required> |
|
|
<select name="id" class="form-control-sm" required> |
|
|
<option></option> |
|
|
<option></option> |
|
|
|
|
|
<!-- 添加具体的团队ID选项 --> |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group col-sm-6"> |
|
|
<label class="col-sm-3 control-label">生产团队名称:</label> |
|
|
<label class="col-sm-4 col-form-label">生产团队名称:</label> |
|
|
<div class="col-sm-8"> |
|
|
<div class="col-sm-8"> |
|
|
<select name="productItem" class="form-control-sm" required> |
|
|
<select name="productItem" class="form-control-sm" required> |
|
|
<option></option> |
|
|
<option></option> |
|
|
|
|
|
<!-- 添加具体的团队名称选项 --> |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group" > |
|
|
|
|
|
<label class="col-sm-3 control-label">职能:</label> |
|
|
|
|
|
<div class="col-sm-2"> |
|
|
|
|
|
<input name="functions" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group" > |
|
|
|
|
|
<label class="col-sm-3 control-label">电气技术人员:</label> |
|
|
|
|
|
<div class="col-sm-2"> |
|
|
|
|
|
<input name="dianqi" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group" > |
|
|
|
|
|
<label class="col-sm-3 control-label">结构技术人员:</label> |
|
|
|
|
|
<div class="col-sm-2"> |
|
|
|
|
|
<input name="struct" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-3 control-label">软件技术人员:</label> |
|
|
<div class="row"> |
|
|
<div class="col-sm-2"> |
|
|
<div class="col-sm-3"> |
|
|
<input name="soft" class="form-control" type="text" readonly> |
|
|
<label class="control-label">职能:</label> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-sm-3"> |
|
|
<div class="form-group" readonly=""> |
|
|
<label class="control-label">电气技术人员:</label> |
|
|
<label class="col-sm-3 control-label">测试技术人员:</label> |
|
|
</div> |
|
|
<div class="col-sm-2"> |
|
|
<div class="col-sm-3"> |
|
|
<input name="test" class="form-control" type="text" readonly> |
|
|
<label class="control-label">结构技术人员:</label> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-sm-3"> |
|
|
<div class="form-group"> |
|
|
<label class="control-label">软件技术人员:</label> |
|
|
<label class="col-sm-3 control-label">主管1:</label> |
|
|
</div> |
|
|
<div class="col-sm-2"> |
|
|
<div class="w-100"></div> <!-- Add a clearfix to wrap the next row --> |
|
|
<input name="zhuguan1" class="form-control" type="text" readonly> |
|
|
<div class="col-sm-3"> |
|
|
</div> |
|
|
<label class="control-label">测试技术人员:</label> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="col-sm-3"> |
|
|
<label class="col-sm-3 control-label">主管2:</label> |
|
|
<label class="control-label">主管1:</label> |
|
|
<div class="col-sm-2"> |
|
|
</div> |
|
|
<input name="zhuguan2" class="form-control" type="text" readonly> |
|
|
<div class="col-sm-3"> |
|
|
</div> |
|
|
<label class="control-label">主管2:</label> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="col-sm-3"> |
|
|
<label class="col-sm-3 control-label">经理:</label> |
|
|
<label class="control-label">经理:</label> |
|
|
<div class="col-sm-2"> |
|
|
</div> |
|
|
<input name="manger" class="form-control" type="text" readonly> |
|
|
<div class="w-100"></div> <!-- Add a clearfix to wrap the next row --> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<label class="control-label">总监:</label> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="row"> |
|
|
<div class="form-group"> |
|
|
<div class="col-sm-3"> |
|
|
<label class="col-sm-3 control-label">总监:</label> |
|
|
<input name="functions" class="form-control" type="text" readonly> |
|
|
<div class="col-sm-2"> |
|
|
</div> |
|
|
<input name="director" class="form-control" type="text" readonly> |
|
|
<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="w-100"></div> <!-- Add a clearfix to wrap the next row --> |
|
|
|
|
|
<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="w-100"></div> <!-- Add a clearfix to wrap the next row --> |
|
|
|
|
|
<div class="col-sm-3"> |
|
|
|
|
|
<input name="director" class="form-control" type="text" readonly> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</form> |
|
|
</form> |
|
@ -498,7 +504,6 @@ |
|
|
removeUrl: prefix + "/remove", |
|
|
removeUrl: prefix + "/remove", |
|
|
cancelUrl: prefix + "/cancel/{id}", |
|
|
cancelUrl: prefix + "/cancel/{id}", |
|
|
restoreUrl: prefix + "/restore/{id}", |
|
|
restoreUrl: prefix + "/restore/{id}", |
|
|
exportUrl: prefix + "/export", |
|
|
|
|
|
detailUrl: prefix + "/detail/{id}", |
|
|
detailUrl: prefix + "/detail/{id}", |
|
|
modalName: "物料信息", |
|
|
modalName: "物料信息", |
|
|
fixedColumns: true, // 启用冻结列 |
|
|
fixedColumns: true, // 启用冻结列 |
|
@ -1427,8 +1432,28 @@ |
|
|
$("input[name='director']").val(productItems[i].director); |
|
|
$("input[name='director']").val(productItems[i].director); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
//技术团队选择赋值 |
|
|
//导出数据 |
|
|
|
|
|
function exportSelect() { |
|
|
|
|
|
var ids = $.table.selectColumns("id"); |
|
|
|
|
|
var dataParam = $("#formId").serializeArray(); |
|
|
|
|
|
|
|
|
|
|
|
let tipMsg = "确定导出当前所有数据吗?"; |
|
|
|
|
|
if ($.common.isNotEmpty(ids)) { |
|
|
|
|
|
tipMsg = `确定导出当前勾选的 ${ids.length} 条数据吗?`; |
|
|
|
|
|
dataParam.push({ "name": "ids", "value": ids }); |
|
|
|
|
|
} |
|
|
|
|
|
$.modal.loading("正在导出数据,请稍后..."); |
|
|
|
|
|
$.modal.confirm(tipMsg, function () { |
|
|
|
|
|
$.post( prefix + "/export", dataParam, function (result) { |
|
|
|
|
|
if (result.code === web_status.SUCCESS) { |
|
|
|
|
|
window.location.href = ctx + "common/download?fileName="+ encodeURI(result.msg) + "&delete=" + true; |
|
|
|
|
|
} else { |
|
|
|
|
|
$.modal.alertError(result.msg); |
|
|
|
|
|
} |
|
|
|
|
|
$.modal.closeLoading(); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |