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

197 lines
9.2 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;
}
</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" style="width:400px;" ng-model="mytxt" placeholder="" 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()" />
<input type="button" class="btn btn-success" name="搜索2" value="搜索2" ng-click="ChaXun2()" />
<span>
共有:{{myttt}}条数据
</span>
<input type="button" class="btn btn-success" name="导出" value="导出" ng-click="DaoChu()" />
</div>
<div>
<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:93%;">
<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">样品名称</th>
<th st-ratio="10" st-sort="SP_DL">食品大类</th>
<th st-ratio="10" st-sort="SP_YL">食品亚类</th>
<th st-ratio="10" st-sort="SP_PZ">食品品种</th>
<th st-ratio="10" st-sort="SP_XL">食品细类</th>
<!--<th st-ratio="10" st-sort="JCDW">检测机构</th>-->
<th st-ratio="10" st-sort="SCJGGJRQ">采样日期</th>
<th st-ratio="10" st-sort="YPJBZT">样品状态</th>
<th st-ratio="10" st-sort="YPPJXX">结论</th>
<th st-ratio="10" st-sort="YPPJXX">项次数</th>
<th st-ratio="10">检验项目</th>
<th st-ratio="10">操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in displayed">
<!--<td>
<div class="checkbox">
<label class="i-checks">
<input type="checkbox" value="" ng-checked="isChecked(item.id)" ng-click="updateSelection($event,item.id)">
<i></i>
</label>
</div>
</td>-->
<td st-ratio="{{tiao}}">
<st-checkbox select-list="selectList" id="{{item._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.JCDW}} </td>-->
<td st-ratio="10">{{item.CYSJ | date:"yyyy/MM/dd"}}</td>
<td st-ratio="10">{{item.YPJBZT}}</td>
<td st-ratio="10">{{item.YPPJXX}}</td>
<td st-ratio="10">{{item.JCXXX.length}}</td>
<td><a ng-click="GOjc(item._id,item.CYDBH)">检测项目</a></td>
<td>
<a ng-click="XiuGai(item._id,item.CYDBH)">详细</a>
</td>
</tr>
</tbody>
<st-loading is-show="isShow" tip-show="正在加载请稍后!!"></st-loading>
<tfoot>
<tr>
<td colspan="10" rowspan="2" style="text-align:end;vertical-align: inherit;">项次数:</td>
<td>合计:</td>
<td>{{xiangciheji}}</td>
<td colspan="2"></td>
</tr>
<tr>
<!--<td colspan="10"></td>-->
<td>总计:</td>
<td>{{zongxiangcishu}}</td>
<td colspan="2"></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>
<script>
$(function () {
$('.dept_select').chosen();
});
</script>