Browse Source

[fix]销售管理:

客户报价
修改新增页面的表格删除方法,新增根据物料号逻辑删除表格中一行数据
dev
liuxiaoxu 5 months ago
parent
commit
352b7fdc55
  1. 8
      ruoyi-admin/src/main/resources/templates/system/customerQuote/add.html

8
ruoyi-admin/src/main/resources/templates/system/customerQuote/add.html

@ -439,7 +439,7 @@
{title: '操作', align: 'center', {title: '操作', align: 'center',
formatter: function (value, row, index) { formatter: function (value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="removeRow(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> '); actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="removeRow(\'' + row.materialCode + '\')"><i class="fa fa-remove"></i>删除</a> ');
return actions.join(''); return actions.join('');
} }
} }
@ -648,10 +648,10 @@
$.modal.openOptions(options); $.modal.openOptions(options);
} }
/* 删除指定表格行 */ /* 删除指定表格行 */
function removeRow(id){ function removeRow(materialCode){
$("#bootstrap-sub-table-quoteChild").bootstrapTable('remove', { $("#bootstrap-sub-table-quoteChild").bootstrapTable('remove', {
field: 'id', field: 'materialCode',
values: id values: materialCode
}) })
} }
$("input[name='pricingDate']").datetimepicker({ $("input[name='pricingDate']").datetimepicker({

Loading…
Cancel
Save