From 29593886613c58fb1968618ac0deb90789d5b025 Mon Sep 17 00:00:00 2001 From: hao <1836460075@qq.com> Date: 星期二, 29 七月 2025 16:16:40 +0800 Subject: [PATCH] 焕媄pda更新拆分条码 --- HM-pda-QD/web/lyt/OQCCheckAdd2.html | 69 +++++++--------------------------- 1 files changed, 14 insertions(+), 55 deletions(-) diff --git a/HM-pda-QD/web/lyt/OQCCheckAdd2.html b/HM-pda-QD/web/lyt/OQCCheckAdd2.html index 2641b18..79dce96 100644 --- a/HM-pda-QD/web/lyt/OQCCheckAdd2.html +++ b/HM-pda-QD/web/lyt/OQCCheckAdd2.html @@ -189,66 +189,25 @@ }); } - let files = []; - + //20250416 娣诲姞鎵撳嵃鎸夐垥 document.getElementById('cameraBtn').addEventListener('tap', function() { - selectPhoto(); - }); + const mid = order; // 妫�楠屽崟鍙� + const pid = fdid; // 褰撳墠椤圭洰 ID - function selectPhoto() { - if (mui.os.plus) { - plus.nativeUI.actionSheet({ - title: "閫夋嫨鎿嶄綔", - cancel: "鍙栨秷", - buttons: [{ title: "鎷嶇収" }, { title: "浠庣浉鍐岄�夋嫨" }] - }, function(b) { - if (b.index === 1) captureImage(); - if (b.index === 2) pickGalleryImages(); - }); - } - } + // if (!mid || !pid) { + // mui.toast("璇峰厛纭妫�楠岄」鐩�"); + // return; + // } - function captureImage() { - const cmr = plus.camera.getCamera(); - cmr.captureImage(function(path) { - plus.io.resolveLocalFileSystemURL(path, function(entry) { - const url = entry.toLocalURL(); - files.push(url); - mui.toast("宸叉坊鍔犳媿鐓�"); - }); - }); - } - - function pickGalleryImages() { - plus.gallery.pick(function(e) { - e.files.forEach(path => { - files.push(path); - }); - mui.toast("宸查�夋嫨鐩稿唽鍥剧墖"); - }, { multiple: true }); - } - - function uploadImages() { - const url = storage["_basePath"] + 'ht_file/uploadFilepqc'; - const task = plus.uploader.createUpload(url, { method: 'POST' }, function(t, status) { - if (status === 200) { - mui.toast('鐓х墖涓婁紶鎴愬姛'); - } else { - mui.toast('鐓х墖涓婁紶澶辫触'); + mui.openWindow({ + id: 'pictrue_add', + url: 'ftp/pictrue_add.html?mid=' + mid + '&pid=' + pid, + waiting: { + autoShow: true, + title: '鍔犺浇涓�' } }); - - files.forEach((file, i) => { - task.addFile(file, { key: `file${i}` }); - }); - - task.addData('checkNo', order); - task.addData('pid', fdid); - task.addData('userNo', api_localStorageGet("code")); - task.addData('remark', $("#remark").val()); - - task.start(); - } + }); </script> </body> -- Gitblit v1.9.3