Commit f0a9d1fe authored by jingnan's avatar jingnan 👀

传值设置默认值

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