| | |
| | | var cols = [ |
| | | {type: 'checkbox'} |
| | | ,{field: 'tagId$', align: 'center',title: '归类', templet: '#tagTpl'} |
| | | ,{field: 'store_max', align: 'center',title: '库存上限',hide : true} |
| | | ,{field: 'store_min', align: 'center',title: '库存下限',hide : true} |
| | | ,{field: 'store_max_date', align: 'center',title: '库龄上限(天)',hide : true} |
| | | ]; |
| | | cols.push.apply(cols, matCols); |
| | | cols.push( |
| | |
| | | } |
| | | // 表单提交事件 |
| | | form.on('submit(editSubmit)', function (data) { |
| | | console.log(data) |
| | | data.field.tagId = insXmSel.getValue('valueStr'); |
| | | if (isEmpty(data.field.tagId)) { |
| | | layer.msg('分类不能为空', {icon: 2}); |
| | |
| | | var templateDom = $("#templatePreview"+templateNo); |
| | | var className = templateDom.attr("class"); |
| | | if (className === 'template-barcode') { |
| | | res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1¶m="+res.data[i].matnr; |
| | | res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1¶m=" |
| | | +"orderNo;cs2025092313;" |
| | | +"sku;" +res.data[i].matnr+";" |
| | | +"po;" +res.data[i].supp+";" |
| | | +"upc;" +res.data[i].sku+";" |
| | | +"supplier;" +res.data[i].supplier; |
| | | } else { |
| | | res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2¶m="+res.data[i].matnr; |
| | | res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2¶m=" |
| | | +"orderNo;cs2025092313;" |
| | | +"sku;" +res.data[i].matnr+";" |
| | | +"po;" +res.data[i].supp+";" |
| | | +"upc;" +res.data[i].sku+";" |
| | | +"supplier;" +res.data[i].supplier; |
| | | } |
| | | } |
| | | var tpl = templateDom.html(); |