Commit 674b9381 by 宋祥
parents a58484da fa9173ee
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
<isNotEmpty prepend=" AND " property="factoryCode"> <isNotEmpty prepend=" AND " property="factoryCode">
B.FACTORY_CODE = #factoryCode# B.FACTORY_CODE = #factoryCode#
</isNotEmpty> </isNotEmpty>
INNER join ( left join (
select EQUIPMENT_CODE, LOG_VALUE select EQUIPMENT_CODE, LOG_VALUE
from ${hggpSchema}.HGSB010 where EQUIPMENT_TYPE = 'STARUS_TYPE' from ${hggpSchema}.HGSB010 where EQUIPMENT_TYPE = 'STARUS_TYPE'
and CREATED_TIME =( and CREATED_TIME =(
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
ACCOUNT_CODE = #accountCode# ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where a.DELETE_FLAG = 0 and a.DEVICE_STATUS = 1 where a.DELETE_FLAG = 0 and a.DEVICE_STATUS = 1 and a.REVEAL = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
a.ACCOUNT_CODE = #accountCode# a.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
<isNotEmpty prepend=" AND " property="factoryCode"> <isNotEmpty prepend=" AND " property="factoryCode">
B.FACTORY_CODE = #factoryCode# B.FACTORY_CODE = #factoryCode#
</isNotEmpty> </isNotEmpty>
join ( left join (
select select
EQUIPMENT_CODE, count(1) as NUM EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010 from ${hggpSchema}.HGSB010
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
group by EQUIPMENT_CODE group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 and REVEAL = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
a.ACCOUNT_CODE = #accountCode# a.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
<isNotEmpty prepend=" AND " property="factoryCode"> <isNotEmpty prepend=" AND " property="factoryCode">
B.FACTORY_CODE = #factoryCode# B.FACTORY_CODE = #factoryCode#
</isNotEmpty> </isNotEmpty>
join ( left join (
select select
EQUIPMENT_CODE, count(1) as NUM EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010 from ${hggpSchema}.HGSB010
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
</isNotEmpty> </isNotEmpty>
group by EQUIPMENT_CODE group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 and REVEAL = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
a.ACCOUNT_CODE = #accountCode# a.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
<isNotEmpty prepend=" AND " property="factoryCode"> <isNotEmpty prepend=" AND " property="factoryCode">
B.FACTORY_CODE = #factoryCode# B.FACTORY_CODE = #factoryCode#
</isNotEmpty> </isNotEmpty>
join ( left join (
select select
EQUIPMENT_CODE, count(1) as NUM EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010 from ${hggpSchema}.HGSB010
...@@ -322,7 +322,7 @@ ...@@ -322,7 +322,7 @@
group by EQUIPMENT_CODE group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 and REVEAL = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
a.ACCOUNT_CODE = #accountCode# a.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
<isNotEmpty prepend=" AND " property="factoryCode"> <isNotEmpty prepend=" AND " property="factoryCode">
B.FACTORY_CODE = #factoryCode# B.FACTORY_CODE = #factoryCode#
</isNotEmpty> </isNotEmpty>
join ( left join (
select select
EQUIPMENT_CODE, count(1) as NUM EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010 from ${hggpSchema}.HGSB010
...@@ -359,7 +359,7 @@ ...@@ -359,7 +359,7 @@
</isNotEmpty> </isNotEmpty>
group by EQUIPMENT_CODE group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 and REVEAL = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
a.ACCOUNT_CODE = #accountCode# a.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -380,7 +380,7 @@ ...@@ -380,7 +380,7 @@
<isNotEmpty prepend=" AND " property="factoryCode"> <isNotEmpty prepend=" AND " property="factoryCode">
B.FACTORY_CODE = #factoryCode# B.FACTORY_CODE = #factoryCode#
</isNotEmpty> </isNotEmpty>
join ( left join (
select select
EQUIPMENT_CODE, count(1) as NUM EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010 from ${hggpSchema}.HGSB010
...@@ -396,7 +396,7 @@ ...@@ -396,7 +396,7 @@
</isNotEmpty> </isNotEmpty>
group by EQUIPMENT_CODE group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 and REVEAL = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
a.ACCOUNT_CODE = #accountCode# a.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
<isNotEmpty prepend=" AND " property="factoryCode"> <isNotEmpty prepend=" AND " property="factoryCode">
B.FACTORY_CODE = #factoryCode# B.FACTORY_CODE = #factoryCode#
</isNotEmpty> </isNotEmpty>
join ( left join (
select select
EQUIPMENT_CODE, count(1) as NUM EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010 from ${hggpSchema}.HGSB010
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
</isNotEmpty> </isNotEmpty>
group by EQUIPMENT_CODE group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 and REVEAL = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
a.ACCOUNT_CODE = #accountCode# a.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -454,7 +454,7 @@ ...@@ -454,7 +454,7 @@
<isNotEmpty prepend=" AND " property="factoryCode"> <isNotEmpty prepend=" AND " property="factoryCode">
B.FACTORY_CODE = #factoryCode# B.FACTORY_CODE = #factoryCode#
</isNotEmpty> </isNotEmpty>
join ( left join (
select select
EQUIPMENT_CODE, count(1) as NUM EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010 from ${hggpSchema}.HGSB010
...@@ -470,7 +470,7 @@ ...@@ -470,7 +470,7 @@
</isNotEmpty> </isNotEmpty>
group by EQUIPMENT_CODE group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1 and REVEAL = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
a.ACCOUNT_CODE = #accountCode# a.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
......
...@@ -420,7 +420,7 @@ ...@@ -420,7 +420,7 @@
'' as "FILE_TYPE", <!-- 文件类型 --> '' as "FILE_TYPE", <!-- 文件类型 -->
'' as "FILE_NAME", <!-- 文件名称 --> '' as "FILE_NAME", <!-- 文件名称 -->
PROJECT_SOURCE as "FILE_PATH", PROJECT_SOURCE as "FILE_PATH",
PROJ_CODE as "fileIdPath" PROJ_CODE as "FILE_ID_PATH"
FROM ${hggpSchema}.HGSC001 T WHERE 1=1 FROM ${hggpSchema}.HGSC001 T WHERE 1=1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode# ACCOUNT_CODE = #accountCode#
......
...@@ -123,6 +123,20 @@ ...@@ -123,6 +123,20 @@
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
} }
.device-img{
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 84%;
height: 100%;
}
.device-img img{
display: block;
height: 100%;
width: 100%;
border-radius: 4px;
}
</style> </style>
</head> </head>
<body> <body>
...@@ -158,6 +172,7 @@ ...@@ -158,6 +172,7 @@
placeholder="选择日期" placeholder="选择日期"
@change="handledataPicker" @change="handledataPicker"
value-format="yyyyMMdd" value-format="yyyyMMdd"
:picker-options='pickerOptions'
style="width: 11vw" style="width: 11vw"
> >
</el-date-picker> </el-date-picker>
...@@ -200,7 +215,11 @@ ...@@ -200,7 +215,11 @@
<div style="color: #01A9FF;font-size: 1vw;">{{ item.deviceModel }}</div> <div style="color: #01A9FF;font-size: 1vw;">{{ item.deviceModel }}</div>
</div> </div>
<div style="height: 15.5vh;width: 100%;display: flex;justify-content: center;align-items: center;"> <div style="height: 15.5vh;width: 100%;display: flex;justify-content: center;align-items: center;">
<img src="${ctx}/common/img/avi.png" style="width: 3vw;height: 6vh;" alt/> <div v-if="item.imgUrl" class="device-img">
<img :src="item.imgUrl" style="height: 100%;" alt="">
</div>
<img v-else src="${ctx}/common/img/avi.png" style="width: 3vw;height: 6vh;" alt/>
</div> </div>
</div> </div>
</div> </div>
...@@ -239,7 +258,8 @@ ...@@ -239,7 +258,8 @@
<div style="color: #01A9FF;font-size: 1vw;">{{ item.deviceModel }}</div> <div style="color: #01A9FF;font-size: 1vw;">{{ item.deviceModel }}</div>
</div> </div>
<div style="height: 15.5vh;width: 100%;display: flex;justify-content: center;align-items: center;"> <div style="height: 15.5vh;width: 100%;display: flex;justify-content: center;align-items: center;">
<img src="${ctx}/common/img/avi.png" style="width: 3vw;height: 6vh;" alt/> <img v-if="item.imgUrl" :src="item.imgUrl" style="height: 100%;" alt="">
<img v-else src="${ctx}/common/img/avi.png" style="width: 3vw;height: 6vh;" alt/>
</div> </div>
</div> </div>
</div> </div>
...@@ -292,7 +312,13 @@ ...@@ -292,7 +312,13 @@
querySbYesDate:[], querySbYesDate:[],
querySbNoList:[], querySbNoList:[],
querySbNODate:[], querySbNODate:[],
currentTime:dayjs().format("YYYY-MM-DD HH:mm:ss") currentTime:dayjs().format("YYYY-MM-DD HH:mm:ss"),
maxDate:dayjs().format("YYYY-MM-DD"),
pickerOptions:{
disabledDate(time) {
return time.getTime() > Date.now();
}
}
}; };
}, },
mounted() { mounted() {
...@@ -356,6 +382,7 @@ ...@@ -356,6 +382,7 @@
deviceName:'数控龙门加工中心', deviceName:'数控龙门加工中心',
status:'3', status:'3',
deviceModel:'NSP42014C', deviceModel:'NSP42014C',
imgUrl:`${ctx}/common/img/device_01.jpg`
}, },
{ {
deviceName:'数控平面钻床1号', deviceName:'数控平面钻床1号',
...@@ -385,7 +412,7 @@ ...@@ -385,7 +412,7 @@
_this.queryBySbStatusList = res.extAttr.result; _this.queryBySbStatusList = res.extAttr.result;
} }
let newArr = deviceList.slice(_this.queryBySbStatusList.length,5-_this.queryBySbStatusList.length); let newArr = deviceList.slice(_this.queryBySbStatusList.length,deviceList.length);
_this.queryBySbStatusList.push(...newArr) _this.queryBySbStatusList.push(...newArr)
_this.querySbYes(); _this.querySbYes();
_this.querySbNo(); _this.querySbNo();
...@@ -486,7 +513,7 @@ ...@@ -486,7 +513,7 @@
str = dayjs().format('YYYY') + _this.querySbYesDate[_this.querySbYesDate.length-1]; str = dayjs().format('YYYY') + _this.querySbYesDate[_this.querySbYesDate.length-1];
dateArr.unshift(_this.querySbYesDate[_this.querySbYesDate.length-1]) dateArr.unshift(_this.querySbYesDate[_this.querySbYesDate.length-1])
for (let i = 0; i < 6; i++){ for (let i = 0; i < 6; i++){
dateArr.unshift(dayjs(str).subtract(i,'day').format('MMDD')); dateArr.unshift(dayjs(str).subtract(i+1,'day').format('MMDD'));
} }
}else{ }else{
for (let i = 0; i < 7; i++){ for (let i = 0; i < 7; i++){
...@@ -548,7 +575,7 @@ ...@@ -548,7 +575,7 @@
}) })
} }
let newArr = list.slice(_this.querySbYesList.length,5-_this.querySbYesList.length); let newArr = list.slice(_this.querySbYesList.length,list.length);
_this.querySbYesList.push(...newArr) _this.querySbYesList.push(...newArr)
console.log(_this.querySbYesList,999998888) console.log(_this.querySbYesList,999998888)
}, },
...@@ -638,7 +665,7 @@ ...@@ -638,7 +665,7 @@
str = dayjs().format('YYYY') + _this.querySbNODate[ _this.querySbNODate.length-1]; str = dayjs().format('YYYY') + _this.querySbNODate[ _this.querySbNODate.length-1];
dateArr.unshift( _this.querySbNODate[ _this.querySbNODate.length-1]) dateArr.unshift( _this.querySbNODate[ _this.querySbNODate.length-1])
for (let i = 0; i < 6; i++){ for (let i = 0; i < 6; i++){
dateArr.unshift(dayjs(str).subtract(i,'day').format('MMDD')); dateArr.unshift(dayjs(str).subtract(i+1,'day').format('MMDD'));
} }
}else{ }else{
for (let i = 0; i < 7; i++){ for (let i = 0; i < 7; i++){
...@@ -700,7 +727,7 @@ ...@@ -700,7 +727,7 @@
}) })
} }
let newArr = list.slice(_this.querySbNoList.length,5-_this.querySbNoList.length); let newArr = list.slice(_this.querySbNoList.length,list.length);
_this.querySbNoList.push(...newArr) _this.querySbNoList.push(...newArr)
console.log(_this.querySbNoList,77776666) console.log(_this.querySbNoList,77776666)
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<EF:EFColumn ename="contractContent" cname="签证事由及内容" width="120" enable="true" align="center" required="true"/> <EF:EFColumn ename="contractContent" cname="签证事由及内容" width="120" enable="true" align="center" required="true"/>
<EF:EFColumn ename="totalContractPriceIncluding" cname="含税金额" width="120" enable="true" format="{0:N2}" align="right" required="true"/> <EF:EFColumn ename="totalContractPriceIncluding" cname="含税金额" width="120" enable="true" format="{0:N2}" align="right" required="true"/>
<EF:EFColumn ename="signingDate" cname="签订日期" width="120" enable="true" align="center" editType="date" <EF:EFColumn ename="signingDate" cname="签订日期" width="120" enable="true" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyy-MM-dd', 'yyyyMMdd']" required="true"/> dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFComboColumn ename="reviewStatus" cname="审批状态" width="100" align="center" required="true" <EF:EFComboColumn ename="reviewStatus" cname="审批状态" width="100" align="center" required="true"
columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" > columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" >
<EF:EFCodeOption codeName="hggp.cw.reviewStatus"/> <EF:EFCodeOption codeName="hggp.cw.reviewStatus"/>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<EF:EFColumn ename="contractContent" cname="扣款事由" width="120" enable="true" align="center" required="true"/> <EF:EFColumn ename="contractContent" cname="扣款事由" width="120" enable="true" align="center" required="true"/>
<EF:EFColumn ename="totalContractPriceIncluding" cname="扣款金额" width="120" enable="true" format="{0:N2}" align="right" required="true"/> <EF:EFColumn ename="totalContractPriceIncluding" cname="扣款金额" width="120" enable="true" format="{0:N2}" align="right" required="true"/>
<EF:EFColumn ename="signingDate" cname="扣款日期" width="120" enable="true" align="center" editType="date" <EF:EFColumn ename="signingDate" cname="扣款日期" width="120" enable="true" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyy-MM-dd', 'yyyyMMdd']" required="true"/> dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd', 'yyyy-MM-dd']" required="true"/>
<EF:EFColumn ename="deliveryCode" cname="发货单号" enable="false" width="130" align="center"/> <EF:EFColumn ename="deliveryCode" cname="发货单号" enable="false" width="130" align="center"/>
<EF:EFComboColumn ename="reviewStatus" cname="审批状态" width="100" align="center" <EF:EFComboColumn ename="reviewStatus" cname="审批状态" width="100" align="center"
columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" > columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" >
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</EF:EFRegion> </EF:EFRegion>
<EF:EFRegion id="result" title="记录集"> <EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" autoBind="false" sort="all"> <EF:EFGrid blockId="result" autoDraw="no" isFloat="true" autoBind="false">
<EF:EFColumn ename="id" cname="主键" hidden="true"/> <EF:EFColumn ename="id" cname="主键" hidden="true"/>
<%--<EF:EFComboColumn ename="companyCode" cname="公司名称" <%--<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#" columnTemplate="#=textField#" itemTemplate="#=textField#"
......
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