@@ -50,8 +50,15 @@
}
},
watch: {
- userId (value) {
- this.value = value
+ // userId (value) {
+ // this.value = value
+ // }
+ userId:{
+ immediate:true,
+ handler(newUserId){
+ this.value = newUserId
+ this.checkItem(newUserId)
+ }
mounted () {
@@ -25,10 +25,18 @@ export default {
event: 'userSelected'
- // 检查缺失item
- this.checkItem(value)
+ // console.log('userId变化:' + value)
+ // // 检查缺失item
+ // this.checkItem(value)
data () {
@@ -51,9 +51,16 @@ export default {
- userIds (value) {
- this.getList()
+ // userIds (value) {
+ // this.getList()
+ userIds:{
+ handler(newUserIds){
+ this.value = newUserIds
+ this.getList()
@@ -157,6 +157,7 @@
components: {StockOrderInbound, UserComponent, StockOrderOutbound, Detail},
created () {
this.optionsState = this.$store.state.common.approveStates
+ console.log(this.dataForm)
this.queryData()
@@ -199,6 +200,8 @@
this.detailVisible = false
queryData () {
+ this.dataForm.userId = this.$store.state.user.id
+
this.pageIndex = 1
this.getDataList()