Commit 881bb66c authored by arvin's avatar arvin

出库物料选择

parent 2f02c5c2
...@@ -52,8 +52,9 @@ export default { ...@@ -52,8 +52,9 @@ export default {
val.items.push({ fieldName: 'status', operator: 'EQ', value: 'disposed' }) val.items.push({ fieldName: 'status', operator: 'EQ', value: 'disposed' })
val.items.push({ fieldName: 'usableAmount', operator: 'GT', value: 0 }) val.items.push({ fieldName: 'usableAmount', operator: 'GT', value: 0 })
val.items.push({ fieldName: 'disposeDes', operator: 'LIKE', value: '三期' }) val.items.push({ fieldName: 'disposeDes', operator: 'LIKE', value: '三期' })
if (this.basicData.extWorkCenteName) { const extWorkCenterName = this.basicData.extWorkCenteName || (this.basicData.extWorkCeter && this.basicData.extWorkCeter.extname)
val.items.push({ fieldName: 'workcenter', operator: 'EQ', value: this.basicData.extWorkCenteName }) if (extWorkCenterName) {
val.items.push({ fieldName: 'workcenter', operator: 'EQ', value: extWorkCenterName })
} }
const el = this.$refs['materielTable'] const el = this.$refs['materielTable']
el.$refs.asCom.getData(val.items, val.items) el.$refs.asCom.getData(val.items, val.items)
...@@ -70,8 +71,14 @@ export default { ...@@ -70,8 +71,14 @@ export default {
}, },
submitEvent() { submitEvent() {
console.log(this.selection) console.log(this.selection)
if (this.selection.length) { const selection = this.selection.filter(r => {
const data = this.selection.map(r => { if (!this.basicData.inStorageRequestItems) {
return true
}
return !this.basicData.inStorageRequestItems.find(item => r.id === item.inventoryId)
})
if (selection.length) {
const data = selection.map(r => {
return { return {
'subTypeName': 'OutStorageExpireItem', 'subTypeName': 'OutStorageExpireItem',
'reqStatus': 'Apply', 'reqStatus': 'Apply',
......
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