From baa980a58e7fa79fcab8a610f8d02a48c1b3e8ad Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期五, 10 五月 2024 17:39:14 +0800
Subject: [PATCH] 1.发货通知单,销售出库单 选单后,给子表 仓库 赋值 2.销售订单列表 增加子表 仓库ID与名称字段 已隐藏
---
WebTM/views/验收入库/其他入库/Add_Edit_Kf_OtherInBill.html | 99 ++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 88 insertions(+), 11 deletions(-)
diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Add_Edit_Kf_OtherInBill.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Add_Edit_Kf_OtherInBill.html"
index eff3c48..7cf0130 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Add_Edit_Kf_OtherInBill.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Add_Edit_Kf_OtherInBill.html"
@@ -919,7 +919,7 @@
, area: ['90%', '90%']//澶у皬
, title: '浠撳簱鍒楄〃'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Warehouse.html', 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Warehouse.html?Type=HWH', 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -942,7 +942,7 @@
, area: ['90%', '90%']//澶у皬
, title: '楠屾敹鍛樺垪琛�'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -965,7 +965,7 @@
, area: ['90%', '90%']//澶у皬
, title: '淇濈鍛樺垪琛�'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -1004,14 +1004,14 @@
})
}
//涓荤
- function get_checkManager() {
+ function get_checkManager() {
layer.open({
type: 2//寮圭獥绫诲瀷
, skin: 'layui-layer-rim' //鍔犱笂杈规
, area: ['90%', '90%']//澶у皬
, title: '涓荤鍒楄〃'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HManager', 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -1019,10 +1019,8 @@
if (checkStatus.data.length === 0) {
return layer.msg('璇烽�夋嫨鏁版嵁');
}
-
- $("#HManagerID").val(checkStatus.data[0].HItemID);
$("#HMangerName").val(checkStatus.data[0].鑱屽憳鍚嶇О);
-
+ $("#HManagerID").val(checkStatus.data[0].HItemID);
layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) { }
@@ -1062,9 +1060,21 @@
"HMaterID": checkStatus.data[0].HItemID,
"鐗╂枡浠g爜": checkStatus.data[0].鐗╂枡浠g爜,
"鐗╂枡鍚嶇О": checkStatus.data[0].鐗╂枡鍚嶇О,
- "瑙勬牸鍨嬪彿": checkStatus.data[0].瑙勬牸鍨嬪彿
+ "瑙勬牸鍨嬪彿": checkStatus.data[0].瑙勬牸鍨嬪彿,
+ "HUnitID" : checkStatus.data[0].HUnitID,
+ "璁¢噺鍗曚綅" :checkStatus.data[0].璁¢噺鍗曚綅鍚嶇О
})
layer.close(index);//鍏抽棴寮圭獥
+ }
+ ,end: function () {
+ obj.update({
+ "HMaterID" :OptionData.HMaterID
+ ,"鐗╂枡浠g爜" : OptionData.鐗╂枡浠g爜
+ , "鐗╂枡鍚嶇О" :OptionData.鐗╂枡鍚嶇О
+ ,"瑙勬牸鍨嬪彿" : OptionData.瑙勬牸鍨嬪彿
+ ,"HUnitID" :OptionData.HUnitID
+ ,"璁¢噺鍗曚綅" : OptionData.璁¢噺鍗曚綅鍚嶇О
+ })
}
});
}
@@ -1098,6 +1108,12 @@
})
layer.close(index);//鍏抽棴寮圭獥
}
+ , end: function () {
+ obj.update({
+ "HUnitID": OptionData.HItemID
+ , "璁¢噺鍗曚綅": OptionData.璁¢噺鍗曚綅鍚嶇О
+ })
+ }
})
}
//鏀舵枡浠撳簱
@@ -1128,6 +1144,12 @@
})
layer.close(index);//鍏抽棴寮圭獥
}
+ , end: function () {
+ obj.update({
+ "HWHID": OptionData.HItemID
+ , "鏀舵枡浠撳簱": OptionData.浠撳簱鍚嶇О
+ })
+ }
})
}
//浠撲綅
@@ -1158,6 +1180,12 @@
})
layer.close(index);//鍏抽棴寮圭獥
}
+ , end: function () {
+ obj.update({
+ "HSPID": OptionData.HMainID
+ , "浠撲綅鍚嶇О": OptionData.浠撲綅鍚嶇О
+ })
+ }
})
}
@@ -1380,7 +1408,7 @@
$.ajax({
type: "get",
async: false,
- data: { "HName": HName },
+ data: { "HName": HName, "Num": 2 }, //0钃濆崟 1绾㈠崟 2涓嶅垎绾㈣摑鍗�
url: GetWEBURL() + "/Web/GetHSourceBillType",
success: function (result) {
var HSourceBillTypes = "";
@@ -1396,12 +1424,61 @@
})
}
//#endregion
-
//#endregion
//浠ヤ笂鏄痩ayui妯″潡
});
+
+ function GetHWHValue(obj) //杩斿洖浠撳簱
+ {
+ $("#HWHName").val(obj[0].浠撳簱鍚嶇О);
+ $("#HWHID").val(obj[0].HItemID);
+ }
+
+ function GetHDeptNameValue(obj) //杩斿洖閮ㄩ棬
+ {
+ $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+ $("#HDeptID").val(obj[0].HItemID);
+ }
+
+ function GetHSecManagerValue(obj) //杩斿洖楠屾敹鍛�
+ {
+ $("#HSecManagerName").val(obj[0].鑱屽憳鍚嶇О);
+ $("#HSecManagerID").val(obj[0].HItemID);
+ }
+
+ function GetHKeeperValue(obj) //杩斿洖淇濈鍛�
+ {
+ $("#HKeeperName").val(obj[0].鑱屽憳鍚嶇О);
+ $("#HKeeperID").val(obj[0].HItemID);
+ }
+
+ function GetHManagerValue(obj) //杩斿洖涓荤
+ {
+ $("#HMangerName").val(obj[0].鑱屽憳鍚嶇О);
+ $("#HManagerID").val(obj[0].HItemID);
+ }
+
+ //鍙屽嚮杩斿洖鐗╂枡
+ function GetGyMaterial(data) {
+ OptionData = data
+ }
+ //鍙屽嚮杩斿洖璁¢噺鍗曚綅
+ function GetGyUnit(data) {
+ OptionData = data
+ }
+
+ //鍙屽嚮杩斿洖鏀舵枡浠撳簱
+ function GetGyWarehouse(data) {
+ OptionData = data
+ }
+
+
+ //鍙屽嚮杩斿洖鏀舵枡浠撲綅
+ function GetGyStockPlace(data) {
+ OptionData = data
+ }
</script>
</body>
--
Gitblit v1.9.1