合同档案编辑调整
parent
e464a7261c
commit
6b617f0b26
|
@ -5,14 +5,14 @@
|
|||
<th:block th:include="include :: datetimepicker-css"/>
|
||||
</head>
|
||||
<style>
|
||||
.customerBox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
input[name="versionCode"]::-webkit-inner-spin-button,
|
||||
input[name="versionCode"]::-webkit-outer-spin-button {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
label[for="versionCode"]{
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.customerBox div {
|
||||
padding-left: 25px !important;
|
||||
}
|
||||
</style>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
|
@ -38,7 +38,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">版本号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="versionCode" class="form-control" type="number" max="100" required>
|
||||
<input name="versionCode" class="form-control" type="number" max="100" min="0" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -55,7 +55,8 @@
|
|||
<label class="col-sm-4 control-label is-required">合同类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="orderType" class="form-control" th:with="type=${@dict.getType('order_type')}"
|
||||
required>
|
||||
onchange="changeOrderType()" required>
|
||||
<option value="">请选择合同类型</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
|
@ -124,13 +125,13 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">客户联系人:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerContact" class="form-control" type="text">
|
||||
<input name="customerContact" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">客户邮箱:</label>
|
||||
<label class="col-sm-4 control-label">客户邮箱:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerEmail" class="form-control" type="text">
|
||||
</div>
|
||||
|
@ -141,7 +142,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">客户电话:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerPhone" class="form-control" type="text">
|
||||
<input name="customerPhone" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -296,6 +297,10 @@
|
|||
top: '30px',
|
||||
left: '300px'
|
||||
});
|
||||
|
||||
$('[name="versionCode"]').on('focus',function (){
|
||||
$(this).blur()
|
||||
})
|
||||
});
|
||||
|
||||
function addRow(row) {
|
||||
|
@ -461,9 +466,17 @@
|
|||
let res = Number((price * quantity * discount).toFixed(2))
|
||||
$(ele).parent().parent().find('.amount').val(res)
|
||||
}
|
||||
$('[name="versionCode"]').on('focus',function (){
|
||||
$(this).blur()
|
||||
})
|
||||
function changeOrderType(){
|
||||
let orderType=$('[name="orderType"]').val()
|
||||
if(orderType=='zq'){
|
||||
$('[name="orderPartnerName"]').removeAttr('required')
|
||||
$('[name="orderPartnerName"]').parent().parent().parent().find('label').removeClass('is-required')
|
||||
}else{
|
||||
$('[name="orderPartnerName"]').attr('required',true)
|
||||
$('[name="orderPartnerName"]').parent().parent().parent().find('label').addClass('is-required')
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -7,9 +7,8 @@
|
|||
.hideTd {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.customerBox div {
|
||||
padding-left: 25px !important;
|
||||
label[for="versionCode"]{
|
||||
margin-right: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
@ -38,7 +37,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">版本号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="versionCode" th:field="*{versionCode}" class="form-control" type="text" max="100" required>
|
||||
<input name="versionCode" th:field="*{versionCode}" class="form-control" type="text" max="100" min="0" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -55,7 +54,7 @@
|
|||
<label class="col-sm-4 control-label is-required">合同类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="orderType" class="form-control" th:with="type=${@dict.getType('order_type')}"
|
||||
required>
|
||||
onchange="changeOrderType()" required>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
|
||||
th:field="*{orderType}"></option>
|
||||
</select>
|
||||
|
@ -131,14 +130,14 @@
|
|||
<label class="col-sm-4 control-label is-required">客户联系人:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerContact" th:field="*{customerContact}" class="form-control"
|
||||
type="text">
|
||||
type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">客户邮箱:</label>
|
||||
<label class="col-sm-4 control-label">客户邮箱:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerEmail" th:field="*{customerEmail}" class="form-control" type="text">
|
||||
</div>
|
||||
|
@ -148,7 +147,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">客户电话:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerPhone" th:field="*{customerPhone}" class="form-control" type="text">
|
||||
<input name="customerPhone" th:field="*{customerPhone}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -329,6 +328,10 @@
|
|||
top: '30px',
|
||||
left: '300px'
|
||||
});
|
||||
$('[name="versionCode"]').on('focus',function (){
|
||||
$(this).blur()
|
||||
})
|
||||
changeOrderType()
|
||||
});
|
||||
|
||||
function downloadTem() {
|
||||
|
@ -462,9 +465,18 @@
|
|||
$(this).blur()
|
||||
})
|
||||
}
|
||||
$('[name="versionCode"]').on('focus',function (){
|
||||
$(this).blur()
|
||||
})
|
||||
|
||||
function changeOrderType(){
|
||||
let orderType=$('[name="orderType"]').val()
|
||||
if(orderType=='zq'){
|
||||
$('[name="orderPartnerName"]').removeAttr('required')
|
||||
$('[name="orderPartnerName"]').parent().parent().parent().find('label').removeClass('is-required')
|
||||
}else{
|
||||
$('[name="orderPartnerName"]').attr('required',true)
|
||||
$('[name="orderPartnerName"]').parent().parent().parent().find('label').addClass('is-required')
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue