提交退库修改字段值
This commit is contained in:
parent
a1d5b2ddc7
commit
b427947bbf
|
|
@ -447,7 +447,7 @@ export default {
|
|||
}
|
||||
|
||||
const res = await getUseTypeTreee(params)
|
||||
console.log("resgetUseTypeTreee",res)
|
||||
console.log("resgetUseTypeTreee==========", res)
|
||||
this.deviceTypeTree = res.data
|
||||
},
|
||||
// 获取 协议id
|
||||
|
|
@ -468,7 +468,7 @@ export default {
|
|||
this.queryParams.agreementId = res.data.agreementId
|
||||
this.queryParams.agreementCode = res.data.agreementCode
|
||||
this.GetDeviceTypeTreeFn(res.data.agreementId)
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue