杨乐
2022-02-10 5ce69179bf655ea4760c1fcc76b8d4b5e421f3de
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/Í깤/Sc_MESEndStepWorkBillList.html
@@ -194,7 +194,7 @@
                $.ajax({
                    url: GetWEBURL() + '/Sc_MESEndStepWorkBill/GetMESEndWorkBill',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
@@ -239,23 +239,89 @@
            function set_InitGrid() {
                $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
                $("#HDate1").val(Format(new Date(), "yyyy-MM-dd"));
                 option = {
                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: 'hmainid', title: '单据ID', hide: true }
                        , { field: '日期', title: '日期', width: 160, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '单据号', title: '单据号', width: 160 }
                        , { field: '单据类型', title: '单据类型', width: 160 }
                        , { field: 'HBillStatus', title: '单据状态', width: 160 }
                        , {
                            field: '单据类型', title: '单据类型', width: 160, templet: function (d) {
                                if (d.单据类型 == "3788") {
                                    return "完工单";
                                }
                            }
                        }
                        , {
                            field: 'HBillStatus', title: '单据状态', width: 160, templet: function (d) {
                                switch (d.HBillStatus) {
                                    case 0:
                                        return "创建"
                                        break;
                                    case 1:
                                        return "未审"
                                        break;
                                    case 2:
                                        return "已审"
                                        break;
                                    case 3:
                                        return "关闭"
                                        break;
                                    case 4:
                                        return "作废"
                                        break;
                                    case 5:
                                        return "审核退回"
                                        break;
                                    case 6:
                                        return "审核中"
                                        break;
                                    case 7:
                                        return "已阅"
                                        break;
                                    case 8:
                                        return "已回复"
                                        break;
                                    case 9:
                                        return "结案"
                                        break;
                                    case 10:
                                        return "验证"
                                        break;
                                    case 11:
                                        return "下达"
                                        break;
                                    case 12:
                                        return "开工"
                                        break;
                                    case 13:
                                        return "申请审批"
                                        break;
                                    case 15:
                                        return "申请检验"
                                        break;
                                    case 16:
                                        return "判定合格"
                                        break;
                                    case 17:
                                        return "判定不合格"
                                        break;
                                    default:
                                        return d.HBillStatus
                                }
                            }
                        }
                        , { field: '产品代码', title: '产品代码', width: 115 }
                        , { field: '产品名称', title: '产品名称', width: 115 }
                        , { field: '规格型号', title: '规格型号', width: 115 }
                        , { field: 'HProcID', title: 'HProcID', width: 115, hide: true}
                        , { field: 'HProcID', title: 'HProcID', width: 115, hide: true }
                        , { field: '工序代码', title: '工序代码', width: 115 }
                        , { field: '工序名称', title: '工序名称', width: 115 }
                        , { field: '部门代码', title: '部门代码', width: 115 }
@@ -287,7 +353,7 @@
                $.ajax({
                    url: GetWEBURL() + '/Sc_MESEndStepWorkBill/GetMESEndWorkBill',
                    type: "GET",
                    data: { "sWhere": sWhere },
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;