Commit 6d513986 authored by wangdanlei's avatar wangdanlei

入库申请

parent 5e406f18
...@@ -36,12 +36,12 @@ export default { ...@@ -36,12 +36,12 @@ export default {
}, },
computed: {}, computed: {},
mounted() { mounted() {},
},
methods: { methods: {
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: 'JobResponseOutStorageExpire' }/*, { fieldName: 'inventory.materialType', operator: 'EQ', value: materialType }*/) val.items.push({ fieldName: 'subTypeName', operator: 'EQ', value: 'JobResponseOutStorageExpire' }/*, { fieldName: 'inventory.materialType', operator: 'EQ', value: materialType }*/,
{ fieldName: 'state', operator: 'EQ', value: 'Finish' })
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)
}, },
...@@ -57,7 +57,11 @@ export default { ...@@ -57,7 +57,11 @@ export default {
}, },
submitEvent() { submitEvent() {
if (this.selection.length) { if (this.selection.length) {
this.$emit('submitEvent', { formData: this.selection.map(item => item.inventory) }) const showData = this.findByNameVnode(this, 'DeeAsTable').showData
if (showData.length) {
this.selection = this.selection.filter(item => !showData.some(x => x.inventoryId === item.inventoryId))
}
this.$emit('submitEvent', { formData: this.selection })
} }
}, },
cancelEvent() { cancelEvent() {
......
...@@ -32,6 +32,7 @@ export default { ...@@ -32,6 +32,7 @@ export default {
watch: { watch: {
'form.billType'(val) { 'form.billType'(val) {
if (val) { if (val) {
this.$set(this.form, 'materialType', this.form.materialTypeId || '')
if (!this.isFirst) { if (!this.isFirst) {
this.$set(this.form, 'materialType', '') this.$set(this.form, 'materialType', '')
} }
......
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