|
@@ -22,8 +22,13 @@
|
|
<!-- 二维码弹窗 -->
|
|
<!-- 二维码弹窗 -->
|
|
<qrcode :dialog="myDialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>
|
|
<qrcode :dialog="myDialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>
|
|
<!-- 型号弹窗 -->
|
|
<!-- 型号弹窗 -->
|
|
- <firm :mess="{deviceId: deviceType.assetType}" :firmDataType="firmDataType" ref="firm" @changeFirm="firmChange"
|
|
|
|
- :dialog="myDialog"></firm>
|
|
|
|
|
|
+ <firm
|
|
|
|
+ :mess="{deviceId: deviceType.assetType}"
|
|
|
|
+ :firmDataType="firmDataType"
|
|
|
|
+ ref="firm"
|
|
|
|
+ @changeFirm="firmChange"
|
|
|
|
+ :dialog="myDialog"
|
|
|
|
+ ></firm>
|
|
<!-- 供应商合同弹窗 -->
|
|
<!-- 供应商合同弹窗 -->
|
|
<supply-dialog ref="supply" @change="supplyChange" :id="id" :dialog="myDialog"/>
|
|
<supply-dialog ref="supply" @change="supplyChange" :id="id" :dialog="myDialog"/>
|
|
<!-- 供应商弹窗 -->
|
|
<!-- 供应商弹窗 -->
|
|
@@ -31,21 +36,39 @@
|
|
|
|
|
|
<guarantee-dialog :id="id" ref="guarantee" @change="guaranteeChange" :dialog="myDialog"/>
|
|
<guarantee-dialog :id="id" ref="guarantee" @change="guaranteeChange" :dialog="myDialog"/>
|
|
<!-- 上传文件-->
|
|
<!-- 上传文件-->
|
|
- <upload-files-dialog :read="onlyRead ? true : false"
|
|
|
|
- ref="upload"
|
|
|
|
- @changeFile="fileChange"
|
|
|
|
- :keysArr="filesArr"
|
|
|
|
- :firmDataType="firmDataType"
|
|
|
|
- :information="information"
|
|
|
|
- :infoType="infoType"
|
|
|
|
- :dialog="myDialog"/>
|
|
|
|
|
|
+ <upload-files-dialog
|
|
|
|
+ :read="onlyRead ? true : false"
|
|
|
|
+ ref="upload"
|
|
|
|
+ @changeFile="fileChange"
|
|
|
|
+ :keysArr="filesArr"
|
|
|
|
+ :firmDataType="firmDataType"
|
|
|
|
+ :information="information"
|
|
|
|
+ :infoType="infoType"
|
|
|
|
+ :dialog="myDialog"
|
|
|
|
+ />
|
|
<!-- 上传图片-->
|
|
<!-- 上传图片-->
|
|
- <upload-img-dialog :read="onlyRead ? true : false" @changeFile="imgChange" :keysArr="imgsArr" :dialog="myDialog"/>
|
|
|
|
|
|
+ <upload-img-dialog
|
|
|
|
+ :read="onlyRead ? true : false"
|
|
|
|
+ @changeFile="imgChange"
|
|
|
|
+ :keysArr="imgsArr"
|
|
|
|
+ :dialog="myDialog"
|
|
|
|
+ :firmDataType="firmDataType"
|
|
|
|
+ :information="information"
|
|
|
|
+ :infoType="infoType"
|
|
|
|
+ />
|
|
<!-- 维修商信息-->
|
|
<!-- 维修商信息-->
|
|
<maintainer-dialog @changeMaintainer="changeMaintainer" :firmDataType="firmDataType" ref="maintainer"
|
|
<maintainer-dialog @changeMaintainer="changeMaintainer" :firmDataType="firmDataType" ref="maintainer"
|
|
:dialog="myDialog"/>
|
|
:dialog="myDialog"/>
|
|
<insurer-dialog @changeInsurer="changeInsurer" :firmDataType="firmDataType" ref="insurer" :dialog="myDialog"/>
|
|
<insurer-dialog @changeInsurer="changeInsurer" :firmDataType="firmDataType" ref="insurer" :dialog="myDialog"/>
|
|
- <pic-dialog :read="onlyRead ? true : false" :dialog="myDialog" :keysArr="picsArr" @change="changePics"/>
|
|
|
|
|
|
+ <pic-dialog
|
|
|
|
+ :read="onlyRead ? true : false"
|
|
|
|
+ :dialog="myDialog"
|
|
|
|
+ :keysArr="picsArr"
|
|
|
|
+ @change="changePics"
|
|
|
|
+ :firmDataType="firmDataType"
|
|
|
|
+ :information="information"
|
|
|
|
+ :infoType="infoType"
|
|
|
|
+ />
|
|
<div class=" middle_sty" style="height: 91%; text-align:center" v-show="!mess.deviceId && (!tableData || !tableData.length)">
|
|
<div class=" middle_sty" style="height: 91%; text-align:center" v-show="!mess.deviceId && (!tableData || !tableData.length)">
|
|
<p>
|
|
<p>
|
|
<i class="icon-wushuju iconfont"></i>
|
|
<i class="icon-wushuju iconfont"></i>
|
|
@@ -101,9 +124,9 @@
|
|
:allObject="allObject"
|
|
:allObject="allObject"
|
|
:page="batchPage"
|
|
:page="batchPage"
|
|
:information="information"
|
|
:information="information"
|
|
- @deviceList="deviceList"
|
|
|
|
@getAllData="getAllData"
|
|
@getAllData="getAllData"
|
|
@multiple="multiple"
|
|
@multiple="multiple"
|
|
|
|
+ @upDataDevice="upDataDevice"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -115,6 +138,7 @@
|
|
getEquipBelongs,
|
|
getEquipBelongs,
|
|
getEquipTableCon,
|
|
getEquipTableCon,
|
|
queryEquip,
|
|
queryEquip,
|
|
|
|
+ queryUpdate,
|
|
updateEquip
|
|
updateEquip
|
|
} from "@/api/scan/request";
|
|
} from "@/api/scan/request";
|
|
|
|
|
|
@@ -185,6 +209,9 @@ export default {
|
|
// return !(!this.onlyRead && this.copyMain)
|
|
// return !(!this.onlyRead && this.copyMain)
|
|
return !(!this.onlyRead && this.page.total > 1)
|
|
return !(!this.onlyRead && this.page.total > 1)
|
|
},
|
|
},
|
|
|
|
+ batchDialogShow() {
|
|
|
|
+ return this.$refs.batchDialogs.batchDialog
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -263,7 +290,7 @@ export default {
|
|
code: 'LedgerParam.PhotoDoc.Archive',
|
|
code: 'LedgerParam.PhotoDoc.Archive',
|
|
num: 14
|
|
num: 14
|
|
},
|
|
},
|
|
- checkPoint: {
|
|
|
|
|
|
+ checkReport: {
|
|
CheckReport: [],//安装质检报告
|
|
CheckReport: [],//安装质检报告
|
|
name: '安装质检报告',
|
|
name: '安装质检报告',
|
|
code: 'LedgerParam.Siteinstall.CheckReport',
|
|
code: 'LedgerParam.Siteinstall.CheckReport',
|
|
@@ -390,6 +417,12 @@ export default {
|
|
let params = {
|
|
let params = {
|
|
"Cascade": [
|
|
"Cascade": [
|
|
{
|
|
{
|
|
|
|
+ "Name": "property",
|
|
|
|
+ "Projection": [
|
|
|
|
+ "Family", "EquipLocalName", "EquipLocalID", "EquipID", "CodeType"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
"Name": "building",
|
|
"Name": "building",
|
|
"Projection": [
|
|
"Projection": [
|
|
"BuildLocalName", "BuildName", "BuildID"
|
|
"BuildLocalName", "BuildName", "BuildID"
|
|
@@ -800,7 +833,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 接受维护信息传来的code,显示弹窗
|
|
// 接受维护信息传来的code,显示弹窗
|
|
- fourVendors(code,) {
|
|
|
|
|
|
+ fourVendors(code) {
|
|
switch (code) {
|
|
switch (code) {
|
|
//品牌型号弹窗
|
|
//品牌型号弹窗
|
|
case 'DPManufacturerID':
|
|
case 'DPManufacturerID':
|
|
@@ -819,59 +852,64 @@ export default {
|
|
case 'DPInsurerID':
|
|
case 'DPInsurerID':
|
|
this.myDialog.insurer = true;
|
|
this.myDialog.insurer = true;
|
|
break;
|
|
break;
|
|
- //安装照片--安装图纸--设备铭牌照片--设备图纸
|
|
|
|
- case 'LedgerParam.Siteinstall.InstallPic':
|
|
|
|
- case 'LedgerParam.Siteinstall.InstallDrawing':
|
|
|
|
- case 'LedgerParam.PhotoDoc.Nameplate':
|
|
|
|
- case 'LedgerParam.PhotoDoc.Drawing':
|
|
|
|
- this.myDialog.uploadImgs = true;
|
|
|
|
- break;
|
|
|
|
- //设备照片
|
|
|
|
- case 'LedgerParam.PhotoDoc.Pic':
|
|
|
|
- this.myDialog.pic = true;
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
multiple(val) {
|
|
multiple(val) {
|
|
switch (val) {
|
|
switch (val) {
|
|
- //保险文件--设备文档--安装质检报告
|
|
|
|
|
|
+ //设备文档--安装质检报告--保险文件
|
|
case 'archive':
|
|
case 'archive':
|
|
let adata = this.information.archive.Archive;
|
|
let adata = this.information.archive.Archive;
|
|
this.filesArr = adata ? adata : [];
|
|
this.filesArr = adata ? adata : [];
|
|
- this.infoType = 'archive'
|
|
|
|
- debugger
|
|
|
|
|
|
+ this.infoType = 'archive';
|
|
this.myDialog.uploadFiles = true;
|
|
this.myDialog.uploadFiles = true;
|
|
break;
|
|
break;
|
|
- case 'checkPoint':
|
|
|
|
- let cdata = this.information.checkPoint.CheckReport;
|
|
|
|
|
|
+ case 'checkReport':
|
|
|
|
+ let cdata = this.information.checkReport.CheckReport;
|
|
this.filesArr = cdata ? cdata : [];
|
|
this.filesArr = cdata ? cdata : [];
|
|
- this.infoType = 'checkPoint'
|
|
|
|
- debugger
|
|
|
|
|
|
+ this.infoType = 'checkReport'
|
|
this.myDialog.uploadFiles = true;
|
|
this.myDialog.uploadFiles = true;
|
|
break;
|
|
break;
|
|
case 'insuranceFile':
|
|
case 'insuranceFile':
|
|
let idata = this.information.insuranceFile.InsuranceFile;
|
|
let idata = this.information.insuranceFile.InsuranceFile;
|
|
this.filesArr = idata ? idata : [];
|
|
this.filesArr = idata ? idata : [];
|
|
- this.infoType = 'insuranceFile'
|
|
|
|
|
|
+ this.infoType = 'insuranceFile';
|
|
this.myDialog.uploadFiles = true;
|
|
this.myDialog.uploadFiles = true;
|
|
break;
|
|
break;
|
|
//安装照片--安装图纸--设备铭牌照片--设备图纸
|
|
//安装照片--安装图纸--设备铭牌照片--设备图纸
|
|
- case 'LedgerParam.Siteinstall.InstallPic':
|
|
|
|
- case 'LedgerParam.Siteinstall.InstallDrawing':
|
|
|
|
- case 'LedgerParam.PhotoDoc.Nameplate':
|
|
|
|
- case 'LedgerParam.PhotoDoc.Drawing':
|
|
|
|
|
|
+ case 'installPic':
|
|
|
|
+ let insData = this.information.installPic.InstallPic;
|
|
|
|
+ this.imgsArr = insData ? insData : [];
|
|
|
|
+ this.infoType = 'installPic';
|
|
|
|
+ this.myDialog.uploadImgs = true;
|
|
|
|
+ break;
|
|
|
|
+ case 'installDrawing':
|
|
|
|
+ let drawData = this.information.installDrawing.InstallDrawing;
|
|
|
|
+ this.imgsArr = drawData ? drawData : [];
|
|
|
|
+ this.infoType = 'installDrawing';
|
|
|
|
+ this.myDialog.uploadImgs = true;
|
|
|
|
+ break;
|
|
|
|
+ case 'nameplate':
|
|
|
|
+ let nDate = this.information.nameplate.Nameplate;
|
|
|
|
+ this.imgsArr = nDate ? nDate : [];
|
|
|
|
+ this.infoType = 'nameplate';
|
|
|
|
+ this.myDialog.uploadImgs = true;
|
|
|
|
+ break;
|
|
|
|
+ case 'drawing':
|
|
|
|
+ let dDate = this.information.drawing.Drawing;
|
|
|
|
+ this.imgsArr = dDate ? dDate : [];
|
|
|
|
+ this.infoType = 'drawing';
|
|
this.myDialog.uploadImgs = true;
|
|
this.myDialog.uploadImgs = true;
|
|
break;
|
|
break;
|
|
//设备照片
|
|
//设备照片
|
|
- case 'LedgerParam.PhotoDoc.Pic':
|
|
|
|
|
|
+ case 'pic':
|
|
|
|
+ let picData = this.information.pic.Pic;
|
|
|
|
+ this.picsArr = picData ? picData : [];
|
|
|
|
+ this.infoType = 'pic';
|
|
this.myDialog.pic = true;
|
|
this.myDialog.pic = true;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- deviceList(data) {
|
|
|
|
- console.log(data,'我是单项传来的单项值')
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
//获取到了正确的信息
|
|
//获取到了正确的信息
|
|
getInfors(infos, row, el) {
|
|
getInfors(infos, row, el) {
|
|
let val = this.hot.colToProp(row.col);
|
|
let val = this.hot.colToProp(row.col);
|
|
@@ -1050,10 +1088,13 @@ export default {
|
|
//如果选择供应商之后
|
|
//如果选择供应商之后
|
|
supplierChange(data, type) {
|
|
supplierChange(data, type) {
|
|
if (type === 'dialog') {
|
|
if (type === 'dialog') {
|
|
|
|
+ // let SupplyPurchase = {
|
|
|
|
+ // SupplierWeb: data.website,
|
|
|
|
+ // Supplier: data.name
|
|
|
|
+ // }
|
|
|
|
+ // let firm = {SupplyPurchase, num: 8}
|
|
let firm = {...data, num: 8}
|
|
let firm = {...data, num: 8}
|
|
this.firmName = firm
|
|
this.firmName = firm
|
|
- console.log(data, '供应商')
|
|
|
|
- // this.maintenanceList.supplier = data
|
|
|
|
} else {
|
|
} else {
|
|
tools.setDataForKey(this.tableData[this.row], "DPSupplierID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "DPSupplierID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.Supplier", data.name)
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.Supplier", data.name)
|
|
@@ -1087,7 +1128,12 @@ export default {
|
|
//选择型号修改
|
|
//选择型号修改
|
|
firmChange(data, type) {
|
|
firmChange(data, type) {
|
|
if (type === 'dialog') { // 如果是批量信息维护
|
|
if (type === 'dialog') { // 如果是批量信息维护
|
|
- let firm = {...data, num: 2, name: `${data.venderName}/${data.brand}/${data.name}`}
|
|
|
|
|
|
+ let firm = {
|
|
|
|
+ ...data,
|
|
|
|
+ num: 2,
|
|
|
|
+ Specification: data.name,
|
|
|
|
+ name: `${data.venderName}/${data.brandName}/${data.name}`
|
|
|
|
+ }
|
|
this.firmName = firm //批量维护dialog显示对象的字段
|
|
this.firmName = firm //批量维护dialog显示对象的字段
|
|
} else { //如果是表格操作
|
|
} else { //如果是表格操作
|
|
tools.setDataForKey(this.tableData[this.row], "DPManufacturerID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "DPManufacturerID", data.venderId)
|
|
@@ -1153,21 +1199,30 @@ export default {
|
|
if (type === 'dialog') {
|
|
if (type === 'dialog') {
|
|
this.information = keys
|
|
this.information = keys
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log(keys, 'file keys')
|
|
this.setDataToMain(keys, this.messKey, this.row);
|
|
this.setDataToMain(keys, this.messKey, this.row);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//上传图片弹窗触发事件
|
|
//上传图片弹窗触发事件
|
|
- imgChange(keys) {
|
|
|
|
- console.log(keys, '上传图片返回的keys')
|
|
|
|
- this.setDataToMain(keys, this.messKey, this.row);
|
|
|
|
|
|
+ imgChange(keys, type) {
|
|
|
|
+ if (type === 'dialog') {
|
|
|
|
+ this.information = keys
|
|
|
|
+ } else {
|
|
|
|
+ this.setDataToMain(keys, this.messKey, this.row);
|
|
|
|
+
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//关联系统更改
|
|
//关联系统更改
|
|
changeSystemType(data) {
|
|
changeSystemType(data) {
|
|
tools.setDataForKey(this.tableData[this.row], "LinkSystem", data)
|
|
tools.setDataForKey(this.tableData[this.row], "LinkSystem", data)
|
|
},
|
|
},
|
|
//设备图片弹窗改变事件
|
|
//设备图片弹窗改变事件
|
|
- changePics(keys) {
|
|
|
|
- this.setDataToMain(keys, this.messKey, this.row);
|
|
|
|
|
|
+ changePics(keys, type) {
|
|
|
|
+ if (type === 'dialog') {
|
|
|
|
+ this.information = keys
|
|
|
|
+ } else {
|
|
|
|
+ this.setDataToMain(keys, this.messKey, this.row);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
utilToKey(key, name, data, messName) {
|
|
utilToKey(key, name, data, messName) {
|
|
if (key == name) {
|
|
if (key == name) {
|
|
@@ -1192,6 +1247,22 @@ export default {
|
|
Batch() {
|
|
Batch() {
|
|
this.firmDataType = 'dialog'
|
|
this.firmDataType = 'dialog'
|
|
this.$refs.batchDialogs.batchDialog = true
|
|
this.$refs.batchDialogs.batchDialog = true
|
|
|
|
+ },
|
|
|
|
+ upDataDevice(type, data1, data2) {
|
|
|
|
+ let param = {Content: data1}
|
|
|
|
+ let param1 = {Content: data2}
|
|
|
|
+ if (type === 1) { //增量
|
|
|
|
+ queryUpdate(param1, res => {
|
|
|
|
+ })
|
|
|
|
+ updateEquip(param, res => {
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ if (type === 2) {//覆盖
|
|
|
|
+ updateEquip(param, res => {
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ this.getTableData()
|
|
|
|
+ this.getAllData()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|