Commit 931a86a7 authored by arvin's avatar arvin

组件调整

parent ac41cb1c
...@@ -29,6 +29,12 @@ export default { ...@@ -29,6 +29,12 @@ export default {
componentName: '添加三期出库物料明细弹框', componentName: '添加三期出库物料明细弹框',
name: 'AddOutStorageMaterialDetailDialog', name: 'AddOutStorageMaterialDetailDialog',
components: {}, components: {},
props: {
basicData: {
type: Object,
default: () => {}
}
},
data() { data() {
return { return {
selection: [], selection: [],
...@@ -43,6 +49,9 @@ export default { ...@@ -43,6 +49,9 @@ export default {
searchEvent(val) { searchEvent(val) {
// const materialType = this.findByNameVnode(this, 'DeeAsForm').form.materialType // const materialType = this.findByNameVnode(this, 'DeeAsForm').form.materialType
val.items.push({ fieldName: 'subTypeName', operator: 'EQ', value: 'Inventory' }/*, { fieldName: 'inventory.materialType', operator: 'EQ', value: materialType }*/) val.items.push({ fieldName: 'subTypeName', operator: 'EQ', value: 'Inventory' }/*, { fieldName: 'inventory.materialType', operator: 'EQ', value: materialType }*/)
if (this.basicData.extWorkCenteName) {
val.items.push({ fieldName: 'workcenter', operator: 'EQ', value: this.basicData.extWorkCenteName })
}
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)
}, },
......
...@@ -105,11 +105,10 @@ export default { ...@@ -105,11 +105,10 @@ export default {
}) })
}, },
update() { update() {
let item = null const item = this.warehouseOptions.find(r => (r.id + '') === this.cloneValue)
if (this.dataType === 'string') { if (this.dataType === 'string') {
this.$emit('input', this.cloneValue) this.$emit('input', this.cloneValue)
} else { } else {
item = this.warehouseOptions.find(r => r.id === this.cloneValue)
this.$emit('input', item) this.$emit('input', item)
} }
this.syncOut(item) this.syncOut(item)
......
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