|
|
@@ -179,7 +179,7 @@
|
|
|
<el-descriptions-item>
|
|
|
<template slot="label"> 编号 </template>
|
|
|
<el-form-item label-width="0">
|
|
|
- <el-input class="input" v-model="zcInfo.code1"></el-input>
|
|
|
+ <el-input class="input" v-model="zcInfo.codeNumber"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
@@ -869,6 +869,7 @@
|
|
|
this.id = this.$route.query.id;
|
|
|
this.getInfo();
|
|
|
this.title = '编辑设备信息';
|
|
|
+ this.getgys();
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -1021,7 +1022,7 @@
|
|
|
detailPosition: this.positionInfo.detailPosition,
|
|
|
pathIds: `${this.positionInfo.factoryCode},${this.positionInfo.workshopCode},${this.positionInfo.lineCode}`,
|
|
|
pathName: `${this.positionInfo.factoryName},${this.positionInfo.workshopName},${this.positionInfo.lineName}`,
|
|
|
- type: 'PRODUCTION_LINE',
|
|
|
+ type: '1',
|
|
|
num: 1
|
|
|
},
|
|
|
// 文档信息
|
|
|
@@ -1031,12 +1032,22 @@
|
|
|
// 是否启用物联
|
|
|
isIotEnable: this.isIotEnable
|
|
|
// // 扩展字段
|
|
|
+
|
|
|
// extInfoSelf: this.setKz()
|
|
|
};
|
|
|
+ //============================
|
|
|
+ par.extInfo = { ...this.zcInfo };
|
|
|
+ let obj = {};
|
|
|
+ par.extInfoSelf.forEach((item) => {
|
|
|
+ obj[item.key] = item.value;
|
|
|
+ });
|
|
|
+ par.extInfoSelf = obj;
|
|
|
+ //============================
|
|
|
if (this.pageType == 'edit') {
|
|
|
par.id = this.id;
|
|
|
}
|
|
|
this.btnLoading = true;
|
|
|
+ console.log('sasasasa', par);
|
|
|
saveOrEdit(par)
|
|
|
.then((res) => {
|
|
|
this.$message.success('操作成功');
|