| | |
| | | <table> |
| | | |
| | | <view class="section card"> |
| | | <uni-table ref="table" type="radio" border stripe emptyText="暂无更多数据" |
| | | <uni-table ref="table" type="selection" border stripe emptyText="暂无更多数据" |
| | | @selection-change="selectionChange"> |
| | | <uni-tr> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF">工序</uni-th> |
| | |
| | | return `${year}-${month}-${day}`; // 返回格式化后的字符串 |
| | | }, |
| | | selectionChange(e) { |
| | | // 只保留最后一个选中的工单 |
| | | if (Array.isArray(e.detail.index)) { |
| | | this.selectedIndexs = [e.detail.index[e.detail.index.length - 1]]; |
| | | } else { |
| | | this.selectedIndexs = [e.detail.index]; |
| | | } |
| | | // 单选直接赋值 |
| | | this.selectedIndexs = [e.detail.index]; |
| | | }, |
| | | |
| | | selectedItems() { |