| | |
| | | * 安全库存量 |
| | | */ |
| | | @ApiModelProperty(value= "安全库存量") |
| | | @ExcelProperty(value = "归零阀值") |
| | | @ExcelProperty(value = "归零阈值") |
| | | @TableField("safe_qty") |
| | | private Double safeQty; |
| | | |
| | |
| | | } |
| | | } |
| | | , { |
| | | field: 'safeQty', align: 'center', title: '归零阀值', templet: function (d) { |
| | | field: 'safeQty', align: 'center', title: '归零阈值', templet: function (d) { |
| | | var raw = d.safeQty; |
| | | if (raw === null || raw === undefined) return ''; |
| | | if (typeof raw === 'string' && raw.trim() === '') return ''; |
| | |
| | | , { |
| | | field: 'realQty', align: 'center', title: '实际数量', hide: false, templet: function (d) { |
| | | var raw = d.realQty; |
| | | // var ioType = d.ioType; |
| | | // console.log(ioType) |
| | | if (raw === null || raw === undefined) return ''; |
| | | if (typeof raw === 'string' && raw.trim() === '') return ''; |
| | | var num = Number(raw); |
| | |
| | | return num.toFixed(2); |
| | | } |
| | | } |
| | | , {field: 'weight', align: 'center', title: '实际重量(公斤)', hide: false, width: 120} |
| | | , { |
| | | field: 'stockQty', align: 'center', title: '库存数量', hide: false, templet: function (d) { |
| | | var raw = d.stockQty; |
| | | if (raw === null || raw === undefined) return ''; |
| | | if (typeof raw === 'string' && raw.trim() === '') return ''; |
| | | var num = Number(raw); |
| | | if (!isFinite(num)) return ''; |
| | | return num.toFixed(2); |
| | | } |
| | | } |
| | | , {field: 'weight', align: 'center', title: '重量(公斤)', hide: false, width: 120} |
| | | , {field: 'zpallet', align: 'center', title: 'SN', hide: false} |
| | | , {field: 'specs', align: 'center', title: '规格', hide: false} |
| | | , { |
| | | field: 'safeQty', align: 'center', title: '归零阀值', hide: true, templet: function (d) { |
| | | field: 'safeQty', align: 'center', title: '归零阈值', hide: true, templet: function (d) { |
| | | var raw = d.safeQty; |
| | | if (raw === null || raw === undefined) return ''; |
| | | if (typeof raw === 'string' && raw.trim() === '') return ''; |
| | |
| | | // 回显表单数据 |
| | | 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'); |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">归零阀值</label> |
| | | <label class="layui-form-label layui-form-required">归零阈值</label> |
| | | <div class="layui-input-block"> |
| | | <input id="safeQty" name="safeQty" placeholder="请输入阀值" class="layui-input" lay-vertype="tips" lay-verify="required" required=""> |
| | | <input id="safeQty" name="safeQty" placeholder="请输入阈值" class="layui-input" lay-vertype="tips" lay-verify="required" required=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |