From 3d7b10980802fbea63e7d41320da2528f22247c5 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 07 九月 2023 11:09:33 +0800
Subject: [PATCH] 工作任务单:增加项目内码字段 工作任务单:记录源单信息

---
 WebTM/views/项目管理/工作任务/PM_WorkTaskBill.html |   35 +++++++++++++++++++++++++----------
 1 files changed, 25 insertions(+), 10 deletions(-)

diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskBill.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskBill.html"
index d08c59d..b6b562a 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskBill.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskBill.html"
@@ -82,16 +82,16 @@
                                             </div>
                                         </div>
                                         <!--<div class="layui-inline">
-            <label class="layui-form-label" style="width: 85px;">椤圭洰浠g爜<label style="color:red"> * </label></label>
-            <div class="layui-input-block" style="margin-left: 120px;">
-                <input type="text" class="layui-input" lay-verify="HProNumber" name="HProNumber" id="HProNumber">
-            </div>
-        </div>-->
+                                            <label class="layui-form-label" style="width: 85px;">椤圭洰浠g爜<label style="color:red"> * </label></label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" lay-verify="HProNumber" name="HProNumber" id="HProNumber">
+                                            </div>
+                                        </div>-->
                                         <div class="layui-inline">
                                             <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">椤圭洰浠g爜<label style="color:red"> * </label></label>
                                             <div class="layui-input-block" style="margin-left: 77px;">
                                                 <input type="text" class="layui-input" lay-verify="HProNumber" name="HProNumber" id="HProNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
-                                                <!--<input type="hidden" name="HProjectStageID" id="HProjectStageID" lay-verify="HProjectStageID" value="0">-->
+                                                <input type="hidden" name="HProjectID" id="HProjectID" lay-verify="HProjecID" value="0">
                                                 <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHProNumber" id="btnSearchHProNumber" style="padding: 0 10px;float: right;margin-right: 3px;">
                                                     <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                 </button>
@@ -220,8 +220,8 @@
                                             <div class="layui-input-block" style="margin-left: 120px; width: 501px;">
                                                 <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" lay-verify="HMainSourceInterID" value="0">
                                                 <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" lay-verify="HMainSourceEntryID" value="0">
-                                                <input type="hidden" name="HMainSourceBillType" id="HMainSourceBillType" lay-verify="HMainSourceBillType" value="0">
-                                                <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo" lay-verify="HMainSourceBillNo" value="0">
+                                                <input type="hidden" name="HMainSourceBillType" id="HMainSourceBillType" lay-verify="HMainSourceBillType" value="">
+                                                <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo" lay-verify="HMainSourceBillNo" value="">
                                             </div>
                                         </div>
                                     </div>
@@ -626,10 +626,17 @@
 
                         //鍒ゆ柇椤圭洰鏄惁鍏抽棴
                         if (checkStatus.data[0].鍏抽棴浜� == null || checkStatus.data[0].鍏抽棴浜� == "") {
+                            $("#HProjectID").val(checkStatus.data[0].HInterID);
                             $("#HProNumber").val(checkStatus.data[0].椤圭洰浠g爜);//宸ョ▼椤圭洰浠g爜
                             $("#HProName").val(checkStatus.data[0].椤圭洰鍚嶇О);//宸ョ▼椤圭洰浠g爜
                             $("#HProjectStageID").val(checkStatus.data[0].HProjectStageID);//宸ョ▼椤圭洰浠g爜
                             $("#HProjectStageName").val(checkStatus.data[0].椤圭洰闃舵);//宸ョ▼椤圭洰浠g爜
+
+                            $("#HMainSourceInterID").val(checkStatus.data[0].HInterID);
+                            $("#HMainSourceEntryID").val(checkStatus.data[0].HEntryID);
+                            $("#HMainSourceBillNo").val(checkStatus.data[0].鍗曟嵁鍙�);
+                            $("#HMainSourceBillType").val(checkStatus.data[0].鍗曟嵁绫诲瀷);
+
                         } else {
                             layer.msg("璇ラ」鐩凡鍏抽棴锛屼笉鍙�夋嫨锛�");
                         }
@@ -863,6 +870,7 @@
                         form.val("formData", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
                             "HInterID": tableMain[0]["HInterID"]
                             , "HBillNo": tableMain[0]["HBillNo"]
+                            , "HProjectID": tableMain[0]["HProjectID"]
                             , "HProNumber": tableMain[0]["HProNumber"]
                             , "HProName": tableMain[0]["HProName"]
                             , "HProjectStageID": tableMain[0]["HProjectStageID"]
@@ -879,6 +887,12 @@
                             , "HCopyEmp": tableMain[0]["HCopyEmp"]
                             , "HRemark": tableMain[0]["HRemark"]
                             , "HOrgID": tableMain[0]["HOrgID"]
+
+                            , "HMainSourceInterID": tableMain[0]["HMainSourceInterID"]
+                            , "HMainSourceEntryID": tableMain[0]["HMainSourceEntryID"]
+                            , "HMainSourceBillNo": tableMain[0]["HMainSourceBillNo"]
+                            , "HMainSourceBillType": tableMain[0]["HMainSourceBillType"]
+
                             , "HMaker": tableMain[0]["HMaker"]
                             , "HUpdater": tableMain[0]["HUpdater"]
                             , "HChecker": tableMain[0]["HChecker"]
@@ -914,6 +928,7 @@
                         //涓昏〃 璧嬪��
                         form.val("formData", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
                             "HOrgID": tableMain[0]["HOrgID"]
+                            , "HProjectID": tableMain[0]["HInterID"]
                             , "HProNumber": tableMain[0]["HProNumber"]
                             , "HProName": tableMain[0]["HProName"]
                             , "HProjectStageID": tableMain[0]["HProjectStageID"]
@@ -1038,8 +1053,8 @@
                     layer.msg("鍗曟嵁鍙蜂笉鑳戒负绌�!");
                     return false;
                 }
-                if ($("#HProNumber").val() == "") {
-                    layer.msg("椤圭洰浠g爜涓嶈兘涓虹┖!");
+                if ($("#HProID").val() == "0") {
+                    layer.msg("椤圭洰浠g爜娌℃湁閫夋嫨!");
                     return false;
                 }
                 if ($("#HProjectStageID").val() == "0") {

--
Gitblit v1.9.1