记得上下班打卡 | git大法好,push需谨慎

Commit 7ea0c780 authored by 胡佳晨's avatar 胡佳晨

提交 admin 审核

parent 7608cd7a
package com.liquidnet.service.kylin.dto.vo.partner;
import com.liquidnet.service.kylin.dto.vo.KylinBuyNoticeVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -57,6 +58,9 @@ public class KylinPerformanceMisVo {
@ApiModelProperty(value = "购票须知")
private String noticeImage;
@ApiModelProperty(value = "购票须知数组")
private List<KylinBuyNoticeVo> noticeImageList;
@ApiModelProperty(value = "状态")
private Integer status;
......
......@@ -70,7 +70,9 @@
</div>
<div>
<label>演出类型:</label>
<span id="type"></span>
<span th:if="*{type==101}">音乐节</span>
<span th:if="*{type==102}">小型演出</span>
<span th:if="*{type==103}">巡演</span>
</div>
<div>
<label>场地:</label>
......@@ -107,12 +109,16 @@
</div>
<div id="noticeImg">
<span>购票须知:</span>
<div th:each="dict : ${kylinPerformanceMisVo.noticeImageList}">
<span th:text="${dict.title}"></span>
<img th:src="${dict.imgUrl}"/>
<span th:text="${dict.message}"></span>
</div>
</div>
<div th:each="dict : ${kylinPerformanceMisVo.ticketTimes}">
<div th:each="dict2 : ${dict.ticket}">
<br/>
<br/>
<div>
<span>票种名称:</span>
......@@ -132,17 +138,21 @@
<span>票种说明:</span>
<span th:text="${dict2.title}"></span>
</div>
<!-- <div>-->
<!-- <span>电子票说明:</span>-->
<!-- <span th:text="${dict2.describeElectronic}"></span>-->
<!-- </div>-->
<!-- <div>-->
<!-- <span>快递票说明:</span>-->
<!-- <span th:text="${dict2.describesExpress}"></span>-->
<!-- </div>-->
<div>
<!-- <div>-->
<!-- <span>电子票说明:</span>-->
<!-- <span th:text="${dict2.describeElectronic}"></span>-->
<!-- </div>-->
<!-- <div>-->
<!-- <span>快递票说明:</span>-->
<!-- <span th:text="${dict2.describesExpress}"></span>-->
<!-- </div>-->
<div th:if="${dict2.limitCount == 0}">
<span>限购:</span>
<span th:text="${dict2.limitCount}"></span>
<span>不限购</span>
</div>
<div th:if="${dict2.limitCount != 0}">
<span>限购:</span>
<span th:text="${dict2.limitCount}">不限购</span>
</div>
<div>
<span>库存总量:</span>
......@@ -150,7 +160,14 @@
</div>
<div>
<span>售票状态:</span>
<span th:text="${dict2.status}"></span>
<span th:if="${dict2.status == 1}">审核中</span>
<span th:if="${dict2.status == 3}">审核通过</span>
<span th:if="${dict2.status == 4}">未通过</span>
<span th:if="${dict2.status == 6}">在售</span>
<span th:if="${dict2.status == 7}">下架</span>
<span th:if="${dict2.status == 8}">售罄</span>
<span th:if="${dict2.status == 9}">未开始</span>
<span th:if="${dict2.status == 10}">已结束</span>
</div>
<div>
<span>开始售票时间:</span>
......@@ -158,22 +175,24 @@
</div>
<div>
<span>是否学生票:</span>
<span th:text="${dict2.isStudent}"></span>
<span th:if="${dict2.isStudent==1}"></span>
<span th:if="${dict2.isStudent==0}"></span>
</div>
<div>
<span>是否显示二维码:</span>
<span th:text="${dict2.isShowCode}"></span>
<span th:if="${dict2.isShowCode==1}"></span>
<span th:if="${dict2.isShowCode==0}"></span>
</div>
<div>
<div th:if="${dict2.isShowCode==1}">
<span>二维码显示时间:</span>
<span th:if="${dict2.isShowCode==1}" th:text="${dict2.qrCodeShowTime}"></span>
<span th:text="${dict2.qrCodeShowTime}"></span>
</div>
<div>
<span>取票方式:</span>
<span th:text="${dict2.isElectronic}"></span>
<span th:text="${dict2.isExpress}"></span>
<span th:if="${dict2.isElectronic==1}">电子票</span>
<span th:if="${dict2.isExpress==1}">快递票</span>
</div>
<div>
<div th:if="${dict2.isExpress==1}">
<span>快递票停售时间:</span>
<span th:text="${dict2.timeEndExpress}"></span>
</div>
......@@ -181,7 +200,7 @@
</div>
</form>
</div>
<div class="panel-body" th:width="max" style="margin-top: 10px">
<div class="panel-body" th:width="max" style="margin-top: 10px" name="auditBtn">
<div class="radio check-box">
<input type="radio" value="1" name="auditCheck"> 同意</label>
</div>
......@@ -189,7 +208,8 @@
<input type="radio" value="0" name="auditCheck"> 拒绝</label>
</div>
<input name="rejectTxt" class="form-control" type="text"/>
<button type="button" class="btn btn-w-m btn-success" name="isShowBtn" style="margin-top: 10px"
<button type="button" class="btn btn-w-m btn-success"
style="margin-top: 10px"
onclick="aduitHandler()">审核
</button>
</div>
......@@ -207,6 +227,12 @@
const isShow = '[[${kylinPerformanceMisVo.isShow}]]';
const auditStatus = '[[${kylinPerformanceMisVo.auditStatus}]]';
if (auditStatus != 0) {
document.getElementsByName("auditBtn")[0].style.display = "none";
}
if (isShow == 1) {
document.getElementsByName("isShowCheck")[0].checked = true;
} else {
......@@ -216,7 +242,7 @@
//修改 演出是否显示
function submitHandler() {
var param = {
"isShow": document.getElementsByName("auditCheck")[0].checked ? 1 : 0,
"isShow": document.getElementsByName("isShowCheck")[0].checked ? 1 : 0,
"performancesId": '[[${kylinPerformanceMisVo.performancesId}]]'.replaceAll("\"", "")
};
$.operate.post(prefix + "/isShow", param, function (res) {
......@@ -225,35 +251,32 @@
//演出审核
function aduitHandler() {
const auditStatus = document.getElementsByName("isShowCheck")[0].checked ? 3 : 4;
const auditStatus = document.getElementsByName("auditCheck")[0].checked ? 3 : 4;
var auditRejectTxt = ""
if(4 === auditStatus){
auditRejectTxt = document.getElementsByName("rejectTxt")[0].textContent;
if (4 === auditStatus) {
auditRejectTxt = document.getElementsByName("rejectTxt")[0].value;
}
if (4 === auditStatus && auditRejectTxt === "") {
alert("请填写拒绝理由");
} else {
var param = {
"status": auditStatus,
"performancesId": '[[${kylinPerformanceMisVo.performancesId}]]'.replaceAll("\"", ""),
"rejectTxt":auditRejectTxt
"rejectTxt": auditRejectTxt
};
$.operate.post(prefix + "/audit", param, function (res) {
});
}
//演出信息
const type = document.getElementById("type");
var typeInt = '[[${kylinPerformanceMisVo.type}]]';
if (typeInt == 101) {
type.textContent = '音乐节'
} else if (typeInt == 102) {
type.textContent = '小型演出'
} else if (typeInt == 103 || typeInt == 3) {
type.textContent = '巡演'
}
// 演出详情 购票须知
var subText = document.getElementById("subText")
subText.innerHTML = "演出详情:" + '[[${kylinPerformanceMisVo.details}]]'.replaceAll("\"", "");
var noticeImg = document.getElementById("noticeImg")
noticeImg.innerHTML = "购票须知:" + '[[${kylinPerformanceMisVo.noticeImage}]]'.replaceAll("\"", "");
// var noticeImg = document.getElementById("noticeImg")
// noticeImg.innerHTML = "购票须知:" + '[[${kylinPerformanceMisVo.noticeImage}]]'.replaceAll("\"", "");
// var noticeImgJson = $.parseJSON('[[${kylinPerformanceMisVo.noticeImage}]]'.substr(1, '[[${kylinPerformanceMisVo.noticeImage}]]'.length-2));
// alert(noticeImgJson[0]['title']);
</script>
</body>
</html>
package com.liquidnet.client.admin.zhengzai.kylin.utils;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.fasterxml.jackson.core.type.TypeReference;
import com.liquidnet.common.cache.redis.util.RedisUtil;
import com.liquidnet.commons.lang.util.DateUtil;
import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.kylin.dto.param.PerformancePartnerVo;
import com.liquidnet.service.kylin.dto.vo.KylinBuyNoticeVo;
import com.liquidnet.service.kylin.dto.vo.KylinPerformanceVo;
import com.liquidnet.service.kylin.dto.vo.KylinTicketTimesVo;
import com.liquidnet.service.kylin.dto.vo.KylinTicketVo;
......@@ -279,7 +282,7 @@ public class PerformanceVoUtils {
// performanceMisVo.setIsShow(1);
kylinPerformanceMisVo.setIsDistribution(0);
kylinPerformanceMisVo.setSyncAgent(0);
kylinPerformanceMisVo.setAuditStatus(0);
kylinPerformanceMisVo.setNoticeImageList(JsonUtils.fromJson(kylinPerformanceMisVo.getNoticeImage(), new TypeReference<List<KylinBuyNoticeVo>>() {}));
// }
// boolean exists = mongoTemplate.exists(Query.query(Criteria.where("performancesId").is(performancesId)), PerformanceMisVo.class, PerformanceMisVo.class.getSimpleName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment