合并代码
parent
fe9c167c06
commit
b5cb394b44
|
@ -163,10 +163,12 @@
|
|||
title: "关联合同",
|
||||
url: prefix + '/selectOrder',
|
||||
skin: 'layui-layer-gray',
|
||||
btn: false,
|
||||
btn: ['关闭'],
|
||||
yes:function(index){
|
||||
$.modal.close(index)
|
||||
},
|
||||
maxmin: false,
|
||||
full: false,
|
||||
index:1000
|
||||
};
|
||||
$.modal.openOptions(options)
|
||||
}
|
||||
|
|
|
@ -166,10 +166,12 @@
|
|||
title: "关联合同",
|
||||
url: prefix + '/selectOrder',
|
||||
skin: 'layui-layer-gray',
|
||||
btn: false,
|
||||
btn: ['关闭'],
|
||||
yes:function(index){
|
||||
$.modal.close(index)
|
||||
},
|
||||
maxmin: false,
|
||||
full: false,
|
||||
index:1000
|
||||
};
|
||||
$.modal.openOptions(options)
|
||||
}
|
||||
|
|
|
@ -5,7 +5,38 @@
|
|||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="col-sm-12 select-table table-striped" >
|
||||
<div>
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>合同编号:</label>
|
||||
<input type="text" name="orderCode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>合同名称:</label>
|
||||
<input type="text" name="orderName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>客户名称:</label>
|
||||
<input type="text" name="customerName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>合同类型:</label>
|
||||
<select name="orderType" th:with="type=${@dict.getType('order_type')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
|
@ -19,6 +50,8 @@
|
|||
showSearch:false,
|
||||
showColumns:false,
|
||||
showToggle:false,
|
||||
showRefresh:false,
|
||||
|
||||
showPageGo:true,
|
||||
params:{
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
.container {
|
||||
/*width: 100%;*/
|
||||
margin: 0;
|
||||
padding: 20px 0;
|
||||
padding: 10px 0;
|
||||
background-color: white;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
|
@ -62,7 +62,7 @@
|
|||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 20px;
|
||||
margin: 20px 0;
|
||||
margin: 30px 0 10px;
|
||||
align-items: center;
|
||||
}
|
||||
.topBox .title{
|
||||
|
@ -77,10 +77,10 @@
|
|||
background: #ccc;
|
||||
}
|
||||
.table-striped thead th{
|
||||
padding: 8px;
|
||||
padding: 10px;
|
||||
}
|
||||
.table-striped tbody td{
|
||||
padding: 8px;
|
||||
padding: 10px;
|
||||
}
|
||||
.tabBtn{
|
||||
display: inline-block;
|
||||
|
@ -92,24 +92,23 @@
|
|||
<body class="gray-bg">
|
||||
<div class="col-sm-12 select-table table-striped" >
|
||||
<div class="topBox">
|
||||
<div class="title">单条查询</div>
|
||||
<div style="color: #dd242a">H3C产品保修条款</div>
|
||||
<div class="title">单条查询 <span>(不支持第三方信息查询)</span></div>
|
||||
<!-- <div style="color: #dd242a">H3C产品保修条款</div>-->
|
||||
</div>
|
||||
<p>(不支持第三方信息查询)</p>
|
||||
<div class="container">
|
||||
<div class="form-group">
|
||||
<label for="serialNumber">序列号</label>
|
||||
<input type="text" id="serialNumber" placeholder="请输入序列号">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="productCode">产品号</label>
|
||||
<input type="text" id="productCode" placeholder="请输入产品号">
|
||||
</div>
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <label for="productCode">产品号</label>-->
|
||||
<!-- <input type="text" id="productCode" placeholder="请输入产品号">-->
|
||||
<!-- </div>-->
|
||||
<button type="button" onclick="getData()">查询</button>
|
||||
|
||||
</div>
|
||||
<h2>查询结果</h2>
|
||||
<h4 style="margin-top: 20px;">产品信息</h4>
|
||||
<div style="font-size: 20px;text-align: left;width: 70vw;margin: 10px 0">查询结果</div>
|
||||
<div style="font-size: 16px;text-align: left;width: 70vw;font-weight: 600;">产品信息</div>
|
||||
<table class="tableBOx" id="tableBOx">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -126,7 +125,7 @@
|
|||
<div >
|
||||
<div style="margin: 20px 0;">
|
||||
<span id="btn1" class="tabBtn" onclick="changeTab(0)" style="background: #dd242a;color: #fff">合同</span>
|
||||
<!-- <span id="btn2" class="tabBtn" onclick="changeTab(1)">标准保修</span>-->
|
||||
<span id="btn2" class="tabBtn" onclick="changeTab(1)">标准保修</span>
|
||||
</div>
|
||||
<table class="tableBOx" id="tableBOx2">
|
||||
<thead>
|
||||
|
@ -149,11 +148,11 @@
|
|||
<table class="tableBOx" id="tableBOx3" style="display: none">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>硬件序列号</th>
|
||||
<th>产品号</th>
|
||||
<th>产品描述</th>
|
||||
<th>产品线描述</th>
|
||||
<th>区域</th>
|
||||
<th>服务项</th>
|
||||
<th>服务项描述</th>
|
||||
<th>开始时间</th>
|
||||
<th>结束时间</th>
|
||||
<th>状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -170,9 +169,7 @@
|
|||
});
|
||||
function getData() {
|
||||
let serialNumber=$('#serialNumber').val()
|
||||
let productCode=$('#productCode').val()
|
||||
|
||||
$.operate.get(`/system/product/query?productCode=${productCode}&serialNumber=${serialNumber}`, function (res){
|
||||
$.operate.get(`/system/product/product=${serialNumber}`, function (res){
|
||||
let str=`<tr><td colspan="5" style="text-align: center">暂无数据</td></tr>`
|
||||
if(res.data.length){
|
||||
str=``
|
||||
|
@ -188,14 +185,14 @@ let serialNumber=$('#serialNumber').val()
|
|||
}
|
||||
$('#tableBOx tbody').html(str)
|
||||
})
|
||||
$.operate.get(`/manage/order/query?productCode=${productCode}&serialNumber=${serialNumber}`, function (res){
|
||||
$.operate.get(`/manage/service/order=${serialNumber}`, function (res){
|
||||
let str=`<tr><td colspan="9" style="text-align: center">暂无数据</td></tr>`
|
||||
if(res.data.length){
|
||||
str=``
|
||||
res.data.forEach((ele)=>{
|
||||
str+=`<tr>
|
||||
<td></td>
|
||||
<td>${ele.orderType=='zq'?'直签合同':'代理合同'}</td>
|
||||
<td>${ele.orderType == 'zq' ? '直签合同' : '代理合同'}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
@ -203,7 +200,7 @@ let serialNumber=$('#serialNumber').val()
|
|||
<td>${ele.createdAt}</td>
|
||||
<td></td>
|
||||
|
||||
<td>${ele.statua==0?'有效':'无效'}</td>
|
||||
<td>${ele.statua == 0 ? '有效' : '无效'}</td>
|
||||
|
||||
</tr>`
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue