|
@@ -3,7 +3,7 @@ import text from "@/utils/handsontable/mainText"
|
|
|
import tools from "@/utils/scan/tools"
|
|
|
import fieldData from "@/utils/handsontable/fillterField"
|
|
|
|
|
|
-let InputModeArr = ["A1", "A2", "B1", "C5", "D1", "D2", "E1", "L", "L1", "L2", "F1", "F2", "M", "Own"]
|
|
|
+let inputModeArr = ["A1", "A2", "B1", "C5", "D1", "D2", "E1", "L", "L1", "L2", "F1", "F2", "M", "Own"]
|
|
|
//在编辑模式下并且勾选隐藏自动填充的信息点不显示的字段
|
|
|
let noShowArr = [
|
|
|
"specification",
|
|
@@ -140,7 +140,7 @@ let partsAddNoShow = [
|
|
|
"InsurerFax",
|
|
|
]
|
|
|
const showTools = {
|
|
|
- InputModeArr: ["A1", "A2", "B1", "B2", "C5", "D1", "D1L", "D2", "E1", "E2", "L", "L1", "L2", "F1", "F2", "M"],
|
|
|
+ inputModeArr: ["A1", "A2", "B1", "B2", "C5", "D1", "D1L", "D2", "E1", "E2", "L", "L1", "L2", "F1", "F2", "M"],
|
|
|
addArr: () => {
|
|
|
return cutArr
|
|
|
},
|
|
@@ -165,9 +165,9 @@ const showTools = {
|
|
|
//几种类型不显示
|
|
|
technologyParam: (item) => {
|
|
|
if (
|
|
|
- item.FirstTag == "控制参数" &&
|
|
|
- item.FirstTag == "设定参数" &&
|
|
|
- item.FirstTag == "运行参数"
|
|
|
+ item.firstTag == "控制参数" &&
|
|
|
+ item.firstTag == "设定参数" &&
|
|
|
+ item.firstTag == "运行参数"
|
|
|
) {
|
|
|
return undefined
|
|
|
}
|
|
@@ -337,49 +337,49 @@ const showTools = {
|
|
|
changeTypes(arr, onlyRead, isWatch, allMess, falg = false, taizhang = false) {
|
|
|
let data = arr.map(item => {
|
|
|
if (falg) {
|
|
|
- if (item.FirstTag == "控制参数" ||
|
|
|
- item.FirstTag == "设定参数" ||
|
|
|
- item.FirstTag == "运行参数") {
|
|
|
+ if (item.firstTag == "控制参数" ||
|
|
|
+ item.firstTag == "设定参数" ||
|
|
|
+ item.firstTag == "运行参数") {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
- if (item.InfoPointCode == "BIMLocation") {
|
|
|
+ if (item.code == "BIMLocation") {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (onlyRead || InputModeArr.indexOf(item.InputMode) > -1) {
|
|
|
+ if (onlyRead || inputModeArr.indexOf(item.inputMode) > -1) {
|
|
|
if (item.Visible || !allMess) {
|
|
|
//固定不显示的code
|
|
|
- if (!showTools.cantShow(item.InfoPointCode) && !onlyRead && !taizhang) {
|
|
|
+ if (!showTools.cantShow(item.code) && !onlyRead && !taizhang) {
|
|
|
return undefined
|
|
|
}
|
|
|
|
|
|
- if (!showTools.isShow(item.InfoPointCode) && !taizhang && !taizhang) {
|
|
|
+ if (!showTools.isShow(item.code) && !taizhang && !taizhang) {
|
|
|
if (isWatch && !onlyRead) {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InfoPointCode == "EquipQRCode") {
|
|
|
+ if (item.code == "EquipQRCode") {
|
|
|
return {
|
|
|
- data: "Infos." + item.InfoPointCode,
|
|
|
+ data: "Infos." + item.code,
|
|
|
renderer: text.lookQRCode,
|
|
|
readOnly: true
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InputMode == "D1") {
|
|
|
+ if (item.inputMode == "D1") {
|
|
|
return {
|
|
|
- data: "Infos." + item.InfoPointCode,
|
|
|
+ data: "Infos." + item.code,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
|
editor: "chosen",
|
|
|
chosenOptions: {
|
|
|
// multiple: true,//多选
|
|
|
- data: item.DataSource || ""
|
|
|
+ data: item.dataSource || ""
|
|
|
}
|
|
|
};
|
|
|
- } else if (item.InputMode == "A1" || item.InputMode == "A2") {
|
|
|
+ } else if (item.inputMode == "A1" || item.inputMode == "A2") {
|
|
|
return {
|
|
|
- data: "Infos." + item.InfoPointCode,
|
|
|
+ data: "Infos." + item.code,
|
|
|
type: "numeric",
|
|
|
numericFormat: {
|
|
|
pattern: "0,0.00"
|
|
@@ -387,51 +387,51 @@ const showTools = {
|
|
|
// more cultures available on http://numbrojs.com/languages.html
|
|
|
}
|
|
|
};
|
|
|
- } else if (item.InputMode == "C5") {
|
|
|
+ } else if (item.inputMode == "C5") {
|
|
|
return {
|
|
|
- data: "Infos." + item.InfoPointCode,
|
|
|
+ data: "Infos." + item.code,
|
|
|
type: "date",
|
|
|
dateFormat: "YYYY-MM-DD",
|
|
|
correctFormat: true
|
|
|
};
|
|
|
} else if (
|
|
|
- item.InputMode == "B1" ||
|
|
|
- item.InputMode == "L" ||
|
|
|
- item.InputMode == "L1" ||
|
|
|
- item.InputMode == "L2" ||
|
|
|
- item.InputMode == "M"
|
|
|
+ item.inputMode == "B1" ||
|
|
|
+ item.inputMode == "L" ||
|
|
|
+ item.inputMode == "L1" ||
|
|
|
+ item.inputMode == "L2" ||
|
|
|
+ item.inputMode == "M"
|
|
|
) {
|
|
|
return {
|
|
|
- data: "Infos." + item.InfoPointCode
|
|
|
+ data: "Infos." + item.code
|
|
|
};
|
|
|
} else if (
|
|
|
- item.InputMode == "X"
|
|
|
- // item.InputMode == "L1" ||
|
|
|
- // item.InputMode == "L2"
|
|
|
+ item.inputMode == "X"
|
|
|
+ // item.inputMode == "L1" ||
|
|
|
+ // item.inputMode == "L2"
|
|
|
) {
|
|
|
// return undefined
|
|
|
return {
|
|
|
- data: "Infos." + item.InfoPointCode,
|
|
|
+ data: "Infos." + item.code,
|
|
|
readOnly: true
|
|
|
};
|
|
|
- } else if (item.InputMode == "D2") {
|
|
|
+ } else if (item.inputMode == "D2") {
|
|
|
return {
|
|
|
- data: "Infos." + item.InfoPointCode,
|
|
|
+ data: "Infos." + item.code,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
|
editor: "chosen",
|
|
|
chosenOptions: {
|
|
|
multiple: true, //多选
|
|
|
- data: item.DataSource || ""
|
|
|
+ data: item.dataSource || ""
|
|
|
}
|
|
|
};
|
|
|
- } else if (item.InputMode == "Own" && !onlyRead) {
|
|
|
+ } else if (item.inputMode == "Own" && !onlyRead) {
|
|
|
return {
|
|
|
- data: "Infos." + item.InfoPointCode,
|
|
|
+ data: "Infos." + item.code,
|
|
|
renderer: text.idType,
|
|
|
}
|
|
|
} else {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode
|
|
|
+ data: "infos." + item.code
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
@@ -449,85 +449,85 @@ const showTools = {
|
|
|
showTypes(arr, onlyRead, isWatch, allMess, falg = false, typeArr = false) {
|
|
|
let data = arr.map(item => {
|
|
|
if (falg) {
|
|
|
- if (item.FirstTag == "控制参数" ||
|
|
|
- item.FirstTag == "设定参数" ||
|
|
|
- item.FirstTag == "运行参数") {
|
|
|
+ if (item.firstTag == "控制参数" ||
|
|
|
+ item.firstTag == "设定参数" ||
|
|
|
+ item.firstTag == "运行参数") {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
- if (item.InfoPointCode == "BIMLocation") {
|
|
|
+ if (item.code == "BIMLocation") {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (onlyRead || InputModeArr.indexOf(item.InputMode) > -1) {
|
|
|
+ if (onlyRead || inputModeArr.indexOf(item.inputMode) > -1) {
|
|
|
if (item.Visible || !allMess) {
|
|
|
//固定不显示的code
|
|
|
- if (!showTools.cantShow(item.InfoPointCode) && !onlyRead) {
|
|
|
+ if (!showTools.cantShow(item.code) && !onlyRead) {
|
|
|
return undefined
|
|
|
}
|
|
|
|
|
|
- if (!showTools.isShow(item.InfoPointCode) && !onlyRead) {
|
|
|
+ if (!showTools.isShow(item.code) && !onlyRead) {
|
|
|
if (isWatch && !onlyRead) {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InfoPointCode == "EquipQRCode" || item.InfoPointCode == "RoomQRCode") {
|
|
|
+ if (item.code == "EquipQRCode" || item.code == "RoomQRCode") {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
renderer: text.lookQRCode,
|
|
|
readOnly: true
|
|
|
}
|
|
|
}
|
|
|
//图片类型
|
|
|
if (
|
|
|
- item.InfoPointCode == "InstallPic" ||
|
|
|
- item.InfoPointCode == "Nameplate" ||
|
|
|
- item.InfoPointCode == "Pic"
|
|
|
+ item.code == "InstallPic" ||
|
|
|
+ item.code == "Nameplate" ||
|
|
|
+ item.code == "Pic"
|
|
|
) {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
renderer: text.picType,
|
|
|
readOnly: true
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//文件类型
|
|
|
- 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: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
renderer: text.fileType,
|
|
|
readOnly: true
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InputMode == "D1") {
|
|
|
+ if (item.inputMode == "D1") {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
|
editor: "chosen",
|
|
|
chosenOptions: {
|
|
|
// multiple: true,//多选
|
|
|
- data: item.DataSource || ""
|
|
|
+ data: item.dataSource || ""
|
|
|
}
|
|
|
};
|
|
|
- } else if (item.InputMode == "A1" || item.InputMode == "A2") {
|
|
|
+ } else if (item.inputMode == "A1" || item.inputMode == "A2") {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
type: "numeric",
|
|
|
numericFormat: {
|
|
|
pattern: "0,0.00"
|
|
@@ -535,49 +535,49 @@ const showTools = {
|
|
|
// more cultures available on http://numbrojs.com/languages.html
|
|
|
}
|
|
|
};
|
|
|
- } else if (item.InputMode == "C5") {
|
|
|
+ } else if (item.inputMode == "C5") {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
type: "date",
|
|
|
dateFormat: "YYYY-MM-DD",
|
|
|
correctFormat: true
|
|
|
};
|
|
|
} else if (
|
|
|
- item.InputMode == "B1" ||
|
|
|
- item.InputMode == "L" ||
|
|
|
- item.InputMode == "L1" ||
|
|
|
- item.InputMode == "L2" ||
|
|
|
- item.InputMode == "M"
|
|
|
+ item.inputMode == "B1" ||
|
|
|
+ item.inputMode == "L" ||
|
|
|
+ item.inputMode == "L1" ||
|
|
|
+ item.inputMode == "L2" ||
|
|
|
+ item.inputMode == "M"
|
|
|
) {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode
|
|
|
+ data: "infos." + item.code
|
|
|
}
|
|
|
} else if (
|
|
|
- item.InputMode == "X" ||
|
|
|
- item.InputMode == "F2"
|
|
|
+ item.inputMode == "X" ||
|
|
|
+ item.inputMode == "F2"
|
|
|
) {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
readOnly: true
|
|
|
};
|
|
|
- } else if (item.InputMode == "D2") {
|
|
|
+ } else if (item.inputMode == "D2") {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
|
editor: "chosen",
|
|
|
chosenOptions: {
|
|
|
multiple: true, //多选
|
|
|
- data: item.DataSource || ""
|
|
|
+ data: item.dataSource || ""
|
|
|
}
|
|
|
};
|
|
|
- } else if (item.InputMode == "Own" && !onlyRead) {
|
|
|
+ } else if (item.inputMode == "Own" && !onlyRead) {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode,
|
|
|
+ data: "infos." + item.code,
|
|
|
renderer: text.idType,
|
|
|
}
|
|
|
} else {
|
|
|
return {
|
|
|
- data: "infos." + item.InfoPointCode
|
|
|
+ data: "infos." + item.code
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
@@ -593,23 +593,23 @@ const showTools = {
|
|
|
changeHeader(arr, readArr, onlyRead, isWatch, allMess, falg = false, taizhang = false) {
|
|
|
let data = arr.map(item => {
|
|
|
if (falg) {
|
|
|
- if (item.FirstTag == "控制参数" ||
|
|
|
- item.FirstTag == "设定参数" ||
|
|
|
- item.FirstTag == "运行参数") {
|
|
|
+ if (item.firstTag == "控制参数" ||
|
|
|
+ item.firstTag == "设定参数" ||
|
|
|
+ item.firstTag == "运行参数") {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InfoPointCode == "BIMLocation") {
|
|
|
+ if (item.code == "BIMLocation") {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (onlyRead || InputModeArr.indexOf(item.InputMode) > -1) {
|
|
|
+ if (onlyRead || inputModeArr.indexOf(item.inputMode) > -1) {
|
|
|
if (item.Visible || !allMess) {
|
|
|
- if (!showTools.cantShow(item.InfoPointCode) && !onlyRead && !taizhang) {
|
|
|
+ if (!showTools.cantShow(item.code) && !onlyRead && !taizhang) {
|
|
|
return undefined
|
|
|
}
|
|
|
|
|
|
- if (!showTools.isShow(item.InfoPointCode) && !taizhang) {
|
|
|
+ if (!showTools.isShow(item.code) && !taizhang) {
|
|
|
if (isWatch && !onlyRead) {
|
|
|
return undefined
|
|
|
}
|
|
@@ -632,29 +632,29 @@ const showTools = {
|
|
|
showHeaderTypes(arr, typeArr, onlyRead, isWatch, allMess, falg = false) {
|
|
|
let data = arr.map(item => {
|
|
|
if (falg) {
|
|
|
- if (item.FirstTag == "控制参数" ||
|
|
|
- item.FirstTag == "设定参数" ||
|
|
|
- item.FirstTag == "运行参数") {
|
|
|
+ if (item.firstTag == "控制参数" ||
|
|
|
+ item.firstTag == "设定参数" ||
|
|
|
+ item.firstTag == "运行参数") {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
- if (item.InfoPointCode == "BIMLocation") {
|
|
|
+ if (item.code == "BIMLocation") {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (onlyRead || InputModeArr.indexOf(item.InputMode) > -1) {
|
|
|
+ if (onlyRead || inputModeArr.indexOf(item.inputMode) > -1) {
|
|
|
if (item.Visible || !allMess) {
|
|
|
//固定不显示的code
|
|
|
- if (!showTools.cantShow(item.InfoPointCode) && !onlyRead) {
|
|
|
+ if (!showTools.cantShow(item.code) && !onlyRead) {
|
|
|
return undefined
|
|
|
}
|
|
|
|
|
|
- if (!showTools.isShow(item.InfoPointCode)) {
|
|
|
+ if (!showTools.isShow(item.code)) {
|
|
|
if (isWatch && !onlyRead) {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InfoPointCode == "EquipQRCode") {
|
|
|
+ if (item.code == "EquipQRCode") {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.lookQRCode,
|
|
@@ -664,9 +664,9 @@ 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,
|
|
@@ -676,20 +676,20 @@ const showTools = {
|
|
|
}
|
|
|
|
|
|
//文件类型
|
|
|
- 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,
|
|
@@ -698,17 +698,17 @@ const showTools = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InputMode == "D1" || item.InputMode == "E1") { //单选
|
|
|
+ if (item.inputMode == "D1" || item.inputMode == "E1") { //单选
|
|
|
return {
|
|
|
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") {
|
|
|
+ } else if (item.inputMode == "D2") {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
@@ -716,10 +716,10 @@ const showTools = {
|
|
|
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,
|
|
|
type: "numeric",
|
|
@@ -728,7 +728,7 @@ const showTools = {
|
|
|
pattern: "0,0.00"
|
|
|
}
|
|
|
};
|
|
|
- } else if (item.InputMode == "C5") {
|
|
|
+ } else if (item.inputMode == "C5") {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
type: "date",
|
|
@@ -736,7 +736,7 @@ const showTools = {
|
|
|
readOnly: onlyRead,
|
|
|
correctFormat: true
|
|
|
};
|
|
|
- } else if (item.InputMode == "Own" && !onlyRead) {
|
|
|
+ } else if (item.inputMode == "Own" && !onlyRead) {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.idType,
|
|
@@ -764,22 +764,22 @@ const showTools = {
|
|
|
}
|
|
|
let data = arr.map(item => {
|
|
|
if (falg) {
|
|
|
- if (item.FirstTag == "控制参数" ||
|
|
|
- item.FirstTag == "设定参数" ||
|
|
|
- item.FirstTag == "运行参数") {
|
|
|
+ if (item.firstTag == "控制参数" ||
|
|
|
+ item.firstTag == "设定参数" ||
|
|
|
+ item.firstTag == "运行参数") {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InfoPointCode == "BIMLocation") {
|
|
|
+ if (item.code == "BIMLocation") {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (onlyRead || InputModeArr.indexOf(item.InputMode) > -1) {
|
|
|
+ if (onlyRead || inputModeArr.indexOf(item.inputMode) > -1) {
|
|
|
if (item.Visible || !allMess) {
|
|
|
- if (!showTools.fixedNoShowField(partsAddNoShow, item.InfoPointCode) && !onlyRead && !taizhang) {
|
|
|
+ if (!showTools.fixedNoShowField(partsAddNoShow, item.code) && !onlyRead && !taizhang) {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (!showTools.isShow(item.InfoPointCode) && !taizhang) {
|
|
|
+ if (!showTools.isShow(item.code) && !taizhang) {
|
|
|
if (isWatch && !onlyRead) {
|
|
|
return undefined
|
|
|
}
|
|
@@ -804,27 +804,27 @@ const showTools = {
|
|
|
}
|
|
|
let data = arr.map(item => {
|
|
|
if (falg) {
|
|
|
- if (item.FirstTag == "控制参数" ||
|
|
|
- item.FirstTag == "设定参数" ||
|
|
|
- item.FirstTag == "运行参数") {
|
|
|
+ if (item.firstTag == "控制参数" ||
|
|
|
+ item.firstTag == "设定参数" ||
|
|
|
+ item.firstTag == "运行参数") {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
if (item.Path == "BIMLocation") {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (onlyRead || InputModeArr.indexOf(item.InputMode) > -1) {
|
|
|
+ if (onlyRead || inputModeArr.indexOf(item.inputMode) > -1) {
|
|
|
if (item.Visible || !allMess) {
|
|
|
//固定不显示的code
|
|
|
- if (!showTools.fixedNoShowField(partsAddNoShow, item.InfoPointCode) && !onlyRead && !taizhang) {
|
|
|
+ if (!showTools.fixedNoShowField(partsAddNoShow, item.code) && !onlyRead && !taizhang) {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (!showTools.isShow(item.InfoPointCode) && !taizhang) {
|
|
|
+ if (!showTools.isShow(item.code) && !taizhang) {
|
|
|
if (isWatch && !onlyRead) {
|
|
|
return undefined
|
|
|
}
|
|
|
}
|
|
|
- if (item.InfoPointCode == "EquipQRCode") {
|
|
|
+ if (item.code == "EquipQRCode") {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.lookQRCode,
|
|
@@ -833,9 +833,9 @@ 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,
|
|
@@ -845,20 +845,20 @@ const showTools = {
|
|
|
}
|
|
|
|
|
|
//文件类型
|
|
|
- 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,
|
|
@@ -867,17 +867,17 @@ const showTools = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (item.InputMode == "D1" || item.InputMode == "E1") { //单选
|
|
|
+ if (item.inputMode == "D1" || item.inputMode == "E1") { //单选
|
|
|
return {
|
|
|
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") {
|
|
|
+ } else if (item.inputMode == "D2") {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
@@ -885,10 +885,10 @@ const showTools = {
|
|
|
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,
|
|
|
type: "numeric",
|
|
@@ -897,7 +897,7 @@ const showTools = {
|
|
|
pattern: "0,0.00"
|
|
|
}
|
|
|
};
|
|
|
- } else if (item.InputMode == "C5") {
|
|
|
+ } else if (item.inputMode == "C5") {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
type: "date",
|
|
@@ -934,7 +934,7 @@ const showTools = {
|
|
|
arr = this.arrToArr(arr, showType)
|
|
|
}
|
|
|
let data = arr.map(item => {
|
|
|
- // if (type == "property" && item.FirstTag == "RunParam") { //资产台账不显示运行参数
|
|
|
+ // if (type == "property" && item.firstTag == "RunParam") { //资产台账不显示运行参数
|
|
|
// return undefined
|
|
|
// }
|
|
|
if (onlyRead) { //只读模式
|
|
@@ -1028,8 +1028,8 @@ const showTools = {
|
|
|
},
|
|
|
textFormat(item, onlyRead) {
|
|
|
if (
|
|
|
- // item.InfoPointCode == "EquipQRCode" ||
|
|
|
- // item.InfoPointCode == "RoomQRCode"
|
|
|
+ // item.code == "EquipQRCode" ||
|
|
|
+ // item.code == "RoomQRCode"
|
|
|
item.code == "defaultQRCode"
|
|
|
) {
|
|
|
return {
|
|
@@ -1081,7 +1081,7 @@ const showTools = {
|
|
|
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") { //多选输入
|
|
@@ -1092,7 +1092,7 @@ const showTools = {
|
|
|
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") { //数字输入
|
|
@@ -1134,8 +1134,8 @@ const showTools = {
|
|
|
},
|
|
|
inputModeFilter(item, onlyRead) {
|
|
|
if (
|
|
|
- // item.InfoPointCode == "EquipQRCode" ||
|
|
|
- // item.InfoPointCode == "RoomQRCode"
|
|
|
+ // item.code == "EquipQRCode" ||
|
|
|
+ // item.code == "RoomQRCode"
|
|
|
item.code == "defaultQRCode"
|
|
|
) {
|
|
|
return {
|
|
@@ -1194,7 +1194,7 @@ const showTools = {
|
|
|
readOnly: !item.editable
|
|
|
}
|
|
|
}
|
|
|
- if (!item.inputMode){
|
|
|
+ if (!item.inputMode) {
|
|
|
this.$message.error('新版字典不支持')
|
|
|
}
|
|
|
|
|
@@ -1205,7 +1205,7 @@ const showTools = {
|
|
|
editor: "chosen",
|
|
|
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") { //多选输入
|
|
@@ -1216,7 +1216,7 @@ const showTools = {
|
|
|
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") { //数字输入
|