|
@@ -72,7 +72,7 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.getUserInfo(true);
|
|
this.getUserInfo(true);
|
|
- console.log(this.setData,'setData')
|
|
|
|
|
|
+ console.log(this.setData, "setData");
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
/**
|
|
/**
|
|
@@ -103,6 +103,7 @@ export default {
|
|
userId: this.setData.userId,
|
|
userId: this.setData.userId,
|
|
goodsId: this.setData.goodsId,
|
|
goodsId: this.setData.goodsId,
|
|
gradeId: this.setData.id,
|
|
gradeId: this.setData.id,
|
|
|
|
+ tenantIdReplace: this.setData.tenantId,
|
|
};
|
|
};
|
|
if (item.type === 3) {
|
|
if (item.type === 3) {
|
|
data.sectionId = item.id;
|
|
data.sectionId = item.id;
|
|
@@ -133,6 +134,7 @@ export default {
|
|
goodsId: this.setData.goodsId,
|
|
goodsId: this.setData.goodsId,
|
|
gradeId: this.setData.id,
|
|
gradeId: this.setData.id,
|
|
orderGoodsId: this.setData.orderGoodsId,
|
|
orderGoodsId: this.setData.orderGoodsId,
|
|
|
|
+ tenantIdReplace: this.setData.tenantId,
|
|
};
|
|
};
|
|
if (item.type === 3) {
|
|
if (item.type === 3) {
|
|
data.sectionId = item.id;
|
|
data.sectionId = item.id;
|
|
@@ -168,6 +170,7 @@ export default {
|
|
goodsId: this.setData.goodsId,
|
|
goodsId: this.setData.goodsId,
|
|
gradeId: this.setData.id,
|
|
gradeId: this.setData.id,
|
|
orderGoodsId: this.setData.orderGoodsId,
|
|
orderGoodsId: this.setData.orderGoodsId,
|
|
|
|
+ tenantIdReplace: this.setData.tenantId,
|
|
};
|
|
};
|
|
if (item.type === 3) {
|
|
if (item.type === 3) {
|
|
data.sectionId = item.id;
|
|
data.sectionId = item.id;
|
|
@@ -192,14 +195,19 @@ export default {
|
|
userId: this.setData.userId,
|
|
userId: this.setData.userId,
|
|
goodsId: this.setData.goodsId,
|
|
goodsId: this.setData.goodsId,
|
|
orderGoodsId: this.setData.orderGoodsId,
|
|
orderGoodsId: this.setData.orderGoodsId,
|
|
|
|
+ tenantIdReplace: this.setData.tenantId,
|
|
})
|
|
})
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
- let data = res.rows[0];
|
|
|
|
- var result = await this.$api.obtainGoods(this.setData.goodsId);
|
|
|
|
- data["fullName"] =
|
|
|
|
- result.data.educationName +
|
|
|
|
- result.data.projectName +
|
|
|
|
- result.data.businessName;
|
|
|
|
|
|
+ let data = res.rows[0] || {};
|
|
|
|
+ if (this.setData.fullName) {
|
|
|
|
+ data["fullName"] = this.setData.fullName;
|
|
|
|
+ } else {
|
|
|
|
+ var result = await this.$api.obtainGoods(this.setData.goodsId);
|
|
|
|
+ data["fullName"] =
|
|
|
|
+ result.data.educationName +
|
|
|
|
+ result.data.projectName +
|
|
|
|
+ result.data.businessName;
|
|
|
|
+ }
|
|
|
|
|
|
data["supervise"] = true;
|
|
data["supervise"] = true;
|
|
this.userData = data;
|
|
this.userData = data;
|
|
@@ -238,6 +246,7 @@ export default {
|
|
userId: this.setData.userId,
|
|
userId: this.setData.userId,
|
|
goodsId: this.setData.goodsId,
|
|
goodsId: this.setData.goodsId,
|
|
orderGoodsId: this.setData.orderGoodsId,
|
|
orderGoodsId: this.setData.orderGoodsId,
|
|
|
|
+ tenantIdReplace: this.setData.tenantId,
|
|
};
|
|
};
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.$api
|
|
this.$api
|