|
@@ -137,8 +137,8 @@
|
|
|
<div class="formControls col-9">
|
|
|
<span class="c-red">*</span>姓名:<input type="text" class="input-text" style="width:100px;margin-right: 10px; margin-bottom: 10px;" placeholder="联系人姓名" id="contactName" name="contactName">
|
|
|
<span class="c-red">*</span>电话:<input type="text" class="input-text" style="width:100px;margin-right: 10px;margin-bottom: 10px;" placeholder="联系人电话" id="contactPhone" name="contactPhone">
|
|
|
- <span class="c-red">*</span>职位/身份:<input type="text" class="input-text" style="width:100px;margin-right: 10px;margin-bottom: 10px;" placeholder="职位或身份" id="contactType" name="contactType">
|
|
|
- <span class="c-red">*</span>联系邮箱:<input type="text" class="input-text" style="width:100px;margin-right: 10px;margin-bottom: 10px;" placeholder="邮箱" id="contactEmail" name="contactEmail">
|
|
|
+ <span class="c-red">*</span>职位/身份:<input type="text" class="input-text" style="width:80px;margin-right: 10px;margin-bottom: 10px;" placeholder="职位或身份" id="contactType" name="contactType">
|
|
|
+ <span class="c-red">*</span>联系邮箱:<input type="text" class="input-text" style="width:150px;margin-right: 10px;margin-bottom: 10px;" placeholder="邮箱" id="contactEmail" name="contactEmail">
|
|
|
<span class="c-red"><button type="button" style="cursor:pointer; float: right;height: 35px;margin-right: 30px;margin-bottom: 10px;" class="my-btn-search" onclick="toAddDockedContactInfo();">保存</button></span>
|
|
|
</div>
|
|
|
<div class="mt-20" style="margin: 20px;">
|
|
@@ -205,7 +205,7 @@
|
|
|
<select name="supplyPrice" id="supplyPrice" class="select">
|
|
|
</select>
|
|
|
</span>
|
|
|
- <input type="text" class="input-text" style="width:120px;margin-right: 0px;margin-bottom: 10px;" placeholder="手动填写供货价格" id="writeSupplyPrice" name="writeSupplyPrice">
|
|
|
+ <input type="text" class="input-text" style="width:120px;margin-right: 0px;margin-bottom: 10px;" placeholder="手动填写供货价格" id="writeSupplyPrice" name="writeSupplyPrice">
|
|
|
</div>
|
|
|
<label class="form-label col-2 col-sm-2" style="width:120px;"><span class="c-red">*</span>账期:</label>
|
|
|
<div class="formControls col-2 col-sm-2" style="width:120px; padding:0px 0px;margin-right: 15px;">
|
|
@@ -307,7 +307,7 @@
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <label class="form-label col-2 col-sm-2" style="width: 120px;"><span class="c-red normalTicketType">*</span>开户支行:</label>
|
|
|
+ <label class="form-label col-2 col-sm-2" style="width: 140px;"><span class="c-red normalTicketType">*</span>开户支行:</label>
|
|
|
<div class="formControls col-2 col-sm-2 skin-minimal">
|
|
|
<input type="text" class="input-text trim_input" placeholder="开户支行名称" id="ticketAccountOpeningBranch" name="ticketAccountOpeningBranch" value="">
|
|
|
</div>
|
|
@@ -724,6 +724,25 @@
|
|
|
$("#contactTbodyId").hide();
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ //制保留2位小数,如:2,会在2后面补上00.即2.00
|
|
|
+ function toDecimal2(x) {
|
|
|
+ var f = parseFloat(x);
|
|
|
+ if (isNaN(f)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var f = Math.round(x*100)/100;
|
|
|
+ var s = f.toString();
|
|
|
+ var rs = s.indexOf('.');
|
|
|
+ if (rs < 0) {
|
|
|
+ rs = s.length;
|
|
|
+ s += '.';
|
|
|
+ }
|
|
|
+ while (s.length <= rs + 2) {
|
|
|
+ s += '0';
|
|
|
+ }
|
|
|
+ return s;
|
|
|
+ }
|
|
|
/*保存客户销售信息到列表*/
|
|
|
function toAddChannelSaleInfo() {
|
|
|
var channelCategory = document.getElementById("channelCategory").value;
|
|
@@ -744,8 +763,7 @@
|
|
|
var supplyPrice = document.getElementById("supplyPrice").value;
|
|
|
var writeSupplyPrice = document.getElementById("writeSupplyPrice").value;//手动输入价格
|
|
|
if(writeSupplyPrice != null && writeSupplyPrice !=""){
|
|
|
- /*writeSupplyPrice = writeSupplyPrice.toFixed(2);
|
|
|
- alert(writeSupplyPrice);*/
|
|
|
+ writeSupplyPrice = toDecimal2(writeSupplyPrice);
|
|
|
supplyPrice = writeSupplyPrice;
|
|
|
}
|
|
|
var accountPeriod = document.getElementById("accountPeriod").value;
|
|
@@ -952,7 +970,8 @@
|
|
|
}
|
|
|
//开票信息
|
|
|
var ticketOpeningInfo = {};
|
|
|
- if(customerBasicInfo.cooperativeState != "1"){
|
|
|
+ var isOpenTicket = $("input[name='isOpenTicket']:checked").val();
|
|
|
+ if(customerBasicInfo.cooperativeState != "1" && isOpenTicket != "1"){
|
|
|
ticketOpeningInfo.ticketType = $("[name='ticketType']").val();
|
|
|
ticketOpeningInfo.accountOpeningBranch = $("[name='ticketAccountOpeningBranch']").val();
|
|
|
ticketOpeningInfo.ticketOpeningAccount = $("[name='ticketOpeningAccount']").val();
|