EasyuiDataGridcombobox联动下拉框内容
- 开源代码
- 2025-08-12 23:03:01

发票信息下拉框联动,更具不同的发票类型,显示不同的税率
专票
普票
下拉框选择事件
function onSelectType(rec){ //选中值 if (rec=='2'){ //普通发票对应税率 pmsPlanList.pmsInvoiceTaxRate=pmsPlanList.pmsInvoiceTaxRateT }else { //专用发票对应税率 pmsPlanList.pmsInvoiceTaxRate=pmsPlanList.pmsInvoiceTaxRateP } var row =$("#dgPmsPlanList").datagrid('getSelected'); //获取行号 var rowIndex = $("#dgPmsPlanList").datagrid('getRowIndex',row); var target = $('#dgPmsPlanList').datagrid('getEditor', {'index':rowIndex,'field':'taxRate'}).target; //清除原来的数据 target bobox('clear'); //加载新下拉数据 target bobox('loadData',pmsPlanList.pmsInvoiceTaxRate); } <table id="dgPmsPlanList" data-options=" fit: true, border: false, rownumbers: true, animate: true, collapsible: false, fitColumns: true, autoRowHeight: false, toolbar:'#toolbarPmsPlanList', idField :'id', singleSelect: true, checkOnSelect: true, selectOnCheck: false, pagination:false, onDblClickRow:onDbClickRowEvent, pageSize:dataOptions.pageSize, pageList:dataOptions.pageList, showFooter:true, striped:true"> <thead> <tr> <th data-options="field:'pmsInvoiceType', halign:'center'" width="70" editor="{type:'combobox',options:{required:true,panelHeight:'auto',onSelect: onSelectType}}"> <span style="color: red;">*</span>发票类型 </th> <th data-options="field:'taxRate', halign:'center'" width="70" editor="{type:'combobox',options:{panelHeight:'auto',editable:false}}"> <span style="color: red;">*</span>税率 </th> </tr>EasyuiDataGridcombobox联动下拉框内容由讯客互联开源代码栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“EasyuiDataGridcombobox联动下拉框内容”