代码更新
This commit is contained in:
@@ -83,13 +83,19 @@ export default {
|
||||
name: 'AddDtl',
|
||||
components: { rrOperation, pagination, DateRangePicker },
|
||||
cruds() {
|
||||
return CRUD({ title: '用户', url: 'api/checkoutbill/addDtl', optShow: {
|
||||
add: false,
|
||||
edit: false,
|
||||
del: false,
|
||||
reset: true,
|
||||
download: false
|
||||
}})
|
||||
return CRUD({
|
||||
title: '用户', url: 'api/checkoutbill/addDtl',
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: false,
|
||||
del: false,
|
||||
reset: true,
|
||||
download: false
|
||||
},
|
||||
query: {
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
mixins: [presenter(), header()],
|
||||
props: {
|
||||
@@ -99,6 +105,9 @@ export default {
|
||||
},
|
||||
openParam: {
|
||||
type: String
|
||||
},
|
||||
storId: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -124,6 +133,7 @@ export default {
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
this.crud.query.mater_type = this.opendtlParam
|
||||
this.crud.query.stor_id = this.storId
|
||||
if (this.openShow) {
|
||||
this.openShow = false
|
||||
return false
|
||||
@@ -133,9 +143,12 @@ export default {
|
||||
},
|
||||
close() {
|
||||
this.crud.resetQuery(false)
|
||||
// 清空grid数据
|
||||
this.crud.data = undefined
|
||||
this.$emit('update:dialogShow', false)
|
||||
},
|
||||
open() {
|
||||
debugger
|
||||
this.crud.query.mater_type = this.opendtlParam
|
||||
// this.crud.toQuery()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user