| | |
| | | { 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: '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编码 |
| | |
| | | } |
| | | }) |
| | | |
| | | // 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') { |
| | |
| | | if (value == '') { |
| | | return ''; |
| | | } else { |
| | | var ver = /^[0-9]+$/; |
| | | var ver =/^\\d+\\.\\d{1,4}$/; // /^[0-9]+$/; |
| | | if (!ver.test(value)) { |
| | | return '只能输入正整数'; |
| | | } |
| | |
| | | // 提交获取入库单信息 |
| | | 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); |
| | |
| | | } |
| | | |
| | | if (!reg.test(arr[i].Qty)) { |
| | | layer.msg("入库数量必须是大于0的整数", { |
| | | layer.msg("入库数量必须大于0(可保留4位小数)", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | |
| | | 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, |