Compare commits

..

No commits in common. "97410847dc248057c64106c627e54a205cd78306" and "86c13c73368897b23df2c463fbe3202d994b8609" have entirely different histories.

6 changed files with 18 additions and 33 deletions

View File

@ -6,11 +6,7 @@ spring:
druid:
# 主库数据源
master:
<<<<<<< HEAD
url: jdbc:mysql://121.199.168.157:3306/unis_pms?useUnicode=true&rewriteBatchedStatements=true&allowMultiQueries=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
=======
url: jdbc:mysql://121.199.168.157:3306/unis_pms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true
>>>>>>> 86c13c73368897b23df2c463fbe3202d994b8609
username: root
password: unis@db
# 从库数据源

View File

@ -11,11 +11,9 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">关联合同:</label>
<div class="col-sm-8">
<div class="input-group">
<input style="display: none" name="orderId" class="form-control" readonly type="text" required>
<input name="orderName" class="form-control" type="text" onclick="selectOrder()" required>
<span class="input-group-addon"><i class="fa fa-search"></i></span>
</div>
<input style="display: none" name="orderId" class="form-control" readonly type="text" required>
<input name="orderName" class="form-control" readonly type="text" onclick="openList()" required>
</div>
</div>
</div>
@ -160,12 +158,12 @@
minView: "month",
autoclose: true
});
function selectOrder(id){
function openList(id){
var options = {
title: "关联合同",
url: prefix + '/selectOrder',
skin: 'layui-layer-gray',
btn: true,
btn: false,
maxmin: false,
full: false,
index:1000

View File

@ -12,11 +12,9 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">关联合同:</label>
<div class="col-sm-8">
<div class="input-group">
<input style="display: none" th:orderId="*{orderId}" name="orderId" class="form-control" readonly type="text" required>
<input name="orderName" th:orderName="*{orderName}" class="form-control" type="text" onclick="selectOrder()" required>
<span class="input-group-addon"><i class="fa fa-search"></i></span>
</div>
<input style="display: none" th:orderId="*{orderId}" name="orderId" class="form-control" readonly type="text" required>
<input name="orderName" th:orderName="*{orderName}" class="form-control" readonly type="text" onclick="openList()" required>
</div>
</div>
</div>
@ -163,12 +161,12 @@
minView: "month",
autoclose: true
});
function selectOrder(){
function openList(){
var options = {
title: "关联合同",
url: prefix + '/selectOrder',
skin: 'layui-layer-gray',
btn: true,
btn: false,
maxmin: false,
full: false,
index:1000

View File

@ -4,12 +4,13 @@
<th:block th:include="include :: header('关联合同')" />
</head>
<body class="gray-bg">
<div class="col-sm-12 select-table table-striped" >
<table id="bootstrap-table"></table>
</div>
<div class="col-sm-12 select-table table-striped" >
<table id="bootstrap-table"></table>
</div>
<th:block th:include="include :: footer" />
<script>
var prefixOrder = ctx + "manage/order";
$(function() {

View File

@ -207,17 +207,9 @@
title: "序号",
formatter: function (value, row, index) {
// var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
//var html = $.common.sprintf("<input class='form-control' type='text' name='orderListList[%s].id' value='%s'>", index, value);
var html = $.common.sprintf("<input type='hidden' name='orderListList[%s].id' value='%s'>", index, value);
return $.table.serialNumber(index);
}
},
{
field: 'id',
align: 'center',
title: "id",
formatter: function (value, row, index) {
var html = $.common.sprintf("<input type='hidden' name='orderListList[%s].id' value='%s'>", index, value);
return html;
return html+$.table.serialNumber(index);
}
},
{

View File

@ -221,9 +221,9 @@
<foreach item="item" index="index" collection="list" separator=";">
update order_list
<trim prefix="SET" suffixOverrides=",">
<if test="item.quantity != null">quantity = #{item.quantity},</if>
<if test="item.quantity != null ">quantity = #{item.quantity},</if>
<if test="item.amount != null">amount = #{item.amount},</if>
<if test="item.remark != null">remark = #{item.remark},</if>
<if test="item.remark != null and item.remark!=''">remark = #{item.remark},</if>
updated_at = NOW(),
</trim>
where id = #{item.id}