装备录入

This commit is contained in:
bb_pan 2025-12-11 10:13:44 +08:00
parent 16eec7e36d
commit 89189acc25
1 changed files with 29 additions and 1 deletions

View File

@ -147,6 +147,7 @@
border
stripe
height="546"
@row-dblclick="handleDblClick"
>
<el-table-column
label="序号"
@ -538,7 +539,7 @@
type="text"
icon="el-icon-edit"
@click="editRowInfo(row)"
v-if="row.orderStatus == '3' && !isAddVisible"
v-if="row.orderStatus == '3' && !isAddVisible && !row.isNew"
>
编辑
</el-button>
@ -1355,6 +1356,33 @@ export default {
.replace(/\.{2,}/g, '.') // ->
.replace(/^(\d+)\.(.*)\./, '$1.$2') //
},
async handleDblClick(row, column, event) {
this.$set(row, 'majorList', [])
this.$set(row, 'processList', [])
this.$set(row, 'categoryList', [])
this.$set(row, 'process', [String(row.mainProcessId), String(row.subProcessId)])
row.branchId
? this.$set(row, 'category', [String(row.mainCategoryId), String(row.subCategoryId), String(row.branchId)])
: this.$set(row, 'category', [String(row.mainCategoryId), String(row.subCategoryId)])
await this.getFirstLevel(row)
await this.majorChange(row.majorId, row)
await this.processChange(row.process, row)
if (!row.propertyVoList) row.propertyVoList = []
row.propertyVoList.forEach((item) => {
if (item.inputType == 2) {
item.valueList = this.handleData(item.value)
}
if (item.inputType == 3) {
item.valueList2 = this.handleData(item.value)
this.$set(item, 'propertyValues', item.propertyValue ? item.propertyValue.split(',') : [])
}
})
//
console.log('双击的行数据:', row)
this.$set(row, 'isNew', !row.isNew)
},
submitRow(row) {
console.log('🚀 ~ row:', row)
try {