Browse Source

Merge remote-tracking branch 'origin/dev' into dev

dev
zhangsiqi 6 months ago
parent
commit
7b1029e837
  1. 5
      ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html
  2. 12
      ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html

5
ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html

@ -48,11 +48,6 @@
</form> </form>
</div> </div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="quality:qualityOrder:add">
<i class="fa fa-plus"></i> 添加
</a>
</div>
<div class="col-sm-12 select-table table-striped"> <div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table> <table id="bootstrap-table"></table>
</div> </div>

12
ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrderReport.html

@ -203,12 +203,22 @@
{ {
title: '数量', title: '数量',
field: 'processBadNum', field: 'processBadNum',
editable:true editable:{
type: 'text',
mode:'inline',
validate: function (v) {
if (!v) return '数量不能为空';
if (isNaN(v)) return '数量必须是数字';
var processBadNum = parseInt(v);
if (processBadNum <= 0) return '数量必须是正整数';
}
}
}, },
{ {
title: '报告', title: '报告',
field: 'unqualifiedReportUrl', field: 'unqualifiedReportUrl',
editable: { editable: {
mode:'inline',
type: 'text', // 表示该列可以被编辑为文本 type: 'text', // 表示该列可以被编辑为文本
}, },
}, },

Loading…
Cancel
Save