Commit f5429f1f authored by “lixuyan”'s avatar “lixuyan”

修改materialId

parent 1ff3a0d0
...@@ -73,6 +73,7 @@ export default { ...@@ -73,6 +73,7 @@ export default {
}, },
adjustCardCreate(e, type) { adjustCardCreate(e, type) {
let arr = [] let arr = []
let materialId = null
if (e.el.selectedData.length === 0) { if (e.el.selectedData.length === 0) {
arr = [ arr = [
{ {
...@@ -81,6 +82,7 @@ export default { ...@@ -81,6 +82,7 @@ export default {
targetIdType: 'extSupportingItem' targetIdType: 'extSupportingItem'
} }
] ]
materialId = null
} else { } else {
e.el.selectedData.forEach(element => { e.el.selectedData.forEach(element => {
arr.push({ arr.push({
...@@ -89,12 +91,14 @@ export default { ...@@ -89,12 +91,14 @@ export default {
targetIdType: 'extSupportingItem' targetIdType: 'extSupportingItem'
}) })
}) })
materialId = e.el.selectedData[0].extMaterialId
} }
const params = { const params = {
dxClassName: 'com.yonde.tf.mom.common.vo.schedule.AssignCardVO', dxClassName: 'com.yonde.tf.mom.common.vo.schedule.AssignCardVO',
subTypeName: type, subTypeName: type,
operator: 'ADD', operator: 'ADD',
assignCardDetails: arr assignCardDetails: arr,
materialId: materialId
} }
post( post(
'/AssignCard/recursion', '/AssignCard/recursion',
......
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