|
@@ -247,50 +247,54 @@
|
|
|
z.ui.selecttree("[name='review1[" + i + "]']").setValue(finishedArray[i].reviewer)
|
|
|
}
|
|
|
|
|
|
- $("#editBtnF_" + i).click(function () {
|
|
|
- const span = $(this).find("span");
|
|
|
- const html = span.html();
|
|
|
- if (html === '编辑') {
|
|
|
- span.html('保存')
|
|
|
- detailWrite(i);
|
|
|
- addDataFinished.attr('disabled', "true");
|
|
|
- $("#qjsjF_" + i).removeClass("form-table-disable")
|
|
|
- return;
|
|
|
- }
|
|
|
- if (html === '保存') {
|
|
|
- span.html('编辑')
|
|
|
- detailReadonly(i);
|
|
|
- addDataFinished.removeAttr('disabled')
|
|
|
- $("#qjsjF_" + i).addClass("form-table-disable")
|
|
|
- return;
|
|
|
- }
|
|
|
- })
|
|
|
|
|
|
+ if (read !== '1') {
|
|
|
+ $("#editBtnF_" + i).click(function () {
|
|
|
+ const span = $(this).find("span");
|
|
|
+ const html = span.html();
|
|
|
+ if (html === '编辑') {
|
|
|
+ span.html('保存')
|
|
|
+ detailWrite(i);
|
|
|
+ addDataFinished.attr('disabled', "true");
|
|
|
+ $("#qjsjF_" + i).removeClass("form-table-disable")
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (html === '保存') {
|
|
|
+ span.html('编辑')
|
|
|
+ detailReadonly(i);
|
|
|
+ addDataFinished.removeAttr('disabled')
|
|
|
+ $("#qjsjF_" + i).addClass("form-table-disable")
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
- $("#delBtnF_" + i).click(function () {
|
|
|
- z.ui.confirm("compid").init({
|
|
|
- content: "确定删除吗?",
|
|
|
- onConfirm: function () {
|
|
|
- var element = document.getElementById("qjsjF_" + i);
|
|
|
- element.remove();
|
|
|
- buildQjsjSeq();
|
|
|
- finishedArray.splice(i, 1)
|
|
|
- },
|
|
|
- onCancel: function () {
|
|
|
|
|
|
- }
|
|
|
+ $("#delBtnF_" + i).click(function () {
|
|
|
+ z.ui.confirm("compid").init({
|
|
|
+ content: "确定删除吗?",
|
|
|
+ onConfirm: function () {
|
|
|
+ var element = document.getElementById("qjsjF_" + i);
|
|
|
+ element.remove();
|
|
|
+ buildQjsjSeq();
|
|
|
+ finishedArray.splice(i, 1)
|
|
|
+ },
|
|
|
+ onCancel: function () {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
})
|
|
|
|
|
|
- })
|
|
|
+ } else {
|
|
|
+ detailReadonly(i)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
error: function () {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
- if (read === '1') {
|
|
|
- detailReadonly(i)
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -381,50 +385,51 @@
|
|
|
z.ui.selecttree("[name='confirm[" + i + "]']").setValue(unfinishedArray[i].confirmor)
|
|
|
}
|
|
|
|
|
|
- $("#editBtnU_" + i).click(function () {
|
|
|
- const span = $(this).find("span");
|
|
|
- const html = span.html();
|
|
|
- if (html === '编辑') {
|
|
|
- span.html('保存')
|
|
|
- detailWriteU(i);
|
|
|
- addDataUnFinished.attr('disabled', "true");
|
|
|
- $("#qjsj_" + i).removeClass("form-table-disable")
|
|
|
- return;
|
|
|
- }
|
|
|
- if (html === '保存') {
|
|
|
- span.html('编辑')
|
|
|
- detailReadonlyU(i);
|
|
|
- addDataUnFinished.removeAttr('disabled')
|
|
|
- $("#qjsj_" + i).addClass("form-table-disable")
|
|
|
- return;
|
|
|
- }
|
|
|
- })
|
|
|
+ if (read !== '1') {
|
|
|
+ $("#editBtnU_" + i).click(function () {
|
|
|
+ const span = $(this).find("span");
|
|
|
+ const html = span.html();
|
|
|
+ if (html === '编辑') {
|
|
|
+ span.html('保存')
|
|
|
+ detailWriteU(i);
|
|
|
+ addDataUnFinished.attr('disabled', "true");
|
|
|
+ $("#qjsj_" + i).removeClass("form-table-disable")
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (html === '保存') {
|
|
|
+ span.html('编辑')
|
|
|
+ detailReadonlyU(i);
|
|
|
+ addDataUnFinished.removeAttr('disabled')
|
|
|
+ $("#qjsj_" + i).addClass("form-table-disable")
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
|
|
|
- $("#delBtnU_" + i).click(function () {
|
|
|
- z.ui.confirm("compid").init({
|
|
|
- content: "确定删除吗?",
|
|
|
- onConfirm: function () {
|
|
|
- var element = document.getElementById("qjsj_" + i);
|
|
|
- element.remove();
|
|
|
- buildQjsjSeq();
|
|
|
- unfinishedArray.splice(i, 1)
|
|
|
- },
|
|
|
- onCancel: function () {
|
|
|
+ $("#delBtnU_" + i).click(function () {
|
|
|
+ z.ui.confirm("compid").init({
|
|
|
+ content: "确定删除吗?",
|
|
|
+ onConfirm: function () {
|
|
|
+ var element = document.getElementById("qjsj_" + i);
|
|
|
+ element.remove();
|
|
|
+ buildQjsjSeq();
|
|
|
+ unfinishedArray.splice(i, 1)
|
|
|
+ },
|
|
|
+ onCancel: function () {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
- }
|
|
|
})
|
|
|
+ } else {
|
|
|
+ detailReadonlyU(i)
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- })
|
|
|
},
|
|
|
error: function () {
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
- if (read === '1') {
|
|
|
- detailReadonlyU(i)
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|