代码更新
This commit is contained in:
@@ -129,7 +129,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<AddDtl :dialog-show.sync="dtlShow" @tableChanged="tableChanged" />
|
<AddDtl :dialog-show.sync="dtlShow" :stor-id="storId" @tableChanged="tableChanged" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -168,6 +168,7 @@ export default {
|
|||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dtlShow: false,
|
dtlShow: false,
|
||||||
flagnow: false,
|
flagnow: false,
|
||||||
|
storId: null,
|
||||||
nowrow: {},
|
nowrow: {},
|
||||||
nowindex: '',
|
nowindex: '',
|
||||||
storlist: [],
|
storlist: [],
|
||||||
@@ -235,6 +236,11 @@ export default {
|
|||||||
this.crud.notify('请选择盘点单类型!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请选择盘点单类型!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (this.form.stor_id === '') {
|
||||||
|
this.crud.notify('请选择仓库!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.storId = this.form.stor_id
|
||||||
this.dtlShow = true
|
this.dtlShow = true
|
||||||
},
|
},
|
||||||
tableChanged(rows) {
|
tableChanged(rows) {
|
||||||
|
|||||||
@@ -109,6 +109,9 @@ export default {
|
|||||||
},
|
},
|
||||||
openParam: {
|
openParam: {
|
||||||
type: String
|
type: String
|
||||||
|
},
|
||||||
|
storId: {
|
||||||
|
type: String
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -132,8 +135,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
[CRUD.HOOK.beforeRefresh]() {
|
||||||
|
this.crud.query.stor_id = this.storId
|
||||||
|
},
|
||||||
open() {
|
open() {
|
||||||
crudUserStor.getSect({ 'stor_id': '' }).then(res => {
|
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
|
||||||
this.sects = res.content
|
this.sects = res.content
|
||||||
})
|
})
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -228,7 +228,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<AddDtl :dialog-show.sync="dtlShow" @tableChanged="tableChanged" />
|
<AddDtl :dialog-show.sync="dtlShow" :stor-id="storId" @tableChanged="tableChanged" />
|
||||||
<StructDiv ref="child" :dialog-show.sync="structShow" @tableChanged="structChanged" />
|
<StructDiv ref="child" :dialog-show.sync="structShow" @tableChanged="structChanged" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
@@ -274,6 +274,7 @@ export default {
|
|||||||
structShow2: false,
|
structShow2: false,
|
||||||
flagnow: false,
|
flagnow: false,
|
||||||
nowrow: {},
|
nowrow: {},
|
||||||
|
storId: null,
|
||||||
nowindex: '',
|
nowindex: '',
|
||||||
storlist: [],
|
storlist: [],
|
||||||
invtypelist: [],
|
invtypelist: [],
|
||||||
@@ -351,6 +352,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
async queryDtl() {
|
async queryDtl() {
|
||||||
|
if (!this.form.stor_id) {
|
||||||
|
return this.crud.notify('请先选择仓库!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
}
|
||||||
|
this.storId = this.form.stor_id
|
||||||
this.dtlShow = true
|
this.dtlShow = true
|
||||||
},
|
},
|
||||||
async queryStruct(index, row) {
|
async queryStruct(index, row) {
|
||||||
|
|||||||
@@ -123,6 +123,9 @@ export default {
|
|||||||
},
|
},
|
||||||
openParam: {
|
openParam: {
|
||||||
type: String
|
type: String
|
||||||
|
},
|
||||||
|
storId: {
|
||||||
|
type: String
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dicts: ['ST_QUALITY_SCODE', 'ST_IVT_LEVEL', 'is_usable'],
|
dicts: ['ST_QUALITY_SCODE', 'ST_IVT_LEVEL', 'is_usable'],
|
||||||
@@ -147,8 +150,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
[CRUD.HOOK.beforeRefresh]() {
|
||||||
|
this.crud.query.stor_id = this.storId
|
||||||
|
},
|
||||||
open() {
|
open() {
|
||||||
crudUserStor.getSect({ 'stor_id': '' }).then(res => {
|
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
|
||||||
this.sects = res.content
|
this.sects = res.content
|
||||||
})
|
})
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
Reference in New Issue
Block a user