yhj
2025-09-28 6f8c09563a5bbc72de5f64fdf196455e0cdd070e
jf-pda-browser/web/lyt/sjCheckInput.html
@@ -20,7 +20,7 @@
         .ulcss {
            padding: 5px 5px;
         }
         .ulcss a {
            border: solid 1px #FFFFF;
            background-color: #E6E6FA;
@@ -29,7 +29,7 @@
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
         }
         .close {
            position: absolute;
            top: 0;
@@ -37,7 +37,7 @@
            z-index: 99;
            color: red;
         }
         .search {
            border: 1px solid #e0e0e0;
            border-radius: 5px;
@@ -51,7 +51,7 @@
            margin-bottom: 10px;
            height: 40px;
         }
         .search input {
            margin-bottom: 2px;
            padding: 0px 0px;
@@ -59,22 +59,32 @@
            border-radius: 5px;
            font-size: 1.6rem;
         }
         .mui-input-group .mui-input-row {
            height: 2.2rem;
         }
         .font {
            font-size: 1.6rem;
            color: #000000;
         }
         .mui-input-row label {
            font-size: 1.125rem;
         }
         .mui-input-row input {
            font-size: 1.0625rem;
         }
         .mui-bar-nav {
             display: flex;
             justify-content: space-between;
             align-items: center;
         }
         .mui-title {
             flex: 1;
             text-align: center;
             margin: 0 15px; /* 防止标题挤压两侧按钮 */
         }
         
      </style>
@@ -86,7 +96,7 @@
            首检项目录入
            <span class="mui-badge mui-badge-primary" style="font-size: 1.6rem; display: none;" id='num'>0</span>
         </h1>
<span class="mui-icon mui-icon-camera title-right" style="color:#0062CC" id="cameraBtn"></span>
      </header>
      <div class="mui-content" id="contentId">
         <div class="mui-input-group">
@@ -247,25 +257,28 @@
            }) 
         });
         
         function delLi(checkId,checkResult){
            var order= GetQueryString('order')
            var id=GetQueryString("did")
            aj.post("/ho_patrol/checkDel", {
               "userNo": api_localStorageGet("code"),
               "checkNo": order,
               "pid": checkId,
               "checkResult": checkResult,
               "checkDemo": $("#remark").val()
            }, function(data) {
               if (data.result) {
                  getData()
               } else {
                  getData()
                  plus.ui.toast(data.msg);
               }
            });
         }
            function delLi(checkId,checkResult){
                     var order= GetQueryString('order')
                     var id=GetQueryString("did")
                       // 1. 只取 `\n` 之前的值,去掉空格
                         checkResult = checkResult.split("\n")[0].trim();
                     aj.post("/ho_patrol/checkDel", {
                        "userNo": api_localStorageGet("code"),
                        "checkNo": order,
                        "pid": getQueryVariable("did"),
                        "checkResult": checkResult,
                        "checkDemo": $("#remark").val(),
                         "type": 'SJ' // 传入检验类型
                     }, function(data) {
                        if (data.result) {
                           getData()
                        } else {
                           getData()
                           plus.ui.toast(data.msg);
                        }
                     });
                  }
         function getData() {
            
@@ -385,6 +398,25 @@
                }
                return(false);
         }
         document.getElementById('cameraBtn').addEventListener('tap', function() {
                 const mid = order;     // 检验单号
                 const pid = fdid;      // 当前项目 ID
                 if (!mid || !pid) {
                   mui.toast("请先确认检验项目");
                   return;
                 }
               console.log("22555555")
                 mui.openWindow({
                   id: 'pictrue_add',
                   url: 'ftp/pictrue_add.html?mid=' + mid + '&pid=' + pid+ '&type=71',
                   waiting: {
                     autoShow: true,
                     title: '加载中'
                   }
                 });
               });
      </script>
   </body>
</html>