|
@@ -12,7 +12,6 @@ $(function(){
|
|
//getSubMenu();
|
|
//getSubMenu();
|
|
//initScoreItem();
|
|
//initScoreItem();
|
|
getRecordDetail();
|
|
getRecordDetail();
|
|
-
|
|
|
|
function initMenu(data){
|
|
function initMenu(data){
|
|
//菜单数据填充
|
|
//菜单数据填充
|
|
$("#subMenuTmpl").tmpl(data).appendTo("#subMenu");
|
|
$("#subMenuTmpl").tmpl(data).appendTo("#subMenu");
|
|
@@ -144,10 +143,19 @@ function showModal(flag,code,i){
|
|
$("#delModal .modal-body").html("");
|
|
$("#delModal .modal-body").html("");
|
|
$("#delModal").show();
|
|
$("#delModal").show();
|
|
$("#delModal .confirm").off("click");
|
|
$("#delModal .confirm").off("click");
|
|
|
|
+ $("#qcScore").off("input");
|
|
const info = global_flawData[global_activeTab][i];
|
|
const info = global_flawData[global_activeTab][i];
|
|
if(flag==='0'){ //修改
|
|
if(flag==='0'){ //修改
|
|
$("#delModal .title").text("修改评分");
|
|
$("#delModal .title").text("修改评分");
|
|
$("#editTmpl").tmpl(info).appendTo("#delModal .modal-body");
|
|
$("#editTmpl").tmpl(info).appendTo("#delModal .modal-body");
|
|
|
|
+ $("#qcScore").on("input",function(){
|
|
|
|
+ const val=$(this).val();
|
|
|
|
+ if(/^[0-9]\d*$|^[0-9]\d*(.\d)?$/.test(val)){
|
|
|
|
+ $(".edit-box .warning").hide();
|
|
|
|
+ }else{
|
|
|
|
+ $(".edit-box .warning").show();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
$("#delModal .confirm").click(function(){
|
|
$("#delModal .confirm").click(function(){
|
|
const obj = Object.assign({},info,{msg:$("#delModal #qcMsg").val(),score:$("#delModal #qcScore").val()});
|
|
const obj = Object.assign({},info,{msg:$("#delModal #qcMsg").val(),score:$("#delModal #qcScore").val()});
|
|
editScore(obj);
|
|
editScore(obj);
|