|
@@ -46,6 +46,19 @@
|
|
<!-- <dialog-assets :assetType="[this.mess.deviceId]" @close="closeDialog" ref="assets" v-if="myDialog.addDevice" :dialog="myDialog" ></dialog-assets> -->
|
|
<!-- <dialog-assets :assetType="[this.mess.deviceId]" @close="closeDialog" ref="assets" v-if="myDialog.addDevice" :dialog="myDialog" ></dialog-assets> -->
|
|
<details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
|
|
<details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
|
|
<look-pic :dialog="myDialog" :keysArr="picsArr"></look-pic>
|
|
<look-pic :dialog="myDialog" :keysArr="picsArr"></look-pic>
|
|
|
|
+ <!-- 不支持的输入方式 -->
|
|
|
|
+ <el-dialog title="临时维护信息点" :visible.sync="myDialog.update" @close="handleCloseUpdate" width="670px">
|
|
|
|
+ <el-row>
|
|
|
|
+ 该信息点未定义对应组件,现在维护数据不确定后续是否可用。如确实需要维护,请点击<el-link @click="updateInputShow = true" type="primary" :underline="false">继续维护</el-link>。
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row style="margin-top:20px;" v-show="updateInputShow">
|
|
|
|
+ <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 8}" placeholder="请输入内容" v-model="updateInput"></el-input>
|
|
|
|
+ </el-row>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="myDialog.update = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="handleClickUpdate">确 认</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
<!-- 新增资产 -->
|
|
<!-- 新增资产 -->
|
|
<el-dialog class="add-assets" :title="showAddByDie?'未关联资产的设备批量创建资产':'确定新增资产类型'" @close="showAddByDie = false" :visible.sync="myDialog.addDevice" width="670px">
|
|
<el-dialog class="add-assets" :title="showAddByDie?'未关联资产的设备批量创建资产':'确定新增资产类型'" @close="showAddByDie = false" :visible.sync="myDialog.addDevice" width="670px">
|
|
<el-row>
|
|
<el-row>
|
|
@@ -165,6 +178,7 @@ export default {
|
|
details: false,//详情页
|
|
details: false,//详情页
|
|
changeRea: false,//关联资产
|
|
changeRea: false,//关联资产
|
|
lookPic: false,//图片查看
|
|
lookPic: false,//图片查看
|
|
|
|
+ update: false,//临时维护信息点
|
|
},
|
|
},
|
|
row: null, //被修改的row
|
|
row: null, //被修改的row
|
|
filesArr: [], //保存临时的文件key
|
|
filesArr: [], //保存临时的文件key
|
|
@@ -192,7 +206,13 @@ export default {
|
|
floorId:'',
|
|
floorId:'',
|
|
Family:''
|
|
Family:''
|
|
},
|
|
},
|
|
- dieNum: 0 // 查询设备部件数量
|
|
|
|
|
|
+ dieNum: 0, // 查询设备部件数量
|
|
|
|
+ inputMap: {
|
|
|
|
+ flowBuild: 'D1'
|
|
|
|
+ }, //信息点和输入方式映射表
|
|
|
|
+ updateInputShow: false, //是否显示临时维护输入框
|
|
|
|
+ updateInfoPoint: '',//临时维护信息点
|
|
|
|
+ updateInput: '', //临时维护信息点值
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -211,6 +231,11 @@ export default {
|
|
};
|
|
};
|
|
getDataDictionary(params, res => {
|
|
getDataDictionary(params, res => {
|
|
this.tableHeader = res.Content;
|
|
this.tableHeader = res.Content;
|
|
|
|
+ this.tableHeader.forEach(item => {
|
|
|
|
+ if(item.Path && item.InputMode){
|
|
|
|
+ this.inputMap[item.Path] = item.InputMode
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.getTableData()
|
|
this.getTableData()
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -675,6 +700,7 @@ export default {
|
|
//获取到了正确的信息
|
|
//获取到了正确的信息
|
|
getInfors(infos, row, el) {
|
|
getInfors(infos, row, el) {
|
|
let val = this.hot.colToProp(row.col);
|
|
let val = this.hot.colToProp(row.col);
|
|
|
|
+ let inputMode = this.inputMap[val];
|
|
this.row = row.row;
|
|
this.row = row.row;
|
|
this.messKey = val;
|
|
this.messKey = val;
|
|
switch (val) {
|
|
switch (val) {
|
|
@@ -682,7 +708,7 @@ export default {
|
|
case 'caozuo':
|
|
case 'caozuo':
|
|
// window.open(`http://adm.sagacloud.cn:8058/spread?id=${infos.EquipID}&pid=${this.projectId}&secret=${this.secret}`,"_blank")
|
|
// window.open(`http://adm.sagacloud.cn:8058/spread?id=${infos.EquipID}&pid=${this.projectId}&secret=${this.secret}`,"_blank")
|
|
this.$message("开发中...")
|
|
this.$message("开发中...")
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//资产二维码图片
|
|
//资产二维码图片
|
|
case 'EquipQRCode':
|
|
case 'EquipQRCode':
|
|
this.qrcodeUrl = this.tableData[row.row].EquipQRCode;
|
|
this.qrcodeUrl = this.tableData[row.row].EquipQRCode;
|
|
@@ -691,7 +717,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$message("此资产没有资产二维码");
|
|
this.$message("此资产没有资产二维码");
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//关联系统
|
|
//关联系统
|
|
case 'LinkSystem':
|
|
case 'LinkSystem':
|
|
if (!this.onlyRead) {
|
|
if (!this.onlyRead) {
|
|
@@ -699,37 +725,37 @@ export default {
|
|
this.systemList = this.tableData[row.row].LinkSystem || [];
|
|
this.systemList = this.tableData[row.row].LinkSystem || [];
|
|
this.myDialog.systemType = true;
|
|
this.myDialog.systemType = true;
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//关联资产
|
|
//关联资产
|
|
case 'LinkEquipLocalName':
|
|
case 'LinkEquipLocalName':
|
|
if (this.linkNameFalg) {
|
|
if (this.linkNameFalg) {
|
|
this.myDialog.changeRea = true;
|
|
this.myDialog.changeRea = true;
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//品牌型号弹窗
|
|
//品牌型号弹窗
|
|
case 'DPManufacturerID':
|
|
case 'DPManufacturerID':
|
|
if (!this.onlyRead) {
|
|
if (!this.onlyRead) {
|
|
this.myDialog.firm = true;
|
|
this.myDialog.firm = true;
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//供应商信息弹窗
|
|
//供应商信息弹窗
|
|
case 'DPSupplierID':
|
|
case 'DPSupplierID':
|
|
if (!this.onlyRead) {
|
|
if (!this.onlyRead) {
|
|
this.myDialog.supplier = true;
|
|
this.myDialog.supplier = true;
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//维修商信息弹窗
|
|
//维修商信息弹窗
|
|
case 'DPMaintainerID':
|
|
case 'DPMaintainerID':
|
|
if (!this.onlyRead) {
|
|
if (!this.onlyRead) {
|
|
this.myDialog.maintainer = true;
|
|
this.myDialog.maintainer = true;
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//保险公司信息
|
|
//保险公司信息
|
|
case 'DPInsurerID':
|
|
case 'DPInsurerID':
|
|
if (!this.onlyRead) {
|
|
if (!this.onlyRead) {
|
|
this.myDialog.insurer = true;
|
|
this.myDialog.insurer = true;
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//供应合同编号
|
|
//供应合同编号
|
|
case 'LedgerParam.SupplyPurchase.SupplierContractID':
|
|
case 'LedgerParam.SupplyPurchase.SupplierContractID':
|
|
if (!this.onlyRead) {
|
|
if (!this.onlyRead) {
|
|
@@ -745,7 +771,7 @@ export default {
|
|
this.$message("请先选择供应商");
|
|
this.$message("请先选择供应商");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//保险单号
|
|
//保险单号
|
|
case 'LedgerParam.InsuranceDoc.InsuranceNum':
|
|
case 'LedgerParam.InsuranceDoc.InsuranceNum':
|
|
if (!this.onlyRead) {
|
|
if (!this.onlyRead) {
|
|
@@ -761,7 +787,7 @@ export default {
|
|
this.$message("请先选择保险商");
|
|
this.$message("请先选择保险商");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//保险文件--资产文档--安装质检报告
|
|
//保险文件--资产文档--安装质检报告
|
|
case 'LedgerParam.InsuranceDoc.InsuranceFile':
|
|
case 'LedgerParam.InsuranceDoc.InsuranceFile':
|
|
case 'LedgerParam.PhotoDoc.Archive':
|
|
case 'LedgerParam.PhotoDoc.Archive':
|
|
@@ -769,7 +795,7 @@ export default {
|
|
let IPSdata = tools.dataForKey(this.tableData[row.row], val);
|
|
let IPSdata = tools.dataForKey(this.tableData[row.row], val);
|
|
this.filesArr = IPSdata ? IPSdata : [];
|
|
this.filesArr = IPSdata ? IPSdata : [];
|
|
this.myDialog.uploadFiles = true;
|
|
this.myDialog.uploadFiles = true;
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//安装照片--安装图纸--资产铭牌照片--资产图纸
|
|
//安装照片--安装图纸--资产铭牌照片--资产图纸
|
|
case 'LedgerParam.Siteinstall.InstallPic':
|
|
case 'LedgerParam.Siteinstall.InstallPic':
|
|
case 'LedgerParam.Siteinstall.InstallDrawing':
|
|
case 'LedgerParam.Siteinstall.InstallDrawing':
|
|
@@ -778,13 +804,13 @@ export default {
|
|
let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
|
|
let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
|
|
this.imgsArr = SSPPdata ? SSPPdata : [];
|
|
this.imgsArr = SSPPdata ? SSPPdata : [];
|
|
this.myDialog.uploadImgs = true;
|
|
this.myDialog.uploadImgs = true;
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//资产照片
|
|
//资产照片
|
|
case 'LedgerParam.PhotoDoc.Pic':
|
|
case 'LedgerParam.PhotoDoc.Pic':
|
|
let Pdata = tools.dataForKey(this.tableData[row.row], val);
|
|
let Pdata = tools.dataForKey(this.tableData[row.row], val);
|
|
this.picsArr = Pdata ? Pdata : [];
|
|
this.picsArr = Pdata ? Pdata : [];
|
|
this.myDialog.pic = true;
|
|
this.myDialog.pic = true;
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
//包含的部件字段
|
|
//包含的部件字段
|
|
case 'Count':
|
|
case 'Count':
|
|
if (this.onlyRead) {
|
|
if (this.onlyRead) {
|
|
@@ -792,10 +818,29 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$router.push({ path: '/ledger/partsmanage', query: { deviceId: infos.EquipID, typeId: this.mess.deviceId } });
|
|
this.$router.push({ path: '/ledger/partsmanage', query: { deviceId: infos.EquipID, typeId: this.mess.deviceId } });
|
|
}
|
|
}
|
|
- break;
|
|
|
|
|
|
+ return false
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ if (!this.onlyRead && showTools.InputModeArr.indexOf(inputMode) == '-1') {
|
|
|
|
+ this.updateInfoPoint = val
|
|
|
|
+ this.updateInput = tools.dataForKey(this.tableData[row.row], val)
|
|
|
|
+ this.myDialog.update = true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //关闭临时维护弹窗回调
|
|
|
|
+ handleCloseUpdate() {
|
|
|
|
+ this.updateInputShow = false
|
|
|
|
+ this.updateInfoPoint = ''
|
|
|
|
+ this.updateInput = ''
|
|
|
|
+ },
|
|
|
|
+ //更新临时维护信息点
|
|
|
|
+ handleClickUpdate(){
|
|
|
|
+ tools.setDataForKey(this.tableData[this.row], this.updateInfoPoint, this.updateInput)
|
|
|
|
+ this.handleUpdataTable([[this.row, this.updateInfoPoint, null, this.updateInput]], "edit")
|
|
|
|
+ this.updateInputShow = false
|
|
|
|
+ this.myDialog.update = false
|
|
|
|
+ this.updateInput = ''
|
|
},
|
|
},
|
|
//获取被筛选掉的行号
|
|
//获取被筛选掉的行号
|
|
trimmedRows() {
|
|
trimmedRows() {
|