Commit b8cd9f92 authored by 谭文静's avatar 谭文静

修改报价单,成交单,产品管理页面

parent 54fb20d7
......@@ -7,9 +7,19 @@
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="form-header h4 panel-title">
<a data-toggle="collapse"
href="#collapseOne">
基本信息
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<form class="form-horizontal m" id="form-order-edit"
th:object="${crmOrder}">
<h4 class="form-header h4">基本信息</h4>
<input name="orderId" th:field="*{orderId}" type="hidden">
<input name="customerId" type="hidden" id="customerId" />
<div class="row">
......@@ -39,22 +49,23 @@
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">成交总额:</label>
<div class="col-sm-6">
<input name="totalPrice" th:field="*{totalPrice}" class="form-control" type="text" required>
<div class="col-sm-8">
<div style="display: flex;border: 1px solid #e5e6e7;border-radius: 4px;width: 100%;">
<input name="totalPrice" th:field="*{totalPrice}" class="form-control" type="text" required style="border: none;width: 70%;">
<i class="fa fa fa-cny" style="width: 30%;display: inline-block;line-height: 30px;text-align: center"><a href="javascript:autoCaculate();">自动计算</a></i>
</div>
<div class="col-sm-2">
<i class="fa fa fa-cny"><a href="javascript:autoCaculate();">自动计算</a></i>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">总成本:</label>
<div class="col-sm-6">
<input name="costPrice" th:field="*{costPrice}" class="form-control" type="text" required>
<div class="col-sm-8">
<div style="display: flex;border: 1px solid #e5e6e7;border-radius: 4px;width: 100%;">
<input name="costPrice" th:field="*{costPrice}" class="form-control" type="text" required style="border: none;width: 70%;">
<i class="fa fa fa-cny" style="width: 30%;display: inline-block;line-height: 30px;text-align: center"><a href="javascript:autoCaculate();">自动计算</a></i>
</div>
<div class="col-sm-2">
<i class="fa fa fa-cny"><a href="javascript:autoCaculate();">自动计算</a></i>
</div>
</div>
</div>
......@@ -141,7 +152,20 @@
</div>
</div>
</form>
<h4 class="form-header h4">产品信息</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="form-header h4 panel-title">
<a data-toggle="collapse"
href="#collapseTwo">
产品信息
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse">
<div class="container-div">
<div class="row">
<div class="btn-group-sm" id="toolbarProduct" role="group">
......@@ -155,6 +179,9 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-offset-5 col-sm-10">
<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
......
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改产品')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-product-edit" th:object="${wmsProduct}">
<input name="productId" th:field="*{productId}" type="hidden">
......@@ -95,6 +98,53 @@
<textarea name="remark" maxlength="500" class="form-control" rows="3">[[*{remark}]]</textarea>
</div>
</div>
<div>
<p onclick="tableChange()"><a href="javascript:;">添加</a></p>
<!-- <button onclick="tableChange()">Copy Text</button>-->
<table class="table table-bordered" id="tables">
<thead>
<tr>
<th>名称</th>
<th></th>
<th>操作</th>
</tr>
</thead>
<tbody id="tbody">
<tr>
<td align="center">
<input type="text" name="NO[]" size="2" />
</td>
<td align="center">
<input type="text" name="serial_number[]" />
</td>
<td>
<input type="button" id="Button2" onClick="deltr(this)" value="删行">
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
//添加表格
function tableChange() {
var tableHtml ="";
tableHtml += '<tr>'
+'<td align="center"><input type="text" name="NO[]" size="2" /> </td>'
+'<td align="center"><input type="text" name="serial_number[]"/></td>'
+'<td><input type="button" onClick="deltr(this)" value="删行"></td>'
+'</tr>';
$("#tbody").append(tableHtml) ; //在表格后面添加一行
}
function deltr(opp) {
var length = $("#tbody tr").length;
if (length <= 1) {
alert("至少保留一行");
} else {
$(opp).parent().parent().remove();//移除当前行
}
}
</script>
</div>
</form>
</div>
<div class="row">
......@@ -104,7 +154,9 @@
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var argsList = []
var prefix = ctx + "crm/product";
$("#form-product-edit").validate({
focusCleanup: true
......@@ -161,5 +213,6 @@
}
}
</script>
</body>
</html>
\ No newline at end of file
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