chengsc
2024-10-13 83b9213dc893bec8f94e04cad121abb6649886dd
HTML/views/ASNSetting/ArrivalNotice.html
@@ -438,147 +438,6 @@
         var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码
         //#endregion
         function refreshTable() {
            //#region 原始非自定义列
            // var param = {
            //       ASNNo: $("#ASNNo").val(),
            //       Type: $("#Type").val(),
            //       Status: $("#Status").val(),
            //       CustomerName: $("#CustomerName").val(),
            //       LotNo: $("#LotNo").val(),
            //       SkuNo: $("#SkuNo").val(),
            //       SkuName: $("#SkuName").val(),
            //       StartTime:$("#StartTime").val(),
            //       EndTime: $("#EndTime").val()
            // };
            // table.render({
            //    elem: '#LAY-app-content-list',
            //    url: IP + "/BllAsn/GetArrivalNoticeList",
            //    method: 'POST',
            //    height: h1,
            //    id: 'LAY-app-content-list',
            //    where: param,
            //    contentType: 'application/json',
            //    headers:{ToKen:$.cookie('token')},
            //    page: true,
            //    even: true,
            //    limit: pageCnt,
            //    limits: pageLimits,
            //    cellMinWidth: 60, //全局定义常规单元格的最小宽度,layui 2.2.1 新增
            //    done: function(res) {
            //       setRight();
            //       //aaa = $('#LAY-app-content-list').next().find('.layui-table-main').find('tr[data-index="0"]').find('td[data-field="ASNNo"]');
            //       // refreshTablemx(res.data[0].ASNNo);
            //    },
            //    cols: [
            //       [{
            //          title: '序号',
            //          type: 'numbers',
            //          width: 50,
            //          align: 'center',
            //          fixed: 'left'
            //       },
            //        {
            //          field: 'ASNNo',
            //          title: '入库单号',
            //          align: 'center',
            //          fixed: 'left',
            //          sort: true,
            //          width: 180
            //       },
            //       {
            //          field: 'Status',
            //          title: '执行状态',
            //          align: 'center',
            //          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>';
            //                   case "3" : return '<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">订单关闭</button>';
            //                   default : return "";
            //                }
            //             }
            //       },
            //       {
            //          field: 'Origin',
            //          title: '来源',
            //          align: 'center',
            //          width: 80
            //       },
            //       {
            //          field: 'CustomerName',
            //          title: '客户名称',
            //          align: 'center'
            //       },
            //       {
            //          field: 'Type',
            //          title: '单据类型',
            //          align: 'center',
            //          templet: function (d) {
            //                switch (d.Type) {
            //                   case "0" : return "标准产品入库";
            //                   case "1" : return "非标产品入库";
            //                   default : return "";
            //                }
            //                // JC08
            //                // switch (d.Status) {
            //                //    case "0" : return "成品入库";
            //                //    case "1" : return "原料入库";
            //                //    case "2" : return "退货入库";
            //                //    default : return "";
            //                // }
            //             }
            //       },
            //       {
            //          field: 'CompleteTime',
            //          title: '完成时间',
            //          align: 'center',
            //          hide:true,
            //          templet: function (d) {
            //             return formatDate2(d.CompleteTime);
            //          }
            //       },
            //       {
            //          field: 'CreateUserName',
            //          title: '创建人',
            //          align: 'center',
            //          width: 110
            //       },
            //       {
            //          field: 'CreateTime',
            //          title: '创建时间',
            //          align: 'center',
            //          templet: function (d) {
            //             return formatDate(d.CreateTime);
            //          }
            //       },
            //       {
            //          field: 'UpdateUserName',
            //          title: '修改人',
            //          align: 'center',
            //          hide:false,
            //          width: 110
            //       },
            //       {
            //          field: 'UpdateTime',
            //          title: '修改时间',
            //          align: 'center',
            //          hide:false,
            //          templet: function (d) {
            //             return formatDate(d.UpdateTime);
            //          }
            //       }, {
            //          title: '操作',
            //          fixed: 'right',
            //          width: 240,
            //          align: 'center',
            //          toolbar: '#toolbarDemo1'
            //       }]
            //    ]
            // });
            //#endregion
            //#region 自定义表头
            var colsJson
@@ -642,8 +501,8 @@
                  {field: 'SkuNo',title: '物料编码',align: 'center',width: 100}, 
                  {field: 'SkuName',title: '物料名称',align: 'center',width: 200}, 
                  {field: 'Standard',title: '物料规格',align: 'center',width: 130}, 
                  {field: 'LotNo',title: '批次号',align: 'center',width: 100},
                  {field: 'SupplierLot',title: '供货批次',align: 'center',width: 100},
                  {field: 'LotNo',title: '进厂编号',align: 'center',width: 100},
                  {field: 'SupplierLot',title: '原厂批号',align: 'center',width: 100},
                  {field: 'Qty',title: '数量',align: 'center',width: 70}, 
                  {field: 'FactQty',title: '已组数量',align: 'center',width: 90}, 
                  {field: 'CompleteQty',title: '完成数量',align: 'center',width: 90}, 
@@ -670,186 +529,7 @@
         var DetailColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//将表头数据进行url编码
         //#endregion
         function refreshTablemx(asnNo) {
            //#region 原始非自定义列
            // var param = {
            //    ASNNo:asnNo
            // };
            // table.render({
            //    elem: '#LAY-app-content-list2',
            //    url: IP + "/BllAsn/GetArrivalNoticeDetailList",
            //    method: 'POST',
            //    height: h2,
            //    id: 'LAY-app-content-list2',
            //    where: param,
            //    contentType: 'application/json',
            //    toolbar:'#toolbarDemo',
            //    defaultToolbar:  ['filter'], //'print', 'exports'
            //    headers:{ToKen:$.cookie('token')},
            //    page: true,
            //    limit: pageCnt,
            //    limits: pageLimits,
            //    cellMinWidth: 60, //全局定义常规单元格的最小宽度,layui 2.2.1 新增
            //    done: function() {
            //       setRight()
            //    },
            //    cols: [
            //       [{
            //          title: '序号',
            //          type: 'numbers',
            //          width: 50,
            //          align: 'center',
            //          fixed: 'left'
            //       },
            //       {
            //          field: 'ASNNo',
            //          title: '入库单号',
            //          align: 'center',
            //          fixed: 'left',
            //          sort: true,
            //          width: 180
            //       },
            //       {
            //          field: 'SkuNo',
            //          title: '物料编码',
            //          align: 'center',
            //          width: 100
            //       }, {
            //          field: 'SkuName',
            //          title: '物料名称',
            //          align: 'center',
            //          width: 200
            //       }, {
            //          field: 'Standard',
            //          title: '物料规格',
            //          align: 'center',
            //          width: 130
            //       }, {
            //          field: 'LotNo',
            //          title: '批次号',
            //          align: 'center',
            //          width: 100
            //       },{
            //          field: 'SupplierLot',
            //          title: '供货批次',
            //          align: 'center',
            //          fixed: 'right',
            //          width: 100,
            //          hide:true
            //       }, {
            //          field: 'Qty',
            //          title: '数量',
            //          align: 'center',
            //          width: 70
            //       }, {
            //          field: 'FactQty',
            //          title: '已组数量',
            //          align: 'center',
            //          width: 90
            //       }, {
            //          field: 'CompleteQty',
            //          title: '完成数量',
            //          align: 'center',
            //          width: 90
            //       },
            //       {
            //          field: 'CompleteTime',
            //          title: '完成时间',
            //          align: 'center',
            //          width: 160,
            //          templet: function (d) {
            //             return formatDate(d.CompleteTime);
            //          }
            //       },
            //       {
            //          field: 'UnitName',
            //          title: '计量单位',
            //          align: 'center',
            //          width: 90
            //       },
            //       {
            //          field: 'Price',
            //          title: '单价',
            //          align: 'center',
            //          width: 65,
            //          hide:true
            //       }, {
            //          field: 'Money',
            //          title: '金额',
            //          align: 'center',
            //          width: 65,
            //          hide:true
            //       },
            //       {
            //          field: 'LotText',
            //          title: '批次描述',
            //          align: 'center',
            //          width: 120
            //       },{
            //          field: 'PackagName',
            //          title: '包装名称',
            //          align: 'center',
            //          width: 110,
            //       }, {
            //          field: 'IsBale',
            //          title: '是否裹包',
            //          align: 'center',
            //          width: 150,
            //          hide:true
            //       }, {
            //          field: 'IsBelt',
            //          title: '是否打带',
            //          align: 'center',
            //          width: 150,
            //          hide:true
            //       },{
            //          field: 'CreateUserName',
            //          title: '创建人',
            //          align: 'center',
            //          width: 100
            //       },
            //       {
            //          field: 'CreateTime',
            //          title: '创建时间',
            //          align: 'center',
            //          width: 160,
            //          templet: function (d) {
            //             return formatDate(d.CreateTime);
            //          }
            //       },
            //       // {
            //       //    field: 'Id',
            //       //    title: '入库明细Id',
            //       //    align: 'center',
            //       //    hide: true,
            //       //    width: 150,
            //       // },
            //       {
            //          field: 'UpdateUserName',
            //          title: '修改人',
            //          align: 'center',
            //          hide:true,
            //          width: 150,
            //       },
            //       {
            //          field: 'UpdateTime',
            //          title: '修改时间',
            //          align: 'center',
            //          hide:true,
            //          width: 150,
            //          templet: function (d) {
            //             return formatDate(d.UpdateTime);
            //          }
            //       },  {
            //          title: '操作',
            //          fixed: 'right',
            //          width: 100,
            //          align: 'left',
            //          toolbar: '#toolbarDemoList'
            //       }]
            //    ]
            // });
            //#endregion
            //#region 自定义表头
            var colsJson2