427 lines
24 KiB
HTML
427 lines
24 KiB
HTML
|
||
<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_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>
|
||
共有:{{myttt}}条数据
|
||
</span>
|
||
<input type="button" id="delete" class="btn btn-success" name="删除" value="删除" ng-click="showDialog(1)" data-toggle="modal" data-target="#myModal5" />
|
||
<input type="button" id="delete2" class=" btn btn-success" name="条件删除" value="条件删除" ng-click="showDialog(2)" data-toggle="modal" data-target="#myModal5" />
|
||
<input type="button" class="btn btn-success" value="替换" data-toggle="modal" data-target="#myModal4" ng-click="escTH(0)" />
|
||
<input type="button" class="btn btn-success" value="异步替换" ng-click="openTiHuanForm()" />
|
||
<!--<input type="button" class="btn btn-success" name="导出" value="导出" ng-click="DaoChu()" />-->
|
||
<!-- <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>
|
||
<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:80%">
|
||
<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:90%; margin-left: -3px;">
|
||
<div style="width:97%;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-checkbox-all select-list="selectList" current-ids="ids" check-init="checkinit"></st-checkbox-all>
|
||
</th>
|
||
<th st-ratio="10" st-sort="RWBH">任务编号</th>
|
||
<th st-ratio="10" st-sort="CYDBH">采样单编号</th>
|
||
<th st-ratio="10" st-sort="YPMC" style=" padding: 30px;">样品名称</th>
|
||
<th st-ratio="10" st-sort="SP_DL" style=" padding: 30px;">食品大类</th>
|
||
<th st-ratio="10" st-sort="SP_YL" style=" padding: 30px;">食品亚类</th>
|
||
<th st-ratio="10" st-sort="SP_PZ" style=" padding: 30px;">食品品种</th>
|
||
<th st-ratio="10" st-sort="SP_XL" style=" padding: 30px;">食品细类</th>
|
||
<th st-ratio="10" st-sort="SFJK" style=" padding: 30px;">是否进口</th>
|
||
<th st-ratio="10" st-sort="JCDW" style=" padding: 30px;">检测机构</th>
|
||
<!--<th st-ratio="10" st-sort="YCD" style=" padding: 30px;">原产地</th>-->
|
||
<th st-ratio="10" st-sort="JCDL" style=" padding: 30px;">检验大类</th>
|
||
<th st-ratio="10" st-sort="JCYL" style=" padding: 30px;">检验亚类</th>
|
||
<th st-ratio="10" st-sort="JCXL" style=" padding: 30px;">检验小类</th>
|
||
<th st-ratio="10" st-sort="JCXM" style=" padding: 30px;">检验项目</th>
|
||
<th st-ratio="10" st-sort="JCBZ" style=" padding: 30px;">检验依据</th>
|
||
<th st-ratio="10" st-sort="JCMC" style=" padding: 20px;">方法名称</th>
|
||
<th st-ratio="10" st-sort="PJBZ" style=" padding: 30px;">判定依据</th>
|
||
<th st-ratio="10" st-sort="bzz">限量值</th>
|
||
<th st-ratio="10" st-sort="jczbz">检验结果</th>
|
||
<th st-ratio="10" st-sort="jczDW">检测值单位</th>
|
||
<th st-ratio="10" st-sort="Yzhen">结果判定</th>
|
||
<th st-ratio="10" st-sort="YPPJXX">结论</th>
|
||
<th st-ratio="10">详细</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr ng-repeat="item in displayed">
|
||
<td st-ratio="{{tiao}}">
|
||
<st-checkbox select-list="selectList" id="{{item.JC_id}}"></st-checkbox>
|
||
</td>
|
||
<td st-ratio="10">{{item.RWBH}}</td>
|
||
<td st-ratio="10">{{item.CYDBH}}</td>
|
||
<td st-ratio="10">{{item.YPMC}}</td>
|
||
<td st-ratio="10">{{item.SP_DL}}</td>
|
||
<td st-ratio="10">{{item.SP_YL}}</td>
|
||
<td st-ratio="10">{{item.SP_PZ}}</td>
|
||
<td st-ratio="10">{{item.SP_XL}}</td>
|
||
<td st-ratio="10">{{item.SFJK}}</td>
|
||
<td st-ratio="10">{{item.JCDW}} </td>
|
||
<!--<td st-ratio="10">{{item.YCD}} </td>-->
|
||
|
||
<td st-ratio="10">{{item.JCDL}}</td>
|
||
<td st-ratio="10">{{item.JCYL}}</td>
|
||
<td st-ratio="10">{{item.JCXL}}</td>
|
||
<td st-ratio="10">{{item.JCXM}}</td>
|
||
<td st-ratio="10">{{item.JCBZ}}</td>
|
||
<td st-ratio="10">{{item.JCMC}}</td>
|
||
<td st-ratio="10">{{item.PJBZ}}</td>
|
||
<td st-ratio="10">{{item.bzz}}</td>
|
||
<td st-ratio="10">{{item.jczbz}}</td>
|
||
<td st-ratio="10">{{item.jczDW}}</td>
|
||
<td st-ratio="10">{{item.Yzhen}}</td>
|
||
<td st-ratio="10">{{item.YPPJXX}}</td>
|
||
<td>
|
||
<a ng-click="XiuGai(item.JC_id,item.CYDBH)">详细</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>{{zongjianshu}}</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="myModalDaoChu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog" style=" width: 820px; margin-top: 10%;">
|
||
<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 style="float:left;padding:0 5px;" data-ng-repeat="item in dictData">
|
||
<input type="checkbox" class="dictClass" style="width: 20px; margin-bottom: 5px;" id="{{item.FieldName}}" name="dictName" value="{{item.TableName}}">
|
||
<label for="{{item.FieldName}}">{{item.TableName}}</label>
|
||
</div>
|
||
<!--<span data-ng-repeat="item in dictData">
|
||
|
||
<input type="checkbox" class="dictClass" style="width:20px;" id="{{item.TableName}}" name="dictName" value="{{item.TableName}}">
|
||
<label for="{{item.FieldName}}">{{item.TableName}}</label>
|
||
</span>-->
|
||
<button ng-click="DaoChu()" type="button" style=" width: 700px; margin-top: 20px;" class="btn btn-default" data-dismiss="modal">确认</button>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog" style=" width: 400px; margin-top: 10%;">
|
||
<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" style=" text-align: center;">
|
||
<div>
|
||
<span>原检验项目名称:</span>
|
||
<input ng-model="jiu" type="text" style="width: 200px;" class="form-control input-sm w-sm inline m-r" />
|
||
</div>
|
||
<div style="margin-top: 20px;">
|
||
<span>新检验项目名称:</span>
|
||
<input ng-model="xin" type="text" style="margin-top: 20px;width: 200px;" class="form-control input-sm w-sm inline m-r" />
|
||
</div>
|
||
<button ng-click="btn_jianyanxiangmu()" type="button" style="margin-top: 20px;" class="btn btn-default" data-dismiss="modal">确认替换</button>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog" style=" width: 400px; margin-top: 10%;">
|
||
<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" style=" text-align: center;">
|
||
<div>
|
||
<span>食品类别:</span>
|
||
<select ng-model="shipingLB" class="modal_select" style=" width: 200px;">
|
||
<option value="">选择</option>
|
||
<option value="1">食品大类</option>
|
||
<option value="2">食品亚类</option>
|
||
<option value="3">食品品种</option>
|
||
<option value="4">食品小类</option>
|
||
</select>
|
||
</div>
|
||
<div style="margin-top: 20px;">
|
||
<span>原食品名称:</span>
|
||
<input ng-model="jiu2" type="text" style="width: 200px;" class="form-control input-sm w-sm inline m-r" />
|
||
</div>
|
||
<div style="margin-top: 20px;">
|
||
<span>新食品名称:</span>
|
||
<input ng-model="xin2" type="text" style="width: 200px;" class="form-control input-sm w-sm inline m-r" />
|
||
</div>
|
||
<button ng-click="btn_SPLB()" type="button" style="margin-top: 20px;" class="btn btn-default" data-dismiss="modal">确认替换</button>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog" style=" width: 400px; margin-top: 10%;">
|
||
<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" style=" text-align: center;">
|
||
<div>
|
||
<span>原单项判定名称:</span>
|
||
<input ng-model="jiu3" type="text" style="width: 200px;" class="form-control input-sm w-sm inline m-r" />
|
||
</div>
|
||
<div style="margin-top: 20px;">
|
||
<span>新单项判定名称:</span>
|
||
<input ng-model="xin3" type="text" style="margin-top: 20px;width: 200px;" class="form-control input-sm w-sm inline m-r" />
|
||
</div>
|
||
<button ng-click="btn_DXPD()" type="button" style="margin-top: 20px;" 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" style=" width: 400px; margin-top: 10%;">
|
||
<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" style=" text-align: center;">
|
||
<div>
|
||
<span>原任务来源名称:</span>
|
||
<input ng-model="jiuRWLY" type="text" style="width: 200px;" class="form-control input-sm w-sm inline m-r" />
|
||
</div>
|
||
<div style="margin-top: 20px;">
|
||
<span>新任务来源名称:</span>
|
||
<input ng-model="xinRWLY" type="text" style="margin-top: 20px;width: 200px;" class="form-control input-sm w-sm inline m-r" />
|
||
</div>
|
||
<button ng-click="btn_RWLY()" type="button" style="margin-top: 20px;" class="btn btn-default" data-dismiss="modal">确认替换</button>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="modal fade" id="myModal4" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog" style=" width: 600px; margin-top: 8%;">
|
||
<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 style=" text-align: center;">
|
||
<font id="TH" style="color:red;">正在替换中....</font>
|
||
</div>
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" id="tihuan" value="项目分类替换" ng-click="escTH(1)" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="省份替换" ng-click="escTH(2)" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="区县替换" ng-click="escTH(3)" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="括号替换" ng-click="escTH(4)" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="抽样地点替换" ng-click="escTH(5)" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="检验项目替换" data-toggle="modal" data-target="#myModal" data-dismiss="modal" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="原产地替换" ng-click="escTH(6)" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="网络平台名称" ng-click="escTH(7)" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="检验机构简称" ng-click="escTH(8)" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="检验食品替换" data-toggle="modal" data-target="#myModal2" data-dismiss="modal" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="单项判定替换" data-toggle="modal" data-target="#myModal3" data-dismiss="modal" />
|
||
<input type="button" class="btn btn-success" style="width:140px;margin: 12px;background: #00b2ff;" value="任务来源替换" data-toggle="modal" data-target="#myModal5" data-dismiss="modal" />
|
||
<!--<br />
|
||
<div style=" text-align: center;">
|
||
<button ng-click="btn_DXPD()" type="button" style="margin-top: 20px;" class="btn btn-default" data-dismiss="modal">确认替换</button>
|
||
</div>-->
|
||
|
||
</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>
|
||
|
||
|
||
|