From 8730a29068b18db2c392820b1dacb01fa785884d Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期二, 22 七月 2025 08:44:45 +0800
Subject: [PATCH] 华远:直方图界面增加复选框,选中则点击pcs是默认新增 AVI检测记录。不选中则进入PCS数据维护界面。PNL检验信息,不良原因改为下拉列表,直接获取不良基础资料
---
WebTM/views/质量管理/PNL检验信息/QC_CheckNote_PNL_TempEdit.html | 53 ++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 46 insertions(+), 7 deletions(-)
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/PNL\346\243\200\351\252\214\344\277\241\346\201\257/QC_CheckNote_PNL_TempEdit.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/PNL\346\243\200\351\252\214\344\277\241\346\201\257/QC_CheckNote_PNL_TempEdit.html"
index 9250362..4913403 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/PNL\346\243\200\351\252\214\344\277\241\346\201\257/QC_CheckNote_PNL_TempEdit.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/PNL\346\243\200\351\252\214\344\277\241\346\201\257/QC_CheckNote_PNL_TempEdit.html"
@@ -97,10 +97,8 @@
<div class="layui-inline">
<label class="layui-form-label">妫�楠屽伐搴�<label style="color:red"> * </label></label>
<div class="layui-input-inline">
- <select name="HCheckProc" lay-filter="HCheckProc"
- id="HCheckProc">
- <option value="鐐.VRS鍐呭眰" selected="selected">鐐.VRS鍐呭眰
- </option>
+ <select name="HCheckProc" lay-filter="HCheckProc" id="HCheckProc">
+ <option value="鐐.VRS鍐呭眰" selected="selected">鐐.VRS鍐呭眰</option>
<option value="鐐.VRS澶栧眰">鐐.VRS澶栧眰</option>
<option value="AVI">AVI</option>
<option value="鐢垫祴">鐢垫祴</option>
@@ -125,8 +123,8 @@
<div class="layui-inline">
<label class="layui-form-label">涓嶈壇鍘熷洜:</label>
<div class="layui-input-inline">
- <textarea name="HPNLPosition_y" id="HPNLPosition_y"
- class="layui-textarea"></textarea>
+ <select name="HBadReason" lay-filter="HBadReason" id="HBadReason">
+ </select>
</div>
</div>
</div>
@@ -241,6 +239,7 @@
//#region 杩涘叆椤甸潰鍗冲姞杞�
//鍒濆鍖栫晫闈�
+ setInitSelect_BadReason();
set_ClearBill();
//鍒ゆ柇鎿嶄綔绫诲瀷
if (OperationType == 1) {//鏃犳簮鍗�
@@ -269,6 +268,18 @@
document.getElementById("HBarCode").setAttribute("disabled", "disabled");
document.getElementById("HSetNo").setAttribute("disabled", "disabled");
document.getElementById("HPCSNo").setAttribute("disabled", "disabled");
+ } else if (OperationType == 6) {//鐩存柟鍥�-avi 鏂板
+ set_AddFNew();
+ $("#HBarCode").val(HBarCode_PNL);
+ $("#HSetNo").val(HSetNo);
+ $("#HPCSNo").val(HPCSNo);
+ $("#HCheckProc").val("AVI");
+
+ document.getElementById("HBarCode").setAttribute("disabled", "disabled");
+ document.getElementById("HSetNo").setAttribute("disabled", "disabled");
+ document.getElementById("HPCSNo").setAttribute("disabled", "disabled");
+ document.getElementById("HCheckProc").setAttribute("disabled", "disabled");
+ form.render('select');
}
else {
layer.alert("鏈煡鎿嶄綔绫诲瀷锛�", { icon: 5 });
@@ -289,7 +300,7 @@
let url = GetWEBURL()
if (OperationType == 3 || OperationType == 5) {
url += "/QC_CheckNote_PNL_TempController/EditBill"
- } else if (OperationType == 1 || OperationType == 2 || OperationType == 4) {
+ } else if (OperationType == 1 || OperationType == 2 || OperationType == 4 || OperationType == 6) {
url += "/QC_CheckNote_PNL_TempController/AddBill"
}
$.ajax(
@@ -386,6 +397,34 @@
$("#HMaker").val(sessionStorage["HUserName"]);; //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭鍒涘缓浜�
$("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd"));
}
+
+ //#region 涓嶈壇鍘熷洜涓嬫媺鍒楄〃鍒濆鍖�
+ function setInitSelect_BadReason() {
+ //鑾峰彇鐧诲綍椤电粍缁囧垪
+ var ModRightNameCheck = "";
+ var sql = "select * from Gy_BadReason where HCheckEmp <> '' and ISNULL(HStopEmp,'') = '' ";
+ $.ajax({
+ url: GetWEBURL() + '/CommonModel/searchMethod',
+ async: false,
+ type: "GET",
+ data: { "sql": sql, "user": sessionStorage["HUserName"], "ModRightNameCheck": ModRightNameCheck },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ var data = result.data;
+
+ var Organization = "";
+ for (var i = 0; i < data.length; i++) {
+ Organization += '<option style="color:blue;" value="' + data[i].HName + '">' + data[i].HName + '</option>';
+ }
+ $("#HBadReason").append(Organization);
+ form.render('select');
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ //#endregion
+
//鏃犳簮鍗曟柊澧�
function set_AddFNew() {
$("#HItemID").val(0)
--
Gitblit v1.9.1