提交退库修改字段值

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