|
|
@ -109,11 +109,15 @@ |
|
|
|
'<form id="form-manfa-'+ uniqueId +'"> ' + |
|
|
|
"<div class='form-group'> "+ |
|
|
|
"<label for='okAcceptedNum'>OK允收数:</label>" + |
|
|
|
"<input type='text' class='form-control' id='okAcceptedNum' name='okAcceptedNum'>"+ |
|
|
|
"<div class='btn-group-sm'>" + |
|
|
|
"<input type='text' class='form-control' id='okAcceptedNum' name='okAcceptedNum'>"+ |
|
|
|
"<a class= 'btn btn-success btn-xs' href='javascript:void(0)' ><i class='fa fa-plus'></i>上传</a>" + |
|
|
|
"</div>"+ |
|
|
|
"</div>"+ |
|
|
|
" <div class='form-group'> "+ |
|
|
|
"<label for='qualifiedNum'>特采/让步数:</label>" + |
|
|
|
"<input type='text' class='form-control' id='specialConcessionsNum' name='specialConcessionsNum'>"+ |
|
|
|
"<a class= 'btn btn-success btn-xs' href='javascript:void(0)' ><i class='fa fa-plus'></i>上传</a>" + |
|
|
|
"</div>"+ |
|
|
|
"</form>"+ |
|
|
|
"</div>" + |
|
|
@ -233,12 +237,21 @@ |
|
|
|
field: 'processBadNum', |
|
|
|
editable:true |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '报告', |
|
|
|
align: 'center', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
var actions = []; |
|
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" ><i class="fa fa-plus"></i>上传</a> '); |
|
|
|
return actions.join(''); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
align: 'center', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
var actions = []; |
|
|
|
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="removeUnqualifiedClassRow(\'' + row.manufacturingUnqualifiedClassId + '\')"><i class="fa fa-remove"></i>删除</a> '); |
|
|
|
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="removeUnqualifiedClassRow(' + row.manufacturingUnqualifiedClassId + '", "' + options2.id + ')"><i class="fa fa-remove"></i>删除</a> '); |
|
|
|
return actions.join(''); |
|
|
|
} |
|
|
|
}, |
|
|
@ -311,19 +324,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 新增一个处理制程工序编号下拉改变的函数 |
|
|
|
// function handleManufacturingProcessChange(selectElement, tableId,selectId,row) { |
|
|
|
// |
|
|
|
// var manufacturingProcessCode = $(selectElement).val(); |
|
|
|
// // 根据selectedValue进行相应处理 |
|
|
|
// console.log("Selected manufacturing process code:", manufacturingProcessCode); |
|
|
|
// console.log("tableId:", tableId); |
|
|
|
// console.log("selectId:", selectId); |
|
|
|
// console.log("selectId:", JSON.stringify(row)); |
|
|
|
// $("#" + tableId).bootstrapTable("updateRow",row); |
|
|
|
// // 这里可以调用你的业务逻辑,如selectProcess,但需注意参数应有效 |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
function handleManufacturingProcessChange(selectElement, tableId, selectId, index) { |
|
|
|
var selectedValue = $(selectElement).val(); |
|
|
@ -377,9 +377,13 @@ |
|
|
|
// return td; |
|
|
|
// } |
|
|
|
|
|
|
|
function removeUnqualifiedClassRow(id) { |
|
|
|
alert("实施删除不合格分类行操作,id: " + id); // 实现删除逻辑 |
|
|
|
|
|
|
|
function removeUnqualifiedClassRow(manufacturingUnqualifiedClassId,tableId) { |
|
|
|
console.log(manufacturingUnqualifiedClassId); |
|
|
|
console.log(tableId); |
|
|
|
$("#"+tableId).bootstrapTable('remove', { |
|
|
|
field: 'manufacturingUnqualifiedClassId', |
|
|
|
values: manufacturingUnqualifiedClassId |
|
|
|
}) |
|
|
|
} |
|
|
|
function selectProcess(tableId,selectId){ |
|
|
|
console.log(tableId); |
|
|
|