You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
333 lines
16 KiB
333 lines
16 KiB
<!DOCTYPE html>
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
<head>
|
|
<th:block th:include="include :: header('修改客户资料')" />
|
|
<th:block th:include="include :: datetimepicker-css" />
|
|
</head>
|
|
<body class="white-bg">
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
<form class="form-horizontal m" id="form-customer-edit" th:object="${customer}">
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label is-required">企业代码:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pCode" th:field="*{pCode}" class="form-control" type="text" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label is-required">企业名称:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pName" th:field="*{pName}" class="form-control" type="text" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">客户简称:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pHttp" th:field="*{pHttp}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">信用额度:</label>
|
|
<div class="col-sm-8">
|
|
<input name="creditAmt" th:field="*{creditAmt}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">英文名称:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pEnName" th:field="*{pEnName}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">送货地址:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pWbType" th:field="*{pWbType}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">邮编:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pPost" th:field="*{pPost}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">国家或地区编号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pCountryCode" th:field="*{pCountryCode}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">国家或地区:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pCountry" th:field="*{pCountry}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">法人代表:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pCeo" th:field="*{pCeo}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">主联系人:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pLinkman" th:field="*{pLinkman}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">联系电话:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pTel" th:field="*{pTel}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">传真:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pFax" th:field="*{pFax}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">EMAIL:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pEmail" th:field="*{pEmail}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">海关代码:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pCiqCode" th:field="*{pCiqCode}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">付款条件:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pComCode" th:field="*{pComCode}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">发票代码:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pHyCode" th:field="*{pHyCode}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">成立时间:</label>
|
|
<div class="col-sm-8">
|
|
<div class="input-group date">
|
|
<input name="pCreatDate" th:value="${#dates.format(customer.pCreatDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">结汇银行:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pJhbank" th:field="*{pJhbank}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">结汇账号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pJhbankCode" th:field="*{pJhbankCode}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">开户银行:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pBank" th:field="*{pBank}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">开户账号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pBankCode" th:field="*{pBankCode}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">RMB注册资金:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pRmbMoney" th:field="*{pRmbMoney}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">外币注册资金:</label>
|
|
<div class="col-sm-8">
|
|
<input name="pWbMoney" th:field="*{pWbMoney}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">备注内容:</label>
|
|
<div class="col-sm-8">
|
|
<textarea name="memoText" class="form-control">[[*{memoText}]]</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">业务员:</label>
|
|
<div class="col-sm-8">
|
|
<input name="moral" th:field="*{moral}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<!--<div class="form-group">-->
|
|
<!--<label class="col-sm-3 control-label">:</label>-->
|
|
<!--<div class="col-sm-8">-->
|
|
<!--<div class="input-group date">-->
|
|
<!--<input name="comfirmDate" th:value="${#dates.format(customer.comfirmDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
|
|
<!--<span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<!--<div class="form-group"> -->
|
|
<!--<label class="col-sm-3 control-label">制单人:</label>-->
|
|
<!--<div class="col-sm-8">-->
|
|
<!--<input name="writeMan" th:field="*{writeMan}" class="form-control" type="text">-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<!--<div class="form-group"> -->
|
|
<!--<label class="col-sm-3 control-label">:</label>-->
|
|
<!--<div class="col-sm-8">-->
|
|
<!--<div class="input-group date">-->
|
|
<!--<input name="writeDate" th:value="${#dates.format(customer.writeDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
|
|
<!--<span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">NWX:</label>
|
|
<div class="col-sm-8">
|
|
<input name="NWX" th:field="*{NWX}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">订单号长度:</label>
|
|
<div class="col-sm-8">
|
|
<input name="ordernoLen" th:field="*{ordernoLen}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">出货单格式名称:</label>
|
|
<div class="col-sm-8">
|
|
<input name="sendcpReportname" th:field="*{sendcpReportname}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">业务员:</label>
|
|
<div class="col-sm-8">
|
|
<input name="saler" th:field="*{saler}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">目的地港代号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="dWaterNo" th:field="*{dWaterNo}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">起运港名:</label>
|
|
<div class="col-sm-8">
|
|
<input name="sWaterName" th:field="*{sWaterName}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">起运港名:</label>
|
|
<div class="col-sm-8">
|
|
<input name="sWaterNo" th:field="*{sWaterNo}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">统一编号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="comCode" th:field="*{comCode}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">币别:</label>
|
|
<div class="col-sm-8">
|
|
<input name="crlName" th:field="*{crlName}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">出货需录入使用量:</label>
|
|
<div class="col-sm-8">
|
|
<input name="senduseConfirm" th:field="*{senduseConfirm}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">税率:</label>
|
|
<div class="col-sm-8">
|
|
<input name="taxPercent" th:field="*{taxPercent}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<!--<div class="form-group"> -->
|
|
<!--<label class="col-sm-3 control-label">:</label>-->
|
|
<!--<div class="col-sm-8">-->
|
|
<!--<input name="senddw" th:field="*{senddw}" class="form-control" type="text">-->
|
|
<!--</div>-->
|
|
<!--</div>-->
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">含税否:</label>
|
|
<div class="col-sm-8">
|
|
<!--<input id="taxFlag" name="taxFlag" th:field="*{taxFlag}" class="form-control" type="text">-->
|
|
<select id="taxFlag" name="taxFlag" class="form-control m-b">
|
|
<option value="" selected></option>
|
|
<option value="0">否</option>
|
|
<option value="1">是</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<th:block th:include="include :: footer" />
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
<script th:inline="javascript">
|
|
var prefix = ctx + "finance/customer";
|
|
$("#form-customer-edit").validate({
|
|
focusCleanup: true
|
|
});
|
|
|
|
//确认在编辑是否
|
|
var workNo = '[[${customer.taxFlag}]]';
|
|
$(function () {
|
|
workNo == "1" ?$("#taxFlag option[selected]").text("是") : $("#taxFlag option[selected]").text("否")
|
|
workNo == "1" ?$("#taxFlag option[selected]").val("1") : $("#taxFlag option[selected]").val("0")
|
|
|
|
// console.log($("#taxFlag").val())
|
|
})
|
|
|
|
function submitHandler() {
|
|
if ($.validate.form()) {
|
|
$.operate.save(prefix + "/edit", $('#form-customer-edit').serialize());
|
|
}
|
|
}
|
|
|
|
$("input[name='pCreatDate']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true
|
|
});
|
|
|
|
$("input[name='comfirmDate']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true
|
|
});
|
|
|
|
$("input[name='auditingDate']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true
|
|
});
|
|
|
|
$("input[name='approveDate']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true
|
|
});
|
|
|
|
$("input[name='writeDate']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|