第二期基本完成
parent
c2d73ad9ca
commit
77935b5153
|
@ -13,8 +13,8 @@
|
|||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<input style="display: none" name="orderId" class="form-control" readonly type="text" required>
|
||||
<input name="orderName" class="form-control" type="text" onclick="selectOrder()" required>
|
||||
<span class="input-group-addon"><i class="fa fa-search"></i></span>
|
||||
<input name="orderName" class="form-control" readonly type="text" onclick="openList()" required>
|
||||
<span class="input-group-addon"><i class="fa fa-search" onclick="openList()"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<input style="display: none" th:orderId="*{orderId}" name="orderId" class="form-control" readonly type="text" required>
|
||||
<input name="orderName" th:orderName="*{orderName}" class="form-control" type="text" onclick="selectOrder()" required>
|
||||
<span class="input-group-addon"><i class="fa fa-search"></i></span>
|
||||
<input name="orderName" th:orderName="*{orderName}" readonly class="form-control" type="text" onclick="openList()" required>
|
||||
<span class="input-group-addon"><i class="fa fa-search" onclick="openList()"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
<head>
|
||||
<th:block th:include="include :: header('修改合同档案')" />
|
||||
<th:block th:include="include :: datetimepicker-css" />
|
||||
<style>
|
||||
.hideTd{
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
|
@ -215,6 +220,7 @@
|
|||
field: 'id',
|
||||
align: 'center',
|
||||
title: "id",
|
||||
class:'hideTd',
|
||||
formatter: function (value, row, index) {
|
||||
var html = $.common.sprintf("<input type='hidden' name='orderListList[%s].id' value='%s'>", index, value);
|
||||
return html;
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
label {
|
||||
margin-bottom: 0;
|
||||
width: 80px;
|
||||
font-weight: 600;
|
||||
|
||||
}
|
||||
input[type="text"] {
|
||||
|
@ -74,7 +75,7 @@
|
|||
display: flex;justify-content: flex-start;flex-direction: column;align-items: center
|
||||
}
|
||||
.table-striped thead{
|
||||
background: #ccc;
|
||||
background: #f5f5f5 !important;
|
||||
}
|
||||
.table-striped thead th{
|
||||
padding: 10px;
|
||||
|
@ -84,8 +85,10 @@
|
|||
}
|
||||
.tabBtn{
|
||||
display: inline-block;
|
||||
padding: 10px;
|
||||
padding:8px 10px;
|
||||
cursor: pointer;
|
||||
width: 80px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
@ -108,7 +111,7 @@
|
|||
|
||||
</div>
|
||||
<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>
|
||||
<div style="font-size: 16px;text-align: left;width: 70vw;font-weight: 600;"><blockquote style="border-left-color: #dd242a">产品信息</blockquote> </div>
|
||||
<table class="tableBOx" id="tableBOx">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -169,7 +172,7 @@
|
|||
});
|
||||
function getData() {
|
||||
let serialNumber=$('#serialNumber').val()
|
||||
$.operate.get(`/system/product/product=${serialNumber}`, function (res){
|
||||
$.operate.get(`/manage/service/product?serialNumber=${serialNumber}`, function (res){
|
||||
let str=`<tr><td colspan="5" style="text-align: center">暂无数据</td></tr>`
|
||||
if(res.data.length){
|
||||
str=``
|
||||
|
@ -185,7 +188,7 @@ let serialNumber=$('#serialNumber').val()
|
|||
}
|
||||
$('#tableBOx tbody').html(str)
|
||||
})
|
||||
$.operate.get(`/manage/service/order=${serialNumber}`, function (res){
|
||||
$.operate.get(`/manage/service/order?serialNumber=${serialNumber}`, function (res){
|
||||
let str=`<tr><td colspan="9" style="text-align: center">暂无数据</td></tr>`
|
||||
if(res.data.length){
|
||||
str=``
|
||||
|
@ -207,6 +210,25 @@ let serialNumber=$('#serialNumber').val()
|
|||
}
|
||||
$('#tableBOx2 tbody').html(str)
|
||||
})
|
||||
$.operate.get(`/manage/service/query?serialNumber=${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></td>
|
||||
<td>${ele.startDate}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
<td>${ele.statua == 0 ? '有效' : '无效'}</td>
|
||||
|
||||
</tr>`
|
||||
})
|
||||
}
|
||||
$('#tableBOx3 tbody').html(str)
|
||||
})
|
||||
}
|
||||
function changeTab(show) {
|
||||
if(!show){
|
||||
|
|
Loading…
Reference in New Issue