|
@@ -1049,7 +1049,9 @@ const showTools = {
|
|
|
item.InfoPointCode == "InstallInstruction" ||
|
|
|
item.InfoPointCode == "SupplierContract" ||
|
|
|
item.InfoPointCode == "Drawing" ||
|
|
|
- item.InfoPointCode == "InstallDrawing"
|
|
|
+ item.InfoPointCode == "InstallDrawing" ||
|
|
|
+ item.InfoPointCode == "DesignIDGraph" ||
|
|
|
+ item.InfoPointCode == "FanCharacterCurve"
|
|
|
) {
|
|
|
return {
|
|
|
data: item.Path,
|
|
@@ -1123,7 +1125,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.lookQRCode,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1136,7 +1138,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.picType,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1154,12 +1156,14 @@ const showTools = {
|
|
|
item.InfoPointCode == "InstallInstruction" ||
|
|
|
item.InfoPointCode == "SupplierContract" ||
|
|
|
item.InfoPointCode == "Drawing" ||
|
|
|
- item.InfoPointCode == "InstallDrawing"
|
|
|
+ item.InfoPointCode == "InstallDrawing" ||
|
|
|
+ item.InfoPointCode == "DesignIDGraph" ||
|
|
|
+ item.InfoPointCode == "FanCharacterCurve"
|
|
|
) {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.fileType,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1173,7 +1177,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.idType,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1182,7 +1186,7 @@ const showTools = {
|
|
|
data: item.Path,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
|
editor: "chosen",
|
|
|
- readOnly: !item.Editable,
|
|
|
+ readOnly: onlyRead,
|
|
|
chosenOptions: {
|
|
|
data: item.DataSource ? tools.formatDataSource(item.DataSource) : ""
|
|
|
}
|
|
@@ -1192,7 +1196,7 @@ const showTools = {
|
|
|
data: item.Path,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
|
editor: "chosen",
|
|
|
- readOnly: !item.Editable,
|
|
|
+ readOnly: onlyRead,
|
|
|
chosenOptions: {
|
|
|
multiple: true, //多选
|
|
|
data: item.DataSource ? tools.formatDataSource(item.DataSource) : ""
|
|
@@ -1202,7 +1206,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
type: "numeric",
|
|
|
- readOnly: !item.Editable,
|
|
|
+ readOnly: onlyRead,
|
|
|
numericFormat: {
|
|
|
pattern: "0,0.00"
|
|
|
}
|
|
@@ -1212,7 +1216,7 @@ const showTools = {
|
|
|
data: item.Path,
|
|
|
type: "date",
|
|
|
dateFormat: "YYYYMMDDHHmmss",
|
|
|
- readOnly: !item.Editable,
|
|
|
+ readOnly: onlyRead,
|
|
|
correctFormat: true
|
|
|
};
|
|
|
} else if (item.InputMode == "B1" ||
|
|
@@ -1225,12 +1229,12 @@ const showTools = {
|
|
|
item.InputMode == "M") { //文本输入
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
} else { //(未支持的输入方式)暂不支持编辑
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyReadc
|
|
|
}
|
|
|
}
|
|
|
},
|