Commit f0a9d1fe authored by jingnan's avatar jingnan 👀

传值设置默认值

parent 3ce07331
...@@ -54,7 +54,13 @@ export default { ...@@ -54,7 +54,13 @@ export default {
default: () => null default: () => null
} }
}, },
inject: ['InStoragePurchaseProcessInfo'], // 流程basicData的id inject: {
'InStorageApplyProcessInfo': {
default: () => {
return { InStorageApplyProcessInfo: null }
}
} // 流程basicData的id
},
data() { data() {
const that = this const that = this
return { return {
...@@ -727,7 +733,7 @@ export default { ...@@ -727,7 +733,7 @@ export default {
param.rootCondition.searchItems.items.push({ param.rootCondition.searchItems.items.push({
'fieldName': 'id', 'fieldName': 'id',
'operator': 'EQ', 'operator': 'EQ',
'value': this.InStoragePurchaseProcessInfo.id || '' 'value': this.InStorageApplyProcessInfo && this.InStorageApplyProcessInfo.id || ''
}) })
} }
post('InStorageRequestItem/treeSearch', param).then(res => { post('InStorageRequestItem/treeSearch', param).then(res => {
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
}, },
provide() { provide() {
return { return {
InStoragePurchaseProcessInfo: this.basicData InStorageApplyProcessInfo: this.basicData
} }
}, },
data() { data() {
......
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