| | |
| | | function getCol() { |
| | | var cols = [ |
| | | {type: 'checkbox'} |
| | | , {field: 'tagId$', align: 'center', title: '归类', templet: '#tagTpl'} |
| | | , {field: 'locType$', align: 'center', title: '库位类型'} |
| | | , {field: 'tagId$', align: 'center', title: '归类', templet: '#tagTpl', width: 90} |
| | | , {field: 'locType$', align: 'center', title: '库位类型', width: 90} |
| | | // ,{field: 'store_max', align: 'center',title: '库存上限'} |
| | | // ,{field: 'store_min', align: 'center',title: '库存下限'} |
| | | // ,{field: 'store_max_date', align: 'center',title: '库龄上限(天)'} |
| | |
| | | // 回显表单数据 |
| | | form.val('detail', mData); |
| | | // 新增自动生成商品编号 |
| | | if (!mData) { |
| | | http.get(baseUrl + "/mat/auto/matnr/auth", null, function (res) { |
| | | $('#matnr').val(res.data); |
| | | }) |
| | | } |
| | | // if (!mData) { |
| | | // http.get(baseUrl + "/mat/auto/matnr/auth", null, function (res) { |
| | | // $('#matnr').val(res.data); |
| | | // }) |
| | | // } |
| | | // 表单提交事件 |
| | | form.on('submit(editSubmit)', function (data) { |
| | | data.field.tagId = insXmSel.getValue('valueStr'); |