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