From 8a36bbee40f5e1069b15a98b1e64ac9719ee8a46 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期二, 23 四月 2024 17:17:13 +0800
Subject: [PATCH] 1.销售出库单 增加 反写源单 销售订单和发货通知单 超出 关联数量 关闭源单 2.应收单 增加 反写源单 销售出库单 和 销售订单 超出关联数量 关闭源单 3.动态获取源单增加参数 Num 0蓝单 1红单 2全部 4.销售流程的测试并完善功能; 销售订单-》发货通知单-》销售出库单-》应收单 (注意: 源单类型的下拉框 需要 根据数据库 表动态加载, 关联数量 要准确 , 审核 且 未关闭 未行关闭的行 才能下推 ,关联数量超额后,要 反写 关闭 源单 )
---
WebTM/views/工资管理/加班申请/Pay_OverApplyBill.html | 40 ++++++++++++++++++++++++----------------
1 files changed, 24 insertions(+), 16 deletions(-)
diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\212\240\347\217\255\347\224\263\350\257\267/Pay_OverApplyBill.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\212\240\347\217\255\347\224\263\350\257\267/Pay_OverApplyBill.html"
index f8e1ee8..3fdfd11 100644
--- "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\212\240\347\217\255\347\224\263\350\257\267/Pay_OverApplyBill.html"
+++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\212\240\347\217\255\347\224\263\350\257\267/Pay_OverApplyBill.html"
@@ -14,6 +14,7 @@
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script src="../../../layuiadmin/PubCustom.js"></script>
+ <script src="../../../layuiadmin/PageTitle.js"></script>
<!--<style>
.main-btn { /*澶撮儴涓绘寜閽�*/
padding: 0 2px; /*璋冩暣鎸夐挳宸﹀彸绌洪殭澶у皬*/
@@ -65,6 +66,7 @@
<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="set_CancelCloseBill" id="set_CancelCloseBill">鍙嶅叧闂�</button>-->
</div>
<div class="layui-tab" lay-filter="tab-POStockInBill">
+ <h1 style="text-align: center; padding: 10px 0;"><b>鍔犵彮鐢宠鍗�</b></h1>
<ul class="layui-tab-title" lay-filter="tab-all">
<li lay-id="1" style="padding:1px;" class="layui-this">鍩烘湰淇℃伅</li>
<li lay-id="2" style="padding:1px;">鍏朵粬淇℃伅</li>
@@ -284,6 +286,14 @@
//妯″潡鍚�
var HModName = "Pay_OverApplyBill";
+
+ //#region 銆愬姩鎬佽幏鍙栨ā鍧楀悕绉般��
+ var HModuleType = "2209";
+ //閫氳繃鍗曟嵁绫诲瀷锛屼粠鏁版嵁搴撳姩鎬佽幏鍙栧崟鎹ā鍧楀懡鍚�,寮曠敤js鏂囦欢 PageTitle.js
+ var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
+ $("h1").html('<b>' + HPageTitle + '</b>');
+ //#endregion
+
//琛ㄦ牸娓叉煋鍙傛暟
var option = {}; //瀛愯〃娓叉煋鍙傛暟
//鑾峰彇鍙傛暟
@@ -300,10 +310,6 @@
icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
}, function () { window.location.href = "../../user/login.html"; });
}
- //#endregion
-
- //#region 鍒濆鍖栬〃鏍�
- //DisPlay_HideColumn();
//#endregion
//#region 鍒ゆ柇骞惰缃搷浣滅被鍨嬨�侀〉闈㈠垵濮嬪寲
@@ -346,7 +352,7 @@
//#endregion
//#region 鍒濆鍖栬〃鏍�
- //DisPlay_HideColumn();
+ DisPlay_HideColumn();
//#endregion
//#endregion
@@ -503,7 +509,7 @@
var HTimes = (hours * 1 + minutes / 60).toFixed(2); //鍔犵彮鏃堕棿
//璁剧疆琛屾暟鎹�
data["HTimes"] = HTimes;
- if (data["HRelTimes"] == true) {
+ if (data["HRestFlag"] == true) {
data["HRelTimes"] = HTimes - data["HRestTimes"];
} else {
data["HRelTimes"] = HTimes;
@@ -539,7 +545,7 @@
var HRelPay = (HTimes * HPayMoney).toFixed(2); //搴斾粯宸ヨ祫 = 瀹為檯瀹為檯*灏忔椂宸ヨ祫
//璁剧疆琛屾暟鎹�
data["HTimes"] = HTimes;
- if (data["HRelTimes"] == true) {
+ if (data["HRestFlag"] == true) {
data["HRelTimes"] = HTimes - data["HRestTimes"];
} else {
data["HRelTimes"] = HTimes;
@@ -665,18 +671,18 @@
, cellMinWidth: 120
, height: 400
, cols: [[
- { type: 'checkbox', totalRowText: '鍚堣琛�' }
+ { type: 'checkbox', totalRowText: '鍚堣' }
, { type: 'numbers', title: '搴忓彿' }
- , { field: 'RowID', title: '琛屽彿' } //琛屾爣璇嗭紝鐢ㄤ簬涓嬩竴琛屻�佷笂涓�琛岃瘑鍒墍鍦ㄨ
- , { field: 'HEmpID', title: '鑱屽憳ID' }
+ , { field: 'RowID', title: '琛屽彿', hide: true } //琛屾爣璇嗭紝鐢ㄤ簬涓嬩竴琛屻�佷笂涓�琛岃瘑鍒墍鍦ㄨ
+ , { field: 'HEmpID', title: '鑱屽憳ID', hide:true, style: 'background-color: #f9f9f9;' }
, { field: 'HEmpNumber', title: '鑱屽憳浠g爜', edit: 'text', event: "HEmpNumber" } //f7
- , { field: 'HEmpName', title: '鑱屽憳鍚嶇О', style: 'background-color: #CDCDCD;' }
+ , { field: 'HEmpName', title: '鑱屽憳鍚嶇О', style: 'background-color: #f9f9f9;' }
, { field: 'HBTimes', title: '寮�濮嬫椂闂�', event: "HBTimes" }
, { field: 'HETimes', title: '缁撴潫鏃堕棿', event: "HETimes" }
, { field: 'HRestFlag', title: '鍗堜紤鏍囪', templet: "#HRestFlag" }
- , { field: 'HRestTimes', title: '鍗堜紤鏃堕棿', edit: 'text'} //f7
- , { field: 'HTimes', title: '鍔犵彮鏃堕棿', style: 'background-color: #CDCDCD;'} //f7
- , { field: 'HRelTimes', title: '瀹為檯鏃堕棿', style: 'background-color: #CDCDCD;' } //f7
+ , { field: 'HRestTimes', title: '鍗堜紤鏃堕棿', edit: 'text', totalRow: true} //f7
+ , { field: 'HTimes', title: '鍔犵彮鏃堕棿', style: 'background-color: #f9f9f9;', totalRow: true} //f7
+ , { field: 'HRelTimes', title: '瀹為檯鏃堕棿', style: 'background-color: #f9f9f9;', totalRow: true } //f7
, { field: 'HRemark', title: '澶囨敞', edit: 'text' } //f7
, { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo' }
]]
@@ -899,6 +905,8 @@
option.data = tableSub;
for (var i = 0; i < option.data.length; i++) {
option.data[i]["RowID"] = (i + 1) * 10;
+ option.data[i]["HBTimes"] = option.data[i]["HBTimes"].split("T")[0] + " " + option.data[i]["HBTimes"].split("T")[1];
+ option.data[i]["HETimes"] = option.data[i]["HETimes"].split("T")[0] + " " + option.data[i]["HETimes"].split("T")[1];
}
table.render(option);
CheckedSet_tableSub();
@@ -1192,9 +1200,9 @@
}
//璁剧疆鍐呭瀛椾綋澶у皬
if (data1.data[0].HFontSize != 0) {
- option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;";
+ option.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;";
} else {
- option.cols[0][i + 1]["style"] = "font-size:100%";
+ option.cols[0][i + 1]["style"] += "font-size:100%";
}
//璁剧疆鍒楀
//if (data1.data[0].HColumnWidth != 0) {
--
Gitblit v1.9.1