|
@@ -155,7 +155,7 @@ $(function () {
|
|
|
const info = Object.assign(beHospital, result);
|
|
|
initMenu(JSON.parse(result.menuData));
|
|
|
// $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
|
|
|
- if (form == 44 && casesName !='缺陷总览') {
|
|
|
+ if (form == 44 && casesName != '缺陷总览') {
|
|
|
//选中样式
|
|
|
$(".sub-menu .active,.menu-mini .active").removeClass('active');
|
|
|
const mItems = $(".sub-menu .page[code=" + casesName + "],.menu-mini .page[code=" + casesName + "]");
|
|
@@ -345,7 +345,7 @@ $(function () {
|
|
|
formatSpecPage(data, "缺陷总览", type);
|
|
|
// $(".flaw-table").show();
|
|
|
// $(".flaw-table .page-item[code=" + global_activeTab + "]").show();
|
|
|
- if (form == 44 && casesName !='缺陷总览') {
|
|
|
+ if (form == 44 && casesName != '缺陷总览') {
|
|
|
$(".flaw-table").hide();
|
|
|
$(".flaw-table .page-item[code=" + global_activeTab + "]").show();
|
|
|
} else {
|
|
@@ -482,7 +482,7 @@ $(function () {
|
|
|
id: +id
|
|
|
};
|
|
|
post(api.getApprovedView, param).then((res) => {
|
|
|
- const info = res.data.data.data || {};
|
|
|
+ const info = res.data.data || {};
|
|
|
const appealInfo = info.appealExamineRecordDTOList;
|
|
|
$("#appealStatusTmpl").tmpl(appealInfo).appendTo("#delModal .modal-body");
|
|
|
/*if (flg === '1') {
|
|
@@ -543,6 +543,23 @@ $(function () {
|
|
|
if ($(".edit-box .warning").is(":visible")) {
|
|
|
return;
|
|
|
}
|
|
|
+ const userId = $(".checker-drop-input").attr("code");
|
|
|
+ const appealExec = $("#delModal #qcInfo").val(); //申诉说明
|
|
|
+ if (!userId) {
|
|
|
+ $(".edit-box .warning .red").text("请选择审核人~");
|
|
|
+ $(".edit-box .warning").show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (appealExec.length === 0) {
|
|
|
+ $(".edit-box .warning .red").text("申诉说明不能为空~");
|
|
|
+ $(".edit-box .warning").show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (appealExec.length > 500) {
|
|
|
+ $(".edit-box .warning .red").text("申诉说明不能超过500个字~");
|
|
|
+ $(".edit-box .warning").show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
const obj = {
|
|
|
appealExplain: $("#delModal #qcInfo").val(),
|
|
|
appealOperationType: info.appealOperationType ? info.appealOperationType : 0,
|
|
@@ -638,13 +655,15 @@ $(function () {
|
|
|
if ($(".edit-box .warning").is(":visible")) {
|
|
|
return;
|
|
|
}
|
|
|
+ console.log(userId);
|
|
|
+ if (!userId) {
|
|
|
+ $(".add-box .warning .red").text("请选择审核人~");
|
|
|
+ $(".add-box .warning").show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
//必填验证
|
|
|
if (type === '1') { //新增已有时
|
|
|
- if (!userId) {
|
|
|
- $(".add-box .warning .red").text("请选择审核人~");
|
|
|
- $(".add-box .warning").show();
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
if (!$(".flaw-drop-input").attr("code")) {
|
|
|
$(".add-box .warning .red").text("请选择质控条目~");
|
|
|
$(".add-box .warning").show();
|
|
@@ -671,6 +690,9 @@ $(function () {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ $(document).on("click", "input[name=operType]", (e) => {
|
|
|
+ $(".add-box .warning").hide();
|
|
|
+ });
|
|
|
//缺陷列表key值去掉特殊符号
|
|
|
function formatFlawKeys(data) {
|
|
|
const obj = {};
|