From ed7d972e7d147bff1881a8b83c6ef9b2216e1e11 Mon Sep 17 00:00:00 2001
From: 杨乐 <yang.le.192@qq.com>
Date: 星期二, 28 十二月 2021 15:14:46 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
---
WebTM/views/采购管理/采购订单/Cg_POOrderBillList.html | 1
WebTM/views/领料发货/销售出库/Kf_SellOutBill_FastList.html | 2
WebTM/views/采购管理/委外订单/WW_EntrustOrderBillList.html | 1
WebTM/views/工资管理/核算方式/Gy_ClassTimePrjSubBillEdit.html | 58 +++++++++++++++++++++++++----
WebTM/views/工资管理/工资结算单(个人)/Pay_SingleBalBillEdit.html | 4 +-
5 files changed, 55 insertions(+), 11 deletions(-)
diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\344\270\252\344\272\272\051/Pay_SingleBalBillEdit.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\344\270\252\344\272\272\051/Pay_SingleBalBillEdit.html"
index 08e269f..656b0b1 100644
--- "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\344\270\252\344\272\272\051/Pay_SingleBalBillEdit.html"
+++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\344\270\252\344\272\272\051/Pay_SingleBalBillEdit.html"
@@ -102,7 +102,7 @@
</div>
</div>
<div class="layui-col-xs4 layui-inline">
- <label class="layui-form-label">鑱屽憳</label>
+ <label class="layui-form-label">涓荤</label>
<div class="layui-input-inline">
<input type="text" name="HEmpName" id="HEmpName" readonly class="layui-input" value="" style="float:left;width:150px;">
<input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value="" style="float:left;width:150px;">
@@ -1059,7 +1059,7 @@
return Result = false;
}
if ($("#HEmpID").val() == '') {
- layer.msg("鑱屽憳娌℃湁閫夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ layer.msg("涓荤娌℃湁閫夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
return Result = false;
}
if ($("#HPayType").val() == '') {
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 a16e2a2..9802106 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"
@@ -34,6 +34,7 @@
<div class="layui-card-header">
<div class="layui-btn-group">
<button type="button" id="set_SaveBill" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_SaveBill">淇濆瓨</button>
+ <button type="button" id="set_Calc" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_Calc">璁$畻</button>
<button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Cancel">閫�鍑�</button>
</div>
</div>
@@ -41,7 +42,7 @@
<div class="layui-row">
<div class="layui-col-xs4 layui-inline">
- <label class="layui-form-label">鎵�灞炵粍</label>
+ <label class="layui-form-label">鎵�灞炴牳绠楁柟寮忕粍</label>
<div class="layui-input-inline">
<input type="text" name="HEntryName" id="HEntryName" readonly class="layui-input" value="" style="float:left;width:150px;">
<input type="hidden" name="HEntryID" id="HEntryID" class="layui-input" value="" style="float:left;width:150px;">
@@ -94,10 +95,10 @@
<div class="layui-col-xs4 layui-inline">
<label class="layui-form-label">淇骞冲潎宸ヨ祫</label>
<div class="layui-input-inline">
- <input class="layui-input" name="HRate" lay-verify="HRate" value="0" id="HRate" >
+ <input class="layui-input" name="HRate" lay-verify="HRate" value="0" id="HRate">
</div>
</div>
-
+
</div>
</div>
@@ -174,7 +175,7 @@
Pub_Close(1);
})
-
+
//閫夋嫨鎵�灞炵粍鎸夐挳
form.on('submit(hparent-BT)', function () {
get_checkparent();
@@ -183,9 +184,50 @@
form.on('submit(set_SaveBill)', function (data) {
set_SaveBill(data);
});
+ //淇濆瓨鎸夐挳
+ form.on('submit(set_Calc)', function (data) {
+ set_Calc();
+ });
//#endregion
-
+ function set_Calc() {
+ 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);
+ }
+ });
+ }
+ else {
+ layer.alert("璇疯緭鍏ユ纭勾鏈堬紒", { icon: 5 });
+ return;
+ }
+ }
//#region 鏈〉闈㈡墍鏈夎璋冪敤鐨勬柟娉�
@@ -245,7 +287,7 @@
//#region 淇濆瓨鏂规硶
function set_SaveBill(data) {
//var sMainStr = JSON.stringify(data.field);
-
+
var sMainStr = JSON.stringify(data.field);
$.ajax({
type: "POST",
@@ -258,7 +300,7 @@
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); //鍐嶆墽琛屽叧闂�
+ parent.layer.close(index); //鍐嶆墽琛屽叧闂�
}
else {
layer.alert(data.Message, { icon: 5 });
@@ -274,7 +316,7 @@
//#endregion
-
+
//#region 閫夋嫨鎵�灞炵粍鏂规硶
function get_checkparent() {
layer.open({
diff --git "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html" "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
index b96b908..b83db50 100644
--- "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
+++ "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
@@ -264,6 +264,7 @@
, { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', width: 100 }
, { field: '渚涘簲鍟嗗崗鍚岀姸鎬�', title: '渚涘簲鍟嗗崗鍚岀姸鎬�', width: 135 }/*鐗╂枡浠g爜锛岀墿鏂欏悕绉帮紝瑙勬牸鍨嬪彿锛屾壒鍙凤紝鏁伴噺锛屽崟浣嶏紝婧愬崟鍗曞彿*/
, { field: '鍙嶉鐘舵��', title: '渚涘簲鍟嗗弽棣堢姸鎬�', width: 135 }
+ , { field: '鐗╂枡缂栫爜', title: '鐗╂枡缂栫爜', width: 100 }
, { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 100 }
, { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 100 }
, { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
diff --git "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList.html" "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList.html"
index 719e3fc..cc78ae5 100644
--- "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList.html"
+++ "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList.html"
@@ -257,6 +257,7 @@
, { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', width: 100 }
, { field: '渚涘簲鍟嗗崗鍚岀姸鎬�', title: '渚涘簲鍟嗗崗鍚岀姸鎬�', width: 135 }/*鐗╂枡浠g爜锛岀墿鏂欏悕绉帮紝瑙勬牸鍨嬪彿锛屾壒鍙凤紝鏁伴噺锛屽崟浣嶏紝婧愬崟鍗曞彿*/
, { field: '鍙嶉鐘舵��', title: '渚涘簲鍟嗗弽棣堢姸鎬�', width: 135 }
+ , { field: '鐗╂枡缂栫爜', title: '鐗╂枡缂栫爜', width: 100 }
, { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 100 }
, { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 100 }
, { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_FastList.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_FastList.html"
index 9919019..59c068e 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_FastList.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_FastList.html"
@@ -204,6 +204,7 @@
layer.close(index);
//淇敼涓哄姛鍚庡埛鏂扮晫闈�
window.location.reload();
+ });
}
else {
layer.msg(data.Message, { icon: 2 });
@@ -286,7 +287,6 @@
})
//宸蹭笂浼犲垪琛�
- var
table.render({
elem: '#yd-table'
, url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
--
Gitblit v1.9.1