提交退库修改字段值

This commit is contained in:
zhouxain01 2023-12-25 10:09:51 +08:00
parent a1d5b2ddc7
commit b427947bbf
1 changed files with 6 additions and 8 deletions

View File

@ -447,7 +447,7 @@ export default {
}
const res = await getUseTypeTreee(params)
console.log("resgetUseTypeTreee",res)
console.log("resgetUseTypeTreee==========", res)
this.deviceTypeTree = res.data
},
// id
@ -495,7 +495,7 @@ export default {
},
//
handelEchoData(item) {
console.log('item', item);
console.log('item======', item);
const template = JSON.parse(JSON.stringify(this.leaseApplyDetailsItem))
template.createBy = item.createBy
template.parentId = item.data.parentId
@ -508,7 +508,6 @@ export default {
template.remark = item.remark
template.preNum = item.preNum
template.status = item.status
return template
},
@ -763,9 +762,9 @@ export default {
///////
deviceTypeChange(val) {
let nodes = null;
console.log("vall1211221122",this.$refs.deviceTypeCascader.getCheckedNodes().length,this.$refs.deviceTypeCascader.getCheckedNodes(),[this.$refs.deviceTypeCascader.panel.getNodeByValue(val)])
console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)])
nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
console.log("nodes",nodes)
console.log("nodes", nodes)
if (nodes[0].level != 4) {
return
}
@ -780,16 +779,15 @@ export default {
},
////
handelTableItemData(node) {
console.log('node=====1111', node);
const template = JSON.parse(JSON.stringify(this.leaseApplyDetailsItem))
template.createBy = this.createBy
template.typeId = node.data.typeId
template.companyId = this.companyId
// template.typeId = node.data.id
template.unitCn = node.data.unitName
template.preNum = node.data.num
template.typeCn = node.pathLabels[2]
template.guigeCn = node.pathLabels[3]
console.log('template', template);
return template
}
}