From 0fdf92335abc659f66fabb7552e01b466aa5bb21 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 07 五月 2025 16:31:55 +0800
Subject: [PATCH] 完成 复制客户分类
---
WebTM/views/生产管理/日计划基础资料/Cg_PODemandPlanConfigBill_Add.html | 111 +++++++++++++++++++++++++++++--------------------------
1 files changed, 58 insertions(+), 53 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\345\237\272\347\241\200\350\265\204\346\226\231/Cg_PODemandPlanConfigBill_Add.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\345\237\272\347\241\200\350\265\204\346\226\231/Cg_PODemandPlanConfigBill_Add.html"
index cadb713..8bf4498 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\345\237\272\347\241\200\350\265\204\346\226\231/Cg_PODemandPlanConfigBill_Add.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\345\237\272\347\241\200\350\265\204\346\226\231/Cg_PODemandPlanConfigBill_Add.html"
@@ -14,38 +14,6 @@
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script src="../../../layuiadmin/PubCustom.js"></script>
- <style>
- .main-btn { /*澶撮儴涓绘寜閽�*/
- padding: 0 2px; /*璋冩暣鎸夐挳宸﹀彸绌洪殭澶у皬*/
- height: 30px;
- line-height: 30px;
- }
-
- .btn-title {
- font-size: 16px;
- }
- /* 闃叉涓嬫媺妗嗙殑涓嬫媺鍒楄〃琚殣钘�---蹇呴』璁剧疆--- */
- .layui-table-cell {
- overflow: visible !important;
- }
- /* 浣垮緱涓嬫媺妗嗕笌鍗曞厓鏍煎垰濂藉悎閫� */
- td .layui-form-select {
- margin-top: -10px;
- margin-left: -15px;
- margin-right: -15px;
- }
-
- .layui-form-item .layui-inline {
- margin-top: 5px;
- margin-bottom: 5px;
- margin-right: 0px;
- }
-
- .layui-form-label {
- width: 25%;
- }
- </style>
-
</head>
<body>
<div class="layui-fluid" style="padding: 0;">
@@ -102,7 +70,7 @@
</script>
<script>
-
+ var HDataEmp = {};
layui.config({
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
}).extend({
@@ -170,6 +138,7 @@
, toolbar: '#toolbarDemo'
, limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
, cellMinWidth: 120
+ , totalRow: true
, height: 'full-170'
, cols: [[ //琛ㄥご
{ type: 'checkbox', totalRowText: '鍚堣琛�' }
@@ -182,14 +151,14 @@
, { field: 'HMaterName', title: '鐗╂枡鍚嶇О' }
, { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿'}
, { field: 'HJITMaterGroup', title: 'JIT鐗╂枡鍒嗙被', edit: 'text' }
- , { field: 'HJITSafeStock', title: 'JIT鎷夊姩瀹夊叏搴撳瓨閲�', edit: 'text', width: 200 }
- , { field: 'HJITMaterDemand', title: 'JIT鐗╂枡闇�姹備緵璐у懆鏈�', edit: 'text', width:200}
- , { field: 'HJITBatchQty', title: 'JIT鎻愯揣鎵归噺', edit: 'text' }
- , { field: 'HDeliveryPeriod', title: 'JIT鎻愯揣鎵归噺瀵瑰簲鍛ㄦ湡锛堝ぉ锛�', edit: 'text', width: 200}
- , { field: 'HLeadTime', title: 'JIT渚涜揣鎻愬墠鏈燂紙澶╋級', edit: 'text', width: 200 }
- , { field: 'HLeadTime_Sec', title: 'JIT鍒拌揣鍓嶇疆鏈燂紙澶╋級', edit: 'text', width: 200}
+ , { field: 'HJITSafeStock', title: 'JIT鎷夊姩瀹夊叏搴撳瓨閲�', edit: 'text', width: 200, totalRow: true}
+ , { field: 'HJITMaterDemand', title: 'JIT鐗╂枡闇�姹備緵璐у懆鏈�', edit: 'text', width: 200, totalRow: true}
+ , { field: 'HJITBatchQty', title: 'JIT鎻愯揣鎵归噺', edit: 'text', totalRow: true}
+ , { field: 'HDeliveryPeriod', title: 'JIT鎻愯揣鎵归噺瀵瑰簲鍛ㄦ湡锛堝ぉ锛�', edit: 'text', width: 200, totalRow: true}
+ , { field: 'HLeadTime', title: 'JIT渚涜揣鎻愬墠鏈燂紙澶╋級', edit: 'text', width: 200, totalRow: true }
+ , { field: 'HLeadTime_Sec', title: 'JIT鍒拌揣鍓嶇疆鏈燂紙澶╋級', edit: 'text', width: 200, totalRow: true}
, { field: 'HDeliveryMode', title: 'JIT閫佽揣鏂瑰紡', edit: 'text' }
- , { field: 'HDeliveryDaysCtrl', title: 'JIT閫佽揣鎺у埗澶╂暟', edit: 'text', width: 200 }
+ , { field: 'HDeliveryDaysCtrl', title: 'JIT閫佽揣鎺у埗澶╂暟', edit: 'text', width: 200, totalRow: true}
, { field: 'HRemark', title: '澶囨敞', edit: 'text' }
, { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo' }
]]
@@ -253,11 +222,14 @@
//閫�鍑�
form.on('submit(Cancel)', function () {
- if ((OperationType == 1 ) || OperationType == 3) {
- Pub_Close(1);
- } else {
- Pub_Close(2);
- }
+ //閫昏緫鍒犻櫎鏂规硶
+ layer.confirm("閫�鍑哄墠璇风‘淇濇暟鎹凡淇濆瓨锛屾槸鍚︾户缁��鍑猴紵", { title: "閫�鍑虹‘璁�" }, function (index) {
+ if ((OperationType == 1) || OperationType == 3) {
+ Pub_Close(1);
+ } else {
+ Pub_Close(2);
+ }
+ })
})
//淇濆瓨鎻愪氦
@@ -295,6 +267,7 @@
Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>';
}
$("#HPRDORGID").append(Organization);
+ $("#HPRDORGID").val(sessionStorage["OrganizationID"]);
form.render('select');
}
layer.closeAll("loading");
@@ -348,7 +321,7 @@
, shift: 2 //寮瑰嚭鍔ㄧ敾
, area: ["90%", "90%"] //绐椾綋澶у皬
, maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
- , content: ["../../Baseset/鍩虹璧勬枡/Gy_SupplierList.html", "yes"]
+ , content: ['../../鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html?Type=HSup', "yes"]
, btn: ["纭畾", "鍙栨秷"]
, btn1: function (index, laero) {
//鎸夐挳涓� 鐨勫洖璋�
@@ -361,15 +334,27 @@
//鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
obj.update({
"HSupplierID": checkStatus.data[0].HItemID
- , "HSupplierNumber": checkStatus.data[0].HNumber
- , "HSupplierName": checkStatus.data[0].HName
+ , "HSupplierNumber": checkStatus.data[0].渚涘簲鍟嗕唬鐮�
+ , "HSupplierName": checkStatus.data[0].渚涘簲鍟嗗悕绉�
})
layer.close(index);//鍏抽棴寮圭獥
+ }
+ , end: function () {
+ if (typeof (HDataEmp.HItemID) != "undefined") {
+ //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+ obj.update({
+ "HSupplierID": HDataEmp.HItemID
+ , "HSupplierNumber": HDataEmp.渚涘簲鍟嗕唬鐮�
+ , "HSupplierName": HDataEmp.渚涘簲鍟嗗悕绉�
+ })
+ HDataEmp = {};
+ }
}
})
}
//鐗╂枡
if (obj.event == "HMaterID") {
+ var HOrgID = $("#HPRDORGID").val();
//鎵撳紑鐗╂枡 灏忕獥浣�
layer.open({
type: 2
@@ -379,7 +364,7 @@
, shift: 2 //寮瑰嚭鍔ㄧ敾
, area: ["90%", "90%"] //绐椾綋澶у皬
, maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
- , content: ["../../Baseset/鍩虹璧勬枡/Gy_MaterialList.html", "yes"]
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Material.html?openType=2&HOrgID=' + HOrgID, 'yes']
, btn: ["纭畾", "鍙栨秷"]
, btn1: function (index, laero) {
//鎸夐挳涓� 鐨勫洖璋�
@@ -393,14 +378,27 @@
//鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
obj.update({
"HMaterID": checkStatus.data[0].HItemID
- , "HMaterNumber": checkStatus.data[0].HNumber
- , "HMaterName": checkStatus.data[0].HName
- , "HMaterModel": checkStatus.data[0].HModel
+ , "HMaterNumber": checkStatus.data[0].鐗╂枡浠g爜
+ , "HMaterName": checkStatus.data[0].鐗╂枡鍚嶇О
+ , "HMaterModel": checkStatus.data[0].瑙勬牸鍨嬪彿
})
layer.close(index);//鍏抽棴寮圭獥
}
+ , end: function () {
+ if (typeof (HDataEmp.HItemID) != "undefined") {
+ //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+ obj.update({
+ "HMaterID": HDataEmp.HItemID
+ , "HMaterNumber": HDataEmp.鐗╂枡浠g爜
+ , "HMaterName": HDataEmp.鐗╂枡鍚嶇О
+ , "HMaterModel": HDataEmp.瑙勬牸鍨嬪彿
+ })
+ HDataEmp = {};
+ }
+ }
})
}
+ obj.event = "";
return false;
}
@@ -421,7 +419,7 @@
form.val("formData", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
"HBillNo": d.data[0].鍗曟嵁鍙�
, "HInterID": d.data[0].hmainid
- , "HPRDORGID": d.data[0].缁勭粐
+ , "HPRDORGID": d.data[0].HOrgID
});
var rowdata = [];
@@ -483,7 +481,14 @@
});
+ function GetHSupNameValue(obj) {
+ HDataEmp = obj[0];
+ } //渚涘簲鍟�
+ function GetGyMaterial(obj) //鐗╂枡鍚嶇О
+ {
+ HDataEmp = obj;
+ }
</script>
</body>
</html>
\ No newline at end of file
--
Gitblit v1.9.1