IPC-610
2025-01-02 9d7dda331f3498a95e2e922e9ddae0fa43e83605
HTML/views/ASNSetting/ArrivalNoticeDetail.html
@@ -168,21 +168,25 @@
            { field: 'Id', title: '入库单明细ID', width: 120, align: 'center', fixed: 'left', hide: true, "disabled": true },
            { field: 'SkuNo', title: '物料编码', minWidth: 100, align: 'center', fixed: 'left', "disabled": true },
            { field: 'SkuName', title: '物料名称', minWidth: 180, align: 'center', fixed: 'left', "disabled": true },
            { field: 'LotNo', title: '批次号', align: 'center', edit: 'text', minWidth: 130, fixed: 'left', "disabled": true },
            { field: 'SupplierLot', title: '供货批次', width: 130, edit: 'text', event: 'setSign', fixed: 'left', "disabled": true },
            { field: 'LotNo', title: '进厂编号', align: 'center', edit: 'text', minWidth: 130, fixed: 'left', "disabled": true },
            { field: 'SupplierLot', title: '原厂批号', width: 130, edit: 'text', event: 'setSign', fixed: 'left', "disabled": true },
            { field: 'Qty', title: '数量', align: 'center', width: 80, edit: 'number', event: 'dataNumber', fixed: 'left', "disabled": true },
            { field: 'UnitName', title: '计量单位', align: 'center', width: 70 },
            { field: 'Standard', title: '规格', width: 160, align: 'center' },
            { field: 'LotText', title: '批次描述', align: 'center', edit: 'text', width: 160 },
            { field: 'PackagNo', title: '包装名称', width: 160, templet: "#table-content-Packlist" },
            { field: 'Price', title: '单价', align: 'center', width: 80 },
            { field: 'Money', title: '金额', align: 'center', width: 100 },
            { field: 'UDF1', title: '自定义列1', align: 'center', edit: 'text', width: 140 },
            { field: 'UDF2', title: '自定义列2', align: 'center', edit: 'text', width: 140 },
            { field: 'UDF3', title: '自定义列3', align: 'center', edit: 'text', width: 140 },
            { field: 'UDF4', title: '自定义列4', align: 'center', edit: 'text', width: 140 },
            { field: 'UDF5', title: '自定义列5', align: 'center', width: 140, templet: '#templetUDF5' },
            { field: 'caozuo', title: '操作', fixed: 'right', width: 100, align: 'center', templet: '#table-content-list', "disabled": true }
            { field: 'Lot1', title: '生产日期', align: 'center', edit: 'text', width: 140 },
            { field: 'Lot2', title: '过期日期', align: 'center', edit: 'text', width: 140 },
            { field: 'IsBale', title: '是否裹包', align: 'center', edit: 'text', width: 140 },
            // { field: 'Price', title: '单价', align: 'center', width: 80 },
            // { field: 'Money', title: '金额', align: 'center', width: 100 },
            // { field: 'UDF1', title: '自定义列1', align: 'center', edit: 'text', width: 140 },
            // { field: 'UDF2', title: '自定义列2', align: 'center', edit: 'text', width: 140 },
            // { field: 'UDF3', title: '自定义列3', align: 'center', edit: 'text', width: 140 },
            // { field: 'UDF4', title: '自定义列4', align: 'center', edit: 'text', width: 140 },
            // { field: 'UDF5', title: '自定义列5', align: 'center', width: 140, templet: '#templetUDF5' },
            { field: 'caozuo', title: '操作', fixed: 'right', width: 170, align: 'center', templet: '#table-content-list', "disabled": true }
         ]];
         var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码
         //#endregion
@@ -519,29 +523,6 @@
            }
         })
         // var IsBaleValue = "";
         // form.on('switch(IsBaleDemo)', function (obj) {
         //    layer.tips(this.value + ' ' + this.name + ':' + obj.elem.checked, obj.othis);
         //    if (obj.elem.checked) {
         //       IsBaleValue = "1";
         //    } else {
         //       IsBaleValue = "0";
         //    }
         // });
         // table.on('row(LAY-app-content-list)', function (obj) {
         //    if (IsBaleValue != "") {
         //       for (var j in arr) {
         //          if (obj.data.SkuNo == arr[j].SkuNo) {
         //             arr[j].IsBale = IsBaleValue;
         //             IsBaleValue = ""
         //             break;
         //          }
         //       }
         //    }
         // })
         // 删除入库单明细
         table.on('tool(LAY-app-content-list)', function (obj) {
            if (obj.event == 'del') {
@@ -595,7 +576,7 @@
               if (value == '') {
                  return '';
               } else {
                  var ver = /^[0-9]+$/;
                  var ver =/^\\d+\\.\\d{1,4}$/;  // /^[0-9]+$/;
                  if (!ver.test(value)) {
                     return '只能输入正整数';
                  }
@@ -665,7 +646,7 @@
                     }
                     else if (TypeNum == 1) {
                        if (res.data[i].Type == 1) {
                           $("#CustomerNamep").html("供应商");
                           $("#CustomerNamep").html("生产商");
                           $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
                              res.data[i].CustomerName + '</option>');
                        }
@@ -782,7 +763,7 @@
         // 提交获取入库单信息
         function getAsnOrderInfo() {
            var DataList = [];
            var reg = /^([0]|[0-9][0-9]*)$/;
            var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,4})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;///^[+-]?\d+\.\d{0,4}$/i;    ///^([0]|[0-9][0-9]*)$/;
            console.log(arr);
            for (var i in arr) {
               console.log(arr[i].LotNo);
@@ -822,7 +803,7 @@
               }
               if (!reg.test(arr[i].Qty)) {
                  layer.msg("入库数量必须是大于0的整数", {
                  layer.msg("入库数量必须大于0(可保留4位小数)", {
                     icon: 2,
                     time: 2000 //2秒关闭(如果不配置,默认是3秒)
                  });
@@ -836,12 +817,14 @@
                  Standard: arr[i].Standard,
                  LotNo: arr[i].LotNo,
                  LotText: arr[i].LotText,
                  Qty: parseInt(arr[i].Qty),
                  Qty:parseFloat(arr[i].Qty),
                  PackagNo: arr[i].PackagNo,
                  Price: arr[i].Price,
                  IsBale: arr[i].IsBale,
                  IsBelt: arr[i].IsBelt,
                  SupplierLot: arr[i].SupplierLot,
                  Lot1: arr[i].Lot1,
                  Lot2: arr[i].Lot2,
                  UDF1: arr[i].UDF1,
                  UDF2: arr[i].UDF2,
                  UDF3: arr[i].UDF3,