Commit 3ce07331 authored by jingnan's avatar jingnan 👀

采购入库申请环节编辑明细查询及展示按钮bug修改

parent 0bbca423
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
@pagination-current-change="changePageNum" @pagination-current-change="changePageNum"
> >
<div slot="header" class="table-title-wrap"> <div slot="header" class="table-title-wrap">
<dee-tools :tools="tools" mode="normal" /> <dee-tools v-if="!isSignApproval" :tools="tools" mode="normal" />
</div> </div>
</dee-up-table> </dee-up-table>
<span style="position: absolute;top: calc(100% - 70px);left: calc(50% - 70px);}"> <span style="position: absolute;top: calc(100% - 70px);left: calc(50% - 70px);}">
...@@ -54,6 +54,7 @@ export default { ...@@ -54,6 +54,7 @@ export default {
default: () => null default: () => null
} }
}, },
inject: ['InStoragePurchaseProcessInfo'], // 流程basicData的id
data() { data() {
const that = this const that = this
return { return {
...@@ -494,6 +495,9 @@ export default { ...@@ -494,6 +495,9 @@ export default {
'extDxSipplierId': this.form.extDxSipplierId 'extDxSipplierId': this.form.extDxSipplierId
} }
} }
},
isSignApproval() {
return this.$route && this.$route.name === 'TaskCenterHome'
} }
}, },
watch: { watch: {
...@@ -719,7 +723,13 @@ export default { ...@@ -719,7 +723,13 @@ export default {
] ]
} }
} }
if (this.isSignApproval) {
param.rootCondition.searchItems.items.push({
'fieldName': 'id',
'operator': 'EQ',
'value': this.InStoragePurchaseProcessInfo.id || ''
})
}
post('InStorageRequestItem/treeSearch', param).then(res => { post('InStorageRequestItem/treeSearch', param).then(res => {
const data = res.items.map(item => { const data = res.items.map(item => {
return { return {
......
...@@ -38,6 +38,11 @@ export default { ...@@ -38,6 +38,11 @@ export default {
default: () => null default: () => null
} }
}, },
provide() {
return {
InStoragePurchaseProcessInfo: this.basicData
}
},
data() { data() {
return { return {
tableData: [], tableData: [],
......
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