Commit 3f96edd4 by zhangzhen

新表格模式页面查询条件优化

parent 148edc12
$(function () { $(function () {
let inInfo = new EiInfo();
$("#QUERY").on("click", () => { $("#QUERY").on("click", () => {
inInfo.set("inqu_status-0-companyCode",$("#inqu_status-0-companyCode").val());
inInfo.set("inqu_status-0-contractDate",$("#inqu_status-0-projName").val())
inInfo.set("inqu_status-0-contractCode",$("#inqu_status-0-productName").val())
vue.onLoading() vue.onLoading()
}); });
...@@ -170,11 +167,15 @@ $(function () { ...@@ -170,11 +167,15 @@ $(function () {
} }
}, },
mounted(){ mounted(){
this.onLoading();
}, },
methods:{ methods:{
onLoading(){ onLoading(){
let that = this; let that = this;
let inInfo = new EiInfo();
inInfo.set("inqu_status-0-companyCode",$("#inqu_status-0-companyCode").val());
inInfo.set("inqu_status-0-contractDate",$("#inqu_status-0-projName").val())
inInfo.set("inqu_status-0-contractCode",$("#inqu_status-0-productName").val())
IPLAT.EiCommunicator.send('HGSC013', 'query', inInfo, { IPLAT.EiCommunicator.send('HGSC013', 'query', inInfo, {
onSuccess: (res) => { onSuccess: (res) => {
if(res.extAttr.result && res.extAttr.result.length){ if(res.extAttr.result && res.extAttr.result.length){
...@@ -306,6 +307,8 @@ $(function () { ...@@ -306,6 +307,8 @@ $(function () {
arr1.forEach(item=>{ arr1.forEach(item=>{
that.list.push(...item); that.list.push(...item);
}) })
}else{
that.list = []
} }
}, },
onFail: (err) => { onFail: (err) => {
...@@ -318,6 +321,12 @@ $(function () { ...@@ -318,6 +321,12 @@ $(function () {
} }
} }
}) })
$(window).load(function () {
// 查
vue.onLoading()
});
}); });
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
<EF:EFRegion id="inqu" title="查询条件"> <EF:EFRegion id="inqu" title="查询条件">
<div class="row"> <div class="row">
<EF:EFSelect blockId="inqu_status" row="0" ename="companyCode" cname="公司名称" colWidth="3" filter="contains"> <EF:EFSelect blockId="inqu_status" row="0" ename="companyCode" cname="公司名称" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/> <EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
</EF:EFSelect> </EF:EFSelect>
<%-- <EF:EFDatePicker blockId="inqu_status" row="0" ename="contractDate" cname="委外加工日期" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>--%> <%-- <EF:EFDatePicker blockId="inqu_status" row="0" ename="contractDate" cname="委外加工日期" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>--%>
......
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