1178232204@qq.com %!s(int64=3) %!d(string=hai) anos
pai
achega
b03ed17426
Modificáronse 1 ficheiros con 7 adicións e 7 borrados
  1. 7 7
      src/js/dept/qcListCopyDept.js

+ 7 - 7
src/js/dept/qcListCopyDept.js

@@ -382,22 +382,22 @@ $(".abnormalClear").on("click", function (e) {
         data_desc = ["behospitalDate"]
     }
     data_asc = [];
-    if (from == 2 ) {
+    if (from == 2 || from == 13) {
         deptId = deptListDept[0] && deptListDept[0].deptId;
         deptName = deptListDept[0] && deptListDept[0].deptName;
         deptNameTemp = deptListDept[0] && deptListDept[0].deptName;
         deptIdTemp = deptListDept[0] && deptListDept[0].deptId;
         $('.selectDept').html(deptName).append(`<img class="arrow" src=${iconDown} alt="下拉">`);
     }
-    if (from == 4 || from == 9 || from == 8 || from == 13) {
+    if (from == 4 || from == 9 || from == 8) {
         deptIdTemp = deptIdPram = deptId
         deptName = deptNameTemp = deptNamePram
     }
-    // if (docName) {
-    //     doctorNameTemp = docName
-    //     doctorName = docName
-    //     $('.doctorInp').val(docName)
-    // }
+    if (docName) {
+        doctorNameTemp = docName
+        doctorName = docName
+        $('.doctorInp').val(docName)
+    }
     $('.patientNumInp').val('')
     $('.patientNameInp').val('')
     // $('.doctorInp').val('')