Commit d7a88dab authored by renjintao's avatar renjintao

material

parent 6398c4f9
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem :label="l('creator')"> <FormItem :label="l('creator')">
<User :value="entity.creator"></User> <User :value="creatorUserId"></User>
<label slot="append" v-if="false">{{entity.creatorUserId}}</label>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
...@@ -189,8 +188,8 @@ export default { ...@@ -189,8 +188,8 @@ export default {
objList.storeId = data.storeId objList.storeId = data.storeId
objList.storeTitle = data.storeTitle objList.storeTitle = data.storeTitle
objList.materialType = 2 objList.materialType = 2
objList.creator = this.entity.creator objList.creator = this.creator
objList.creatorUserId = this.entity.creatorUserId objList.creatorUserId = this.creatorUserId
this.listUp.push(objList) this.listUp.push(objList)
} }
}) })
...@@ -201,8 +200,8 @@ export default { ...@@ -201,8 +200,8 @@ export default {
storeTitle: this.conditions.storeTitle.value, storeTitle: this.conditions.storeTitle.value,
remark: this.entity.remark, remark: this.entity.remark,
materialType: 2, materialType: 2,
creator: this.entity.creator, creator: this.creator,
creatorUserId: this.entity.creatorUserId creatorUserId: this.creatorUserId
}, },
item: this.listUp item: this.listUp
} }
......
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem :label="l('creator')"> <FormItem :label="l('creator')">
<User :value="entity.creator"></User> <User :value="creatorUserId"></User>
<label slot="append" v-if="false">{{entity.creatorUserId}}</label>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
...@@ -167,6 +166,7 @@ export default { ...@@ -167,6 +166,7 @@ export default {
created() { created() {
this.creator = this.$store.state.userInfo.name this.creator = this.$store.state.userInfo.name
this.creatorUserId = this.$store.state.userInfo.userId this.creatorUserId = this.$store.state.userInfo.userId
alert(this.creatorUserId)
}, },
methods: { methods: {
handleSubmit() { handleSubmit() {
...@@ -181,8 +181,8 @@ export default { ...@@ -181,8 +181,8 @@ export default {
objList.storeId = data.storeId objList.storeId = data.storeId
objList.storeTitle = data.storeTitle objList.storeTitle = data.storeTitle
objList.materialType = 1 objList.materialType = 1
objList.creator = this.entity.creator objList.creator = this.creator
objList.creatorUserId = this.entity.creatorUserId objList.creatorUserId = this.creatorUserId
this.listUp.push(objList) this.listUp.push(objList)
} }
}) })
...@@ -193,8 +193,8 @@ export default { ...@@ -193,8 +193,8 @@ export default {
storeTitle: this.conditions.storeTitle.value, storeTitle: this.conditions.storeTitle.value,
remark: this.entity.remark, remark: this.entity.remark,
materialType: 1, materialType: 1,
creator: this.entity.creator, creator: this.creator,
creatorUserId: this.entity.creatorUserId creatorUserId: this.creatorUserId
}, },
item: this.listUp item: this.listUp
} }
......
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem :label="l('creator')"> <FormItem :label="l('creator')">
<User :value="entity.creator"></User> <User :value="creatorUserId"></User>
<label slot="append" v-if="false">{{entity.creatorUserId}}</label>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
...@@ -182,8 +181,8 @@ export default { ...@@ -182,8 +181,8 @@ export default {
objList.storeId = data.storeId objList.storeId = data.storeId
objList.storeTitle = data.storeTitle objList.storeTitle = data.storeTitle
objList.materialType = 3 objList.materialType = 3
objList.creator = this.entity.creator objList.creator = this.creator
objList.creatorUserId = this.entity.creatorUserId objList.creatorUserId = this.creatorUserId
this.listUp.push(objList) this.listUp.push(objList)
} }
}) })
...@@ -194,8 +193,8 @@ export default { ...@@ -194,8 +193,8 @@ export default {
storeTitle: this.conditions.storeTitle.value, storeTitle: this.conditions.storeTitle.value,
remark: this.entity.remark, remark: this.entity.remark,
materialType: 3, materialType: 3,
creator: this.entity.creator, creator: this.creator,
creatorUserId: this.entity.creatorUserId creatorUserId: this.creatorUserId
}, },
item: this.listUp item: this.listUp
} }
......
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