Compare commits

..

No commits in common. "bf8cedec4479b368a32b6fb17a26d5ae526e5fc2" and "9e73c3f38b419a20d0c5ce50cd615d7e627952e8" have entirely different histories.

2 changed files with 3 additions and 31 deletions

View File

@ -86,8 +86,6 @@
<input class="form-control" name="orderPartnerName" th:field="*{orderPartnerName}"
onclick="selectPartner()" required>
<span class="input-group-addon" onclick="selectPartner()"><i class="fa fa-search"></i></span>
<span class="input-group-addon" id="customerSet" onclick="setCustomer()" title="同步" ><i
class="fa fa-refresh"></i></span>
</div>
</div>
</div>
@ -278,20 +276,9 @@
}
$('[name="orderPartnerCode"]').val(rows[0].partnerCode);
$('[name="orderPartnerName"]').val(rows[0].partnerName);
$('#customerSet').attr('partnerName', rows[0].partnerName);
$('#customerSet').attr('contactPerson', rows[0].contactPerson);
$('#customerSet').attr('contactPhone', rows[0].contactPhone);
$.modal.close(index);
}
function initCustomerSet(){
$.operate.post( ctx + "system/partner/list",{isTable:0,partnerName:[[${orderInfo.orderPartnerName}]],pageSize:1,pageNum:0},function (res){
if(res.rows.length){
$('#customerSet').attr('partnerName', res.rows[0].partnerName);
$('#customerSet').attr('contactPerson', res.rows[0].contactPerson);
$('#customerSet').attr('contactPhone', res.rows[0].contactPhone);
}
})
$.modal.close(index);
}
function importList() {
@ -348,7 +335,6 @@
})
changeOrderType()
initCustomerSet()
});
function downloadTem() {
@ -508,17 +494,6 @@
$('form').find('textarea').css('pointer-events', 'none')
window.localStorage.removeItem('isOrderDetail')
}
function setCustomer() {
if (!$('#customerSet').attr('partnerName')) {
$.modal.alertWarning("请先选择代理商");
return
}
$('[name="customerCode"]').attr('readonly', false).attr('required', false).val('').parent().parent().find('label').removeClass('is-required')
$(' [name="customerEmail"]').val('');
$(' [name="customerName"]').val($('#customerSet').attr('partnerName'));
$(' [name="customerContact"]').val($('#customerSet').attr('contactPerson'));
$(' [name="customerPhone"]').val($('#customerSet').attr('contactPhone'));
}
</script>
</body>

View File

@ -10,10 +10,7 @@
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>订单信息:</label>
<input type="text" name="projectId" placeholder="项目编号/项目名称/项目负责人" />
</li>
<li>
<label>地市:</label>
<input type="text" name="city"/>