chengsc
2024-10-17 26356a0e6472be4620651adceddda0e38c78fffa
HTML/views/ASNSetting/PalletBind.html
@@ -103,9 +103,9 @@
                  </div>
               </div>
               <div class="layui-inline">
                  <label class="layui-form-label" style="width: 60px;">批次号</label>
                  <label class="layui-form-label" style="width: 60px;">进厂编号</label>
                  <div class="layui-input-inline">
                     <input type="text" id="LotNo" name="LotNo" placeholder="批次号" autocomplete="off"
                     <input type="text" id="LotNo" name="LotNo" placeholder="进厂编号" autocomplete="off"
                        class="layui-input">
                  </div>
               </div>
@@ -474,189 +474,7 @@
         var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码
         //#endregion
         function bindPalletBind() {
            //#region 原始非自定义列
            // var param = {
            //    ASNNo: $("#ASNNo").val(),
            //    PalletNo: $("#PalletNo").val(),
            //    LocatNo: $("#LocatNo").val(),
            //    Status: $("#Status").val(),
            //    SkuNo: $("#SkuNo").val(),
            //    SkuName: $("#SkuName").val(),
            //    LotNo: $("#LotNo").val(),
            //    StartTime: $("#StartTime").val(),
            //    EndTime: $("#EndTime").val()
            // };
            // table.render({
            //    id: 'PalletBind',
            //    elem: '#PalletBind',
            //    height: 'full-210',
            //    url: IP + "/BllAsn/GetPalletBindList",
            //    method: 'post',
            //    contentType: 'application/json',
            //    headers: { ToKen: $.cookie('token') },
            //    where: param,
            //    page: true,
            //    even: true,
            //    limit: pageCnt,     // 默认多少页
            //    limits: pageLimits,   // 默认数组[10,20,30,40,50]
            //    cellMinWidth: 60,   // 全局定义常规单元格的最小宽度,layui 2.2.1 新增
            //    done: function () {
            //       setRight()
            //       //bindBoxInfo(res.data[0].BindNo);
            //    },
            //    cols: [
            //       [{
            //          title: '序号',
            //          type: 'numbers',
            //          width: 60,
            //          align: 'center',
            //          fixed: 'left',
            //       },
            //       {
            //          field: 'ASNNo',
            //          title: '入库单号',
            //          align: 'center',
            //          width: 180,
            //       },
            //       {
            //          field: 'ASNDetailNo',
            //          title: '入库明细号',
            //          align: 'center',
            //          hide: true,
            //       },
            //       {
            //          field: 'PalletNo',
            //          title: '托盘号',
            //          align: 'center',
            //          width: 100,
            //       },
            //       {
            //          field: 'PalletNo2',
            //          title: '托盘号LV2',
            //          align: 'center',
            //          hide: true,
            //       },
            //       {
            //          field: 'PalletNo3',
            //          title: '托盘号LV3',
            //          align: 'center',
            //          hide: true,
            //       }, {
            //          field: 'LocatNo',
            //          title: '储位地址',
            //          align: 'center',
            //          width: 90,
            //       }, {
            //          field: 'SkuNo',
            //          title: '物料编码',
            //          align: 'center',
            //          width: 110,
            //       }, {
            //          field: 'SkuName',
            //          title: '物料名称',
            //          align: 'center',
            //       }, {
            //          field: 'Qty',
            //          title: '数量',
            //          align: 'center',
            //          width: 90,
            //       }, {
            //          field: 'FullQty',
            //          title: '整托数量',
            //          align: 'center',
            //          width: 90,
            //       },
            //       {
            //          field: 'Status',
            //          title: '执行状态',//等待入库/正在入库/入库完成 --0/1/2
            //          align: 'center',
            //          width: 90,
            //          templet: function (d) {
            //             switch (d.Status) {
            //                case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">等待入库</button>';
            //                case "1": return '<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">入库中</button>';
            //                case "2": return '<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">入库完成</button>';
            //                default: return "";
            //             }
            //          }
            //       },
            //       // {
            //       //    field: 'InspectMark',
            //       //    title: '抽检标记',//等待入库/正在入库/入库完成 --0/1/2
            //       //    align: 'center',
            //       //    templet: function (d) {
            //       //       switch (d.InspectMark) {
            //       //          case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">未检验</button>';
            //       //          case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs">抽检托</button>';
            //       //          default: return "";
            //       //       }
            //       //    }
            //       // },
            //       {
            //          field: 'BitPalletMark',
            //          title: '零托标记',//等待入库/正在入库/入库完成 --0/1/2
            //          align: 'center',
            //          width: 90,
            //          templet: function (d) {
            //             switch (d.BitPalletMark) {
            //                case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">否</button>';
            //                case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">是</button>';
            //                default: return "";
            //             }
            //          }
            //       },
            //       // {
            //       //    field: 'IsBale',
            //       //    title: '是否裹包',
            //       //    align: 'center',
            //       //    templet: function (d) {
            //       //       switch (d.IsBale) {
            //       //          case "0": return "否";
            //       //          case "1": return "是";
            //       //          default: return "";
            //       //       }
            //       //    }
            //       // },
            //       // {
            //       //    field: 'IsBelt',
            //       //    title: '是否打带',
            //       //    align: 'center',
            //       //    templet: function (d) {
            //       //       switch (d.IsBelt) {
            //       //          case "0": return "否";
            //       //          case "1": return "是";
            //       //          default: return "";
            //       //       }
            //       //    }
            //       // },
            //       {
            //          field: 'CompleteTime',
            //          title: '完成时间',
            //          align: 'center',
            //          width: 165,
            //          templet: function (d) {
            //             return formatDate(d.CompleteTime);
            //          },
            //       }, {
            //          field: 'CreateTime',
            //          title: '创建时间',
            //          align: 'center',
            //          width: 165,
            //          templet: function (d) {
            //             return formatDate(d.CreateTime);
            //          },
            //       }, {
            //          title: '操作',
            //          fixed: 'right',
            //          width: 180,
            //          align: 'center',
            //          toolbar: '#PalletBindDemoList'
            //       }]
            //    ]
            // });
            //#endregion
            //#region 自定义表头
            var colsJson
            var param1 = {
@@ -726,13 +544,13 @@
            { field: 'BoxNo3', title: '支号', align: 'center', width: 220 },
            { field: 'SkuNo', title: '物料编码', align: 'center', width: 150 },
            { field: 'SkuName', title: '物料名称', align: 'center', align: 'center', width: 226 },
            { field: 'LotNo', title: '批次号', align: 'center', width: 150, },
            { field: 'LotNo', title: '进厂编号', align: 'center', width: 150, },
            { field: 'Qty', title: '数量', align: 'center', width: 105, },
            { field: 'FullQty', title: '整箱数量', align: 'center', width: 105, },
            { field: 'ProductionTime', title: '生产日期', align: 'center', width: 160, templet: '#templetProductionTime' },
            { field: 'ExpirationTime', title: '过期日期', align: 'center', width: 180, templet: '#templetExpirationTime' },
            { field: 'LotText', title: '批次描述', align: 'center', width: 150, },
            { field: 'SupplierLot', title: '供货批次', align: 'center', width: 150, },
            { field: 'SupplierLot', title: '原厂批号', align: 'center', width: 150, },
            { field: 'InspectMark', title: '抽检标记', align: 'center', width: 95, templet: '#templetInspectMark' },
            { field: 'BitBoxMark', title: '零箱标记', align: 'center', width: 95, templet: '#templetBitBoxMark' },
            { field: 'InspectStatus', title: '质量状态', align: 'center', width: 95, templet: '#templetInspectStatus' },
@@ -741,178 +559,7 @@
         var DetailColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//将表头数据进行url编码
         //#endregion
         function bindBoxInfo(BindNo) {
            //#region 原始非自定义列
            // var param = {
            //    BindNo: parseInt(BindNo)
            // };
            // table.render({
            //    id: 'BoxInfo',
            //    elem: '#BoxInfo',
            //    height: 'full-210',
            //    url: IP + "/BllAsn/GetBoxInfoList",
            //    method: 'post',
            //    contentType: 'application/json',
            //    headers: { ToKen: $.cookie('token') },
            //    where: param,
            //    // toolbar: '#BoxInfoDemo',
            //    // defaultToolbar: ['filter'], //'print', 'exports'
            //    page: true,
            //    limit: pageCnt,              // 默认多少页
            //    limits: pageLimits,            // 默认数组[10,20,30,40,50]
            //    cellMinWidth: 60,             // 全局定义常规单元格的最小宽度,layui 2.2.1 新增
            //    even: true,
            //    done: function () {
            //       setRight()
            //    },
            //    cols: [
            //       [{
            //          title: '序号',
            //          type: 'numbers',
            //          width: 60,
            //          align: 'center',
            //          fixed: 'left',
            //       }
            //          , {
            //          field: 'PalletNo',
            //          title: '托盘号',
            //          align: 'center',
            //          width: 95
            //       }, {
            //          field: 'PalletNo2',
            //          title: '托盘编号LV2',
            //          align: 'center',
            //          hide: true,
            //       },
            //       {
            //          field: 'PalletNo3',
            //          title: '托盘编号LV3',
            //          align: 'center',
            //          hide: true,
            //       },
            //       {
            //          field: 'BoxNo',
            //          title: '箱号',
            //          align: 'center',
            //          width: 220
            //       }, {
            //          field: 'BoxNo2',
            //          title: '盒号',
            //          align: 'center',
            //          hide: true,
            //       },
            //       {
            //          field: 'BoxNo3',
            //          title: '支号',
            //          align: 'center',
            //          width: 220,
            //          hide: true,
            //       },
            //       {
            //          field: 'SkuNo',
            //          title: '物料编码',
            //          align: 'center',
            //          width: 150,
            //       }, {
            //          field: 'SkuName',
            //          title: '物料名称',
            //          align: 'center',
            //          align: 'center',
            //          width: 226,
            //       }, {
            //          field: 'LotNo',
            //          title: '批次号',
            //          align: 'center',
            //          width: 150,
            //       }, {
            //          field: 'Qty',
            //          title: '数量',
            //          align: 'center',
            //          width: 105,
            //       }, {
            //          field: 'FullQty',
            //          title: '整箱数量',
            //          align: 'center',
            //          width: 105,
            //       }, {
            //          field: 'ProductionTime',
            //          title: '生产日期',
            //          align: 'center',
            //          width: 160,
            //          templet: function (d) {
            //             return formatDate2(d.ProductionTime);
            //          },
            //       }, {
            //          field: 'ExpirationTime',
            //          title: '过期日期',
            //          align: 'center',
            //          width: 180,
            //          templet: function (d) {
            //             return formatDate2(d.ExpirationTime);
            //          },
            //       }, {
            //          field: 'LotText',
            //          title: '批次描述',
            //          align: 'center',
            //          width: 150,
            //       }, {
            //          field: 'SupplierLot',
            //          title: '供货批次',
            //          align: 'center',
            //          width: 150,
            //       }, {
            //          field: 'InspectMark',
            //          title: '抽检标记',//等待入库/正在入库/入库完成 --0/1/2
            //          align: 'center',
            //          width:95,
            //          templet: function (d) {
            //             switch (d.InspectMark) {
            //                case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">否</button>';
            //                case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">是</button>';
            //                default: return "";
            //             }
            //          }
            //       },
            //       {
            //          field: 'BitBoxMark',
            //          title: '零箱标记',//等待入库/正在入库/入库完成 --0/1/2
            //          align: 'center',
            //          width:95,
            //          templet: function (d) {
            //             switch (d.BitBoxMark) {
            //                case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">否</button>';
            //                case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">是</button>';
            //                default: return "";
            //             }
            //          }
            //       },
            //       {
            //          field: 'InspectStatus',
            //          title: '质量状态',//等待入库/正在入库/入库完成 --0/1/2
            //          align: 'center',
            //          width:95,
            //          templet: function (d) {
            //             switch (d.InspectStatus) {
            //                case "0": return '待检验';
            //                case "1": return '检验合格';
            //                case "2": return '不合格';
            //                case "3": return '放置期';
            //                default: return "";
            //             }
            //          }
            //       },
            //       {
            //          title: '操作',
            //          fixed: 'right',
            //          width: 155,
            //          align: 'center',
            //          toolbar: '#BoxInfoDemoList'
            //       }]
            //    ],
            // });
            //#endregion
            //#region 自定义表头
            var colsJson2
            var param1 = {