Commit 9f554ad1 by liuyang

2024-05-18 优化工艺流程和工序单价

parent de9d93f3
...@@ -209,7 +209,7 @@ public enum DdynamicEnum { ...@@ -209,7 +209,7 @@ public enum DdynamicEnum {
* 用途:设备名称下拉框 * 用途:设备名称下拉框
* 编写:ly * 编写:ly
*/ */
DEVICE_CODE_BOX_BLOCK_ID("deviceCodeBox_block_id","deviceCode","deviceName","deviceType", "companyCode","HGSB001.queryDeviceCodeBox"), DEVICE_CODE_BOX_BLOCK_ID("deviceCodeBox_block_id","deviceCode","deviceName","deviceType", "companyCode","deviceStatus","HGSB001.queryDeviceCodeBox"),
//------------------------------------- 生产管理--------------------------------------------------- //------------------------------------- 生产管理---------------------------------------------------
/** /**
......
...@@ -373,7 +373,8 @@ ...@@ -373,7 +373,8 @@
DEVICE_CODE as "deviceCode", <!-- 设备编码 --> DEVICE_CODE as "deviceCode", <!-- 设备编码 -->
DEVICE_NAME as "deviceName", <!-- 设备名称 --> DEVICE_NAME as "deviceName", <!-- 设备名称 -->
DEVICE_TYPE as "deviceType", <!-- 设备类型 --> DEVICE_TYPE as "deviceType", <!-- 设备类型 -->
COMPANY_CODE as "companyCode" COMPANY_CODE as "companyCode",
DEVICE_STATUS as "deviceStatus"
FROM ${hggpSchema}.HGSB001 WHERE 1=1 FROM ${hggpSchema}.HGSB001 WHERE 1=1
<include refid="condition" /> <include refid="condition" />
</select> </select>
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
UPKEEP_CODE = #upkeepCode# UPKEEP_CODE = #upkeepCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="planCode"> <isNotEmpty prepend=" AND " property="planCode">
PLAN_CODE = #planCode# PLAN_CODE LIKE CONCAT('%', #planCode#, '%')
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="planStartDate"> <isNotEmpty prepend=" AND " property="planStartDate">
PLAN_START_DATE = #planStartDate# PLAN_START_DATE = #planStartDate#
......
...@@ -50,7 +50,7 @@ $(function () { ...@@ -50,7 +50,7 @@ $(function () {
if(deviceType) { if(deviceType) {
// 返回我们过滤后的数据集 // 返回我们过滤后的数据集
return _.filter(deviceCodeBox, function (item) { return _.filter(deviceCodeBox, function (item) {
return item["param1Field"]==deviceType; return item["param1Field"]==deviceType && item["param3Field"] == "true";
}) })
} }
return deviceCodeBox; return deviceCodeBox;
......
...@@ -67,7 +67,7 @@ $(function () { ...@@ -67,7 +67,7 @@ $(function () {
if(companyCode) { if(companyCode) {
// 返回我们过滤后的数据集 // 返回我们过滤后的数据集
return _.filter(deviceCodeBox, function (item) { return _.filter(deviceCodeBox, function (item) {
return item["param2Field"] === companyCode; return item["param2Field"] === companyCode && item["param3Field"] == "true";
}) })
} }
return deviceCodeBox; return deviceCodeBox;
......
...@@ -25,7 +25,7 @@ $(function () { ...@@ -25,7 +25,7 @@ $(function () {
if (item.companyCode) { if (item.companyCode) {
if (auditStatus == 1){ if (auditStatus == 1){
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showDetail(' + item.id + ',\''+item.companyCode+'\',\''+item.companyName+'\')" >点检详情</a>'; + 'onclick="showDetail(' + item.id + ',\''+item.companyCode+'\',\''+item.companyName+'\')" >保养详情</a>';
} }
if (auditStatus == 0) { if (auditStatus == 0) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' + template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' +
......
...@@ -25,10 +25,10 @@ $(function () { ...@@ -25,10 +25,10 @@ $(function () {
field: "checkStatus", field: "checkStatus",
template: function (item) { template: function (item) {
let template = ''; let template = '';
if (isBlank(item.checkResult.trim()) || isBlank(item.docId.trim())){ if (!isBlank(item.checkResult.trim()) || !isBlank(item.docId.trim())){
return "未点检";
}else {
return "已点检"; return "已点检";
}else {
return "未点检";
} }
} }
}, { }, {
......
...@@ -112,10 +112,10 @@ $(function () { ...@@ -112,10 +112,10 @@ $(function () {
field: "upkeepStatus", field: "upkeepStatus",
template: function (item) { template: function (item) {
let template = ''; let template = '';
if (isBlank(item.checkResult.trim()) || isBlank(item.docId.trim())){ if (!isBlank(item.checkResult.trim()) || !isBlank(item.docId.trim())){
return "未保养";
}else {
return "已保养"; return "已保养";
}else {
return "未保养";
} }
} }
}, { }, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment