|
@@ -14,9 +14,9 @@
|
|
|
<el-option v-for="item in showTypes" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
|
</el-select>
|
|
|
<!-- <el-button size="small" style='width: 80px;' @click="download" icon="iconfont icon-xiazai">下载</el-button> -->
|
|
|
- <el-button size="small" style='width: 80px;' @click="addDevice" icon="iconfont icon-tianjia">添加设备</el-button>
|
|
|
- <el-button size="small" style='width: 80px;' @click="reset" icon="iconfont icon-shuaxin">刷新</el-button>
|
|
|
- <el-button size="small" style='width: 80px;' v-show="!onlyRead" @click="undo" icon="iconfont icon-undo">撤销</el-button>
|
|
|
+ <el-button size="small" style='width: 80px;' @click="addDevice">添加设备</el-button>
|
|
|
+ <el-button size="small" style='width: 80px;' @click="reset">刷新</el-button>
|
|
|
+ <el-button size="small" style='width: 80px;' v-show="!onlyRead" @click="undo">撤销</el-button>
|
|
|
</div>
|
|
|
<!-- 二维码弹窗 -->
|
|
|
<qrcode :dialog="myDialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>
|
|
@@ -54,12 +54,26 @@
|
|
|
</div>
|
|
|
<details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
|
|
|
<!-- 关联的系统 -->
|
|
|
- <system-type :device="mess" :curDevice="curDevice" :dialog="myDialog" :type="onlyRead?'read':'edit'" @change="changeSystemType" :list="systemList"></system-type>
|
|
|
+ <system-type :device="mess" :curDevice="curDevice" :dialog="myDialog" :type="onlyRead?'read':'edit'" @change="changeSystemType"
|
|
|
+ :list="systemList"></system-type>
|
|
|
<!-- 关联资产 -->
|
|
|
<change-rea @changeProperty="changeProperty" :dialog="myDialog" :category="deviceType"></change-rea>
|
|
|
<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 title="确定新增设备的类型" :visible.sync="myDialog.addDevice" width="30%">
|
|
|
+ <el-dialog title="确定新增设备的类型" :visible.sync="myDialog.addDevice" width="670px">
|
|
|
<el-row>
|
|
|
<my-cascader ref="cascader" @change="changeAddType" :all="true"></my-cascader>
|
|
|
</el-row>
|
|
@@ -84,32 +98,33 @@ import {
|
|
|
} from "@/api/scan/request";
|
|
|
|
|
|
|
|
|
-import tools from "@/utils/scan/tools";
|
|
|
+import tools from "@/utils/scan/tools"
|
|
|
import handsonUtils from "@/utils/hasontableUtils"
|
|
|
import showTools from "@/utils/handsontable/notShow"
|
|
|
import text from "@/utils/handsontable/mainText"
|
|
|
-import myCascader from "@/components/ledger/lib/cascader";
|
|
|
+import myCascader from "@/components/ledger/lib/cascader"
|
|
|
+import buildFloor from '@/utils/handsontable/buildFloorData'
|
|
|
|
|
|
-import qrcode from "@/components/ledger/lib/qrcode";
|
|
|
-import firm from "@/components/dialogs/list/firm";
|
|
|
-import supplyDialog from "@/components/dialogs/list/supplyDialog";
|
|
|
-import supplierDialog from "@/components/dialogs/list/supplierDialog";
|
|
|
-import maintainerDialog from "@/components/dialogs/list/maintainerDialog";
|
|
|
-import insurerDialog from "@/components/dialogs/list/insurerDialog";
|
|
|
-import guaranteeDialog from "@/components/dialogs/list/guaranteeDialog";
|
|
|
-import uploadFilesDialog from "@/components/dialogs/list/filesDialog";
|
|
|
-import uploadImgDialog from "@/components/dialogs/list/uploadImgDialog";
|
|
|
+import qrcode from "@/components/ledger/lib/qrcode"
|
|
|
+import firm from "@/components/dialogs/list/firm"
|
|
|
+import supplyDialog from "@/components/dialogs/list/supplyDialog"
|
|
|
+import supplierDialog from "@/components/dialogs/list/supplierDialog"
|
|
|
+import maintainerDialog from "@/components/dialogs/list/maintainerDialog"
|
|
|
+import insurerDialog from "@/components/dialogs/list/insurerDialog"
|
|
|
+import guaranteeDialog from "@/components/dialogs/list/guaranteeDialog"
|
|
|
+import uploadFilesDialog from "@/components/dialogs/list/filesDialog"
|
|
|
+import uploadImgDialog from "@/components/dialogs/list/uploadImgDialog"
|
|
|
import picDialog from "@/components/dialogs/list/picDialog"
|
|
|
import systemType from "@/components/dialogs/list/systemType"
|
|
|
-import myPagination from "@/components/ledger/lib/myPagination";
|
|
|
+import myPagination from "@/components/ledger/lib/myPagination"
|
|
|
import detailsDialog from "@/components/ledger/lib/detailsDia"
|
|
|
import changeRea from "@/components/dialogs/changeRea"
|
|
|
-import { mapGetters, mapActions } from "vuex";
|
|
|
+import { mapGetters, mapActions } from "vuex"
|
|
|
//图片查看
|
|
|
import lookPic from "@/components/ledger/lib/lookImages"
|
|
|
import Handsontable from "handsontable-pro"
|
|
|
import 'handsontable-pro/dist/handsontable.full.css'
|
|
|
-import zhCN from 'handsontable-pro/languages/zh-CN';
|
|
|
+import zhCN from 'handsontable-pro/languages/zh-CN'
|
|
|
//下拉插件
|
|
|
// import "@/assets/js/chosen.jquery.min";
|
|
|
// import "@/assets/js/handsontable-chosen-editor";
|
|
@@ -134,12 +149,14 @@ export default {
|
|
|
lookPic,
|
|
|
myCascader
|
|
|
},
|
|
|
- created() { },
|
|
|
+ created() {
|
|
|
+ buildFloor.getData(this.buildFloorData)
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters("layout", ["projectId", "secret", "userId"]),
|
|
|
showTypes() {
|
|
|
return this.onlyRead ?
|
|
|
- [{ value: "all", label: '全部' }, { value: "Visible", label: '只看采集信息' }] :
|
|
|
+ [{ value: "Visible", label: '只看采集信息' }, { value: "all", label: '全部' }] :
|
|
|
[{ value: "partInfo", label: '隐藏信息点' }, { value: "all", label: '全部' }, { value: "Visible", label: '只看采集信息' }]
|
|
|
}
|
|
|
},
|
|
@@ -152,6 +169,7 @@ export default {
|
|
|
value: false,
|
|
|
label: '编辑模式'
|
|
|
}],
|
|
|
+ buildFloorData: [], //楼层数据
|
|
|
tableData: [],
|
|
|
mess: {},
|
|
|
tableHeader: null,
|
|
@@ -177,18 +195,19 @@ export default {
|
|
|
details: false,//详情页
|
|
|
changeRea: false,//关联资产
|
|
|
lookPic: false,//图片查看
|
|
|
+ update: false,//临时维护信息点
|
|
|
},
|
|
|
row: null, //被修改的row
|
|
|
filesArr: [], //保存临时的文件key
|
|
|
messKey: null,
|
|
|
imgsArr: [], //临时保存的图片key数组
|
|
|
picsArr: [], //临时设备图片keys数组
|
|
|
- systemList:[], //关联的系统
|
|
|
+ systemList: [], //关联的系统
|
|
|
copyMain: null,
|
|
|
iframeSrc: "",
|
|
|
id: 0,
|
|
|
onlyRead: true,
|
|
|
- showType: 'all',
|
|
|
+ showType: 'Visible',
|
|
|
linkNameFalg: false,
|
|
|
qrcodeUrl: "", //二维码图片地址
|
|
|
loading: false,
|
|
@@ -196,6 +215,12 @@ export default {
|
|
|
floorData: [],
|
|
|
curDevice: '',//当前点击的设备id
|
|
|
addData: {}, //添加设备选择的设备类型
|
|
|
+ inputMap: {
|
|
|
+ flowBuild: 'D1'
|
|
|
+ }, //信息点和输入方式映射表
|
|
|
+ updateInputShow: false, //是否显示临时维护输入框
|
|
|
+ updateInfoPoint: '',//临时维护信息点
|
|
|
+ updateInput: '', //临时维护信息点值
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -209,12 +234,17 @@ export default {
|
|
|
data: {
|
|
|
Orders: "sort asc",
|
|
|
PageNumber: 1,
|
|
|
- PageSize: 500
|
|
|
+ PageSize: 1000
|
|
|
},
|
|
|
type: this.mess.deviceId
|
|
|
};
|
|
|
getDataDictionary(params, res => {
|
|
|
this.tableHeader = res.Content;
|
|
|
+ this.tableHeader.forEach(item => {
|
|
|
+ if(item.Path && item.InputMode){
|
|
|
+ this.inputMap[item.Path] = item.InputMode
|
|
|
+ }
|
|
|
+ })
|
|
|
this.getTableData()
|
|
|
});
|
|
|
}
|
|
@@ -243,7 +273,14 @@ export default {
|
|
|
}
|
|
|
getEquipTableCon(param, res => {
|
|
|
this.loading = false;
|
|
|
- this.tableData = res.Content;
|
|
|
+ this.tableData = res.Content.map((item) => {
|
|
|
+ if (item.hasOwnProperty("BuildingId") && item.hasOwnProperty("FloorId")) {
|
|
|
+ item.flowBuild = item.BuildingId + "-" + item.FloorId
|
|
|
+ } else if (item.hasOwnProperty("BuildingId") && !item.hasOwnProperty("FloorId")) {
|
|
|
+ item.flowBuild = item.BuildingId
|
|
|
+ }
|
|
|
+ return item
|
|
|
+ });
|
|
|
this.copyMain = tools.deepCopy(this.tableData);
|
|
|
this.page.total = res.Total;
|
|
|
if (this.tableData && this.tableData.length) {
|
|
@@ -384,6 +421,9 @@ export default {
|
|
|
let arr = tools.copyArr(list)
|
|
|
let data = showTools.headerTextFilter(arr, 'equipment', this.onlyRead, this.showType, true)
|
|
|
data.unshift("操作", "当前关联的资产", "所属系统实例", "包含的部件");
|
|
|
+ if (this.showType == "all") {
|
|
|
+ data.splice(6, 0, "所属建筑楼层")
|
|
|
+ }
|
|
|
return data;
|
|
|
},
|
|
|
//格式化表内容
|
|
@@ -410,9 +450,15 @@ export default {
|
|
|
renderer: tools.lookDetails
|
|
|
}
|
|
|
);
|
|
|
- if (this.onlyRead) {
|
|
|
- data.map(item => {
|
|
|
- item.readOnly = true
|
|
|
+ if (this.showType == "all") {
|
|
|
+ data.splice(6, 0, {
|
|
|
+ data: "flowBuild",
|
|
|
+ renderer: tools.customDropdownRenderer,
|
|
|
+ editor: "chosen",
|
|
|
+ chosenOptions: {
|
|
|
+ data: this.buildFloorData
|
|
|
+ },
|
|
|
+ readOnly: this.onlyRead
|
|
|
})
|
|
|
}
|
|
|
return data;
|
|
@@ -507,7 +553,6 @@ export default {
|
|
|
if (changeData.length == 1 && changeData[0][1].indexOf("/") > 0) {
|
|
|
changeData[0][1] = changeData[0][1].split("/").join(".")
|
|
|
}
|
|
|
-
|
|
|
//存在data进行修改请求
|
|
|
if (data && data.length) {
|
|
|
this.updateBusiness(data, changeData);
|
|
@@ -555,6 +600,10 @@ export default {
|
|
|
//生成要修改字段列表
|
|
|
change.map(item => {
|
|
|
let key = item[1].split(".")[0]
|
|
|
+ if (key == "flowBuild" && keyList.indexOf(key) == -1) {
|
|
|
+ keyList.push("BuildingId","FloorId")
|
|
|
+ param.Projection.push("BuildingId","FloorId")
|
|
|
+ }
|
|
|
if (item[1] && keyList.indexOf(key) == -1 && item[1] != 'PropertyId') {
|
|
|
keyList.push(key);
|
|
|
}
|
|
@@ -565,8 +614,26 @@ export default {
|
|
|
//生成对应修改数据
|
|
|
data.map((item, index) => {
|
|
|
keyList.map(value => {
|
|
|
- let itemData = tools.dataForKey(item, value);
|
|
|
- tools.setDataForKey(item, value, itemData == "" ? null : itemData);
|
|
|
+ if (value == "BuildingId") {
|
|
|
+ let itemData = tools.dataForKey(item, "flowBuild")
|
|
|
+ if (itemData == "") {
|
|
|
+ tools.setDataForKey(item, "BuildingId", null)
|
|
|
+ tools.setDataForKey(item, "FloorId", null)
|
|
|
+ } else {
|
|
|
+ let BuildingId = itemData.split("-")[0]
|
|
|
+ let FloorId = itemData.split("-")[1]
|
|
|
+ if (BuildingId && FloorId) {
|
|
|
+ tools.setDataForKey(item, "BuildingId", BuildingId)
|
|
|
+ tools.setDataForKey(item, "FloorId", FloorId)
|
|
|
+ } else if (BuildingId && !FloorId) {
|
|
|
+ tools.setDataForKey(item, "BuildingId", BuildingId)
|
|
|
+ tools.setDataForKey(item, "FloorId", null)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ let itemData = tools.dataForKey(item, value)
|
|
|
+ tools.setDataForKey(item, value, itemData == "" ? null : itemData)
|
|
|
+ }
|
|
|
});
|
|
|
param.Content.push(item);
|
|
|
});
|
|
@@ -593,6 +660,7 @@ export default {
|
|
|
//获取到了正确的信息
|
|
|
getInfors(infos, row, el) {
|
|
|
let val = this.hot.colToProp(row.col);
|
|
|
+ let inputMode = this.inputMap[val];
|
|
|
this.row = row.row;
|
|
|
this.messKey = val;
|
|
|
switch (val) {
|
|
@@ -600,7 +668,7 @@ export default {
|
|
|
case 'caozuo':
|
|
|
// window.open(`http://adm.sagacloud.cn:8058/spread?id=${infos.EquipID}&pid=${this.projectId}&secret=${this.secret}`,"_blank")
|
|
|
this.$message("开发中...")
|
|
|
- break;
|
|
|
+ return false
|
|
|
//设备二维码图片
|
|
|
case 'EquipQRCode':
|
|
|
this.qrcodeUrl = this.tableData[row.row].EquipQRCode;
|
|
@@ -609,7 +677,7 @@ export default {
|
|
|
} else {
|
|
|
this.$message("此设备没有设备二维码");
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//关联系统
|
|
|
case 'LinkSystem':
|
|
|
if (!this.onlyRead) {
|
|
@@ -617,37 +685,37 @@ export default {
|
|
|
this.systemList = this.tableData[row.row].LinkSystem || [];
|
|
|
this.myDialog.systemType = true;
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//关联资产
|
|
|
case 'LinkEquipLocalName':
|
|
|
if (this.linkNameFalg) {
|
|
|
this.myDialog.changeRea = true;
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//品牌型号弹窗
|
|
|
case 'DPManufacturerID':
|
|
|
if (!this.onlyRead) {
|
|
|
this.myDialog.firm = true;
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//供应商信息弹窗
|
|
|
case 'DPSupplierID':
|
|
|
if (!this.onlyRead) {
|
|
|
this.myDialog.supplier = true;
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//维修商信息弹窗
|
|
|
case 'DPMaintainerID':
|
|
|
if (!this.onlyRead) {
|
|
|
this.myDialog.maintainer = true;
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//保险公司信息
|
|
|
case 'DPInsurerID':
|
|
|
if (!this.onlyRead) {
|
|
|
this.myDialog.insurer = true;
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//供应合同编号
|
|
|
case 'LedgerParam.SupplyPurchase.SupplierContractID':
|
|
|
if (!this.onlyRead) {
|
|
@@ -663,7 +731,7 @@ export default {
|
|
|
this.$message("请先选择供应商");
|
|
|
}
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//保险单号
|
|
|
case 'LedgerParam.InsuranceDoc.InsuranceNum':
|
|
|
if (!this.onlyRead) {
|
|
@@ -679,7 +747,7 @@ export default {
|
|
|
this.$message("请先选择保险商");
|
|
|
}
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
//保险文件--设备文档--安装质检报告
|
|
|
case 'LedgerParam.InsuranceDoc.InsuranceFile':
|
|
|
case 'LedgerParam.PhotoDoc.Archive':
|
|
@@ -687,7 +755,7 @@ export default {
|
|
|
let IPSdata = tools.dataForKey(this.tableData[row.row], val);
|
|
|
this.filesArr = IPSdata ? IPSdata : [];
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
- break;
|
|
|
+ return false
|
|
|
//安装照片--安装图纸--设备铭牌照片--设备图纸
|
|
|
case 'LedgerParam.Siteinstall.InstallPic':
|
|
|
case 'LedgerParam.Siteinstall.InstallDrawing':
|
|
@@ -696,13 +764,13 @@ export default {
|
|
|
let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
|
|
|
this.imgsArr = SSPPdata ? SSPPdata : [];
|
|
|
this.myDialog.uploadImgs = true;
|
|
|
- break;
|
|
|
+ return false
|
|
|
//设备照片
|
|
|
case 'LedgerParam.PhotoDoc.Pic':
|
|
|
let Pdata = tools.dataForKey(this.tableData[row.row], val);
|
|
|
this.picsArr = Pdata ? Pdata : [];
|
|
|
this.myDialog.pic = true;
|
|
|
- break;
|
|
|
+ return false
|
|
|
//包含的部件字段
|
|
|
case 'Count':
|
|
|
if (this.onlyRead) {
|
|
@@ -710,10 +778,29 @@ export default {
|
|
|
} else {
|
|
|
this.$router.push({ path: '/ledger/partsmanage', query: { deviceId: infos.EquipID, typeId: this.mess.deviceId } });
|
|
|
}
|
|
|
- break;
|
|
|
+ return false
|
|
|
default:
|
|
|
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() {
|
|
@@ -746,8 +833,14 @@ export default {
|
|
|
supplierChange(data) {
|
|
|
tools.setDataForKey(this.tableData[this.row], "DPSupplierID", data.venderId)
|
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.Supplier", data.name)
|
|
|
- this.handleUpdataTable([[this.row, "DPSupplierID", null, data.venderId]], "edit")
|
|
|
- this.handleUpdataTable([[this.row, "LedgerParam.SupplyPurchase.Supplier", null, data.name]], "edit")
|
|
|
+ this.handleUpdataTable(
|
|
|
+ [
|
|
|
+ [this.row, "DPSupplierID", null, data.venderId],
|
|
|
+ [this.row, "LedgerParam.SupplyPurchase.Supplier", null, data.name]
|
|
|
+ ],
|
|
|
+ "edit"
|
|
|
+ )
|
|
|
+ // this.handleUpdataTable([[this.row, "LedgerParam.SupplyPurchase.Supplier", null, data.name]], "edit")
|
|
|
},
|
|
|
//供应合同编号
|
|
|
supplyChange(data) {
|
|
@@ -770,23 +863,42 @@ export default {
|
|
|
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.Specification", data.name)
|
|
|
- this.handleUpdataTable([[this.row, "DPManufacturerID", null, data.venderId]], "edit")
|
|
|
- this.handleUpdataTable([[this.row, "LedgerParam.EquipManufactor.Brand", null, data.brand]], "edit")
|
|
|
- this.handleUpdataTable([[this.row, "LedgerParam.EquipManufactor.Specification", null, data.name]], "edit")
|
|
|
+ this.handleUpdataTable(
|
|
|
+ [
|
|
|
+ [this.row, "DPManufacturerID", null, data.venderId],
|
|
|
+ [this.row, "LedgerParam.EquipManufactor.Brand", null, data.brand],
|
|
|
+ [this.row, "LedgerParam.EquipManufactor.Specification", null, data.name]
|
|
|
+ ],
|
|
|
+ "edit"
|
|
|
+ )
|
|
|
+ // this.handleUpdataTable([[this.row, "LedgerParam.EquipManufactor.Brand", null, data.brand]], "edit")
|
|
|
+ // this.handleUpdataTable([[this.row, "LedgerParam.EquipManufactor.Specification", null, data.name]], "edit")
|
|
|
},
|
|
|
//保险商变更
|
|
|
changeInsurer(data) {
|
|
|
tools.setDataForKey(this.tableData[this.row], "DPInsurerID", data.venderId)
|
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.Insurer", data.name)
|
|
|
- this.handleUpdataTable([[this.row, "DPInsurerID", null, data.venderId]], "edit")
|
|
|
- this.handleUpdataTable([[this.row, "LedgerParam.InsuranceDoc.Insurer", null, data.name]], "edit")
|
|
|
+ this.handleUpdataTable(
|
|
|
+ [
|
|
|
+ [this.row, "DPInsurerID", null, data.venderId],
|
|
|
+ [this.row, "LedgerParam.InsuranceDoc.Insurer", null, data.name]
|
|
|
+ ],
|
|
|
+ "edit"
|
|
|
+ )
|
|
|
+ // this.handleUpdataTable([[this.row, "LedgerParam.InsuranceDoc.Insurer", null, data.name]], "edit")
|
|
|
},
|
|
|
//维修商变更
|
|
|
changeMaintainer(data) {
|
|
|
tools.setDataForKey(this.tableData[this.row], "DPMaintainerID", data.venderId)
|
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.Maintainer", data.name)
|
|
|
- this.handleUpdataTable([[this.row, "DPMaintainerID", null, data.venderId]], "edit")
|
|
|
- this.handleUpdataTable([[this.row, "LedgerParam.OperationMainte.Maintainer", null, data.name]], "edit")
|
|
|
+ this.handleUpdataTable(
|
|
|
+ [
|
|
|
+ [this.row, "DPMaintainerID", null, data.venderId],
|
|
|
+ [this.row, "LedgerParam.OperationMainte.Maintainer", null, data.name]
|
|
|
+ ],
|
|
|
+ "edit"
|
|
|
+ )
|
|
|
+ // this.handleUpdataTable([[this.row, "LedgerParam.OperationMainte.Maintainer", null, data.name]], "edit")
|
|
|
},
|
|
|
//修改关联的资产
|
|
|
changeProperty(val) {
|