Compare commits
2 Commits
86c13c7336
...
97410847dc
Author | SHA1 | Date |
---|---|---|
|
97410847dc | |
|
ad6d691852 |
|
@ -6,7 +6,11 @@ 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
|
||||
# 从库数据源
|
||||
|
|
|
@ -11,9 +11,11 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">关联合同:</label>
|
||||
<div class="col-sm-8">
|
||||
<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 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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -158,12 +160,12 @@
|
|||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
function openList(id){
|
||||
function selectOrder(id){
|
||||
var options = {
|
||||
title: "关联合同",
|
||||
url: prefix + '/selectOrder',
|
||||
skin: 'layui-layer-gray',
|
||||
btn: false,
|
||||
btn: true,
|
||||
maxmin: false,
|
||||
full: false,
|
||||
index:1000
|
||||
|
|
|
@ -12,9 +12,11 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">关联合同:</label>
|
||||
<div class="col-sm-8">
|
||||
<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 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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -161,12 +163,12 @@
|
|||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
function openList(){
|
||||
function selectOrder(){
|
||||
var options = {
|
||||
title: "关联合同",
|
||||
url: prefix + '/selectOrder',
|
||||
skin: 'layui-layer-gray',
|
||||
btn: false,
|
||||
btn: true,
|
||||
maxmin: false,
|
||||
full: false,
|
||||
index:1000
|
||||
|
|
|
@ -4,13 +4,12 @@
|
|||
<th:block th:include="include :: header('关联合同')" />
|
||||
</head>
|
||||
<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" />
|
||||
|
||||
|
||||
<script>
|
||||
var prefixOrder = ctx + "manage/order";
|
||||
$(function() {
|
||||
|
|
|
@ -207,9 +207,17 @@
|
|||
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 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=";">
|
||||
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 and item.remark!=''">remark = #{item.remark},</if>
|
||||
<if test="item.remark != null">remark = #{item.remark},</if>
|
||||
updated_at = NOW(),
|
||||
</trim>
|
||||
where id = #{item.id}
|
||||
|
|
Loading…
Reference in New Issue