From 8a8f4b04dd45a8e0cca558039b2e77dab82bd93c Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 09 十一月 2023 14:16:49 +0800
Subject: [PATCH] 信用额度申请单:根据客户带出相关信息、隐藏原黄线天数/新黄线天数/原红线天线/新红线天数

---
 WebTM/views/工资管理/核算方式/Gy_ClassTimePrjSubBillEdit.html |   59 +++++++++++++++++++++++++++--------------------------------
 1 files changed, 27 insertions(+), 32 deletions(-)

diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\346\240\270\347\256\227\346\226\271\345\274\217/Gy_ClassTimePrjSubBillEdit.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\346\240\270\347\256\227\346\226\271\345\274\217/Gy_ClassTimePrjSubBillEdit.html"
index ce0f237..838e7f0 100644
--- "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\346\240\270\347\256\227\346\226\271\345\274\217/Gy_ClassTimePrjSubBillEdit.html"
+++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\346\240\270\347\256\227\346\226\271\345\274\217/Gy_ClassTimePrjSubBillEdit.html"
@@ -194,39 +194,34 @@
                 var HEntryID = $("#HEntryID").val();
                 var HYear = $("#HYear").val();
                 var HPeriod = $("#HPeriod").val();
-                if (HEntryID == 0) {
-                    layer.alert("璇烽�夋嫨鎵�灞炴牳绠楁柟寮忕粍锛�", { icon: 5 });
-                    return;
-                }
-                if (0 <= HPeriod <= 12) {
-                    $.ajax({
-                        type: "GET",
-                        url: GetWEBURL() + "Gy_ClassTimePrjSub/Calc", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
-                        async: true,
-                        data: { "HEntryID": HEntryID, "HYear": HYear, "HPeriod": HPeriod },
-                        dataType: "json",
-                        success: function (data) {
-                            if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                                layer.msg(data.Message, { icon: 1 });
-                                $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true);
-                                var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩
-                                parent.layer.close(index); //鍐嶆墽琛屽叧闂�
-                            }
-                            else {
-                                layer.alert(data.Message, { icon: 5 });
-                            }
-                            layer.closeAll("loading");
-                        },
-                        error: function (err) {
-                            layer.alert("閿欒:" + err, { icon: 5 });
-                            //console.log("Reason" + sMainStr);
+                $.ajax({
+                    type: "GET",
+                    url: GetWEBURL() + "Gy_ClassTimePrjSub/Calc", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                    async: true,
+                    data: { "HEntryID": HEntryID, "HYear": HYear, "HPeriod": HPeriod },
+                    dataType: "json",
+                    success: function (result) {
+                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            var data = result.data[0];
+                            //layer.msg(data.Message, { icon: 1 });
+                            //$('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true);
+                            form.val("component-form-group", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
+                                "HSumMoney": data.HsumAcount
+                                , "HSumWorkTimes": data.HSumCoefficient
+                                , "HOldRate": data.HAvgAcount
+                            });
                         }
-                    });
-                }
-                else {
-                    layer.alert("璇疯緭鍏ユ纭勾鏈堬紒", { icon: 5 });
-                    return;
-                }
+                        else {
+                            layer.alert(data.Message, { icon: 5 });
+                        }
+                        //layer.closeAll("loading");
+                    },
+                    error: function (err) {
+                        layer.alert("閿欒:" + err, { icon: 5 });
+                        //console.log("Reason" + sMainStr);
+                    }
+                });
+
             }
 
             //#region 鏈〉闈㈡墍鏈夎璋冪敤鐨勬柟娉�

--
Gitblit v1.9.1