Browse Source

设备台账切换中台服务修改ing

zhangyu 4 years ago
parent
commit
4f6f1e40ef

+ 6 - 0
src/api/object/equip.js

@@ -14,3 +14,9 @@ export function countEquip(param, success) {
   let url = `${baseUrl}/datacenter/object/equip/count`;
   http.postJson(url, param, success);
 }
+
+//查询设备关联资产部件数量
+export function getEquipTableCon(param, success) {
+  let url = `${baseUrl}/equip-componnet/equip-query/equip-components`;
+  http.postJson(url, param, success);
+}

File diff suppressed because it is too large
+ 1788 - 1464
src/components/ledger/handsontables/device.vue


+ 1 - 1
src/utils/handsontable/fillterField.js

@@ -25,7 +25,7 @@ const data = {
   },
   space:{//业务空间
     onlyRead: [
-      "Outline"
+      "outline"
     ],
     edit: []
   }

+ 216 - 198
src/utils/handsontable/notShow.js

@@ -5,8 +5,8 @@ import fieldData from "@/utils/handsontable/fillterField"
 let InputModeArr = ["A1", "A2", "B1", "C5", "D1", "D2", "E1", "L", "L1", "L2", "F1", "F2", "M", "Own"]
 //在编辑模式下并且勾选隐藏自动填充的信息点不显示的字段
 let noShowArr = [
-    "Specification",
-    "ServiceLife"
+    "specification",
+    "serviceLife"
 ]
 //在编辑模式下不显示的字段
 let cantShow = [
@@ -47,27 +47,27 @@ let cantShow = [
 
 //台账编辑页面不显示的厂商信息
 let firmArr = [
-    "Brand", //品牌
-    "Specification", //设备型号
-    "Manufacturer", //生产厂家
-    "Supplier", //供应商单位名称
-    "SupplierContactor", //供应商联系人
-    "SupplierPhone", //供应商联系电话
-    "SupplierEmail", //供应商电子邮件
-    "SupplierWeb", //供应商网址
-    "SupplierFax", //供应商传真
-    "Maintainer", //维修商单位名称
-    "MaintainerContactor", //维修商联系人
-    "MaintainerPhone", //维修商联系电话
-    "MaintainerEmail", //维修商电子邮件
-    "MaintainerWeb", //维修商网址
-    "MaintainerFax", //维修商传真
-    "Insurer", //保险公司名称
-    "InsurerContactor", //保险公司联系人
-    "InsurerPhone", //保险公司联系电话
-    'InsurerEmail', //保险公司电子邮件
-    "InsurerWeb", //保险公司网址
-    "InsurerFax" //保险公司传真
+    "brand", //品牌
+    "specification", //设备型号
+    "manufacturer", //生产厂家
+    "supplier", //供应商单位名称
+    "supplierContactor", //供应商联系人
+    "supplierPhone", //供应商联系电话
+    "supplierEmail", //供应商电子邮件
+    "supplierWeb", //供应商网址
+    "supplierFax", //供应商传真
+    "maintainer", //维修商单位名称
+    "maintainerContactor", //维修商联系人
+    "maintainerPhone", //维修商联系电话
+    "maintainerEmail", //维修商电子邮件
+    "maintainerWeb", //维修商网址
+    "maintainerFax", //维修商传真
+    "insurer", //保险公司名称
+    "insurerContactor", //保险公司联系人
+    "insurerPhone", //保险公司联系电话
+    'insurerEmail', //保险公司电子邮件
+    "insurerWeb", //保险公司网址
+    "insurerFax" //保险公司传真
     // "DPManufacturerID",//品牌型号Id
     // "DPSupplierID",//供应商信息Id
     // "DPMaintainerID",//维修商信息Id
@@ -222,41 +222,41 @@ const showTools = {
             three = 0,
             four = 0
         arr.find(function (value, index, arr) {
-            let flag = (showType != "Visible" ||  value.Visible)
+            let flag = (showType != "Visible" ||  value.visible)
             if (
-                ((value.InfoPointCode == "Brand" && flag) ||
-                (value.InfoPointCode == "Specification" && flag) ||
-                (value.InfoPointCode == "Manufacturer" && flag)) && !first
+                ((value.code == "brand" && flag) ||
+                (value.code == "specification" && flag) ||
+                (value.code == "manufacturer" && flag)) && !first
             ) {
                 first = index
             }
             if (
-                ((value.InfoPointCode == "Supplier" && flag) ||
-                (value.InfoPointCode == "SupplierContactor" && flag) ||
-                (value.InfoPointCode == "SupplierEmail" && flag) ||
-                (value.InfoPointCode == "SupplierWeb" && flag) ||
-                (value.InfoPointCode == "SupplierFax" && flag) ||
-                (value.InfoPointCode == "SupplierPhone" && flag)) && !scound
+                ((value.code == "supplier" && flag) ||
+                (value.code == "supplierContactor" && flag) ||
+                (value.code == "supplierEmail" && flag) ||
+                (value.code == "supplierWeb" && flag) ||
+                (value.code == "supplierFax" && flag) ||
+                (value.code == "supplierPhone" && flag)) && !scound
             ) {
                 scound = index
             }
             if (
-                ((value.InfoPointCode == "Maintainer" && flag) ||
-                (value.InfoPointCode == "MaintainerContactor" && flag) ||
-                (value.InfoPointCode == "MaintainerPhone" && flag) ||
-                (value.InfoPointCode == "MaintainerEmail" && flag) ||
-                (value.InfoPointCode == "MaintainerWeb" && flag) ||
-                (value.InfoPointCode == "MaintainerFax" && flag)) && !three
+                ((value.code == "maintainer" && flag) ||
+                (value.code == "maintainerContactor" && flag) ||
+                (value.code == "maintainerPhone" && flag) ||
+                (value.code == "maintainerEmail" && flag) ||
+                (value.code == "maintainerWeb" && flag) ||
+                (value.code == "maintainerFax" && flag)) && !three
             ) {
                 three = index
             }
             if (
-                ((value.InfoPointCode == "Insurer" && flag) ||
-                (value.InfoPointCode == "InsurerContactor" && flag) ||
-                (value.InfoPointCode == "InsurerPhone" && flag) ||
-                (value.InfoPointCode == "InsurerEmail" && flag) ||
-                (value.InfoPointCode == "InsurerWeb" && flag) ||
-                (value.InfoPointCode == "InsurerFax" && flag)) && !four
+                ((value.code == "insurer" && flag) ||
+                (value.code == "insurerContactor" && flag) ||
+                (value.code == "insurerPhone" && flag) ||
+                (value.code == "insurerEmail" && flag) ||
+                (value.code == "insurerWeb" && flag) ||
+                (value.code == "insurerFax" && flag)) && !four
             ) {
                 four = index
             }
@@ -266,51 +266,67 @@ const showTools = {
             if (item) {
                 if (index == 0) {
                     arr.splice(item, 0, {
-                        DataType: "Str",
-                        FirstName: "基本信息",
-                        InfoPointCode: "DPInsurerID",
-                        InfoPointName: "保险公司信息",
-                        InputMode: "X",
-                        Path: "DPInsurerID",
-                        Priority: "S",
-                        Editable: true,
-                        Visible: true
+                        dataType: "STR",
+                        firstName: "基本信息",
+                        aliasCode:"DPInsurerID",
+                        aliasName:"保险公司信息",
+                        name: "保险公司信息",
+                        code: "DPInsurerID",
+                        origCode: "DPInsurerID",
+                        origDataType: "Str",
+                        inputMode: "X",
+                        path: "DPInsurerID",
+                        priority: "S",
+                        editable: true,
+                        visible: true
                     })
                 } else if (index == 1) {
                     arr.splice(item, 0, {
-                        DataType: "Str",
-                        FirstName: "基本信息",
-                        InfoPointCode: "DPMaintainerID",
-                        InfoPointName: "维修商信息",
-                        InputMode: "X",
-                        Path: "DPMaintainerID",
-                        Priority: "S",
-                        Editable: true,
-                        Visible: true
+                        dataType: "STR",
+                        firstName: "基本信息",
+                        aliasCode:"DPMaintainerID",
+                        aliasName:"维修商信息",
+                        name: "维修商信息",
+                        code: "DPMaintainerID",
+                        origCode: "DPMaintainerID",
+                        origDataType: "Str",
+                        inputMode: "X",
+                        path: "DPMaintainerID",
+                        priority: "S",
+                        editable: true,
+                        visible: true
                     })
                 } else if (index == 2) {
                     arr.splice(item, 0, {
-                        DataType: "Str",
-                        FirstName: "基本信息",
-                        InfoPointCode: "DPSupplierID",
-                        InfoPointName: "供应商信息",
-                        InputMode: "X",
-                        Path: "DPSupplierID",
-                        Priority: "S",
-                        Editable: true,
-                        Visible: true
+                        dataType: "STR",
+                        firstName: "基本信息",
+                        aliasCode:"DPSupplierID",
+                        aliasName:"供应商信息",
+                        name: "供应商信息",
+                        code: "DPSupplierID",
+                        origCode: "DPSupplierID",
+                        origDataType: "Str",
+                        inputMode: "X",
+                        path: "DPSupplierID",
+                        priority: "S",
+                        editable: true,
+                        visible: true
                     })
                 } else if (index == 3) {
                     arr.splice(item, 0, {
-                        DataType: "Str",
-                        FirstName: "基本信息",
-                        InfoPointCode: "DPManufacturerID",
-                        InfoPointName: "生产厂家/品牌/型号",
-                        InputMode: "X",
-                        Path: "DPManufacturerID",
-                        Priority: "S",
-                        Editable: true,
-                        Visible: true
+                        dataType: "STR",
+                        firstName: "基本信息",
+                        aliasCode:"DPManufacturerID",
+                        aliasName:"生产厂家/品牌/型号",
+                        name: "生产厂家/品牌/型号",
+                        code: "DPManufacturerID",
+                        origCode: "DPManufacturerID",
+                        origDataType: "Str",
+                        inputMode: "X",
+                        path: "DPManufacturerID",
+                        priority: "S",
+                        editable: true,
+                        visible: true
                     })
                 }
             }
@@ -923,10 +939,10 @@ const showTools = {
             //     return undefined
             // }
             if (onlyRead) { //只读模式
-                if (!this.filterUnshow(onlyRead, type, item.InfoPointCode)) { //过滤固定不显示字段
+                if (!this.filterUnshow(onlyRead, type, item.code)) { //过滤固定不显示字段
                     return undefined
                 }
-                if (showType == "Visible" && item.Visible) { //只看要采集的信息
+                if (showType == "Visible" && item.visible) { //只看要采集的信息
                     return this.isUnit(item)
                 } else if (showType == "all") { //显示全部
                     return this.isUnit(item)
@@ -934,19 +950,19 @@ const showTools = {
                     return undefined
                 }
             } else { //编辑模式
-                if (taizhang && !this.filterFirm(item.InfoPointCode)) {
+                if (taizhang && !this.filterFirm(item.code)) {
                     return undefined
                 }
-                if (!this.filterUnshow(onlyRead, type, item.InfoPointCode)) { //过滤固定不显示字段
+                if (!this.filterUnshow(onlyRead, type, item.code)) { //过滤固定不显示字段
                     return undefined
                 }
-                if (showType == "Visible" && item.Visible) { //只看要采集的信息
+                if (showType == "Visible" && item.visible) { //只看要采集的信息
                     return this.isUnit(item)
                 } else if (showType == "all") { //显示全部
                     return this.isUnit(item)
-                } else if (showType == "partInfo" && item.Visible && this.isShow(item.InfoPointCode)) { //隐藏部分厂家信息(***需维护不显示列表***)
+                } else if (showType == "partInfo" && item.visible && this.isShow(item.code)) { //隐藏部分厂家信息(***需维护不显示列表***)
                     // if (item.FirstName == "控制参数" || item.FirstName == "设定参数" || item.FirstName == "运行参数") {
-                    if (item.FirstTag == "TechParam") { //技术参数
+                    if (item.firstTag == "techParam") { //技术参数
                         return undefined
                     } else {
                         return this.isUnit(item)
@@ -965,14 +981,14 @@ const showTools = {
         }
         text.readOnly = onlyRead;
         let data = arr.map(item => {
-            // if (type == "property" && item.FirstTag == "RunParam") { //资产台账不显示运行参数
+            // if (type == "property" && item.firstTag == "runParam") { //资产台账不显示运行参数
             //     return undefined
             // }
             if (onlyRead) { //只读模式
-                if (!this.filterUnshow(onlyRead, type, item.InfoPointCode)) { //过滤固定不显示字段
+                if (!this.filterUnshow(onlyRead, type, item.code)) { //过滤固定不显示字段
                     return undefined
                 }
-                if (showType == "Visible" && item.Visible) { //只看要采集的信息
+                if (showType == "Visible" && item.visible) { //只看要采集的信息
                     return this.textFormat(item, onlyRead)
                 } else if (showType == "all") { //显示全部
                     return this.textFormat(item, onlyRead)
@@ -980,19 +996,19 @@ const showTools = {
                     return undefined
                 }
             } else { //编辑模式
-                if (taizhang && !this.filterFirm(item.InfoPointCode)) {
+                if (taizhang && !this.filterFirm(item.code)) {
                     return undefined
                 }
-                if (!this.filterUnshow(onlyRead, type, item.InfoPointCode)) { //过滤固定不显示字段
+                if (!this.filterUnshow(onlyRead, type, item.code)) { //过滤固定不显示字段
                     return undefined
                 }
-                if (showType == "Visible" && item.Visible) { //只看要采集的信息
+                if (showType == "Visible" && item.visible) { //只看要采集的信息
                     return this.inputModeFilter(item, onlyRead)
                 } else if (showType == "all") { //显示全部
                     return this.inputModeFilter(item, onlyRead)
-                } else if (showType == "partInfo" && item.Visible && this.isShow(item.InfoPointCode)) { //隐藏部分厂家信息(***需维护不显示列表***)
+                } else if (showType == "partInfo" && item.visible && this.isShow(item.code)) { //隐藏部分厂家信息(***需维护不显示列表***)
                     // if (item.FirstName == "控制参数" || item.FirstName == "设定参数" || item.FirstName == "运行参数") {
-                    if (item.FirstTag == "TechParam") { //技术参数
+                    if (item.firstTag == "techParam") { //技术参数
                         return undefined
                     } else {
                         return this.inputModeFilter(item, onlyRead)
@@ -1005,19 +1021,20 @@ const showTools = {
         return data
     },
     isUnit(item) {
-        if (!item.Unit || item.Unit == "") {
-            return item.InfoPointName;
+        if (!item.unit || item.unit == "") {
+            return item.name;
         } else {
-            return item.InfoPointName + "(" + item.Unit + ")";
+            return item.name + "(" + item.unit + ")";
         }
     },
     textFormat(item, onlyRead) {
         if (
-            item.InfoPointCode == "EquipQRCode" ||
-            item.InfoPointCode == "RoomQRCode"
+            // item.InfoPointCode == "EquipQRCode" ||
+            // item.InfoPointCode == "RoomQRCode"
+            item.code == "defaultQRCode"
         ) {
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: text.lookQRCode,
                 readOnly: onlyRead
             }
@@ -1025,212 +1042,213 @@ const showTools = {
 
         //图片类型
         if (
-            item.InfoPointCode == "InstallPic" ||
-            item.InfoPointCode == "Nameplate" ||
-            item.InfoPointCode == "Pic"
+            item.code == "installPic" ||
+            item.code == "nameplate" ||
+            item.code == "pic"
         ) {
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: text.picType,
                 readOnly: onlyRead
             }
         }
         //文件类型
-        if (item.InfoPointCode == "InsuranceFile" ||
-            item.InfoPointCode == "Archive" ||
-            item.InfoPointCode == "CheckReport" ||
-            item.InfoPointCode == "MaintainManual" ||
-            item.InfoPointCode == "ApproachingAcceptance" ||
-            item.InfoPointCode == "AcceptanceReport" ||
-            item.InfoPointCode == "OperationManual" ||
-            item.InfoPointCode == "OriginalCertificate" ||
-            item.InfoPointCode == "TestReport" ||
-            item.InfoPointCode == "ProductCertification" ||
-            item.InfoPointCode == "InstallInstruction" ||
-            item.InfoPointCode == "SupplierContract" ||
-            item.InfoPointCode == "Drawing" ||
-            item.InfoPointCode == "InstallDrawing"
+        if (item.code == "insuranceFile" ||
+            item.code == "archive" ||
+            item.code == "checkReport" ||
+            item.code == "maintainManual" ||
+            item.code == "approachingAcceptance" ||
+            item.code == "acceptanceReport" ||
+            item.code == "operationManual" ||
+            item.code == "originalCertificate" ||
+            item.code == "testReport" ||
+            item.code == "productCertification" ||
+            item.code == "installInstruction" ||
+            item.code == "supplierContract" ||
+            item.code == "drawing" ||
+            item.code == "installDrawing"
         ) {
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: text.fileType,
                 readOnly: onlyRead
             }
         }
 
-        if (item.InputMode == "D1" || item.InputMode == "E1" || item.InputMode == "D1L") { //单选输入
+        if (item.inputMode == "D1" || item.inputMode == "E1" || item.inputMode == "D1L") { //单选输入
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: tools.customDropdownRenderer,
                 editor: "chosen",
                 readOnly: onlyRead,
                 chosenOptions: {
-                    data: item.DataSource ? tools.formatDataSource(item.DataSource) : ""
+                    data: item.dataSource ? tools.formatDataSource(item.dataSource) : ""
                 }
             };
-        } else if (item.InputMode == "D2" || item.InputMode == "E2") { //多选输入
+        } else if (item.inputMode == "D2" || item.inputMode == "E2") { //多选输入
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: tools.customDropdownRenderer,
                 editor: "chosen",
                 readOnly: onlyRead,
                 chosenOptions: {
                     multiple: true, //多选
-                    data: item.DataSource ? tools.formatDataSource(item.DataSource) : ""
+                    data: item.dataSource ? tools.formatDataSource(item.dataSource) : ""
                 }
             };
-        } else if (item.InputMode == "A1" || item.InputMode == "A2") { //数字输入
+        } else if (item.inputMode == "A1" || item.inputMode == "A2") { //数字输入
             return {
-                data: item.Path,
+                data: item.path,
                 type: "numeric",
                 readOnly: onlyRead,
                 numericFormat: {
                     pattern: "0,0.00"
                 }
             };
-        } else if (item.InputMode == "C5") { //日期输入
+        } else if (item.inputMode == "C5") { //日期输入
             return {
-                data: item.Path,
+                data: item.path,
                 type: "date",
                 dateFormat: "YYYYMMDDHHmmss",
                 readOnly: onlyRead,
                 correctFormat: true
             };
-        } else if (item.InputMode == "B1" ||
-            item.InputMode == "B2" ||
-            item.InputMode == "F1" ||
-            item.InputMode == "F2" ||
-            item.InputMode == "L1" ||
-            item.InputMode == "L2" ||
-            item.InputMode == "L" ||
-            item.InputMode == "M") { //文本输入
+        } else if (item.inputMode == "B1" ||
+            item.inputMode == "B2" ||
+            item.inputMode == "F1" ||
+            item.inputMode == "F2" ||
+            item.inputMode == "L1" ||
+            item.inputMode == "L2" ||
+            item.inputMode == "L" ||
+            item.inputMode == "M") { //文本输入
             return {
-                data: item.Path,
+                data: item.path,
                 readOnly: onlyRead
             }
         } else { //(未支持的输入方式)暂不支持编辑
             return {
-                data: item.Path,
+                data: item.path,
                 readOnly: onlyRead
             }
         }
     },
     inputModeFilter(item, onlyRead) {
         if (
-            item.InfoPointCode == "EquipQRCode" ||
-            item.InfoPointCode == "RoomQRCode"
+            // item.InfoPointCode == "EquipQRCode" ||
+            // item.InfoPointCode == "RoomQRCode"
+            item.code == "defaultQRCode"
         ) {
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: text.lookQRCode,
-                readOnly: !item.Editable
+                readOnly: !item.editable
             }
         }
 
         //图片类型
         if (
-            item.InfoPointCode == "InstallPic" ||
-            item.InfoPointCode == "Nameplate" ||
-            item.InfoPointCode == "Pic"
+            item.code == "installPic" ||
+            item.code == "nameplate" ||
+            item.code == "pic"
         ) {
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: text.picType,
-                readOnly: !item.Editable
+                readOnly: !item.editable
             }
         }
 
         //文件类型
-        if (item.InfoPointCode == "InsuranceFile" ||
-            item.InfoPointCode == "Archive" ||
-            item.InfoPointCode == "CheckReport" ||
-            item.InfoPointCode == "MaintainManual" ||
-            item.InfoPointCode == "ApproachingAcceptance" ||
-            item.InfoPointCode == "AcceptanceReport" ||
-            item.InfoPointCode == "OperationManual" ||
-            item.InfoPointCode == "OriginalCertificate" ||
-            item.InfoPointCode == "TestReport" ||
-            item.InfoPointCode == "ProductCertification" ||
-            item.InfoPointCode == "InstallInstruction" ||
-            item.InfoPointCode == "SupplierContract" ||
-            item.InfoPointCode == "Drawing" ||
-            item.InfoPointCode == "InstallDrawing"
+        if (item.code == "insuranceFile" ||
+            item.code == "archive" ||
+            item.code == "checkReport" ||
+            item.code == "maintainManual" ||
+            item.code == "approachingAcceptance" ||
+            item.code == "acceptanceReport" ||
+            item.code == "operationManual" ||
+            item.code == "originalCertificate" ||
+            item.code == "testReport" ||
+            item.code == "productCertification" ||
+            item.code == "installInstruction" ||
+            item.code == "supplierContract" ||
+            item.code == "drawing" ||
+            item.code == "installDrawing"
         ) {
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: text.fileType,
-                readOnly: !item.Editable
+                readOnly: !item.editable
             }
         }
 
         //四大厂商
         if (
-            item.InfoPointCode == "DPSupplierID" ||
-            item.InfoPointCode == "DPMaintainerID" ||
-            item.InfoPointCode == "DPInsurerID" ||
-            item.InfoPointCode == "DPManufacturerID"
+            item.code == "DPSupplierID" ||
+            item.code == "DPMaintainerID" ||
+            item.code == "DPInsurerID" ||
+            item.code == "DPManufacturerID"
         ) {
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: text.idType,
-                readOnly: !item.Editable
+                readOnly: !item.editable
             }
         }
 
-        if (item.InputMode == "D1" || item.InputMode == "E1" || item.InputMode == "D1L") { //单选输入
+        if (item.inputMode == "D1" || item.inputMode == "E1" || item.inputMode == "D1L") { //单选输入
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: tools.customDropdownRenderer,
                 editor: "chosen",
-                readOnly: !item.Editable,
+                readOnly: !item.editable,
                 chosenOptions: {
-                    data: item.DataSource ? tools.formatDataSource(item.DataSource) : ""
+                    data: item.dataSource ? tools.formatDataSource(item.dataSource) : ""
                 }
             };
-        } else if (item.InputMode == "D2" || item.InputMode == "E2") { //多选输入
+        } else if (item.inputMode == "D2" || item.inputMode == "E2") { //多选输入
             return {
-                data: item.Path,
+                data: item.path,
                 renderer: tools.customDropdownRenderer,
                 editor: "chosen",
-                readOnly: !item.Editable,
+                readOnly: !item.editable,
                 chosenOptions: {
                     multiple: true, //多选
-                    data: item.DataSource ? tools.formatDataSource(item.DataSource) : ""
+                    data: item.dataSource ? tools.formatDataSource(item.dataSource) : ""
                 }
             };
-        } else if (item.InputMode == "A1" || item.InputMode == "A2") { //数字输入
+        } else if (item.inputMode == "A1" || item.inputMode == "A2") { //数字输入
             return {
-                data: item.Path,
+                data: item.path,
                 type: "numeric",
-                readOnly: !item.Editable,
+                readOnly: !item.editable,
                 numericFormat: {
                     pattern: "0,0.00"
                 }
             };
-        } else if (item.InputMode == "C5") { //日期输入
+        } else if (item.inputMode == "C5") { //日期输入
             return {
-                data: item.Path,
+                data: item.path,
                 type: "date",
                 dateFormat: "YYYYMMDDHHmmss",
-                readOnly: !item.Editable,
+                readOnly: !item.editable,
                 correctFormat: true
             };
-        } else if (item.InputMode == "B1" ||
-            item.InputMode == "B2" ||
-            item.InputMode == "F1" ||
-            item.InputMode == "F2" ||
-            item.InputMode == "L1" ||
-            item.InputMode == "L2" ||
-            item.InputMode == "L" ||
-            item.InputMode == "M") { //文本输入
+        } else if (item.inputMode == "B1" ||
+            item.inputMode == "B2" ||
+            item.inputMode == "F1" ||
+            item.inputMode == "F2" ||
+            item.inputMode == "L1" ||
+            item.inputMode == "L2" ||
+            item.inputMode == "L" ||
+            item.inputMode == "M") { //文本输入
             return {
-                data: item.Path,
-                readOnly: !item.Editable
+                data: item.path,
+                readOnly: !item.editable
             }
         } else { //(未支持的输入方式)暂不支持编辑
             return {
-                data: item.Path,
-                readOnly: !item.Editable
+                data: item.path,
+                readOnly: !item.editable
             }
         }
     },