|
|
@@ -647,23 +647,26 @@ const SelectClickBz = (row, column, event) => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- // if (type.value === '新增') {
|
|
|
- // console.log(detailData)
|
|
|
- // detailData.name = ''
|
|
|
- // detailData.sczl_bh = ''
|
|
|
- // detailData.sczl_bzdh = ''
|
|
|
- // detailData.sczl_desc = ''
|
|
|
- // detailData.sczl_jsss = ''
|
|
|
- // detailData.sczl_rq = ''
|
|
|
- // detailData.table.forEach(row => {
|
|
|
- // for (const key in row) {
|
|
|
- // row[key] = '' // 清空每行的内容
|
|
|
- // }
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // detailData.UniqId = id
|
|
|
- // dialogFormVisible.value = true
|
|
|
- // }
|
|
|
+ if (type.value === '新增') {
|
|
|
+ console.log(detailData)
|
|
|
+ // detailData.name = ''
|
|
|
+ // detailData.sczl_bh = ''
|
|
|
+ // detailData.sczl_bzdh = ''
|
|
|
+ // detailData.sczl_desc = ''
|
|
|
+ // detailData.sczl_jsss = ''
|
|
|
+ // detailData.sczl_rq = ''
|
|
|
+ detailData.table.forEach(row => {
|
|
|
+ for (const key in row) {
|
|
|
+ if ( key === 'sczl_cl'){
|
|
|
+ row[key] = '' // 清空每行的内容
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ detailData.UniqId = id
|
|
|
+ dialogFormVisible.value = true
|
|
|
+ }
|
|
|
|
|
|
if (type.value === '新增' || type.value === '查改') {
|
|
|
detailData.UniqId = id
|
|
|
@@ -977,6 +980,7 @@ const SelectClickBz = (row, column, event) => {
|
|
|
|
|
|
// 处理选择框回车操作
|
|
|
const handleEnter = (index, row) => {
|
|
|
+ detailData.table[index].sczl_dedh = '030002002'
|
|
|
if (row.sczl_gdbh === '') {
|
|
|
detailData.table[index].sczl_yjGx = ''
|
|
|
detailData.table[index].sczl_gxmc = ''
|
|
|
@@ -1017,7 +1021,6 @@ const SelectClickBz = (row, column, event) => {
|
|
|
const CPIndex = ref(0);
|
|
|
const JYCurrent = ref(0);
|
|
|
const selectCP = (event) => {
|
|
|
- // console.log(event);
|
|
|
if (event.keyCode === 40) { // 向下箭头
|
|
|
if (CPIndex.value < selectData.length - 1) {
|
|
|
CPIndex.value++;
|
|
|
@@ -1036,7 +1039,7 @@ const SelectClickBz = (row, column, event) => {
|
|
|
}
|
|
|
} else if (event.keyCode === 13) { // 回车键
|
|
|
dialogSelectVisible.value = false
|
|
|
- console.log(event);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
// 弹窗确定
|