|
@@ -702,8 +702,11 @@ export default {
|
|
|
this.$refs.formData1.resetFields()
|
|
|
},
|
|
|
confirmOrder() {
|
|
|
+ console.log(this?.selectedRow)
|
|
|
this.isShowNo = false
|
|
|
- this.getDetail(this.selectedRow.salesId)
|
|
|
+ if (this?.selectedRow?.salesId || this?.selectedRow?.[0]?.salesId) {
|
|
|
+ this.getDetail(this?.selectedRow?.salesId || this?.selectedRow?.[0]?.salesId)
|
|
|
+ }
|
|
|
},
|
|
|
getOrderList() {
|
|
|
listPageV2({
|
|
@@ -735,7 +738,7 @@ export default {
|
|
|
},
|
|
|
handleSelectionChange(selection, row) {
|
|
|
this.selectedRow = JSON.parse(JSON.stringify(row))
|
|
|
- this.$refs.treeTable.clearSelection() // 这里因为需求做的是必选一个,如有其他需求可做调整
|
|
|
+ this.$refs.treeTable.clearSelection()
|
|
|
this.$refs.treeTable.toggleRowSelection(row, true)
|
|
|
},
|
|
|
// 更改每页数量
|
|
@@ -1100,4 +1103,10 @@ export default {
|
|
|
max-height: 300px !important;
|
|
|
overflow-y: auto !important;
|
|
|
}
|
|
|
+::v-deep .el-table__header {
|
|
|
+ .el-checkbox {
|
|
|
+ //找到表头那一行,然后把里面的复选框隐藏掉
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|