yangle
2023-02-17 260d7514c43a6a067f0e920801615b448502f865
WebTM/views/¼Æ»®¹ÜÀí/¹¤ÒÕ·Ïß/Gy_RoutingBill.html
@@ -486,7 +486,7 @@
                    , { field: 'HProcID_S', title: '工段', edit: 'text' }
                    , { field: 'HProcType', title: '工序类型', templet: '#HProcType' }//选择
                    , { field: 'HCenterID_SName', title: '产线中心', edit: 'text', event: "CheckHCenterID_S" }//f7
                    , { field: 'HCenterID_S', title: '产线中心id', hide: true }//hide: true
                    //, { field: 'HCenterID_S', title: '产线中心id', hide: true }//hide: true
                    , { field: 'HWorkQty_S', title: '产线产能', edit: 'text' }
                    , { field: 'HSubStdEmpQty_S', title: '产线人数', edit: 'text' }
                    , { field: 'HMouldNo', title: '模具编号', edit: 'text' }
@@ -497,11 +497,11 @@
                    , { field: 'HMyWorkDays', title: '生产周期', edit: 'text' }
                    , { field: 'HMyFixWorkDays', title: '固定生产天数', edit: 'text' }
                    , { field: '工序', title: '工序', edit: 'text', event: "CheckHProcID" }//f7
                    , { field: 'HProcID', title: '工序ID', hide: true }//, hide: true
                    // , { field: 'HProcID', title: '工序ID', hide: true }//, hide: true
                    , { field: '工作中心代码', title: '工作中心代码' }//不填
                    , { field: 'HCenterID', title: '工作中心id', hide: true }//, hide: true
                    // , { field: 'HCenterID', title: '工作中心id', hide: true }//, hide: true
                    , { field: '工作中心', title: '工作中心', edit: 'text', event: "CheckHCenterID" }//f7
                    , { field: 'HSupID', title: '供应商ID', hide: true }
                    // , { field: 'HSupID', title: '供应商ID', hide: true }
                    , { field: '供应商代码', title: '供应商代码' }
                    , { field: '供应商', title: '供应商', edit: 'text', width: 110, event: "CheckHSupID" }//f7
                    , { field: 'HSupFlag', title: '外协标记', templet: "#HSupFlag" }//checkbox
@@ -509,7 +509,7 @@
                    , { field: 'HUnitTime', title: '运行时间', edit: 'text' }
                    , { field: 'HWorkQty', title: '加工数量', edit: 'text' }//默认
                    , { field: 'HPassRate', title: '良率', edit: 'text' }//默认
                    , { field: 'HOverRate', title: '超额比例', edit: 'text' }
                   // , { field: 'HOverRate', title: '超额比例', edit: 'text' }
                    , { field: 'HReadyTime', title: '准备时间', edit: 'text' }
                    , { field: 'HQueueTime', title: '排队时间', edit: 'text' }
                    , { field: 'HMoveTime', title: '转移时间', edit: 'text' }
@@ -533,11 +533,11 @@
                    , { field: 'HPicNum', title: '图纸编号', edit: 'text' }
                    , { field: 'HProcCheckNote', title: '本工序确认记录', edit: 'text' }
                    , { field: 'HProcWorkNum', title: '程序号', edit: 'text' }
                    , { field: 'HBadWHID', title: 'HBadWHID', hide: true }//, hide: true
                    //, { field: 'HBadWHID', title: 'HBadWHID', hide: true }//, hide: true
                    , { field: 'HBadWHName', title: '不良品仓', edit: 'text', event: "HBadWHID" }//f7
                    , { field: 'HWasterWHID', title: 'HWasterWHID', hide: true }//, hide: true
                    // , { field: 'HWasterWHID', title: 'HWasterWHID', hide: true }//, hide: true
                    , { field: 'HWasterWHName', title: '报废品仓', edit: 'text', event: "HWasterWHID" }//f7
                    , { field: 'HWHID', title: 'HWHID', hide: true }//, hide: true
                    // , { field: 'HWHID', title: 'HWHID', hide: true }//, hide: true
                    , { field: 'HWHName', title: '良品仓', edit: 'text', event: "HWHID" }//f7
                    , { fixed: 'right', title: '操作', toolbar: '#barDemo' }
                ]]
@@ -1409,7 +1409,7 @@
                                , shift: 2 //弹出动画
                                , area: ["90%", "90%"] //窗体大小
                                , maxmin: true //设置最大最小按钮是否显示
                                , content: ["../../Baseset/基础资料/Gy_WarehouseList.html?Type=0&HOtherOrgID=" + sessionStorage["OrganizationID"], "yes"]
                                , content: ["../../基础资料/公用基础资料/Gy_Warehouse.html", "yes"]
                                , btn: ["确定", "取消"]
                                , btn1: function (index, laero) {
                                    //按钮一  çš„回调
@@ -1422,7 +1422,7 @@
                                    //更新表格缓存的数据
                                    obj.update({
                                        "HBadWHID": checkStatus.data[0].HItemID
                                        , "HBadWHName": checkStatus.data[0].HName
                                        , "HBadWHName": checkStatus.data[0].仓库名称
                                    })
                                    layer.close(index);//关闭弹窗
                                }
@@ -1440,7 +1440,7 @@
                                , shift: 2 //弹出动画
                                , area: ["90%", "90%"] //窗体大小
                                , maxmin: true //设置最大最小按钮是否显示
                                , content: ["../../Baseset/基础资料/Gy_WarehouseList.html?Type=0&HOtherOrgID=" + sessionStorage["OrganizationID"], "yes"]
                                , content: ["../../基础资料/公用基础资料/Gy_Warehouse.html", "yes"]
                                , btn: ["确定", "取消"]
                                , btn1: function (index, laero) {
                                    //按钮一  çš„回调
@@ -1453,7 +1453,7 @@
                                    //更新表格缓存的数据
                                    obj.update({
                                        "HWHID": checkStatus.data[0].HItemID
                                        , "HWHName": checkStatus.data[0].HName
                                        , "HWHName": checkStatus.data[0].仓库名称
                                    })
                                    layer.close(index);//关闭弹窗
                                }
@@ -1471,7 +1471,7 @@
                                , shift: 2 //弹出动画
                                , area: ["90%", "90%"] //窗体大小
                                , maxmin: true //设置最大最小按钮是否显示
                                , content: ["../../Baseset/基础资料/Gy_WarehouseList.html?Type=0&HOtherOrgID=" + sessionStorage["OrganizationID"], "yes"]
                                , content: ["../../基础资料/公用基础资料/Gy_Warehouse.html", "yes"]
                                , btn: ["确定", "取消"]
                                , btn1: function (index, laero) {
                                    //按钮一  çš„回调
@@ -1484,7 +1484,7 @@
                                    //更新表格缓存的数据
                                    obj.update({
                                        "HWasterWHID": checkStatus.data[0].HItemID
                                        , "HWasterWHName": checkStatus.data[0].HName
                                        , "HWasterWHName": checkStatus.data[0].仓库名称
                                    })
                                    layer.close(index);//关闭弹窗
                                }
@@ -1682,39 +1682,41 @@
                //}
                var num = [];
                for (var i = 0; i < option.data.length; i++) {
                    //流水号
                    if ($.inArray(option.data[i]["HProcNo"], num) == -1) {
                        num.push(option.data[i]["HProcNo"]);
                    } else {
                        layer.msg("第" + (i + 1) + "行,流水号:" + option.data[i]["HProcNo"] + "重复!");
                        return false;
                    }
                    //流水号不为空
                    if (option.data[i]["HProcNo"] == "") {
                        layer.msg("第" + (i + 1) + "行:流水号不能为空!");
                        return false;
                    }
                    //仓库重复
                    if (option.data[i]["HBadWHID"] != 0 && option.data[i]["HWasterWHID"] != 0) {
                        if (option.data[i]["HBadWHID"] == option.data[i]["HWasterWHID"]) {
                            layer.msg("第" + (i + 1) + "行:不良品仓和报废品仓重复!");
                    if (option.data[i] != "") {
                        //流水号
                        if ($.inArray(option.data[i]["HProcNo"], num) == -1) {
                            num.push(option.data[i]["HProcNo"]);
                        } else {
                            layer.msg("第" + (i + 1) + "行,流水号:" + option.data[i]["HProcNo"] + "重复!");
                            return false;
                        }
                    }
                    if (option.data[i]["HBadWHID"] != 0 && option.data[i]["HWHID"] != 0) {
                        if (option.data[i]["HBadWHID"] == option.data[i]["HWHID"]) {
                            layer.msg("第" + (i + 1) + "行:不良品仓和良品仓重复!");
                        //流水号不为空
                        if (option.data[i]["HProcNo"] == "") {
                            layer.msg("第" + (i + 1) + "行:流水号不能为空!");
                            return false;
                        }
                    }
                    if (option.data[i]["HWasterWHID"] != 0 && option.data[i]["HWHID"] != 0) {
                        if (option.data[i]["HWasterWHID"] == option.data[i]["HWHID"]) {
                            layer.msg("第" + (i + 1) + "行:报废品仓和良品仓重复!");
                            return false;
                        }
                    }
                        //仓库重复
                        if (option.data[i]["HBadWHID"] != 0 && option.data[i]["HWasterWHID"] != 0) {
                            if (option.data[i]["HBadWHID"] == option.data[i]["HWasterWHID"]) {
                                layer.msg("第" + (i + 1) + "行:不良品仓和报废品仓重复!");
                                return false;
                            }
                        }
                        if (option.data[i]["HBadWHID"] != 0 && option.data[i]["HWHID"] != 0) {
                            if (option.data[i]["HBadWHID"] == option.data[i]["HWHID"]) {
                                layer.msg("第" + (i + 1) + "行:不良品仓和良品仓重复!");
                                return false;
                            }
                        }
                        if (option.data[i]["HWasterWHID"] != 0 && option.data[i]["HWHID"] != 0) {
                            if (option.data[i]["HWasterWHID"] == option.data[i]["HWHID"]) {
                                layer.msg("第" + (i + 1) + "行:报废品仓和良品仓重复!");
                                return false;
                            }
                        }
                    }
                }
                return true;