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

234 lines
12 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">
<span>查询条件:</span>
<select ng-model="mysel" ng-options="a.mytext for a in Myjson" style="margin-right:10px;" ng-change="MyjsonChange()">
<option value="">选择</option>
</select>
<select ng-model="mysel1" ng-options="a.mytext for a in Myjson1" style="margin-right:10px;" 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>
<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" />
搜索:<input type="text" ng-model="mytxt" placeholder="" class="form-control input-sm w-sm inline m-r" ng-show="SouSuoShow" />
<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" class="btn btn-success" value="统计" ng-click="quanping()" data-toggle="modal" data-target="#myModal2" />
<!-- <button class="btn btn-default" ngf-select="upload(file)" ng-model="file" name="file"-->
<!-- ngf-max-size="20MB" ngf-min-height="100" ngf-multiple="true">-->
<!-- 导入-->
<!-- </button>-->
<input type="button" class="btn btn-success" name="导出" value="导出" ng-click="DaoChu()" />
<input type="button" class="btn btn-success" id="delete" name="删除" value="删除" ng-click="ShanChu()" />
<input type="button" class="btn btn-success" id="delete2" name="条件删除" value="条件删除" ng-click="TiaoJianShanChu()" />
<input type="button" class="btn btn-warning" id="btntihuan" name="批量替换" value="批量替换" ng-click="PiLiangTiHuan()" />
</div>
<div style="padding:12px;display:none">
原食物名称: <input id="txt_OldSWMC" type="text" ng-model="OldSWMC"> &nbsp; 更换成新食物名称:<input id="txt_NewSWMC" type="text" ng-model="NewSWMC">
<input type="button" class="btn btn-success" name="批量替换" value="批量替换" ng-click="btn_Change_SWMC()" />
</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: 97%;overflow: auto;">
<st-loading is-show="isShow" tip-show="正在加载请稍后!!"></st-loading>
<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="RENWUBIANHAO" >任务编号</th>
<th st-ratio="10" st-sort="RENYUANBIANHAO" style="padding: 30px;">人员编号</th>
<th st-ratio="10" st-sort="NianLing" style="padding: 30px;">年龄</th>
<th st-ratio="10" st-sort="XingBie" style="padding: 30px;">性别</th>
<th st-ratio="10" st-sort="MinZu" style="padding: 30px;">民族</th>
<th st-ratio="10" st-sort="ShenGao_CM_" style="padding: 30px;">身高(cm)</th>
<th st-ratio="10" st-sort="TiZhong_GongJin_" style="padding: 30px;">体重(kg)</th>
<th st-ratio="10" st-sort="SuoShuQu" style="padding: 30px;">所属区</th>
<th st-ratio="10" st-sort="JieDao" style="padding: 30px;">街道</th>
<th st-ratio="10" st-sort="LaiYuan" style="padding: 30px;">来源</th>
<th st-ratio="10" st-sort="SheQu" style="padding: 30px;">社区</th>
<th st-ratio="10" st-sort="XueXiao_YiYuan" style="padding: 30px;">学校/医院</th>
<th st-ratio="10" st-sort="WenHuaChengDu" style="padding: 30px;">文化程度</th>
<th st-ratio="10" st-sort="DiaoChaNianFen" style="padding: 30px;">调查年份</th>
<th st-ratio="10" st-sort="ShiPinFDABianHao" style="padding: 30px;">食品FDA编号</th>
<th st-ratio="10" st-sort="ShiPinJiBie" style="padding: 30px;">食品级别</th>
<th st-ratio="10" st-sort="ShiPinDaLei" style="padding: 30px;">食品大类</th>
<th st-ratio="10" st-sort="ShiPinYaLei" style="padding: 30px;">食品亚类</th>
<th st-ratio="10" st-sort="ShiPinPinZhong" style="padding: 30px;">食品品种</th>
<th st-ratio="10" st-sort="ShiPinXiaoLei" style="padding: 30px;">食品小类</th>
<th st-ratio="10" st-sort="ShiWuMingChen" style="padding: 30px;">食物名称</th>
<th st-ratio="10" st-sort="XiaoFeiLiang_G_D_" style="padding: 30px;">消费量(g/d)</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.KeyId}}"></st-checkbox>
</td>
<td st-ratio="10">{{item.RENWUBIANHAO}}</td>
<td st-ratio="10">{{item.RENYUANBIANHAO}}</td>
<td st-ratio="10">{{item.NIANLING}}</td>
<td st-ratio="10">{{item.XINGBIE}}</td>
<td st-ratio="10">{{item.MINZU}}</td>
<td st-ratio="10">{{item.SHENGAO_CM_}}</td>
<td st-ratio="10">{{item.TIZHONG_GONGJIN_}}</td>
<td st-ratio="10">{{item.SUOSHUQU}}</td>
<td st-ratio="10">{{item.JIEDAO}}</td>
<td st-ratio="10">{{item.LAIYUAN}}</td>
<td st-ratio="10">{{item.SHEQU}}</td>
<td st-ratio="10">{{item.XUEXIAO_YIYUAN}}</td>
<td st-ratio="10">{{item.WENHUACHENGDU}}</td>
<td st-ratio="10">{{item.DIAOCHANIANFEN}}</td>
<td st-ratio="10">{{item.SHIPINFDABIANHAO}}</td>
<td st-ratio="10">{{item.SHIPINJIBIE}}</td>
<td st-ratio="10">{{item.SHIPINDALEI}}</td>
<td st-ratio="10">{{item.SHIPINYALEI}}</td>
<td st-ratio="10">{{item.SHIPINPINZHONG}}</td>
<td st-ratio="10">{{item.SHIPINXIAOLEI}}</td>
<td st-ratio="10">{{item.SHIWUMINGCHEN}}</td>
<td st-ratio="10">{{item.XIAOFEILIANG_G_D_}}</td>
<td>
<a ng-click="XiuGai(item.KEYID)">详细</a>
</td>
</tr>
</tbody>
<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>总计:</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>
<!--全屏-->
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style=" width: 100%;">
<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">消费量统计</h4>
</div>
<div class="modal-body">
<div style="margin-left: 3%; ">
<!-- <input type="button" style="width: 100px; background: #009effba; border-color: #009effba;" class="btn btn-success" value="导出" ng-click="daochuXFL()" />-->
<input type="button" style="width: 100px; background: #009effba; border-color: #009effba;" class="btn btn-success" value="刷新分类数据" ng-click="RefreshFenLei()" />
</div>
<div style="margin-left: 3%;margin-top:10px" ng-show="isLogShow">
<textarea id="txtLog" ng-model="txtLog" style="width:1000px;height:300px"></textarea>
</div>
<div style="margin-left: 3%;" >
<table class="layui-hide" id="test2"></table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>