|
@@ -210,9 +210,9 @@ export default {
|
|
|
params.Family = this.firmId;
|
|
|
params.Category = this.category.deviceId;
|
|
|
if (newData[i].Checked) {//同时创建资产
|
|
|
- await createPropertyData(params, async res => {
|
|
|
- params.PropertyId = res.Id
|
|
|
- await createEquip(params, res => {
|
|
|
+ await createPropertyData([params], async res => {
|
|
|
+ params.PropertyId = res.EntityList[0].EquipID
|
|
|
+ await createEquip([params], res => {
|
|
|
if (i == newData.length - 1) {
|
|
|
this.$router.push({
|
|
|
path: "/ledger/facility",
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
} else {
|
|
|
- await createEquip(params, res => {
|
|
|
+ await createEquip([params], res => {
|
|
|
if (i == newData.length - 1) {
|
|
|
this.$router.push({
|
|
|
path: "/ledger/partsmanage",
|