Commit 98dbc9b5 by 宋祥

Merge branch 'dev' of http://129.211.46.84:8800/platform/hg-smart into master-dc

parents 31274fd6 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>
......
...@@ -172,6 +172,7 @@ ...@@ -172,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>
...@@ -311,7 +312,13 @@ ...@@ -311,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() {
...@@ -506,7 +513,7 @@ ...@@ -506,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++){
...@@ -658,7 +665,7 @@ ...@@ -658,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++){
......
...@@ -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