合同档案编辑代理商同步功能
parent
ca58c7eafd
commit
b495fb319a
|
@ -86,6 +86,8 @@
|
|||
<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>
|
||||
|
@ -276,10 +278,21 @@
|
|||
}
|
||||
$('[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);
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
function importList() {
|
||||
$('#uploadInput').click()
|
||||
|
@ -335,6 +348,7 @@
|
|||
})
|
||||
|
||||
changeOrderType()
|
||||
initCustomerSet()
|
||||
});
|
||||
|
||||
function downloadTem() {
|
||||
|
@ -494,6 +508,17 @@
|
|||
$('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>
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>项目主键:</label>
|
||||
<input type="text" name="projectId"/>
|
||||
<label>订单信息:</label>
|
||||
<input type="text" name="projectId" placeholder="项目编号/项目名称/项目负责人" />
|
||||
</li>
|
||||
<li>
|
||||
<label>地市:</label>
|
||||
<label>省市:</label>
|
||||
<input type="text" name="city"/>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -34,62 +34,6 @@
|
|||
<label>合同编号:</label>
|
||||
<input type="text" name="orderCode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>出货金额:</label>
|
||||
<input type="text" name="shipmentAmount"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>实际进货金额:</label>
|
||||
<input type="text" name="actualPurchaseAmount"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>执行单有效截止时间:</label>
|
||||
<input type="text" class="time-input" placeholder="请选择执行单有效截止时间" name="orderEndTime"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>要求到货时间:</label>
|
||||
<input type="text" class="time-input" placeholder="请选择要求到货时间" name="deliveryTime"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>公司直发:</label>
|
||||
<input type="text" name="companyDelivery"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>通知人:</label>
|
||||
<input type="text" name="notifier"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>通知人邮箱:</label>
|
||||
<input type="text" name="notifierEmail"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>通知人电话:</label>
|
||||
<input type="text" name="notifierPhone"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>责任人:</label>
|
||||
<input type="text" name="duty"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>责任人邮箱:</label>
|
||||
<input type="text" name="dutyEmail"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>责任人电话:</label>
|
||||
<input type="text" name="dutyPhone"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>下单通路:</label>
|
||||
<input type="text" name="orderChannel"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>进货商:</label>
|
||||
<input type="text" name="partnerCode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>供货商:</label>
|
||||
<input type="text" name="supplier"/>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
|
|
Loading…
Reference in New Issue