Compare commits

..

No commits in common. "6a4e423276f443a56fe38c976dff8ee8e74a5de6" and "3cbe4d951fe8f52150fe9bcfc314276fd4e5ece3" have entirely different histories.

5 changed files with 183 additions and 118 deletions

View File

@ -152,7 +152,6 @@ $(function () {
var projectGrossProfitA=$('[name="projectGrossProfitA"]').val() var projectGrossProfitA=$('[name="projectGrossProfitA"]').val()
if(Number(totalTotal)> (Number(projectGrossProfitA)*0.1) ){ if(Number(totalTotal)> (Number(projectGrossProfitA)*0.1) ){
layuiAlert(`总金额合计不能超过毛利A(${projectGrossProfitA})的10%`); layuiAlert(`总金额合计不能超过毛利A(${projectGrossProfitA})的10%`);
$("#saveDraft").attr('disabled', false)
return return
} }
if(dataManage){ if(dataManage){
@ -195,18 +194,11 @@ $(function () {
// } // }
// console.log(message); // console.log(message);
// 保存付款计划表 // 保存付款计划表
var flagPay= verifyBudgetPay()
if(!flagPay) {
$("#saveDraft").attr('disabled', false)
return;
}
var dataPay = collectData("am-modal-prompt-input-pay"); var dataPay = collectData("am-modal-prompt-input-pay");
dataPay = prepareAjaxDataVerify(dataPay, pay_DETAIL2, $("#id").val()); dataPay = prepareAjaxDataVerify(dataPay, pay_DETAIL2, $("#id").val());
if(dataPay){ if(dataPay){
postAjax(base+"/project/budgetEditSaveBudgetPayPlan", dataPay); postAjax(base+"/project/budgetEditSaveBudgetPayPlan", dataPay);
} }
var startTime = $("#startDate").val(); var startTime = $("#startDate").val();
var endTime = $("#endDate").val(); var endTime = $("#endDate").val();
if (startTime > endTime) { if (startTime > endTime) {
@ -332,17 +324,6 @@ $(function () {
// layuiAlert(message); // layuiAlert(message);
// return; // return;
// } // }
// 保存付款计划表
var flagPay= verifyBudgetPay()
if(!flagPay) {
$("#saveDraft").attr('disabled', false)
return;
}
var dataPay = collectData("am-modal-prompt-input-pay");
dataPay = prepareAjaxDataVerify(dataPay, pay_DETAIL2, $("#id").val());
if(dataPay){
postAjax(base+"/project/budgetEditSaveBudgetPayPlan", dataPay);
}
var startTime = $("#startDate").val(); var startTime = $("#startDate").val();
var endTime = $("#endDate").val(); var endTime = $("#endDate").val();

View File

@ -2,29 +2,29 @@
* 一个采购成本详情的字段 * 一个采购成本详情的字段
*/ */
//COST_DETAIL_ARR=["type","category","name","unit","amount","price","taxRate","totalTaxInclude","totalTaxExclude"]; //COST_DETAIL_ARR=["type","category","name","unit","amount","price","taxRate","totalTaxInclude","totalTaxExclude"];
pay_DETAIL2 = { pay_DETAIL2={
"num": [false, "序号", "string"], "num":[false,"序号","string"],
"payPoint": [false, "付款节点", "string"], "payPoint":[false,"付款节点","string"],
"payTime": [false, "付款时间", "string"], "payTime":[false,"付款时间","string"],
"payProject": [false, "采购成本项目", "number"], "payProject":[false,"采购成本项目","number"],
"payAmount": [false, "付款金额", "number"], "payAmount":[false,"付款金额","number"],
"supplier": [false, "供应商", "string"], "supplier":[false,"供应商","string"],
}; };
pay_DETAIL = { pay_DETAIL={
"num": [false, "序号", "string"], "num":[false,"序号","string"],
"payPoint": [false, "付款节点", "string"], "payPoint":[false,"付款节点","string"],
"payTime": [false, "付款时间", "string"], "payTime":[false,"付款时间","string"],
"payProject": [false, "采购成本项目", "number"], "payProject":[false,"采购成本项目","number"],
"payAmount": [false, "付款金额", "number"], "payAmount":[false,"付款金额","number"],
"supplier": [false, "供应商", "string"], "supplier":[false,"供应商","string"],
}; };
/* /*
[ [
{"id":"1","name":"xxx1"},{"id":"2","name":"xxx2"} {"id":"1","name":"xxx1"},{"id":"2","name":"xxx2"}
] ]
*/ */
SELECT_TYPE_CATEGORY_DATA = []; SELECT_TYPE_CATEGORY_DATA=[];
/*{ /*{
"1":[ "1":[
{ {
@ -67,7 +67,7 @@ SELECT_TYPE_CATEGORY_DATA = [];
} }
] ]
};*/ };*/
SELECT_TYPE_CATEGORY_MAP_DATA = {}; SELECT_TYPE_CATEGORY_MAP_DATA={};
/*{ /*{
"1":"1", "1":"1",
"2":"1", "2":"1",
@ -79,7 +79,7 @@ SELECT_TYPE_CATEGORY_MAP_DATA = {};
"8":"4" "8":"4"
}; };
*/ */
SELECT_CATEGORY_TYPE_MAP_DATA = {}; SELECT_CATEGORY_TYPE_MAP_DATA={};
/*$(function () { /*$(function () {
$("#cost-detail").click(function () { $("#cost-detail").click(function () {
@ -119,12 +119,11 @@ $(function () {
var data = collectData("am-modal-prompt-input-pay"); var data = collectData("am-modal-prompt-input-pay");
//data = prepareAjaxData(data, COST_DETAIL_ARR, $("#id").val(),false); //data = prepareAjaxData(data, COST_DETAIL_ARR, $("#id").val(),false);
data = prepareAjaxDataVerify(data, pay_DETAIL2, $("#id").val()); data = prepareAjaxDataVerify(data, pay_DETAIL2, $("#id").val());
var flag=verifyBudgetPay() if(data){
if(!flag) return postAjax(base+"/project/budgetEditSaveBudgetPayPlan", data, updateCostData);
if (data) {
postAjax(base + "/project/budgetEditSaveBudgetPayPlan", data, updateCostData);
} }
}); });
$("#payAddBtn").click(function () { $("#payAddBtn").click(function () {
appendTrPay(); appendTrPay();
$("#payAddBtn").blur(); $("#payAddBtn").blur();
@ -134,7 +133,7 @@ $(function () {
bindDeleteBtnPay(); bindDeleteBtnPay();
//初始化大类和类别的数据 //初始化大类和类别的数据
getAjax(base + "/procurement/type/map", null, initTypeCategory); getAjax(base+"/procurement/type/map", null, initTypeCategory);
}); });
/** /**
@ -144,25 +143,25 @@ function appendTrPay() {
//console.log(SELECT_TYPE_CATEGORY_DATA); //console.log(SELECT_TYPE_CATEGORY_DATA);
var options = '<option value="xxxx" disabled selected>--请选择--</option>\r\n'; var options = '<option value="xxxx" disabled selected>--请选择--</option>\r\n';
SELECT_TYPE_CATEGORY_DATA.forEach(function (e) { SELECT_TYPE_CATEGORY_DATA.forEach(function (e) {
options += '<option value="' + e.id + '">' + e.name + '</option>\r\n'; options+='<option value="'+e.id+'">'+e.name+'</option>\r\n';
}); });
var template = '<tr>' + var template = '<tr>' +
'<td width="60px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay input-budget-num" readonly></td>' + '<td width="60px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay input-budget-num" readonly></td>' +
'<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay am-modal-prompt-input-pay-point" ></td>' + '<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay am-modal-prompt-input-pay-point" ></td>'+
'<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay input-changeable-pay-time" autocomplete="off" data-am-datepicker></td>' + '<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay input-changeable-pay-time" autocomplete="off" data-am-datepicker></td>'+
'<td width="100px">' + '<td width="100px">'+
'<select style="float: left;" class="am-modal-prompt-input am-modal-prompt-input-pay am-modal-prompt-input-pay-project">\n' + '<select style="float: left;" class="am-modal-prompt-input am-modal-prompt-input-pay am-modal-prompt-input-pay-project">\n' +
'<option value="xxxx" disabled selected>--请选择--</option>' + '<option value="xxxx" disabled selected>--请选择--</option>'+
'<option value="1">设备成本</option>' + '<option value="1">设备成本</option>'+
'<option value="2">工程成本</option>' + '<option value="2">工程成本</option>'+
'<option value="3">服务成本</option>' + '<option value="3">服务成本</option>'+
'<option value="4">其他成本</option>' + '<option value="4">其他成本</option>'+
'</select>' + '</select>'+
'</td>' + '</td>'+
'<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay am-modal-prompt-input-pay-amount" ></td>' + '<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay am-modal-prompt-input-pay-amount" ></td>' +
'<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay am-modal-prompt-input-pay-supplier" ></td>' + '<td width="100px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-pay am-modal-prompt-input-pay-supplier" ></td>' +
'<td width="60px"><button type="button" style="margin-top: 10px" class="am-btn am-btn-danger am-btn-xs am-round am-modal-line-delete"><span class="am-icon-minus"></span></button></td>' + '<td width="60px"><button type="button" style="margin-top: 10px" class="am-btn am-btn-danger am-btn-xs am-round am-modal-line-delete"><span class="am-icon-minus"></span></button></td>'+
'</tr>'; '</tr>';
@ -199,7 +198,7 @@ function bindDeleteBtnPay() {
$(this).parent().parent().remove(); $(this).parent().parent().remove();
bindNum(); bindNum();
updateTotal("input-changeable-pay-amount", "input-changeable-pay-amount-total"); updateTotal("input-changeable-pay-amount", "input-changeable-pay-amount-total");
}); });
} }
/** /**
@ -232,22 +231,22 @@ function updateCostData(data, returnData) {
var costTaxRates = ""; var costTaxRates = "";
var set = new Set(); var set = new Set();
details.forEach(function (t, number, ts) { details.forEach(function (t, number, ts) {
if (t["type"] == "1") { if(t["type"] == "1"){
//设备类 //设备类
deviceTaxInclude += f2(t["totalTaxInclude"]); deviceTaxInclude += f2(t["totalTaxInclude"]);
deviceTaxExclude += f2(t["totalTaxExclude"]); deviceTaxExclude += f2(t["totalTaxExclude"]);
deviceTax += f2(t["totalTax"]); deviceTax += f2(t["totalTax"]);
} else if (t["type"] == "2") { }else if(t["type"] == "2"){
//施工类 //施工类
buildTaxInclude += f2(t["totalTaxInclude"]); buildTaxInclude += f2(t["totalTaxInclude"]);
buildTaxExclude += f2(t["totalTaxExclude"]); buildTaxExclude += f2(t["totalTaxExclude"]);
buildTax += f2(t["totalTax"]); buildTax += f2(t["totalTax"]);
} else if (t["type"] == "3") { }else if(t["type"] == "3"){
//服务类 //服务类
serviceTaxInclude += f2(t["totalTaxInclude"]); serviceTaxInclude += f2(t["totalTaxInclude"]);
serviceTaxExclude += f2(t["totalTaxExclude"]); serviceTaxExclude += f2(t["totalTaxExclude"]);
serviceTax += f2(t["totalTax"]); serviceTax += f2(t["totalTax"]);
} else if (t["type"] == "4") { }else if(t["type"] == "4"){
//其他类 //其他类
otherTaxInclude += f2(t["totalTaxInclude"]); otherTaxInclude += f2(t["totalTaxInclude"]);
otherTaxExclude += f2(t["totalTaxExclude"]); otherTaxExclude += f2(t["totalTaxExclude"]);
@ -274,10 +273,10 @@ function updateCostData(data, returnData) {
//资金计划表中的 //资金计划表中的
$(".input-total-title-device-cost-budget-plan").val(f2Fixed(deviceTaxInclude)); $(".input-total-title-device-cost-budget-plan").val(f2Fixed(deviceTaxInclude));
$(".input-total-title-engineer-cost-budget-plan").val(f2Fixed(f2(serviceTaxInclude) + f2(buildTaxInclude) + f2(otherTaxInclude))); $(".input-total-title-engineer-cost-budget-plan").val(f2Fixed(f2(serviceTaxInclude)+f2(buildTaxInclude)+f2(otherTaxInclude)));
$(".input-total-title-total-cost-budget-plan").val(f2Fixed(f2(deviceTaxInclude) + f2(buildTaxInclude) + f2(serviceTaxInclude) + f2(otherTaxInclude) $(".input-total-title-total-cost-budget-plan").val(f2Fixed(f2(deviceTaxInclude)+f2(buildTaxInclude)+f2(serviceTaxInclude)+f2(otherTaxInclude)
+ f2($(".input-total-title-project-manage-cost-budget-plan").val()) +f2($(".input-total-title-project-manage-cost-budget-plan").val())
+ f2($(".input-total-title-earnest-money-cost-budget-plan").val()))); +f2($(".input-total-title-earnest-money-cost-budget-plan").val())));
/* var costOtherOtherTaxInclude = f2($("input[name='costOtherOtherTaxInclude']").val()); /* var costOtherOtherTaxInclude = f2($("input[name='costOtherOtherTaxInclude']").val());
var costOtherOtherTaxExclude = f2($("input[name='costOtherOtherTaxExclude']").val()); var costOtherOtherTaxExclude = f2($("input[name='costOtherOtherTaxExclude']").val());
@ -317,20 +316,20 @@ function initTypeCategory(params, data) {
var temp = []; var temp = [];
map[t].forEach(function (g) { map[t].forEach(function (g) {
temp.push({ temp.push({
name: g.name, name:g.name,
id: g.id + "" id:g.id+""
}); });
}); });
SELECT_TYPE_CATEGORY_MAP_DATA[t] = temp; SELECT_TYPE_CATEGORY_MAP_DATA[t]= temp;
}); });
var procurementTypes = d.procurementTypes; var procurementTypes = d.procurementTypes;
procurementTypes.forEach(function (e) { procurementTypes.forEach(function (e) {
SELECT_TYPE_CATEGORY_DATA.push({ SELECT_TYPE_CATEGORY_DATA.push({
id: e.id + "", id:e.id+"",
name: e.name name:e.name
}); });
SELECT_CATEGORY_TYPE_MAP_DATA[e.id] = e.type; SELECT_CATEGORY_TYPE_MAP_DATA[e.id]=e.type;
}); });
//--请选择--的映射 //--请选择--的映射
//SELECT_CATEGORY_TYPE_MAP_DATA["xxxx"]="xxxx"; //SELECT_CATEGORY_TYPE_MAP_DATA["xxxx"]="xxxx";
@ -339,19 +338,3 @@ function initTypeCategory(params, data) {
// console.log(SELECT_TYPE_CATEGORY_DATA); // console.log(SELECT_TYPE_CATEGORY_DATA);
// console.log(SELECT_CATEGORY_TYPE_MAP_DATA); // console.log(SELECT_CATEGORY_TYPE_MAP_DATA);
} }
//校验付款明细表
function verifyBudgetPay() {
var timeValue = $(".input-changeable-pay-time");
var flag=true
var timeFlag = true
timeValue.each((index, element) => {
if ($(element).val().length != 10)
timeFlag = false
})
if (timeFlag == false) {
flag=false
layuiAlert('付款计划表中付款时间为必填')
}
return flag
}

View File

@ -1051,3 +1051,9 @@ function updateCashFlow() {
$("input[name='financingCapitalCashflow']").val(f2Fixed(m)); $("input[name='financingCapitalCashflow']").val(f2Fixed(m));
$("input[name='netIncreaseMonetaryFunds']").val(f2Fixed(n)); $("input[name='netIncreaseMonetaryFunds']").val(f2Fixed(n));
} }
//校验付款明细表
function verifyBudgetPay(){
var timeValue = classVal("input-changeable-pay-time");
}

View File

@ -954,7 +954,7 @@
<#list incomeDetails as incomeDetail> <#list incomeDetails as incomeDetail>
<tr> <tr>
<td>${(incomeDetail_index+1)!}</td> <td>${(incomeDetail_index+1)!}</td>
<td width="100px"> <td>
<#if incomeDetail.type ==1 > <#if incomeDetail.type ==1 >
设备类 设备类
<#elseif incomeDetail.type ==2> <#elseif incomeDetail.type ==2>
@ -992,7 +992,7 @@
</#if> </#if>
<tr class="total-new" id="incomeTotal"> <tr class="total-new" id="incomeTotal">
<td>总计</td> <td>总计</td>
<td width="100px"></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
<td><input type="text" <td><input type="text"
@ -1094,6 +1094,7 @@
value="${Utils.format(budgetPayPlanTotal,'0')}" value="${Utils.format(budgetPayPlanTotal,'0')}"
readonly></td> readonly></td>
<td width="100px"></td> <td width="100px"></td>
<td width="60px"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -1192,13 +1193,22 @@
<thead> <thead>
<tr> <tr>
<th>序号</th> <th>序号</th>
<th>采购成本项目</th> <th>费用项目</th>
<th>产品大类</th> <th>采购类别</th>
<th>名称</th>
<th>单位</th>
<th>数量</th>
<th>单价</th>
<th>税率(%</th> <th>税率(%</th>
<th>含税总金额(元)</th> <th>含税总金额(元)</th>
<th>不含税金额(元)</th> <th>不含税金额(元)</th>
<th>税金(元)</th> <th>税金(元)</th>
<th>供应商</th> <th>签约方</th>
<th>是否垫资</th>
<th>预估垫资金额(元)</th>
<th>支出时间</th>
<th>支出金额(元)</th>
<th>付款方式</th>
<th>备注</th> <th>备注</th>
</tr> </tr>
</thead> </thead>
@ -1208,6 +1218,17 @@
<tr> <tr>
<td>${(costDetail_index+1)!}</td> <td>${(costDetail_index+1)!}</td>
<td> <td>
<#--<select style="width: auto" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost am-modal-prompt-input-cost-type">
<option value="1" <#if costDetail.type == 1>selected</#if>>设备
</option>
<option value="2" <#if costDetail.type == 2>selected</#if>>施工
</option>
<option value="3" <#if costDetail.type == 3>selected</#if>>服务
</option>
<option value="4" <#if costDetail.type == 4>selected</#if>>其他
</option>
</select>-->
<#if costDetail.type ==1 > <#if costDetail.type ==1 >
设备 设备
<#elseif costDetail.type ==2> <#elseif costDetail.type ==2>
@ -1223,7 +1244,20 @@
<#if costDetail.category == procurementType.id>${procurementType.name}</#if> <#if costDetail.category == procurementType.id>${procurementType.name}</#if>
</#list> </#list>
</td> </td>
<td><input type="text" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost"
value="${costDetail.name!}"></td>
<td><input type="text" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost"
value="${costDetail.unit!}"></td>
<td><input type="text" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-amount"
value="${Utils.format(costDetail.amount,'0.00')}">
</td>
<td><input type="text" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-price"
value="${Utils.format2(costDetail.price,'0.00')}">
</td>
<td><input type="text" min="0.00" max="99.99" step="0.01" <td><input type="text" min="0.00" max="99.99" step="0.01"
readonly readonly
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-tax-rate" class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-tax-rate"
@ -1248,6 +1282,41 @@
class="am-modal-prompt-input am-modal-prompt-input-cost" class="am-modal-prompt-input am-modal-prompt-input-cost"
value="${costDetail.contractParty!}" readonly> value="${costDetail.contractParty!}" readonly>
</td> </td>
<td>
<#--<select style="width: auto" readonly
class="am-modal-prompt-input am-modal-prompt-input-cost am-modal-prompt-input-cost-type">
<option value="1" <#if costDetail.type == 1>selected</#if>>设备
</option>
<option value="2" <#if costDetail.type == 2>selected</#if>>施工
</option>
<option value="3" <#if costDetail.type == 3>selected</#if>>服务
</option>
<option value="4" <#if costDetail.type == 4>selected</#if>>其他
</option>
</select>-->
<#if costDetail.isUnderwritten ==0 >
<#elseif costDetail.isUnderwritten ==1>
<#elseif costDetail.isUnderwritten ==2>
</#if>
</td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-underwritten-amount-cost"
value="${Utils.format(costDetail.underwrittenAmount,'0')}"
readonly></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost"
value="${(costDetail.payTime?string("yyyy-MM-dd"))!}"
readonly></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-pay-amount-cost"
value="${Utils.format(costDetail.payAmount,'0')}"
readonly></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost"
value="${costDetail.payWay!}" readonly></td>
<td><input type="text" <td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost" class="am-modal-prompt-input am-modal-prompt-input-cost"
value="${costDetail.remark!}" readonly></td> value="${costDetail.remark!}" readonly></td>
@ -1264,6 +1333,13 @@
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
<td></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-amount-cost"
value="${Utils.format(costTotalAmount,'0.00')}"
readonly <#--onkeyup="integerNumber(this)"-->></td>
<td></td>
<td></td>
<td><input type="text" <td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-total-tax-include-cost" class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-total-tax-include-cost"
value="${Utils.format(budgetBean.costPurchaseTotalTaxInclude,'0.00')}" value="${Utils.format(budgetBean.costPurchaseTotalTaxInclude,'0.00')}"
@ -1276,7 +1352,17 @@
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-total-tax-cost" class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-total-tax-cost"
value="${Utils.format(budgetBean.costPurchaseTotalTax,'0.00')}" value="${Utils.format(budgetBean.costPurchaseTotalTax,'0.00')}"
readonly></td> readonly></td>
<td></td>
<td></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-total-underwritten-amount-cost"
value="${Utils.format(costUnderwrittenAmountTotal,'0.00')}"
readonly></td>
<td></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-total-total-pay-amount-cost"
value="${Utils.format(costPayAmountTotal,'0.00')}"
readonly></td>
<td></td> <td></td>
<td></td> <td></td>
</tr> </tr>
@ -1308,7 +1394,7 @@
id="costProjectManageTable"> id="costProjectManageTable">
<thead> <thead>
<tr> <tr>
<th width="60px">序号</th> <th>序号</th>
<th>费用类别</th> <th>费用类别</th>
<th>业务项目</th> <th>业务项目</th>
<th>项目明细</th> <th>项目明细</th>
@ -1327,7 +1413,7 @@
<#list costProjectManageDetails as costProjectManageDetail> <#list costProjectManageDetails as costProjectManageDetail>
<tr> <tr>
<td width="60px">${(costProjectManageDetail_index+1)!}</td> <td width="60px">${(costProjectManageDetail_index+1)!}</td>
<td> <td width="120px">
<#if costProjectManageDetail.type ==1 > <#if costProjectManageDetail.type ==1 >
人工成本 人工成本
<#elseif costProjectManageDetail.type ==2> <#elseif costProjectManageDetail.type ==2>
@ -1374,16 +1460,29 @@
</#list> </#list>
</#if> </#if>
<tr class="total-new" id="manageTotal"> <tr class="total-new" id="manageTotal">
<td width="60px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" value="总计" readonly></td> <td width="60px">总计</td>
<td width="120px"></td>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-total-project-manage" value="${Utils.format(budgetBean.costProjectManageTaxInclude,'0')}" readonly></td> <td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-amount-project-manage"
value="${Utils.format(costProjectManageTotalAmount,'0.00')}"
readonly <#--onkeyup="integerNumber(this)"-->></td>
<td></td> <td></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-pay-amount-project-manage" value="${Utils.format(managePayAmountTotal,'0.00')}" readonly></td> <td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-total-project-manage"
value="${Utils.format(budgetBean.costProjectManageTaxInclude,'0.00')}"
readonly></td>
<td></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-pay-amount-project-manage"
value="${Utils.format(managePayAmountTotal,'0.00')}"
readonly></td>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
<#--<td></td>-->
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -1429,27 +1528,27 @@
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="月份" value="月份"
readonly></td> readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text" <td style="display: block;border-top: 1px solid #ddd;"><input type="text"
class="am-modal-prompt-input " class="am-modal-prompt-input"
value="设备付款" value="设备付款"
readonly></td> readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text" <td style="display: block;border-top: 1px solid #ddd;"><input type="text"
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="工程付款" value="工程付款"
readonly></td> readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text" <td style="display: block;border-top: 1px solid #ddd;"><input type="text"
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="服务付款" value="服务付款"
readonly></td> readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text" <td style="display: block;border-top: 1px solid #ddd;"><input type="text"
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="其他付款" value="其他付款"
readonly></td> readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text" <td style="display: block;border-top: 1px solid #ddd;"><input type="text"
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="项目管理费用付款" value="项目管理费用付款"
readonly></td> readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text" <td style="display: block;border-top: 1px solid #ddd;"><input type="text"
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="保证金付款" value="保证金付款"
readonly></td> readonly></td>
@ -1457,11 +1556,11 @@
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="付款合计" value="付款合计"
readonly></td> readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text" <td style="display: block;border-top: 1px solid #ddd;"><input type="text"
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="销售收款" value="销售收款"
readonly></td> readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text" <td style="display: block;border-top: 1px solid #ddd;"><input type="text"
class="am-modal-prompt-input" class="am-modal-prompt-input"
value="保证金收款" value="保证金收款"
readonly></td> readonly></td>
@ -1875,13 +1974,6 @@
<td>费用项目</td> <td>费用项目</td>
<td>不含税金额(元)</td> <td>不含税金额(元)</td>
</tr> </tr>
<tr>
<td>成本</td>
<td>项目管理费用</td>
<td><input type="text" class="number" name="costProjectManageTaxExclude"
value="${Utils.format(budgetBean.costProjectManageTaxExclude,'0')}"
readonly title="项目管理成本总额不含税"></td>
</tr>
<tr> <tr>
<td>财务费用</td> <td>财务费用</td>
<td>资金占用成本</td> <td>资金占用成本</td>
@ -1889,11 +1981,12 @@
value="${Utils.format(budgetBean.costExpropriationTaxExclude,'0.00')}" value="${Utils.format(budgetBean.costExpropriationTaxExclude,'0.00')}"
required readonly title="资金占用成本不含税总额"></td> required readonly title="资金占用成本不含税总额"></td>
</tr> </tr>
<tr> <tr>
<td>合计</td> <td>成本</td>
<td></td> <td>项目管理费用</td>
<td><input type="text" class="number" name="incomeTotalTax" value="${(Utils.format(budgetBean.costExpropriationTaxExclude+budgetBean.costProjectManageTaxExclude,'0'))}" readonly title="此列累计"></td> <td><input type="text" class="number" name="costProjectManageTaxExclude"
value="${Utils.format(budgetBean.costProjectManageTaxExclude,'0')}"
readonly title="项目管理成本总额不含税"></td>
</tr> </tr>
<#-- <tr>--> <#-- <tr>-->
<#-- <td>公司管理费用</td>--> <#-- <td>公司管理费用</td>-->
@ -1924,7 +2017,7 @@
<td><input type="text" class="number" name="projectGrossProfitA" <td><input type="text" class="number" name="projectGrossProfitA"
value="${Utils.format(budgetBean.projectGrossProfitA,'0')}" readonly value="${Utils.format(budgetBean.projectGrossProfitA,'0')}" readonly
title="收入总计(不含税)-成本总计(不含税)"></td> title="收入总计(不含税)-成本总计(不含税)"></td>
<td>项目毛利A=收入合计(不含税)-采购成本合计(不含税)</td> <td>毛利A=收入明细表金额总计(不含税)-采购成本明细表金额总计(不含税)</td>
</tr> </tr>
<tr> <tr>
<td>项目毛利B</td> <td>项目毛利B</td>
@ -4079,7 +4172,6 @@
$('.am-modal-prompt-input-budget-plan-income').css('display', 'none'); $('.am-modal-prompt-input-budget-plan-income').css('display', 'none');
$('.am-modal-prompt-input-budget-plan-cost').css('display', 'none'); $('.am-modal-prompt-input-budget-plan-cost').css('display', 'none');
}; };
closeDetail()
var openDetail = function () { var openDetail = function () {
$('.am-modal-prompt-input-budget-plan-income').css('display', 'block'); $('.am-modal-prompt-input-budget-plan-income').css('display', 'block');

View File

@ -1054,6 +1054,9 @@
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
<#-- <td></td>-->
<#-- <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-amount-project-manage" value="${Utils.format(costProjectManageTotalAmount,'0')}" readonly &lt;#&ndash;onkeyup="integerNumber(this)"&ndash;&gt;></td>-->
<#-- <td></td>-->
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-total-project-manage" value="${Utils.format(budgetBean.costProjectManageTaxInclude,'0')}" readonly></td> <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-total-project-manage" value="${Utils.format(budgetBean.costProjectManageTaxInclude,'0')}" readonly></td>
<td></td> <td></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-pay-amount-project-manage" value="${Utils.format(managePayAmountTotal,'0.00')}" readonly></td> <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-pay-amount-project-manage" value="${Utils.format(managePayAmountTotal,'0.00')}" readonly></td>