退料申请+重庆-当前在用量无显示修复
This commit is contained in:
parent
b6e5577d7b
commit
e139c80eb3
|
|
@ -282,6 +282,14 @@ export function submitNumOut(params){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 当前在用量
|
||||||
|
export function getUseNumByTypeId(params){
|
||||||
|
return request({
|
||||||
|
url: '/material/backApply/getUseNumByTypeId',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,8 @@ import {
|
||||||
getDeviceTypeTree,
|
getDeviceTypeTree,
|
||||||
getAgreementInfoById,
|
getAgreementInfoById,
|
||||||
submitLeaseApply,
|
submitLeaseApply,
|
||||||
getUseTypeTreee
|
getUseTypeTreee,
|
||||||
|
getUseNumByTypeId
|
||||||
} from '@/api/claimAndRefund/receive'
|
} from '@/api/claimAndRefund/receive'
|
||||||
import { ApiSubmitBackApply } from "@/api/claimAndRefund/return"
|
import { ApiSubmitBackApply } from "@/api/claimAndRefund/return"
|
||||||
import { submitBackApplyApi,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js"
|
import { submitBackApplyApi,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js"
|
||||||
|
|
@ -342,6 +343,7 @@ export default {
|
||||||
typeName: '', //显示的设备类型
|
typeName: '', //显示的设备类型
|
||||||
typeCode: '', //显示的设备规格
|
typeCode: '', //显示的设备规格
|
||||||
unitNames: '', //显示的设备 单位
|
unitNames: '', //显示的设备 单位
|
||||||
|
useNum: '', //当前在用量
|
||||||
remark: '', //单条备注
|
remark: '', //单条备注
|
||||||
preNum: 1, //预领数量
|
preNum: 1, //预领数量
|
||||||
},
|
},
|
||||||
|
|
@ -762,11 +764,13 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
/////// 设备类型树 切换
|
/////// 设备类型树 切换
|
||||||
deviceTypeChange(val) {
|
async 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)
|
||||||
|
const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
|
||||||
|
nodes[0].data.useNum = res.data
|
||||||
if (nodes[0].level != 4) {
|
if (nodes[0].level != 4) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -790,6 +794,7 @@ export default {
|
||||||
template.preNum = node.data.num
|
template.preNum = node.data.num
|
||||||
template.typeName = node.pathLabels[2]
|
template.typeName = node.pathLabels[2]
|
||||||
template.typeCode = node.pathLabels[3]
|
template.typeCode = node.pathLabels[3]
|
||||||
|
template.useNum = node.data.useNum
|
||||||
return template
|
return template
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,8 @@ import {
|
||||||
getDeviceTypeTree,
|
getDeviceTypeTree,
|
||||||
getAgreementInfoById,
|
getAgreementInfoById,
|
||||||
submitLeaseApply,
|
submitLeaseApply,
|
||||||
getUseTypeTreee
|
getUseTypeTreee,
|
||||||
|
getUseNumByTypeId
|
||||||
} from '@/api/claimAndRefund/receive'
|
} from '@/api/claimAndRefund/receive'
|
||||||
import { submitBackApplyApi } from "@/api/claimAndRefund/return"
|
import { submitBackApplyApi } from "@/api/claimAndRefund/return"
|
||||||
import { submitBackApplyApiByCq,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js"
|
import { submitBackApplyApiByCq,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js"
|
||||||
|
|
@ -342,6 +343,7 @@ export default {
|
||||||
typeName: '', //显示的设备类型
|
typeName: '', //显示的设备类型
|
||||||
typeCode: '', //显示的设备规格
|
typeCode: '', //显示的设备规格
|
||||||
unitNames: '', //显示的设备 单位
|
unitNames: '', //显示的设备 单位
|
||||||
|
useNum: '', //当前在用量
|
||||||
remark: '', //单条备注
|
remark: '', //单条备注
|
||||||
preNum: 1, //预领数量
|
preNum: 1, //预领数量
|
||||||
},
|
},
|
||||||
|
|
@ -762,11 +764,13 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
/////// 设备类型树 切换
|
/////// 设备类型树 切换
|
||||||
deviceTypeChange(val) {
|
async 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)
|
||||||
|
const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
|
||||||
|
nodes[0].data.useNum = res.data
|
||||||
if (nodes[0].level != 4) {
|
if (nodes[0].level != 4) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -790,6 +794,7 @@ export default {
|
||||||
template.preNum = node.data.num
|
template.preNum = node.data.num
|
||||||
template.typeName = node.pathLabels[2]
|
template.typeName = node.pathLabels[2]
|
||||||
template.typeCode = node.pathLabels[3]
|
template.typeCode = node.pathLabels[3]
|
||||||
|
template.useNum = node.data.useNum
|
||||||
return template
|
return template
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue