llj
2026-02-25 ec444f91f9af3f3088fd058c846ef279e899737d
成本费用单编辑增加工序
2个文件已修改
45 ■■■■■ 已修改文件
WebTM/layuiadmin/Scripts/webConfig.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/成本管理/成本费用单/CB_ItemMoneyBillEdit.html 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js
@@ -6,12 +6,12 @@
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨乐本地配置
   /*  var WEBURL = "http://localhost:8082/API/";    //杜贺本地配置*/
     //var WEBURL = "http://localhost:8082/API/";    //张瑞广本地配置
    var WEBURL = "http://localhost:81/API/"    //翁涛涛本地配置
    //var WEBURL = "http://localhost:81/API/"    //翁涛涛本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨乐本地配置
    //var WEBURL = "http://47.96.97.237/API/";          //智云服务器
   /* var WEBURL = "http://localhost:8082/LuBaoAPI/";  //余思杰本地配置*/
    //var WEBURL = "http://localhost:81/API/";            // é™ˆé•å“²æœ¬åœ°é…ç½®*/
     /*var WEBURL = "http://localhost:8082/LuBaoAPI/";  //李林俊本地配置*/
     var WEBURL = "http://localhost:8082/LuBaoAPI/";  //李林俊本地配置
    //var WEBURL = "http://localhost:8088/ARAPI/";      //余思杰本地配置(安瑞)
    //var WEBURL = "http://61.164.86.218:8099/ABAPI/";  //奥邦
    //var WEBURL = "http://10.1.4.155/API/";            //江丰客户NEW
WebTM/views/³É±¾¹ÜÀí/³É±¾·ÑÓõ¥/CB_ItemMoneyBillEdit.html
@@ -391,6 +391,8 @@
                            , "HMaterialCode": ""
                            , "HDeptName": ""
                            , "HDeptID": "0"
                            , "HProcName": ""
                            , "HProcID": "0"
                            , "HMoney": "0"
                            , "HWaster": "0"
                            , "HQty": "0"
@@ -862,6 +864,8 @@
                        , { field: 'HMaterialCode', title: '物料代码', edit: 'text', event: "HAreaList_1", style: 'background-color: #f9f9f9;' }
                        , { field: 'HDeptID', title: '部门ID', hide: true, style: 'background-color: #f9f9f9;' }
                        , { field: 'HDeptName', title: '部门', edit: 'text', event: "HAreaList_2", style: 'background-color: #f9f9f9;' }
                        , { field: 'HProcID', title: '工序ID', hide: true, style: 'background-color: #f9f9f9;' }
                        , { field: 'HProcName', title: '工序', edit: 'text', event: "HProcList", style: 'background-color: #f9f9f9;' }
                        , { field: 'HMoney', title: '金额', edit: 'text', style: 'background-color: #f9f9f9;' }
                        , { field: 'HWaster', title: '损耗', edit: 'text', style: 'background-color: #f9f9f9;' }
                        , { field: 'HQty', title: '数量', edit: 'text', style: 'background-color: #f9f9f9;' }
@@ -892,6 +896,8 @@
                    , "HMaterialCode": ""
                    , "HDeptName": ""
                    , "HDeptID": "0"
                    , "HProcName": ""
                    , "HProcID": "0"
                    , "HMoney": "0"
                    , "HWaster": ""
                    , "HQty": "0"
@@ -1002,6 +1008,39 @@
                                        "HMaterID": selected.HItemID || '',
                                        "HMaterName": selected['物料名称'] || '',
                                        "HMaterialCode": selected['物料代码'] || ''
                                    });
                                    layer.close(index);
                                },
                                end: function () {
                                    tableEditObj = null;
                                }
                            });
                        }
                        // å·¥åºé€‰æ‹©
                        else if (obj.event === 'HProcList') {
                            CusType = 2;
                            tableEditObj = obj;
                            layer.open({
                                type: 2,
                                skin: 'layui-layer-rim',
                                area: ['90%', '90%'],
                                title: '物料列表',
                                shift: 2,
                                content: ["../../基础资料/生产基础资料/Gy_Process.html", "yes"],
                                btn: ['确定', '取消'],
                                btn1: function (index, layero) {
                                    var iframeWindow = window['layui-layer-iframe' + index];
                                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');
                                    if (checkStatus.data.length === 0) {
                                        return layer.msg('请选择物料数据', { icon: 2 });
                                    }
                                    var selected = checkStatus.data[0];
                                    obj.update({
                                        "HProcID": selected.HItemID || '',
                                        "HProcName": selected['工序名称'] || '',
                                    });
                                    layer.close(index);
                                },
@@ -1419,6 +1458,8 @@
                                        "HMaterialCode": row["物料代码"] || "",
                                        "HDeptID": row["HDeptID"] || "0",
                                        "HDeptName": row["部门"] || "",
                                        "HProcID": row["HProcID"] || "0",
                                        "HProcName": row["HProcName"] || "",
                                        "HSpecModel": "", // æ‚¨çš„æ•°æ®ä¸­æ²¡æœ‰è¿™ä¸ªå­—段
                                        "HMoney": row["金额"] || 0,
                                        "HWaster": row["损耗量"] || 0, // æ³¨æ„å­—段名是"损耗量"