当前位置: 首页 > news >正文

Easyui DataGrid combobox联动下拉框内容

发票信息下拉框联动,更具不同的发票类型,显示不同的税率

专票

普票

下拉框选择事件

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.combobox('clear');//加载新下拉数据target.combobox('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>

http://www.lryc.cn/news/226516.html

相关文章:

  • 力扣学习笔记——11. 盛最多水的容器
  • Spring Boot: 约定优于配置的软件设计思想
  • TCP触发海康扫码相机S52CN-IC-JQR-NNN25
  • ArcGIS:如何迭代Shp文件所有要素并分别导出为Shp文件?
  • [工业自动化-11]:西门子S7-15xxx编程 - PLC从站 - 分布式IO从站/从机
  • Linux技能篇-yum源搭建(本地源和公网源)
  • 电脑清灰涂硅脂后电脑CPU温度不降反升
  • 吴恩达《机器学习》8-1->8-2:非线性假设、神经元和大脑
  • services.Jenkins Additional property tags is not allowed
  • vColorPicker——基于 Vue 的颜色选择器插件
  • Direct3D粒子系统
  • 第24章_mysql性能分析工具的使用
  • 【Git】Merge/Rebase/Cherriy-Pick的区别
  • Python复习:序列(列表元组字符串)
  • DevChat助力成为软件开发的“钢铁侠”
  • c: struct sort descending and ascending in windows and Ubuntu
  • Python - 利用 OCR 技术提取视频台词、字幕
  • VUE页面导出PDF方案
  • 机器学习笔记 - WGAN生成对抗网络概述和示例
  • HoudiniVex笔记_P0_Houdini中文文档与翻译
  • 基于PowerWord的储能在主动配电网中的仿真研究
  • 并查集与最小生成树
  • 平面运动机器人的传感器外参标定
  • 【星海随笔】SDN neutron (二) Neutron-plugin(ML2)
  • 野火i.MX6ULL开发板检测按键evtest(Linux应用开发)
  • k8s存储
  • 数据分析实战 | 贝叶斯分类算法——病例自动诊断分析
  • 实用技巧:嵌入式人员使用http服务模拟工具模拟http服务器测试客户端get和post请求
  • P9836 种树
  • C# 查询腾讯云直播流是否存在的API实现