loustwo 4 lat temu
rodzic
commit
65f34e9a5a
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      resources/views/order/workOrder/index.blade.php

+ 3 - 2
resources/views/order/workOrder/index.blade.php

@@ -3467,10 +3467,11 @@
                 },
                 formStoreProcessLog(work_order_detail_id, worK_order_id) {
                     let url = "{{route('workOrder.processLog.storeApi')}}";
+                    let tagDoc = document.getElementById(work_order_detail_id + '_log_check');
                     let data = {
                         id: worK_order_id,
                         content: document.getElementById('addWorkOrderProcessLogFormInput_' + work_order_detail_id).value,
-                        tag: document.getElementById(work_order_detail_id + '_log_check').value ? 1 : 0
+                        tag: tagDoc ? tagDoc.value : 0
                     };
                     this.waitingTempTip('处理中');
                     window.axios.post(url, data).then(res => {
@@ -3480,7 +3481,7 @@
                             this.successTempTip('处理完成');
                             this.showAddDiv('addWorkOrderProcessLogForm' + work_order_detail_id);
                             document.getElementById('addWorkOrderProcessLogFormInput_' + work_order_detail_id).value = '';
-                            document.getElementById(work_order_detail_id + '_log_check').value = false;
+                            if(tagDoc)tagDoc = false;
                             this.$forceUpdate();
                             return;
                         }