Compare commits
2 Commits
86c13c7336
...
97410847dc
Author | SHA1 | Date |
---|---|---|
|
97410847dc | |
|
ad6d691852 |
|
@ -6,7 +6,11 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
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
|
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
|
username: root
|
||||||
password: unis@db
|
password: unis@db
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
|
|
|
@ -11,9 +11,11 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">关联合同:</label>
|
<label class="col-sm-4 control-label is-required">关联合同:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input style="display: none" name="orderId" class="form-control" readonly type="text" required>
|
<div class="input-group">
|
||||||
<input name="orderName" class="form-control" readonly type="text" onclick="openList()" required>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -158,12 +160,12 @@
|
||||||
minView: "month",
|
minView: "month",
|
||||||
autoclose: true
|
autoclose: true
|
||||||
});
|
});
|
||||||
function openList(id){
|
function selectOrder(id){
|
||||||
var options = {
|
var options = {
|
||||||
title: "关联合同",
|
title: "关联合同",
|
||||||
url: prefix + '/selectOrder',
|
url: prefix + '/selectOrder',
|
||||||
skin: 'layui-layer-gray',
|
skin: 'layui-layer-gray',
|
||||||
btn: false,
|
btn: true,
|
||||||
maxmin: false,
|
maxmin: false,
|
||||||
full: false,
|
full: false,
|
||||||
index:1000
|
index:1000
|
||||||
|
|
|
@ -12,9 +12,11 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">关联合同:</label>
|
<label class="col-sm-4 control-label is-required">关联合同:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input style="display: none" th:orderId="*{orderId}" name="orderId" class="form-control" readonly type="text" required>
|
<div class="input-group">
|
||||||
<input name="orderName" th:orderName="*{orderName}" class="form-control" readonly type="text" onclick="openList()" required>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -161,12 +163,12 @@
|
||||||
minView: "month",
|
minView: "month",
|
||||||
autoclose: true
|
autoclose: true
|
||||||
});
|
});
|
||||||
function openList(){
|
function selectOrder(){
|
||||||
var options = {
|
var options = {
|
||||||
title: "关联合同",
|
title: "关联合同",
|
||||||
url: prefix + '/selectOrder',
|
url: prefix + '/selectOrder',
|
||||||
skin: 'layui-layer-gray',
|
skin: 'layui-layer-gray',
|
||||||
btn: false,
|
btn: true,
|
||||||
maxmin: false,
|
maxmin: false,
|
||||||
full: false,
|
full: false,
|
||||||
index:1000
|
index:1000
|
||||||
|
|
|
@ -4,13 +4,12 @@
|
||||||
<th:block th:include="include :: header('关联合同')" />
|
<th:block th:include="include :: header('关联合同')" />
|
||||||
</head>
|
</head>
|
||||||
<body class="gray-bg">
|
<body class="gray-bg">
|
||||||
<div class="col-sm-12 select-table table-striped" >
|
<div class="col-sm-12 select-table table-striped" >
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<table id="bootstrap-table"></table>
|
|
||||||
</div>
|
|
||||||
<th:block th:include="include :: footer" />
|
<th:block th:include="include :: footer" />
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var prefixOrder = ctx + "manage/order";
|
var prefixOrder = ctx + "manage/order";
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
|
@ -207,9 +207,17 @@
|
||||||
title: "序号",
|
title: "序号",
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
// var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(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);
|
var html = $.common.sprintf("<input type='hidden' name='orderListList[%s].id' value='%s'>", index, value);
|
||||||
return html+$.table.serialNumber(index);
|
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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -221,9 +221,9 @@
|
||||||
<foreach item="item" index="index" collection="list" separator=";">
|
<foreach item="item" index="index" collection="list" separator=";">
|
||||||
update order_list
|
update order_list
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<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.amount != null">amount = #{item.amount},</if>
|
||||||
<if test="item.remark != null and item.remark!=''">remark = #{item.remark},</if>
|
<if test="item.remark != null">remark = #{item.remark},</if>
|
||||||
updated_at = NOW(),
|
updated_at = NOW(),
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{item.id}
|
where id = #{item.id}
|
||||||
|
|
Loading…
Reference in New Issue