chengsc
2024-10-17 26356a0e6472be4620651adceddda0e38c78fffa
HTML/views/SOSetting/ExportAllot.html
@@ -66,9 +66,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>
@@ -339,7 +339,7 @@
            { field: 'PalletNo', title: '托盘号', align: 'center', width: 95, },
            { field: 'SkuNo', title: '物料编码', align: 'center', minWidth: 120 },
            { field: 'SkuName', title: '物料名称', align: 'center', width: 150 },
            { field: 'LotNo', title: '批次号', align: 'center', width: 125 },
            { field: 'LotNo', title: '进厂编号', align: 'center', width: 125 },
            { field: 'Status', align: 'center', title: '状态', width: 90, templet: '#templetStatus' },
            { field: 'Qty', title: '出库数量', align: 'center', width: 90, },
            { field: 'CompleteQty', title: '拣货数量', align: 'center', width: 90 },
@@ -347,7 +347,7 @@
            { field: 'OutMode', title: '出库口', align: 'center', width: 90, templet: '#outType', },
            { field: 'LoadingAddre', title: '装车口', align: 'center', width: 90, templet: '#outType', },
            { field: 'IsAdvance', title: '拣货类型', align: 'center', width: 90, templet: '#templetIsAdvance' },
            { field: 'SupplierLot', title: '供货批次', align: 'center', width: 110 },
            { field: 'SupplierLot', title: '原厂批号', align: 'center', width: 110 },
            { field: 'LotText', title: '批次描述', align: 'center', width: 150 },
            { field: 'Standard', title: '物料规格', align: 'center', minWidth: 120, },
            { field: 'IsBale', title: '是否裹包', align: 'center', templet: '#templetIsBale', width: 90 },
@@ -359,196 +359,7 @@
         var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码
         //#endregion
         function refreshTable() {
            //#region 原始非自定义列
            // var param = {
            //    SoNo: $("#SoNo").val(),
            //    // WaveNo:$("#WaveNo").val(),
            //    PalletNo: $("#PalletNo").val(),
            //    SkuNo: $("#SkuNo").val(),
            //    SkuName: $("#SkuName").val(),
            //    LotNo: $("#LotNo").val(),
            //    Status: $("#Status").val(),
            //    BoxNo: $("#BoxNo").val(),
            // };
            // table.render({
            //    elem: '#LAY-app-content-list',
            //    url: IP + "/BllSo/GetExportAllotList",
            //    method: 'POST',
            //    height: 'full-206',
            //    id: 'LAY-app-content-list',
            //    where: param,
            //    contentType: 'application/json',
            //    headers: { ToKen: $.cookie('token') },
            //    page: true,
            //    limit: pageCnt,
            //    limits: pageLimits,
            //    cellMinWidth: 60, //全局定义常规单元格的最小宽度,layui 2.2.1 新增
            //    done: function(){
            //       initMenu();
            //    },
            //    cols: [
            //       [{
            //          title: '序号',
            //          type: 'numbers',
            //          width: 60,
            //          fixed: 'left'
            //       }, {
            //          field: 'SONo',
            //          title: '出库单号',
            //          align: 'center',
            //          fixed: 'left',
            //          width: 180,
            //       }, {
            //          field: 'WaveNo',
            //          title: '波次单号',
            //          align: 'center',
            //          width: 180,
            //          hide: true
            //       }, {
            //          field: 'PalletNo',
            //          title: '托盘号',
            //          align: 'center',
            //          width: 95,
            //       }, {
            //          field: 'SkuNo',
            //          title: '物料编码',
            //          align: 'center',
            //          minWidth: 120,
            //       }, {
            //          field: 'SkuName',
            //          title: '物料名称',
            //          align: 'center',
            //          width: 150,
            //       }, {
            //          field: 'LotNo',
            //          title: '批次号',
            //          align: 'center',
            //          width: 125,
            //       }, {
            //          field: 'Status',
            //          align: 'center',
            //          title: '状态',
            //          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-warm layui-btn-xs">任务下发</button>`;
            //                case "2":
            //                   return `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">待拣货</button>`;
            //                case "3":
            //                   return `<button class="layui-btn layui-btn-radius layui-btn-warm layui-btn-xs">部分拣货</button>`;
            //                case "4":
            //                   // return `<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">待回库</button>`;
            //                case "5":
            //                   return `<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">已完成</button>`;
            //                case "6":
            //                   return `<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">异常取消</button>`;
            //                default:
            //                   return "";
            //             }
            //          },
            //       }, {
            //          field: 'Qty',
            //          title: '出库数量',
            //          align: 'center',
            //          width: 90,
            //       }, {
            //          field: 'CompleteQty',
            //          title: '拣货数量',
            //          align: 'center',
            //          width: 90,
            //       }, {
            //          field: 'OutMode',
            //          title: '出库口',
            //          align: 'center',
            //          width: 90,
            //          templet: '#outType',
            //       }, {
            //          field: 'IsAdvance',
            //          title: '拣货类型',
            //          align: 'center',
            //          width: 90,
            //          templet: function (d) {
            //             switch (d.IsAdvance) {
            //                case "0":
            //                   return "出库";
            //                case "1":
            //                   return "预拣";
            //                default:
            //                   return "";
            //             }
            //          },
            //       }, {
            //          field: 'SupplierLot',
            //          title: '供货批次',
            //          align: 'center',
            //          width: 110,
            //       }, {
            //          field: 'LotText',
            //          title: '批次描述',
            //          align: 'center',
            //          width: 150,
            //       }, {
            //          field: 'Standard',
            //          title: '物料规格',
            //          align: 'center',
            //          minWidth: 120,
            //       }, {
            //          field: 'IsBale',
            //          title: '是否裹包',
            //          align: 'center',
            //          templet: function (d) {
            //             switch (d.IsBale) {
            //                case "0":
            //                   return "不裹包";
            //                case "1":
            //                   return "裹包";
            //                default:
            //                   return "";
            //             }
            //          },
            //          width: 90,
            //          hide: true,
            //       }, {
            //          field: 'IsBelt',
            //          title: '是否打带',
            //          align: 'center',
            //          templet: function (d) {
            //             switch (d.IsBelt) {
            //                case "0":
            //                   return "不打带";
            //                case "1":
            //                   return "打带";
            //                default:
            //                   return "";
            //             }
            //          },
            //          width: 90,
            //          hide: true,
            //       }, {
            //          field: 'CreateTime',
            //          align: 'center',
            //          title: '创建时间',
            //          width: 160,
            //          templet: function (d) {
            //             return formatDate(d.CreateTime);
            //          },
            //       }, {
            //          title: '操作',
            //          fixed: 'right',
            //          width: 100,
            //          align: 'center',
            //          toolbar: '#table-content-list'
            //       }]
            //    ]
            // });
            //#endregion
            //#region 自定义表头
            var colsJson
            var param1 = {
@@ -609,11 +420,11 @@
            //{field: 'BoxNo3',title: '支号',align: 'center',width: 115}, 
            { field: 'SkuNo', title: '物料编码', align: 'center', width: 120, },
            { field: 'SkuName', title: '物料名称', align: 'center' },
            { field: 'LotNo', title: '批次号', align: 'center', width: 125, },
            { field: 'LotNo', title: '进厂编号', align: 'center', width: 125, },
            { field: 'CompleteQty', title: '拣货数量', align: 'center', width: 90, },
            { field: 'NowPalletNo', title: '新托盘', align: 'center', width: 95, },
            { field: 'LotText', title: '批次描述', align: 'center', width: 150, },
            { field: 'SupplierLot', title: '供货批次', align: 'center', width: 110, },
            { field: 'SupplierLot', title: '原厂批号', align: 'center', width: 110, },
            { field: 'Standard', title: '物料规格', align: 'center', width: 120, },
            //{field: 'CreateTime',align: 'center',title: '拣货时间',width: 165,templet: '#templetCreateTime2'}, 
            { field: 'caozuo', title: '操作', fixed: 'right', width: 100, align: 'left', toolbar: '#table-content-list2', "disabled": true }