2025-06-27 10:04:22 +08:00

400 lines
18 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--<div>
<iframe width="100%" height="900px" src="http://192.168.0.251/shipinshengchanjingyingxuke.html"></iframe>
</div>-->
<style>
.SortTop {
padding: 15px;
line-height: 25px;
background-color: #CCECF4;
}
#myTable thead th, #myTable tbody td {
text-align: center;
width: 6.66%;
vertical-align: middle;
font-size: 12px;
cursor: pointer;
}
.SortTop .btn {
height: 28px;
padding: 3px 12px;
}
.modal-body {
padding: 10px;
width: 100%;
overflow: hidden;
}
.modal-body label {
width: 29%;
text-align: right;
}
.modal-body input, .modal-body select, .modal-body textarea {
background-color: #E7E7FE;
width: 50%;
text-align: left;
vertical-align: middle;
}
.modal-body .btn {
width: 51px;
height: 30px;
border-radius: 5px;
line-height: 11px;
}
.modal_select {
width: 200px;
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
border: 1px solid #ccc;
}
.btnModal {
width: 140px;
}
.dictClass {
background-color: white;
border-radius: 5px;
border: 1px solid #d3d3d3;
width: 20px;
height: 20px;
display: inline-block;
text-align: center;
vertical-align: middle;
line-height: 20px;
}
</style>
<div class="container">
<div class="row text-left SortTop">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title" data-toggle="collapse" data-parent="#accordion"
href="#collapseOne" style="cursor:pointer;">
样品农药残留信息
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in text-center ">
<div class="panel-body">
<div style="display: flex;margin: 10px; align-items: center; justify-content: center;">
<span>查询条件:</span>
<select ng-model="mysel" ng-options="a.mytext for a in Myjson"
style="margin-right:10px; height: 30px;" ng-change="MyjsonChange()">
<option value="">选择</option>
</select>
<select ng-model="mysel1" ng-options="a.mytext for a in Myjson1"
style="margin-right:10px; height: 30px;" ng-show="!isdate">
<option value="">选择</option>
</select>
<!--<select ng-model="myselpublic" ng-options="a.mytext for a in RELYdata" ng-show="RWLYSHOW">
<option value="">选择</option>
</select>-->
<div ng-show="RWLYSHOW">
<select name="dept" ng-model="myselpublic" data-placeholder="请选择" id="dept"
class="dept_select">
<option value="-1"></option>
<option ng-repeat="item in RELYdata" value="{{item.mytext}}">{{item.mytext}}
</option>
</select>
</div>
</div>
<input type="date" ng-model="datebegin" placeholder=""
class="form-control input-sm w-sm inline m-r" ng-show="isdate"/>
<input type="date" ng-model="dateend" placeholder=""
class="form-control input-sm w-sm inline m-r" ng-show="isdate"/>
<div style="margin: 10px;">
搜索:<input type="text" ng-model="mytxt" placeholder="" style="width:400px;"
class="form-control input-sm w-sm inline m-r" ng-show="SouSuoShow"/>
</div>
<input style="background-color:burlywood;border-color:burlywood;" type="button"
class="btn btn-success" ng-click="addTJ('and')" value="+并且"/>
<input style="background-color:burlywood;border-color:burlywood;" type="button"
class="btn btn-success" ng-click="addTJ('or')" value="+或"/>
<input type="button" class="btn btn-success" name="搜索" value="搜索" ng-click="ChaXun()"/>
<span>
共有:{{totalData}}条数据
</span>
<!--<input type="button" id="delete" class="btn btn-success" name="删除" value="删除" ng-click="SQLDeleteOne(1)" />-->
<!--<input type="button" id="delete2" class=" btn btn-success" name="条件删除" value="条件删除" ng-click="showDialog(2)" data-toggle="modal" data-target="#myModal5" />-->
<!--ExportAll-->
<!-- <button class="btn btn-primary" data-toggle="modal" ng-click="ValueAdd()"-->
<!-- data-target="#myModalSQLValueEdit">新增-->
<!-- </button>-->
<input type="button" class="btn btn-success" name="导出" value="导出" ng-click="ExportAll()"/>
<!-- <button type="button" class="btn btn-success" ngf-select="ImportAll(file)" ng-model="file"-->
<!-- name="file" ngf-max-size="20MB" ngf-min-height="100" ngf-multiple="true">-->
<!-- 导入-->
<!-- </button>-->
<!-- <button class="btn btn-info" ng-click="TongJi()">柱状图</button>-->
<!--<input type="button" class="btn btn-success" name="导出" value="导出" data-toggle="modal" data-target="#myModalDaoChu" />-->
<!--<font id="exprotText1" style="color:red;">正在导出....</font>-->
<!--<font id="exprotText2" style="color:red;">导出成功!</font>-->
<!--综合分析及替换-->
<input type="button" class="btn btn-success" name="综合分析及替换" value="综合分析及替换"
ng-click="ZongHeTH()"/>
<br/>
<br/>
</div>
<div style=" width: 100%;">
<table st-table="dispData1" st-safe-src="TJTable"
class="table table-hover table-bordered text-center" id="myTable" style="width:100%">
<thead>
<tr>
<th></th>
<th>查询条件</th>
<th>查询类型</th>
<th>查询内容</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in dispData1">
<td> {{item.lianjietype}}</td>
<td> {{item.CXTJ}}</td>
<td> {{item.CXLX}}</td>
<td> {{item.CXNR}}</td>
<td ng-click="deleteTJ(item)"> 删除</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="8" class="text-center">
<div st-pagination="" st-items-by-page="10" st-displayed-pages="15"></div>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="width:100%; margin-left: -3px;">
<div style="width:100%;overflow: auto;">
<table class=" layui-hide" id="test">
</table>
<table st-table="displayed" st-pipe="getService" class="table table-hover table-bordered " id="myTable">
<thead>
<tr>
<th st-ratio="8" st-sort="JCDL" style="padding: 2px;min-width:80px">样品名称</th>
<th st-ratio="3" st-sort="JCDL" style="padding: 2px;min-width:80px">食品品种</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">食品亚类</th>
<th st-ratio="8" st-sort="JCDL" style="padding: 2px;min-width:80px">食品细类</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">检测项目</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">检验结果</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">检测值单位</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">当量浓度</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">抽样地点类型</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">被抽样单位区</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">营业执照号</th>
<th st-ratio="4" st-sort="JCDL" style="padding: 2px;min-width:80px">抽样人签名时间</th>
<th st-ratio="3" style="padding: 2px; min-width: 80px">修改</th>
<!-- <th st-ratio="10" style="padding: 2px; min-width: 120px">删除</th>-->
</tr>
</thead>
<tbody>
<tr ng-repeat="item in displayed">
<td st-ratio="8">{{item.YPMC}}</td>
<td st-ratio="8">{{item.SP_PZ}}</td>
<td st-ratio="8">{{item.SP_YL}}</td>
<td st-ratio="8">{{item.SP_XL}}</td>
<td st-ratio="8">{{item.JCXM}}</td>
<td st-ratio="8">{{item.JCZ}}</td>
<td st-ratio="8">{{item.JCZDW}}</td>
<td st-ratio="8">{{item.Equivalent}}</td>
<td st-ratio="3">{{item.CYDDLX}}</td>
<td st-ratio="4">{{item.DZ_QX}}</td>
<td st-ratio="8">{{item.YYZZH}}</td>
<td st-ratio="8">{{item.CYSJ}}</td>
<td>
<a data-toggle="modal" data-target="#myModalSQLValueEdit"
ng-click="ValueEdit({{item}})">修改</a>
</td>
<!-- <td>-->
<!-- <a ng-click="SQLDeleteOne(item.ID)">删除</a>-->
<!-- </td>-->
</tr>
</tbody>
<st-loading is-show="isShow" tip-show="正在加载请稍后!!"></st-loading>
<tfoot>
<!--<tr>
<td colspan="10" style="text-align:end;vertical-align: inherit;"></td>
<td>企业数量</td>
<td>{{qiyeshuliang}}</td>
</tr>-->
<tr>
<td colspan="15" class="text-center">
<div st-items-by-page="curpageNumber" st-pagination=""
st-template="app/pagination.custom.html"></div>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
<!-- 新增加的针对三个值得修改操作 -->
<div class="modal fade" id="myModalSQLValueEdit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog" style=" width: 50%;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">{{FormTitle}}</h4>
</div>
<div class="modal-body">
<div class="col-sm-6">
<p>
<label for="YPMC">样品名称:</label>
<input type="text" id="YPMC" class="form-control input-sm inline "
ng-model="FormData.YPMC"
ng-change="change()"/>
</p>
<p>
<label for="SP_PZ">食品品种:</label>
<input type="text" id="SP_PZ" class="form-control input-sm inline "
ng-model="FormData.SP_PZ"
ng-change="change()"/>
</p>
<p>
<label for="SP_YL">食品亚类:</label>
<input type="text" id="SP_YL" class="form-control input-sm inline "
ng-model="FormData.SP_YL"
ng-change="change()"/>
</p>
<p>
<label for="SP_XL">食品细类:</label>
<input type="text" id="SP_XL" class="form-control input-sm inline "
ng-model="FormData.SP_XL"
ng-change="change()"/>
</p>
<p>
<label for="JCXM">检测项目:</label>
<input type="text" id="JCXM" class="form-control input-sm inline "
ng-model="FormData.JCXM"
ng-change="change()"/>
</p>
<p>
<label for="JCZ">检验结果:</label>
<input type="text" id="JCZ" class="form-control input-sm inline "
ng-model="FormData.JCZ"
ng-change="change()"/>
</p>
</div>
<div class="col-sm-6">
<p>
<label for="Equivalent">当量浓度:</label>
<input type="text" id="Equivalent" class="form-control input-sm inline "
ng-model="FormData.Equivalent"
ng-change="change()"/>
</p>
<p>
<label for="CYDDLX">抽样地点类型:</label>
<input type="text" id="CYDDLX" class="form-control input-sm inline "
ng-model="FormData.CYDDLX"
ng-change="change()"/>
</p>
<p>
<label for="DZ_QX">被抽样单位区:</label>
<input type="text" id="DZ_QX" class="form-control input-sm inline "
ng-model="FormData.DZ_QX"
ng-change="change()"/>
</p>
<p>
<label for="YYZZH">营业执照号:</label>
<input type="text" id="YYZZH" class="form-control input-sm inline "
ng-model="FormData.YYZZH"
ng-change="change()"/>
</p>
<p>
<label for="CYSJ">抽样人签名时间:</label>
<input type="date" id="CYSJ" class="form-control input-sm inline "
ng-model="FormData.CYSJ"
ng-change="change()"/>
</p>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="UpdateData()">更新
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal5" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">
×
</button>
<h4 class="modal-title" id="myModalLabel">
删除提示
</h4>
</div>
<div class="modal-body">
是否确认删除数据!
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal">
关闭
</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="numDelete()">
确认删除
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<script>
$(function () {
$('.dept_select').chosen();
});
</script>