活动管理-记录发奖列表修改

This commit is contained in:
dy 2021-03-31 13:53:45 +08:00
parent cd5f52c1b5
commit afa0db58c4
7 changed files with 233 additions and 198 deletions

View File

@ -14,7 +14,7 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">奖品代码</label>
<label class="col-sm-3 control-label">奖品名称</label>
<div class="col-sm-8">
<input name="PRIZECODE" class="form-control" type="text">
</div>

View File

@ -15,7 +15,7 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">奖品代码</label>
<label class="col-sm-3 control-label">奖品名称</label>
<div class="col-sm-8">
<input name="PRIZECODE" th:field="*{PRIZECODE}" class="form-control" type="text">
</div>

View File

@ -12,28 +12,36 @@
<ul>
<li>
<label>活动代码:</label>
<input type="text" name="DRAWCODE"/>
<select name="DRAWCODE" th:with="drawinfo=${@drawInfo.findDrawInfoList()}">
<option value="">所有</option>
<option th:each="drawInfo : ${drawinfo}" th:text="${drawInfo.DRAWNAME}"
th:value="${drawInfo.DRAWCODE}"></option>
</select>
</li>
<li>
<label>奖品名称:</label>
<select name="PRIZECODE" th:with="drawPrize=${@drawPrize.findDrawPrizeInfoList()}">
<option value="">所有</option>
<option th:each="drawPrize : ${drawPrize}" th:text="${drawPrize.PRIZENAME}"
th:value="${drawPrize.PRIZECODE}"></option>
</select>
</li>
<li>
<label>用户标识:</label>
<input type="text" name="USERID"/>
</li>
<!-- <li>-->
<!-- <label>奖品代码:</label>-->
<!-- <input type="text" name="PRIZECODE"/>-->
<!-- </li>-->
<!-- <li>-->
<!-- <label>用户标识:</label>-->
<!-- <input type="text" name="USERID"/>-->
<!-- </li>-->
<!-- <li>-->
<!-- <label>抽奖记录标识:</label>-->
<!-- <input type="text" name="DRAWRECORDID"/>-->
<!-- </li>-->
<li>
<label>发奖时间:</label>
<input type="text" class="time-input" placeholder="请选择发奖时间" name="AWARDTIME"/>
</li>
<!-- <li>-->
<!-- <label>发奖结果</label>-->
<!-- <input type="text" name="AWARDRESULT"/>-->
<!-- <label>发奖时间:</label>-->
<!-- <input type="text" class="time-input" placeholder="请选择发奖时间" name="AWARDTIME"/>-->
<!-- </li>-->
<li>
<label>发奖结果:</label>
<input type="text" name="AWARDRESULT"/>
</li>
<!-- <li>-->
<!-- <label>错误码:</label>-->
<!-- <input type="text" name="RETURNCODE"/>-->
@ -62,14 +70,16 @@
<label>奖品等级:</label>
<select name="PRIZELEVEL" th:with="type=${@dict.getType('prizeLevel')}" style="width: 80px">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>奖品类型:</label>
<select name="PRIZETYPE" th:with="type=${@dict.getType('prizeType')}" style="width: 80px">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option>
</select>
</li>
<!-- <li>-->
@ -97,8 +107,10 @@
<!-- <input type="text" name="EXTID"/>-->
<!-- </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>
<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>
@ -131,6 +143,8 @@
var prefix = ctx + "activity/award/record";
var datas = [[${@dict.getType('prizeLevel')}]];
var prizetypes = [[${@dict.getType('prizeType')}]];
var drawInfoList = [[${@drawInfo.findDrawInfoList()}]];
var drawPrizeList = [[${@drawPrize.findDrawPrizeInfoList()}]];
$(function () {
var options = {
@ -148,37 +162,42 @@
title: '主键',
visible: false
},
{
field: 'drawcode',
title: '抽奖活动代码'
},
{
field: 'prizecode',
title: '奖品代码'
},
{
field: 'userid',
title: '用户标识'
},
{
field: 'drawrecordid',
title: '抽奖记录标识'
field: 'username',
title: '用户名'
},
{
field: 'awardtime',
title: '发奖时间'
field: 'drawcode',
title: '活动名称',
formatter: function (value, row, index) {
return $.table.selectDrawname(drawInfoList, value);
}
},
{
field: 'prizecode',
title: '奖品名称',
formatter: function (value, row, index) {
return $.table.selectprivename(drawPrizeList, value);
}
},
{
field: 'prizetype',
title: '奖品类型',
formatter: function (value, row, index) {
return $.table.selectDictLabel(prizetypes, value);
}
},
{
field: 'awardresult',
title: '发奖结果'
},
{
field: 'returncode',
title: '错误码'
},
{
field: 'returnmessage',
title: '错误信息'
field: 'awardtime',
title: '发奖时间'
},
{
field: 'phone',
@ -189,9 +208,22 @@
title: '地址'
},
{
field: 'username',
title: '用户名'
field: 'drawrecordid',
title: '抽奖记录标识',
visible: false
},
{
field: 'returncode',
title: '错误码',
visible: false
},
{
field: 'returnmessage',
title: '错误信息',
visible: false
},
// {
// field: 'createtimestamp',
// title: '创建时间'
@ -202,50 +234,53 @@
// },
{
field: 'drawtranseqno',
title: '抽奖流水'
title: '抽奖流水',
visible: false
},
{
field: 'awardtranseqno',
title: '发奖流水'
title: '发奖流水',
visible: false
},
{
field: 'prizelevel',
title: '奖品等级',
visible: false,
formatter: function (value, row, index) {
return $.table.selectDictLabel(datas, value);
}
},
{
field: 'prizetype',
title: '奖品类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(prizetypes, value);
}
field: 'merchantcode',
title: '商户号',
visible: false
},
{
field: 'merchantsyscode',
title: '商户系统号',
visible: false
},
{
field: 'channel',
title: '渠道',
visible: false
},
{
field: 'businessarea',
title: '业务领域',
visible: false
},
// {
// field: 'merchantcode',
// title: '商户号'
// },
// {
// field: 'merchantsyscode',
// title: '商户系统号'
// },
// {
// field: 'channel',
// title: '渠道'
// },
// {
// field: 'businessarea',
// title: '业务领域'
// },
{
field: 'city',
title: '城市'
title: '城市',
visible: false
},
{
field: 'extid',
title: '扩展',
visible: false
},
// {
// field: 'extid',
// title: '扩展'
// },
// {
// title: '操作',
// align: 'center',

View File

@ -11,7 +11,7 @@
<div class="select-list">
<ul>
<li>
<label>奖品代码</label>
<label>奖品名称</label>
<input type="text" name="PRIZECODE"/>
</li>
<li>
@ -101,7 +101,7 @@
},
{
field: 'prizecode',
title: '奖品代码'
title: '奖品名称'
},
{
field: 'prizename',

View File

@ -41,7 +41,7 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">奖品代码</label>
<label class="col-sm-3 control-label">奖品名称</label>
<div class="col-sm-8">
<input name="PRIZECODE" class="form-control" type="text">
</div>

View File

@ -42,7 +42,7 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">奖品代码</label>
<label class="col-sm-3 control-label">奖品名称</label>
<div class="col-sm-8">
<input name="PRIZECODE" th:field="*{PRIZECODE}" class="form-control" type="text">
</div>

View File

@ -35,7 +35,7 @@
<input type="text" name="DRAWRESULT"/>
</li>
<li>
<label>奖品代码</label>
<label>奖品名称</label>
<select name="PRIZECODE" th:with="drawPrize=${@drawPrize.findDrawPrizeInfoList()}">
<option value="">所有</option>
<option th:each="drawPrize : ${drawPrize}" th:text="${drawPrize.PRIZENAME}"
@ -160,7 +160,7 @@
},
{
field: 'drawcode',
title: '抽奖活动代码',
title: '活动名称',
formatter: function (value, row, index) {
return $.table.selectDrawname(drawInfoList, value);
}