Compare commits

..

No commits in common. "7e47ffa2a3485dfe16dd729396f23ccbedaa94b3" and "326dfe58103f00ac2de3ccfe908174955d7c01d0" have entirely different histories.

4 changed files with 380 additions and 419 deletions

View File

@ -160,12 +160,12 @@
minView: "month",
autoclose: true
});
function openList(id){
function selectOrder(id){
var options = {
title: "关联合同",
url: prefix + '/selectOrder',
skin: 'layui-layer-gray',
btn: false,
btn: true,
maxmin: false,
full: false,
index:1000

View File

@ -163,16 +163,12 @@
minView: "month",
autoclose: true
});
function openList(){
function selectOrder(){
var options = {
title: "关联合同",
url: prefix + '/selectOrder',
skin: 'layui-layer-gray',
btn: true,
btn: ['关闭'],
yes:function(index){
$.modal.close(index)
},
maxmin: false,
full: false,
index:1000

View File

@ -4,48 +4,12 @@
<th:block th:include="include :: header('关联合同')" />
</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>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<table id="bootstrap-table"></table>
</div>
<div class="col-sm-12 select-table table-striped" >
<table id="bootstrap-table"></table>
</div>
<th:block th:include="include :: footer" />
<script>
var prefixOrder = ctx + "manage/order";
$(function() {
@ -54,8 +18,6 @@
showSearch:false,
showColumns:false,
showToggle:false,
showRefresh:false,
showPageGo:true,
params:{

View File

@ -12,7 +12,7 @@
.container {
/*width: 100%;*/
margin: 0;
padding: 10px 0;
padding: 20px 0;
background-color: white;
border-radius: 8px;
display: flex;
@ -62,7 +62,7 @@
display: flex;
flex-direction: row;
gap: 20px;
margin: 30px 0 10px;
margin: 20px 0;
align-items: center;
}
.topBox .title{
@ -77,10 +77,10 @@
background: #ccc;
}
.table-striped thead th{
padding: 10px;
padding: 8px;
}
.table-striped tbody td{
padding: 10px;
padding: 8px;
}
.tabBtn{
display: inline-block;
@ -92,23 +92,24 @@
<body class="gray-bg">
<div class="col-sm-12 select-table table-striped" >
<div class="topBox">
<div class="title">单条查询 <span>(不支持第三方信息查询)</span></div>
<!-- <div style="color: #dd242a">H3C产品保修条款</div>-->
<div class="title">单条查询</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>
<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>
<h2>查询结果</h2>
<h4 style="margin-top: 20px;">产品信息</h4>
<table class="tableBOx" id="tableBOx">
<thead>
<tr>
@ -125,7 +126,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>
@ -148,11 +149,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>
@ -169,7 +170,9 @@
});
function getData() {
let serialNumber=$('#serialNumber').val()
$.operate.get(`/system/product/product=${serialNumber}`, function (res){
let productCode=$('#productCode').val()
$.operate.get(`/system/product/query?productCode=${productCode}&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/order/query?productCode=${productCode}&serialNumber=${serialNumber}`, function (res){
let str=`<tr><td colspan="9" style="text-align: center">暂无数据</td></tr>`
if(res.data.length){
str=``