zzr99
2022-02-10 197d5633d44dc64641ea085af0930793f141d5d6
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/²úÁ¿»ã±¨/Sc_ProductReportStepBillList_Web.html
@@ -224,12 +224,14 @@
                $("#top-title").css({ margin: "0 46%"});
                $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
                $("#HDate1").val(Format(new Date(), "yyyy-MM-dd"));
                 option = {
                     elem: '#mainTable'
                option = {
                    elem: '#mainTable'
                    , toolbar: '#toolbarDemo'
                    , height: 'full-50'
                    , page: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'HInterID', title: 'HInterID', sort: true, hide: true, width: 200 }
@@ -237,9 +239,8 @@
                        , { field: '日期', title: '日期', width: 200, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                        , {
                            field: '单据类型', title: '单据类型', width: 200, templet: function (d) {
                                if (d.单据类型 == "3714")
                                {
                                    return "工序汇报单";
                                if (d.单据类型 == "3724") {
                                    return "产量汇报临时单";
                                }
                            }
                        }
@@ -306,7 +307,7 @@
                        , { field: '产品代码', title: '产品代码', width: 200 }
                        , { field: '产品名称', title: '产品名称', width: 200 }
                        , { field: '产品规格', title: '产品规格', width: 200 }
                        , { field: 'HProcID', title: 'HProcID', width: 200, hide: true}
                        , { field: 'HProcID', title: 'HProcID', width: 200, hide: true }
                        , { field: 'HProcNumber', title: '工序代码', width: 200 }
                        , { field: 'HProcName', title: '工序名称', width: 200 }
                        , { field: '汇报数量', title: '汇报数量', width: 200 }
@@ -348,7 +349,7 @@
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                    url: GetWEBURL() + '/Sc_MESProductReportStepBill/Get_Sc_MESProductReportBillList',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    data: { "sWhere": sWhere,"user": sessionStorage["HUserName"]},
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
@@ -515,6 +516,7 @@
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    console.log(JSON.stringify(data))
                    var HBillStatus = data[0].HBillStatus.toString(); //单据状态
                    var HSourceID = data[0].HSourceID.toString();  //生产资源ID
                    var HSourceInterID = data[0].HSourceInterID.toString(); //源单主内码
@@ -523,7 +525,7 @@
                    var HICMOInterID = data[0].HICMOInterID.toString();//生产订单主ID
                    var HICMOEntryID = data[0].HICMOEntryID.toString();//生产订单子ID
                    var HInterID = data[0].HInterID.toString();//产量汇报临时表主ID
                    if (HBillStatus > 0)
                    if (HBillStatus > 1)
                    {
                        layer.msg('单据不为未审核状态!');
                        return false;
@@ -571,7 +573,7 @@
                    var HICMOInterID = data[0].HICMOInterID.toString();//生产订单主ID
                    var HICMOEntryID = data[0].HICMOEntryID.toString();//生产订单子ID
                    var HInterID = data[0].HInterID.toString();//产量汇报临时表主ID
                    if (HBillStatus = 0 || HBillStatus>2) {
                    if (HBillStatus = 1 || HBillStatus>2) {
                        layer.msg('单据未审核,不需要反审核或者单据已生效不允许反审核!');
                        return false;
                    }