|
@@ -25,20 +25,23 @@
|
|
<firm :mess="{deviceId: deviceType.assetType}" :firmDataType="firmDataType" ref="firm" @changeFirm="firmChange"
|
|
<firm :mess="{deviceId: deviceType.assetType}" :firmDataType="firmDataType" ref="firm" @changeFirm="firmChange"
|
|
:dialog="myDialog"></firm>
|
|
:dialog="myDialog"></firm>
|
|
<!-- 供应商合同弹窗 -->
|
|
<!-- 供应商合同弹窗 -->
|
|
- <supply-dialog ref="supply" @change="supplyChange" :id="id" :dialog="myDialog"></supply-dialog>
|
|
|
|
|
|
+ <supply-dialog ref="supply" @change="supplyChange" :id="id" :dialog="myDialog"/>
|
|
<!-- 供应商弹窗 -->
|
|
<!-- 供应商弹窗 -->
|
|
- <supplier-dialog ref="supplier" :firmDataType="firmDataType" @changeSupplier="supplierChange"
|
|
|
|
- :dialog="myDialog"></supplier-dialog>
|
|
|
|
|
|
+ <supplier-dialog ref="supplier" :firmDataType="firmDataType" @changeSupplier="supplierChange" :dialog="myDialog"/>
|
|
|
|
|
|
- <guarantee-dialog :id="id" ref="guarantee" @change="guaranteeChange" :dialog="myDialog"></guarantee-dialog>
|
|
|
|
- <upload-files-dialog :read="onlyRead ? true : false" ref="upload" @changeFile="fileChange" :keysArr="filesArr" :dialog="myDialog">
|
|
|
|
- </upload-files-dialog>
|
|
|
|
- <upload-img-dialog :read="onlyRead ? true : false" @changeFile="imgChange" :keysArr="imgsArr" :dialog="myDialog"></upload-img-dialog>
|
|
|
|
|
|
+ <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"
|
|
|
|
+ :fileDataType="fileDataType"
|
|
|
|
+ :dialog="myDialog"/>
|
|
|
|
+ <!-- 上传图片-->
|
|
|
|
+ <upload-img-dialog :read="onlyRead ? true : false" @changeFile="imgChange" :keysArr="imgsArr" :dialog="myDialog"/>
|
|
<!-- 维修商信息-->
|
|
<!-- 维修商信息-->
|
|
<maintainer-dialog @changeMaintainer="changeMaintainer" :firmDataType="firmDataType" ref="maintainer"
|
|
<maintainer-dialog @changeMaintainer="changeMaintainer" :firmDataType="firmDataType" ref="maintainer"
|
|
- :dialog="myDialog"></maintainer-dialog>
|
|
|
|
- <insurer-dialog @changeInsurer="changeInsurer" :firmDataType="firmDataType" ref="insurer" :dialog="myDialog"></insurer-dialog>
|
|
|
|
- <pic-dialog :read="onlyRead ? true : false" :dialog="myDialog" :keysArr="picsArr" @change="changePics"></pic-dialog>
|
|
|
|
|
|
+ :dialog="myDialog"/>
|
|
|
|
+ <insurer-dialog @changeInsurer="changeInsurer" :firmDataType="firmDataType" ref="insurer" :dialog="myDialog"/>
|
|
|
|
+ <pic-dialog :read="onlyRead ? true : false" :dialog="myDialog" :keysArr="picsArr" @change="changePics"/>
|
|
<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>
|
|
@@ -87,7 +90,13 @@
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 维护信息弹窗-->
|
|
<!-- 维护信息弹窗-->
|
|
- <batchDialog ref="batchDialogs" @code="fourVendors" :firmName="firmName" @deviceList="deviceList"/>
|
|
|
|
|
|
+ <batchDialog
|
|
|
|
+ ref="batchDialogs"
|
|
|
|
+ @code="fourVendors"
|
|
|
|
+ :firmName="firmName"
|
|
|
|
+ :fileDataType="fileDataType"
|
|
|
|
+ @deviceList="deviceList"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -165,7 +174,7 @@ export default {
|
|
},
|
|
},
|
|
batchDate() {
|
|
batchDate() {
|
|
return !(!this.onlyRead && this.copyMain)
|
|
return !(!this.onlyRead && this.copyMain)
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -230,7 +239,11 @@ export default {
|
|
updateInput: '', //临时维护信息点值
|
|
updateInput: '', //临时维护信息点值
|
|
firmName: '',//维护信息显示厂家名称
|
|
firmName: '',//维护信息显示厂家名称
|
|
firmDataType: 'row',
|
|
firmDataType: 'row',
|
|
- // maintenanceList: {},//批量信息维护信息统计
|
|
|
|
|
|
+ fileDataType: {},//文件类型
|
|
|
|
+ insuranceDocList: [],//保险文件列表
|
|
|
|
+ deviceDocList: [],//设备文档列表
|
|
|
|
+ qualityDocList: [],//质检报告
|
|
|
|
+
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -508,7 +521,7 @@ export default {
|
|
"filter_by_value",
|
|
"filter_by_value",
|
|
"filter_action_bar"
|
|
"filter_action_bar"
|
|
],
|
|
],
|
|
- contextMenu: {
|
|
|
|
|
|
+ contextMenu: this.onlyRead ? false : {
|
|
items: {
|
|
items: {
|
|
remove_row: {
|
|
remove_row: {
|
|
name: "删除选中设备"
|
|
name: "删除选中设备"
|
|
@@ -674,9 +687,10 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 接受维护信息传来的四大厂商对应code,显示弹窗
|
|
|
|
|
|
+ // 接受维护信息传来的code,显示弹窗
|
|
fourVendors(code) {
|
|
fourVendors(code) {
|
|
- switch (code) {
|
|
|
|
|
|
+ let numCode = code.code
|
|
|
|
+ switch (numCode) {
|
|
//品牌型号弹窗
|
|
//品牌型号弹窗
|
|
case 'DPManufacturerID':
|
|
case 'DPManufacturerID':
|
|
this.dataFirmType = 'dia'
|
|
this.dataFirmType = 'dia'
|
|
@@ -696,7 +710,13 @@ export default {
|
|
break;
|
|
break;
|
|
//保险文件--设备文档--安装质检报告
|
|
//保险文件--设备文档--安装质检报告
|
|
case 'LedgerParam.InsuranceDoc.InsuranceFile':
|
|
case 'LedgerParam.InsuranceDoc.InsuranceFile':
|
|
|
|
+ this.fileDataType = code
|
|
|
|
+ this.myDialog.uploadFiles = true;
|
|
|
|
+ break;
|
|
case 'LedgerParam.PhotoDoc.Archive':
|
|
case 'LedgerParam.PhotoDoc.Archive':
|
|
|
|
+ this.fileDataType = code
|
|
|
|
+ this.myDialog.uploadFiles = true;
|
|
|
|
+ break;
|
|
case 'LedgerParam.Siteinstall.CheckReport':
|
|
case 'LedgerParam.Siteinstall.CheckReport':
|
|
this.myDialog.uploadFiles = true;
|
|
this.myDialog.uploadFiles = true;
|
|
break;
|
|
break;
|
|
@@ -932,11 +952,8 @@ export default {
|
|
//选择型号修改
|
|
//选择型号修改
|
|
firmChange(data, type) {
|
|
firmChange(data, type) {
|
|
if (type === 'dialog') { // 如果是批量信息维护
|
|
if (type === 'dialog') { // 如果是批量信息维护
|
|
- console.log(data, type, '=====')
|
|
|
|
let firm = {...data, num: 2, name: `${data.brand}/${data.name}`}
|
|
let firm = {...data, num: 2, name: `${data.brand}/${data.name}`}
|
|
this.firmName = firm //批量维护dialog显示对象的字段
|
|
this.firmName = firm //批量维护dialog显示对象的字段
|
|
- // this.maintenanceList.firm = data
|
|
|
|
- // console.log(this.maintenanceList, 'array')
|
|
|
|
} else { //如果是表格操作
|
|
} else { //如果是表格操作
|
|
tools.setDataForKey(this.tableData[this.row], "DPManufacturerID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "DPManufacturerID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.EquipManufactor.Brand", data.brand)
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.EquipManufactor.Brand", data.brand)
|
|
@@ -958,7 +975,6 @@ export default {
|
|
if (type === 'dialog') {
|
|
if (type === 'dialog') {
|
|
let firm = {...data, num: 42}
|
|
let firm = {...data, num: 42}
|
|
this.firmName = firm
|
|
this.firmName = firm
|
|
- // this.maintenanceList.insurer = data
|
|
|
|
} else {
|
|
} else {
|
|
tools.setDataForKey(this.tableData[this.row], "DPInsurerID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "DPInsurerID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.Insurer", data.name)
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.Insurer", data.name)
|
|
@@ -978,7 +994,6 @@ export default {
|
|
if (type === 'dialog') {
|
|
if (type === 'dialog') {
|
|
let firm = {...data, num: 35}
|
|
let firm = {...data, num: 35}
|
|
this.firmName = firm
|
|
this.firmName = firm
|
|
- // this.maintenanceList.maintainer = data
|
|
|
|
} else {
|
|
} else {
|
|
tools.setDataForKey(this.tableData[this.row], "DPMaintainerID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "DPMaintainerID", data.venderId)
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.Maintainer", data.name)
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.Maintainer", data.name)
|
|
@@ -999,11 +1014,18 @@ export default {
|
|
this.setDataToMain(val.LinkEquipLocalName, 'LinkEquipLocalName', this.row);
|
|
this.setDataToMain(val.LinkEquipLocalName, 'LinkEquipLocalName', this.row);
|
|
},
|
|
},
|
|
//上传文件弹窗触发事件
|
|
//上传文件弹窗触发事件
|
|
- fileChange(keys) {
|
|
|
|
- this.setDataToMain(keys, this.messKey, this.row);
|
|
|
|
|
|
+ fileChange(keys, type) {
|
|
|
|
+ if (type === 'dialog') {
|
|
|
|
+ let list = keys
|
|
|
|
+ this.fileDataType = list
|
|
|
|
+ this.filesArr = list.img
|
|
|
|
+ } else {
|
|
|
|
+ this.setDataToMain(keys, this.messKey, this.row);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//上传图片弹窗触发事件
|
|
//上传图片弹窗触发事件
|
|
imgChange(keys) {
|
|
imgChange(keys) {
|
|
|
|
+ console.log(keys, '上传图片返回的keys')
|
|
this.setDataToMain(keys, this.messKey, this.row);
|
|
this.setDataToMain(keys, this.messKey, this.row);
|
|
},
|
|
},
|
|
//关联系统更改
|
|
//关联系统更改
|
|
@@ -1060,18 +1082,20 @@ export default {
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="less">
|
|
<style lang="less">
|
|
-.hanson-bar {
|
|
|
|
- height: 40px;
|
|
|
|
- padding: 5px 0;
|
|
|
|
- font-size: 14px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- margin-top: 0;
|
|
|
|
- line-height: 40px;
|
|
|
|
- .iconfont {
|
|
|
|
- font-size: 12px;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-.cancelButtonClass {
|
|
|
|
- width: 180px;
|
|
|
|
|
|
+ .hanson-bar {
|
|
|
|
+ height: 40px;
|
|
|
|
+ padding: 5px 0;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ margin-top: 0;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+
|
|
|
|
+ .iconfont {
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .cancelButtonClass {
|
|
|
|
+ width: 180px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|