|
@@ -42,7 +42,7 @@
|
|
|
v-show="!mess.deviceId && (!tableData || !tableData.length)">
|
|
|
<p>
|
|
|
<i class="icon-wushuju iconfont"></i>
|
|
|
- 请选择设备族
|
|
|
+ 请选择设备类别
|
|
|
</p>
|
|
|
</div>
|
|
|
|
|
@@ -958,6 +958,8 @@ export default {
|
|
|
arr.map(i => {
|
|
|
if (i.path == val) {
|
|
|
enclosure = i.value;
|
|
|
+ } else {
|
|
|
+ enclosure = []
|
|
|
}
|
|
|
});
|
|
|
return enclosure;
|
|
@@ -967,123 +969,99 @@ export default {
|
|
|
switch (val) {
|
|
|
case "infos.insuranceFile": //保险文件
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.archive": //设备文档
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.checkReport": //安装质检报告
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.maintainManual": //维修保养手册
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.approachingAcceptance": //进场验收单
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.acceptanceReport": //验收报告
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.operationManual": //操作说明书
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.originalCertificate": //原厂证明
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.testReport": //检测报告
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.productCertification": //产品合格证
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.installInstruction": //安装说明书
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.drawing": //设备图纸
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.installDrawing": //安装图纸
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.supplierContract": //供应合同
|
|
|
this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
break;
|
|
|
case "infos.installPic"://安装照片
|
|
|
this.imgsArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadImgs = true;
|
|
|
break;
|
|
|
case "infos.nameplate"://设备铭牌照片
|
|
|
this.imgsArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.uploadImgs = true;
|
|
|
break;
|
|
|
case "infos.pic"://设备照片
|
|
|
this.picsArr = this.forValue(this.newEnclosure, val)
|
|
|
- ? this.forValue(this.newEnclosure, val)
|
|
|
- : [];
|
|
|
this.infoType = val;
|
|
|
this.myDialog.pic = true;
|
|
|
break;
|
|
|
+ case "infos.designIDGraph": //设计工况空调机组处理过程焓湿图(F2)
|
|
|
+ this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
+ this.infoType = val;
|
|
|
+ this.myDialog.uploadFiles = true;
|
|
|
+ break;
|
|
|
+ case "infos.fanCharacterCurve": //风机性能曲线(F1)
|
|
|
+ this.filesArr = this.forValue(this.newEnclosure, val)
|
|
|
+ this.infoType = val;
|
|
|
+ this.myDialog.uploadFiles = true;
|
|
|
+ break;
|
|
|
}
|
|
|
},
|
|
|
getInfors(infos, row, el) {
|
|
@@ -1310,7 +1288,6 @@ export default {
|
|
|
//上传文件弹窗触发事件
|
|
|
fileChange(keys, type, file) {
|
|
|
if (type === "dialog") {
|
|
|
- // this.information = keys
|
|
|
this.newEnclosure.forEach(i => {
|
|
|
if (i.path == keys) {
|
|
|
this.$set(i, "value", file);
|
|
@@ -1324,7 +1301,6 @@ export default {
|
|
|
//上传图片弹窗触发事件
|
|
|
imgChange(keys, type, file) {
|
|
|
if (type === "dialog") {
|
|
|
- // this.information = keys
|
|
|
this.newEnclosure.forEach(i => {
|
|
|
if (i.path == keys) {
|
|
|
this.$set(i, "value", file);
|