Commit dfc53b03 authored by jingnan's avatar jingnan 👀

ERP相关_CAS配套申请修改

parent f1ba0e54
...@@ -1655,6 +1655,24 @@ export function findByNameVnode(obj, targetName) { ...@@ -1655,6 +1655,24 @@ export function findByNameVnode(obj, targetName) {
return findByNameVnode(obj.$parent, targetName) return findByNameVnode(obj.$parent, targetName)
} }
} }
export function findDownByNameVnode(component, targetName) {
// 如果当前组件的 vnode 包含目标名称,则返回当前组件
if (component && component.$vnode && component.$vnode.tag && component.$vnode.tag.includes(targetName)) {
return component
}
// 遍历子组件
if (component && component.$children) {
for (const child of component.$children) {
// 递归查找子组件
const found = findDownByNameVnode(child, targetName)
if (found) {
// 如果在子组件中找到目标元素,则返回
return found
}
}
}
return null
}
export function addMinutes(date, minutes) { export function addMinutes(date, minutes) {
const dateFormat=new Date(date) const dateFormat=new Date(date)
dateFormat.setMinutes(dateFormat.getMinutes() + minutes) dateFormat.setMinutes(dateFormat.getMinutes() + minutes)
...@@ -1664,6 +1682,7 @@ export function addMinutes(date, minutes) { ...@@ -1664,6 +1682,7 @@ export function addMinutes(date, minutes) {
export default { export default {
findByNameVnode, findByNameVnode,
findDownByNameVnode,
dateFormat, dateFormat,
treeFindBackArray, treeFindBackArray,
throttle, throttle,
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="title">生产准备符合项</div> <div class="title">生产准备符合项</div>
<div class="num">{{ detailInfo.leftItem }}/<span class="blue">{{ detailInfo.rightItem }} </span></div> <div class="num">{{ detailInfo.leftItem }}/<span class="blue">{{ detailInfo.rightItem }} </span></div>
</div> --> </div> -->
<div class=""> <div class="dee-table">
<h4>缺件信息列表</h4> <h4>缺件信息列表</h4>
<el-table <el-table
:data="detailInfo.missList && detailInfo.missList.content" :data="detailInfo.missList && detailInfo.missList.content"
......
...@@ -216,6 +216,7 @@ export default { ...@@ -216,6 +216,7 @@ export default {
const sorties = this.sortiesData.find((r) => r.value === val) const sorties = this.sortiesData.find((r) => r.value === val)
this.$set(this.form, 'sortiesName', (sorties && sorties.label) || '') this.$set(this.form, 'sortiesName', (sorties && sorties.label) || '')
this.getTreeData() this.getTreeData()
sessionStorage.setItem('ExtPosition_sortiesName', this.form.sortiesName,)
} }
}, },
keyword: { keyword: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment