diff --git a/src/views/business/leasePublish/component/addToolsApply.vue b/src/views/business/leasePublish/component/addToolsApply.vue index 92194438..4eb81152 100644 --- a/src/views/business/leasePublish/component/addToolsApply.vue +++ b/src/views/business/leasePublish/component/addToolsApply.vue @@ -480,6 +480,11 @@ export default { //规格型号切换 async handleChangeType(row) { console.log("xxxxxxxx",row.newTypeId) + // 获取选中的规格型号名称 + const selectedOption = row.typeOptions.find(option => option.value === row.newTypeId); + if (selectedOption) { + this.$set(row, 'newTypeName', selectedOption.label); + } const res = await getPendingOutNumByTypeId(row.newTypeId) console.log('yyyyyyyyy',res.data) if(res.code==200){ @@ -518,7 +523,15 @@ export default { return true; } // 如果存在,将 item 存入 itemsTemp - itemsTemp.push({'typeId': item.typeId,'parentId':item.parentId, 'num': item.num, 'newTypeId': item.newTypeId}); + itemsTemp.push({ + 'typeId': item.typeId, + 'parentId': item.parentId, + 'num': item.num, + 'newTypeId': item.newTypeId, + 'maTypeName': item.maTypeName, + 'unitName': item.unitName, + 'typeName': item.newTypeName || item.typeName + }); } }); // 检查本次领料数据中是否包含待发布数量为0的数据 diff --git a/src/views/material/lease/apply/component/homeApply.vue b/src/views/material/lease/apply/component/homeApply.vue index ac1ada52..36af8e06 100644 --- a/src/views/material/lease/apply/component/homeApply.vue +++ b/src/views/material/lease/apply/component/homeApply.vue @@ -579,7 +579,7 @@ export default { this.sendTemp = [] this.ids = selection.map(item => item.id) selection.forEach(item => { - this.sendTemp.push({ id: item.id, taskId: item.taskId }) + this.sendTemp.push({ id: item.id, taskId: item.taskId,code: item.code }) }) this.single = selection.length != 1 this.multiple = !selection.length @@ -1185,7 +1185,7 @@ export default { //发布按钮 handleSend(row) { - const param = { id: row.id, taskId: row.taskId } + const param = { id: row.id, taskId: row.taskId,code:row.code } this.$modal .confirm('是否确认发布所选择的数据项?') .then(async () => {