|
@@ -501,7 +501,7 @@
|
|
|
<input type="checkbox" name="ids" class="findGroup" id="yqbg"
|
|
|
value="4" style="zoom: 150%">
|
|
|
<span style="font-size: 15px;">仪器报关单</span>
|
|
|
- <input type="checkbox" name="ids" class="findGroup" id="wrh"
|
|
|
+ <input type="checkbox" name="ids" class="findGroup" id="wrh" onclick="checkboxTrue()"
|
|
|
value="5" style="zoom: 150%">
|
|
|
<span style="font-size: 15px;">无任何文件</span>
|
|
|
</div>
|
|
@@ -519,9 +519,32 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="control-group">
|
|
|
- <label class="control-label"><font color="red">*</font>收款卡号:<font color="red">(用于接收最终结算金额)</font></label>
|
|
|
+ <label class="control-label">开户名:</label>
|
|
|
+ <div class="controls">
|
|
|
+ <form:input path="accountName" htmlEscape="false" maxlength="11" class="input-xlarge"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="control-group">
|
|
|
+ <label class="control-label"><font color="red">*</font>收款卡号:</label>
|
|
|
<div class="controls">
|
|
|
<form:input path="cardNumber" htmlEscape="false" type="number" maxlength="20" class="input-xlarge required"/>
|
|
|
+ <font color="red">(用于接收最终结算金额)</font>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="control-group">
|
|
|
+ <label class="control-label">开户行:</label>
|
|
|
+ <div class="controls">
|
|
|
+ <form:input path="banOfDeposit" htmlEscape="false" maxlength="11" class="input-xlarge"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="control-group">
|
|
|
+ <label class="control-label">账户类型:</label>
|
|
|
+ <div class="controls">
|
|
|
+ <form:select path="accountType" class="input-xlarge">
|
|
|
+ <form:option value="">请选择</form:option>
|
|
|
+ <form:option value="私账">私账</form:option>
|
|
|
+ <form:option value="公账">公账</form:option>
|
|
|
+ </form:select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="control-group">
|
|
@@ -673,8 +696,9 @@
|
|
|
<label class="control-label">二手出让承诺函图片:</label>
|
|
|
<div class="controls upload-content-image iconBox">
|
|
|
<div class="conList">
|
|
|
- <form:hidden id="commitmentImage" path="commitmentImage" htmlEscape="false" maxlength="255"
|
|
|
- class="input-xlarge"/>
|
|
|
+ <form:hidden id="commitmentImage" path="commitmentImage"
|
|
|
+ value="${cmSecondHandDetail.commitmentImage}"
|
|
|
+ htmlEscape="false" maxlength="255" class="input-xlarge"/>
|
|
|
<sys:ckfinder input="commitmentImage" type="images" uploadPath="/photo" selectMultiple="false"
|
|
|
maxWidth="100"
|
|
|
maxHeight="100"/>
|
|
@@ -723,7 +747,7 @@
|
|
|
</div>
|
|
|
</form:form>
|
|
|
<script>
|
|
|
- debugger
|
|
|
+ // debugger
|
|
|
$(function () {
|
|
|
// 加载地址
|
|
|
loadProvince();
|
|
@@ -926,36 +950,39 @@
|
|
|
})
|
|
|
}, 500);
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
$('.upload-content-image .conList .btn:nth-of-type(1)').html('<div><span>+</span><h5>选择图片</h5></div>');
|
|
|
$('.upload-content-image .conList .btn:nth-of-type(2)').after('<img class="cancel-upload-image" src="/static/images/close-btn1.png">').remove();
|
|
|
$('.upload-content-image .conList').find('.cancel-upload-image').hide();
|
|
|
var observeEleImage = document.getElementsByClassName('upload-content-image')[0];
|
|
|
var observeEleImage1 = document.getElementsByClassName('upload-content-image')[1];
|
|
|
+ var observeEleImage2 = document.getElementsByClassName('upload-content-image')[2];
|
|
|
var MutationObserverImage = window.MutationObserver || window.WebKitMutationObserver;
|
|
|
var MutationObserverConfigImage = {
|
|
|
childList: true,
|
|
|
subtree: true,
|
|
|
characterData: true
|
|
|
};
|
|
|
- var observerImage = new MutationObserverImage(function (mutations) {
|
|
|
- $.each(mutations, function (index, item) {
|
|
|
- if (item.type === 'childList') {
|
|
|
- // 在创建新的 element 时调用
|
|
|
- var target = $(item.target),
|
|
|
- thisWrapper = target.closest('.conList'),
|
|
|
- nextEle = thisWrapper.next();
|
|
|
- thisWrapper.find('li').css('z-index', 99);
|
|
|
- thisWrapper.find('.cancel-upload-image').show();
|
|
|
- if (nextEle.hasClass('hide-pic-image')) {
|
|
|
- nextEle.removeClass('hide-pic-image');
|
|
|
+ $('.upload-content-image').each(function (index, el){
|
|
|
+ console.log($(el))
|
|
|
+ var observerImage = new MutationObserverImage(function (mutations) {
|
|
|
+ $.each(mutations, function (index, item) {
|
|
|
+ if (item.type === 'childList') {
|
|
|
+ // 在创建新的 element 时调用
|
|
|
+ var target = $(item.target),
|
|
|
+ thisWrapper = target.closest('.conList'),
|
|
|
+ nextEle = thisWrapper.next();
|
|
|
+ thisWrapper.find('li').css('z-index', 99);
|
|
|
+ thisWrapper.find('.cancel-upload-image').show();
|
|
|
+ if (nextEle.hasClass('hide-pic-image')) {
|
|
|
+ nextEle.removeClass('hide-pic-image');
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
- });
|
|
|
- observerImage.observe(observeEleImage, MutationObserverConfigImage);
|
|
|
- observerImage.observe(observeEleImage1, MutationObserverConfigImage);
|
|
|
+ })
|
|
|
+ });
|
|
|
+ observerImage.observe(observeEleImage, MutationObserverConfigImage);
|
|
|
+ observerImage.observe(observeEleImage1, MutationObserverConfigImage);
|
|
|
+ observerImage.observe(observeEleImage2, MutationObserverConfigImage);
|
|
|
+ })
|
|
|
|
|
|
$('body').on('click', '.upload-content-image li', function () {
|
|
|
var index = $(this).closest('.conList').index() + 1,
|
|
@@ -996,7 +1023,7 @@
|
|
|
input.parents(".conList").find(".cancel-upload-image").show();
|
|
|
input.parents(".conList").next().removeClass("hide-pic-image")
|
|
|
}
|
|
|
- input = $("#commitmentImage");
|
|
|
+ var input = $("#commitmentImage");
|
|
|
if (input.val()) {
|
|
|
input.next().find("li").css("z-index", "99");
|
|
|
input.parents(".conList").find(".cancel-upload-image").show();
|
|
@@ -1279,6 +1306,34 @@
|
|
|
$(".costPropShow").show();
|
|
|
}
|
|
|
}
|
|
|
+ // 选择商品包含文件验证
|
|
|
+ function checkboxTrue() {
|
|
|
+
|
|
|
+ var idsTF = $('#wrh').is(':checked')
|
|
|
+ if (idsTF == true) {
|
|
|
+ $("#yqht").attr("checked", false);
|
|
|
+ $("#yqzc").attr("checked", false);
|
|
|
+ $("#yqfp").attr("checked", false);
|
|
|
+ $("#yqbg").attr("checked", false);
|
|
|
+ }
|
|
|
+ if (idsTF == true) {
|
|
|
+ $("#yqht").attr("disabled", true);
|
|
|
+ $("#yqzc").attr("disabled", true);
|
|
|
+ $("#yqfp").attr("disabled", true);
|
|
|
+ $("#yqbg").attr("disabled", true);
|
|
|
+ } else {
|
|
|
+ $("#yqht").attr("disabled", false);
|
|
|
+ $("#yqzc").attr("disabled", false);
|
|
|
+ $("#yqfp").attr("disabled", false);
|
|
|
+ $("#yqbg").attr("disabled", false);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 获取二手出让承诺函图片名称
|
|
|
+ function fileName() {
|
|
|
+ var input = $('#fileName')
|
|
|
+ input.addEventListener('change',readFile,false)
|
|
|
+ }
|
|
|
|
|
|
|
|
|
</script>
|