Compare commits

...

3 Commits

Author SHA1 Message Date
‘wangjiuyun fd43f2f71f 除附件外功能 2024-10-30 16:31:46 +08:00
‘wangjiuyun 09680c6b43 Merge branch 'dev_1.0.0' of http://git.unissense.tech/mula/fourcal into Branch_dev_1.0.0 2024-10-30 14:10:20 +08:00
‘wangjiuyun 8050f16a11 未完成文件上传 2024-10-30 14:10:11 +08:00
4 changed files with 139 additions and 120 deletions

View File

@ -107,8 +107,8 @@ $(function () {
//如果没有提交则自动计算预算信息
dataIncome = prepareAjaxDataVerify(dataIncome, INCOME_DETAIL2, $("#id").val());
if(dataIncome.details){
postAjax(base+"/project/budgetEditSaveIncomeDetail", dataIncome);
if (dataIncome.details) {
postAjax(base + "/project/budgetEditSaveIncomeDetail", dataIncome);
}
updateIncomeDataUnsubmit(dataIncomeCheck);
@ -127,8 +127,8 @@ $(function () {
//如果没有提交则自动计算预算信息
dataCost = prepareAjaxDataVerify(dataCost, COST_DETAIL2, $("#id").val());
if(dataCost){
postAjax(base+"/project/budgetEditSaveCostDetail", dataCost);
if (dataCost) {
postAjax(base + "/project/budgetEditSaveCostDetail", dataCost);
}
updateCostDataIfUnsubmit(dataCostCheck);
@ -146,17 +146,9 @@ $(function () {
}
dataManage = prepareAjaxDataVerify(dataManage, COST_PROJECT_MANAGE_DETAIL2, $("#id").val());
var totalTotal=dataManage.details.reduce((total,now)=>{
return now.total+total
},0)
var projectGrossProfitA=$('[name="projectGrossProfitA"]').val()
if(Number(totalTotal)> (Number(projectGrossProfitA)*0.1) ){
layuiAlert(`总金额合计不能超过毛利A(${projectGrossProfitA})的10%`);
$("#saveDraft").attr('disabled', false)
return
}
if(dataManage){
postAjax(base+"/project/budgetEditSaveCostProjectManageDetail", dataManage);
if (dataManage) {
postAjax(base + "/project/budgetEditSaveCostProjectManageDetail", dataManage);
}
updateCostProjectManageDataUnsubmit(dataManageCheck);
@ -182,8 +174,8 @@ $(function () {
// }
dataPlan = prepareAjaxDataVerify(dataPlan, BUDGET_PLAN_DETAIL2, $("#id").val());
if(dataPlan){
postAjax(base+"/project/budgetEditSaveBudgetPlanDetail", dataPlan);
if (dataPlan) {
postAjax(base + "/project/budgetEditSaveBudgetPlanDetail", dataPlan);
}
updateBudgetPlanDetailDataUnsubmit();
@ -195,15 +187,15 @@ $(function () {
// }
// console.log(message);
// 保存付款计划表
var flagPay= verifyBudgetPay()
if(!flagPay) {
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);
if (dataPay) {
postAjax(base + "/project/budgetEditSaveBudgetPayPlan", dataPay);
}
@ -245,8 +237,8 @@ $(function () {
//如果没有提交则自动计算预算信息
dataIncome = prepareAjaxDataVerify(dataIncome, INCOME_DETAIL, $("#id").val());
if(dataIncome.details){
postAjax(base+"/project/budgetEditSaveIncomeDetail", dataIncome);
if (dataIncome.details) {
postAjax(base + "/project/budgetEditSaveIncomeDetail", dataIncome);
}
updateIncomeDataUnsubmit(dataIncomeCheck);
@ -265,8 +257,8 @@ $(function () {
//如果没有提交则自动计算预算信息
dataCost = prepareAjaxDataVerify(dataCost, COST_DETAIL, $("#id").val());
if(dataCost){
postAjax(base+"/project/budgetEditSaveCostDetail", dataCost);
if (dataCost) {
postAjax(base + "/project/budgetEditSaveCostDetail", dataCost);
}
updateCostDataIfUnsubmit(dataCostCheck);
@ -285,16 +277,21 @@ $(function () {
}
dataManage = prepareAjaxDataVerify(dataManage, COST_PROJECT_MANAGE_DETAIL, $("#id").val());
var totalTotal=dataManage.details.reduce((total,now)=>{
return now.total+total
},0)
var projectGrossProfitA=$('[name="projectGrossProfitA"]').val()
if(Number(totalTotal)> (Number(projectGrossProfitA)*0.1) ){
layuiAlert(`总金额合计不能超过毛利A(${projectGrossProfitA})的10%`);
var totalTotal = dataManage.details.reduce((total, now) => {
return now.total + total
}, 0)
var limitTotal = dataManage.details.reduce((total, now) => {
if (now.type == 2 && (now.name == 5 || now.name == 4))
return now.total + total
else return total
}, 0)
var projectGrossProfitA = $('[name="projectGrossProfitA"]').val()
if (limitTotal > ((Number(projectGrossProfitA)-(totalTotal-limitTotal)) * 0.1)) {
layuiAlert(`差旅费+业务费总金额不超过【毛利A(${projectGrossProfitA})-(项目管理费用-差旅费-业务费)】*10%`);
return
}
if(dataManage){
postAjax(base+"/project/budgetEditSaveCostProjectManageDetail", dataManage);
if (dataManage) {
postAjax(base + "/project/budgetEditSaveCostProjectManageDetail", dataManage);
}
updateCostProjectManageDataUnsubmit(dataManageCheck);
@ -321,8 +318,8 @@ $(function () {
}
dataPlan = prepareAjaxDataVerify(dataPlan, BUDGET_PLAN_DETAIL, $("#id").val());
if(dataPlan){
postAjax(base+"/project/budgetEditSaveBudgetPlanDetail", dataPlan);
if (dataPlan) {
postAjax(base + "/project/budgetEditSaveBudgetPlanDetail", dataPlan);
}
updateBudgetPlanDetailDataUnsubmit();
@ -333,15 +330,15 @@ $(function () {
// return;
// }
// 保存付款计划表
var flagPay= verifyBudgetPay()
if(!flagPay) {
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);
if (dataPay) {
postAjax(base + "/project/budgetEditSaveBudgetPayPlan", dataPay);
}
var startTime = $("#startDate").val();
@ -358,7 +355,7 @@ $(function () {
$("#pmsForm").submit();
});
function checkName () {
function checkName() {
var name = $("#name").val();
var id = $("#id").val();
$.ajax({
@ -412,8 +409,6 @@ function checkIfFillIn() {
}
// if (projectNo.length <= 0) {
// window.confirm('项目编号不能为空');
// check = 1;
@ -428,9 +423,6 @@ function checkIfFillIn() {
// }
if (underwrittenMode > 2 && (advanceInterestAmount == undefined || advanceInterestAmount.length <= 0)) {
window.confirm('垫资利息不能为空');
check = 1;
@ -525,7 +517,7 @@ function checkIfFillIn() {
/**
* 判断是否重名
*/
function checkName () {
function checkName() {
var name = $("#name").val();
var id = $("#id").val();
$.ajax({
@ -590,12 +582,12 @@ function arr2ObjectVerify(line, arr, detailPropertyArr, detailProperty) {
}
//如果要求是数字类型的,进行转换
var v = arr[i];
if(o[2] === 'number' ){
if (o[2] === 'number') {
v = f2(v);
} else if(o[2] === 'price' ){
} else if (o[2] === 'price') {
v = f5(v);
}
obj[detailPropertyArr[i]]=v;
obj[detailPropertyArr[i]] = v;
}
return obj;
}
@ -622,8 +614,8 @@ function arr2ObjectVerifyCheck(line, arr, detailPropertyArr, detailProperty, s)
function collectData(className) {
var a = [];
$("." + className).each(function (t) {
if(!$(this).is(':hidden'))
a.push($(this).val());
if (!$(this).is(':hidden'))
a.push($(this).val());
});
return a;
}
@ -726,7 +718,7 @@ function bindChangeableInput() {
$(this).parent().parent().find(".input-changeable-total-tax-include").val(f2Fixed(amount * price));
$(this).parent().parent().find(".input-changeable-total-tax-exclude").val(f2Fixed(amount * price / (1 + taxRate / 100)));
$(this).parent().parent().find(".input-changeable-total-tax").val(f2Fixed(amount * price * taxRate /(100 + taxRate)));
$(this).parent().parent().find(".input-changeable-total-tax").val(f2Fixed(amount * price * taxRate / (100 + taxRate)));
});
//单价改变
$(".input-changeable-price").change(function () {
@ -738,21 +730,21 @@ function bindChangeableInput() {
$(this).parent().parent().find(".input-changeable-total-tax-include").val(f2Fixed(amount * price));
$(this).parent().parent().find(".input-changeable-total-tax-exclude").val(f2Fixed(amount * price / (1 + taxRate / 100)));
$(this).parent().parent().find(".input-changeable-total-tax").val(f2Fixed(amount * price * taxRate /(100 + taxRate)));
$(this).parent().parent().find(".input-changeable-total-tax").val(f2Fixed(amount * price * taxRate / (100 + taxRate)));
$(this).val(f5Price(price));
console.log("单价:" + $(this).val());
});
//税率改变
$(".input-changeable-tax-rate").change(function () {
var taxRate = f2($(this).val());
var rowVal=$(this).parent().parent().find(".input-changeable-total-tax-include").val()
var rowVal = $(this).parent().parent().find(".input-changeable-total-tax-include").val()
$(this).parent().parent().find(".input-changeable-total-tax-exclude").val(f2Fixed(rowVal * (1 - (taxRate / 100))));
$(this).parent().parent().find(".input-changeable-total-tax").val(f2Fixed(rowVal * (taxRate / 100)));
});
// 不含税金额改变
$(".input-changeable-total-tax-include").change(function () {
var rowVal = f2($(this).val());
var taxRate=$(this).parent().parent().find(".input-changeable-tax-rate").val()
var rowVal = f2($(this).val());
var taxRate = $(this).parent().parent().find(".input-changeable-tax-rate").val()
$(this).parent().parent().find(".input-changeable-total-tax-exclude").val(f2Fixed(rowVal * (1 - (taxRate / 100))));
$(this).parent().parent().find(".input-changeable-total-tax").val(f2Fixed(rowVal * (taxRate / 100)));
});
@ -766,11 +758,11 @@ function bindChangeableInput() {
function updateTotal(className, totalClassName) {
var total = 0;
//找到本列所有的
$("."+className).each(function (t) {
$("." + className).each(function (t) {
total += f2($(this).val());
console.log("total2: " + total);
});
$("."+totalClassName).val(f2Fixed(total));
$("." + totalClassName).val(f2Fixed(total));
}
/**
@ -781,18 +773,18 @@ function updateTotal(className, totalClassName) {
function updateAmount(className, totalClassName) {
var total = 0;
//找到本列所有的
$("."+className).each(function (t) {
$("." + className).each(function (t) {
console.log(className + ": " + f2($(this).val()));
total += f2($(this).val());
});
$("."+totalClassName).val(f2Fixed(total));
$("." + totalClassName).val(f2Fixed(total));
}
/**
* 绑定序号
*/
function bindNum() {
$(".input-budget-num").each(function(t) {
$(".input-budget-num").each(function (t) {
var prevIndex = $(this).parent().parent().prev("tr").find(".input-budget-num").val();
$(this).val(f2(prevIndex) + 1);
});
@ -864,19 +856,19 @@ function updateCostDataIfUnsubmit(details) {
var otherTaxInclude = 0;
var otherTaxExclude = 0;
details.forEach(function (t, number, ts) {
if(t["type"] == "1"){
if (t["type"] == "1") {
//设备类
deviceTaxInclude += f2(t["totalTaxInclude"]);
deviceTaxExclude += f2(t["totalTaxExclude"]);
}else if(t["type"] == "2"){
} else if (t["type"] == "2") {
//施工类
buildTaxInclude += f2(t["totalTaxInclude"]);
buildTaxExclude += f2(t["totalTaxExclude"]);
}else if(t["type"] == "3"){
} else if (t["type"] == "3") {
//服务类
serviceTaxInclude += f2(t["totalTaxInclude"]);
serviceTaxExclude += f2(t["totalTaxExclude"]);
}else if(t["type"] == "4"){
} else if (t["type"] == "4") {
//其他类
otherTaxInclude += f2(t["totalTaxInclude"]);
otherTaxExclude += f2(t["totalTaxExclude"]);
@ -893,10 +885,10 @@ function updateCostDataIfUnsubmit(details) {
//资金计划表中的
$(".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-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-earnest-money-cost-budget-plan").val())));
$(".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)
+ f2($(".input-total-title-project-manage-cost-budget-plan").val())
+ f2($(".input-total-title-earnest-money-cost-budget-plan").val())));
calCostExclude();
calCostInclude();
@ -922,15 +914,15 @@ function updateIncomeDataUnsubmit(incomeDetails) {
incomeDetails.forEach(function (t, number, ts) {
console.log("income cost " + t["type"] + ", " + t["taxRate"] + ", " + t["totalTaxInclude"] + ", " + t["totalTaxExclud"]);
if(t["type"] == "1"){
if (t["type"] == "1") {
//设备类
deviceTaxInclude += f2(t["totalTaxInclude"]);
deviceTaxExclude += f2(t["totalTaxExclude"]);
}else if(t["type"] == "2"){
} else if (t["type"] == "2") {
//工程类
engineerTaxInclude += f2(t["totalTaxInclude"]);
engineerTaxExclude += f2(t["totalTaxExclude"]);
}else if(t["type"] == "3"){
} else if (t["type"] == "3") {
//服务类
serviceTaxInclude += f2(t["totalTaxInclude"]);
serviceTaxExclude += f2(t["totalTaxExclude"]);
@ -943,15 +935,15 @@ function updateIncomeDataUnsubmit(incomeDetails) {
$("input[name='incomeServiceTaxInclude']").val(f2Fixed(serviceTaxInclude));
$("input[name='incomeServiceTaxExclude']").val(f2Fixed(serviceTaxExclude));
$("input[name='incomeTotalTaxInclude']").val(f2Fixed(deviceTaxInclude+engineerTaxInclude+serviceTaxInclude));
$("input[name='incomeTotalTaxExclude']").val(f2Fixed(deviceTaxExclude+engineerTaxExclude+serviceTaxExclude));
$("input[name='incomeTotalTax']").val(f2Fixed(deviceTaxInclude+engineerTaxInclude+serviceTaxInclude-(deviceTaxExclude+engineerTaxExclude+serviceTaxExclude)));
$("input[name='costCompanyManageTaxExclude']").val(f2Fixed(0.028*(deviceTaxExclude+engineerTaxExclude+serviceTaxExclude)));
$("input[name='incomeTotalTaxInclude']").val(f2Fixed(deviceTaxInclude + engineerTaxInclude + serviceTaxInclude));
$("input[name='incomeTotalTaxExclude']").val(f2Fixed(deviceTaxExclude + engineerTaxExclude + serviceTaxExclude));
$("input[name='incomeTotalTax']").val(f2Fixed(deviceTaxInclude + engineerTaxInclude + serviceTaxInclude - (deviceTaxExclude + engineerTaxExclude + serviceTaxExclude)));
$("input[name='costCompanyManageTaxExclude']").val(f2Fixed(0.028 * (deviceTaxExclude + engineerTaxExclude + serviceTaxExclude)));
$(".input-total-title-sale-income-budget-plan").val($("input[name='incomeTotalTaxInclude']").val());
$(".input-total-title-total-income-budget-plan").val(f2Fixed(f2($("input[name='incomeTotalTaxInclude']").val())
+f2($(".input-total-title-earnest-money-income-budget-plan").val())));
+ f2($(".input-total-title-earnest-money-income-budget-plan").val())));
updateProjectContributionProfitRate();
@ -983,9 +975,9 @@ function updateCostProjectManageDataUnsubmit(details) {
var buildTaxInclude = $("input[name='costPurchaseBuildTaxInclude']").val();
var serviceTaxInclude = $("input[name='costPurchaseServiceTaxInclude']").val();
var otherTaxInclude = $("input[name='costPurchaseOtherTaxInclude']").val();
$(".input-total-title-total-cost-budget-plan").val(f2Fixed(f2(deviceTaxInclude)+f2(buildTaxInclude)+f2(serviceTaxInclude)+f2(otherTaxInclude)
+total
+f2($(".input-total-title-earnest-money-cost-budget-plan").val())));
$(".input-total-title-total-cost-budget-plan").val(f2Fixed(f2(deviceTaxInclude) + f2(buildTaxInclude) + f2(serviceTaxInclude) + f2(otherTaxInclude)
+ total
+ f2($(".input-total-title-earnest-money-cost-budget-plan").val())));
calCostExclude();
calCostInclude();
@ -996,7 +988,7 @@ function updateCostProjectManageDataUnsubmit(details) {
/**
* 更新页面收入的数据
*/
function updateBudgetPlanDetailDataUnsubmit(data,returnData) {
function updateBudgetPlanDetailDataUnsubmit(data, returnData) {
//var details = data.details;
//主页面上的财务费用
$("input[name='costExpropriationTaxExclude']").val($(".input-underwritten-plan-statistic-capital-interest-budget-plan").val());

View File

@ -445,7 +445,7 @@ function bindOtherOtherChangeable() {
*/
function bindTypeSelectChange() {
//大类变化联动类别
$(".input-changeable-tax-rate-income-select").on('change',function () {
$(".input-changeable-tax-rate-cost-select").on('change',function () {
var nameSelect = $(this).parent().parent().find(".input-changeable-tax-rate-cost-select");
var nameInput = $(this).parent().parent().find(".input-changeable-tax-rate-cost-name");
var type = $(this).val();

View File

@ -119,8 +119,8 @@ $(function () {
var data = collectData("am-modal-prompt-input-pay");
//data = prepareAjaxData(data, COST_DETAIL_ARR, $("#id").val(),false);
data = prepareAjaxDataVerify(data, pay_DETAIL2, $("#id").val());
var flag=verifyBudgetPay()
if(!flag) return
var flag = verifyBudgetPay()
if (!flag) return
if (data) {
postAjax(base + "/project/budgetEditSaveBudgetPayPlan", data, updateCostData);
}
@ -132,7 +132,8 @@ $(function () {
//绑定删除按钮
bindDeleteBtnPay();
//绑定总计值
bindPayTotal();
//初始化大类和类别的数据
getAjax(base + "/procurement/type/map", null, initTypeCategory);
});
@ -160,7 +161,7 @@ function appendTrPay() {
'<option value="4">其他成本</option>' +
'</select>' +
'</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 input-changeable-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="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>' +
@ -341,17 +342,58 @@ function initTypeCategory(params, data) {
}
//校验付款明细表
function verifyBudgetPay() {
function verifyBudgetPay(isApprove) {
// 时间必填校验
var timeValue = $(".input-changeable-pay-time");
var flag=true
var flag = true
var timeFlag = true
timeValue.each((index, element) => {
if ($(element).val().length != 10)
timeFlag = false
})
if (timeFlag == false) {
flag=false
flag = false
layuiAlert('付款计划表中付款时间为必填')
}
// 采购成本与付款金额校验
if (isApprove) {
var payData = prepareAjaxDataVerify(collectData("am-modal-prompt-input-pay"), pay_DETAIL2, $("#id").val())
var costData = prepareAjaxDataVerify(collectData("am-modal-prompt-input-cost"), COST_DETAIL2, $("#id").val())
var payTotal_equipment = calculateTotal(payData, 1,'payProject','payAmount');
var payTotal_project = calculateTotal(payData, 2,'payProject','payAmount');
var payTotal_server = calculateTotal(payData, 3,'payProject','payAmount');
var payTotal_other = calculateTotal(payData, 4,'payProject','payAmount');
var costTotal_equipment = calculateTotal(costData, 1,'type','totalTaxExclude');
var costTotal_project = calculateTotal(costData, 2,'type','totalTaxExclude');
var costTotal_server = calculateTotal(costData, 3,'type','totalTaxExclude');
var costTotal_other = calculateTotal(costData, 4,'type','totalTaxExclude');
console.log(2333,payTotal_equipment,payTotal_project,payTotal_server,payTotal_other)
console.log(3333,costTotal_equipment,costTotal_project,costTotal_server,costTotal_other)
if (payTotal_equipment != costTotal_equipment) {
flag = false
layuiAlert('[付款计划表中"设备"成本总金]额需要与[采购成本明细表中"设备"成本总金额]一致')
} else if (payTotal_project != costTotal_project) {
flag = false
layuiAlert('[付款计划表中"工程"成本总金]额需要与[采购成本明细表中"工程"成本总金额]一致')
} else if (payTotal_server != costTotal_server) {
flag = false
layuiAlert('[付款计划表中"服务"成本总金]额需要与[采购成本明细表中"服务"成本总金额]一致')
} else if (payTotal_other != costTotal_other) {
flag = false
layuiAlert('[付款计划表中"其他"成本总金]额需要与[采购成本明细表中"其他"成本总金额]一致')
}
}
return flag
}
function calculateTotal(payData, type,key,value) {
return payData.details.reduce((total, now) => {
return now[key] == type ? now[value] + total : total;
}, 0);
}

View File

@ -872,6 +872,9 @@
onclick="location.href='${base}/project/incomeTemplate'">
<span class="am-icon-archive"></span> 导入模板下载
</button>
<span>销售合同配置清单</span>
<input id="file_upload_icon" type="file" name="files[]" accept=".xls,.xlsx">
<span id="collaboratorUrl"></span>
</div>
</div>
</div>
@ -1133,44 +1136,27 @@
</option>
</select>
</td>
<td>
<select <#if incomeDetail.name!='华智产品'&&incomeDetail.name!='华三产品'&&incomeDetail.name!='汇智产品'>style="display:none"</#if>
<td width="150px">
<select <#if costDetail.category!='华智产品'&&costDetail.category!='华三产品'&&costDetail.category!='汇智产品'>style="display:none"</#if>
class="am-modal-prompt-input am-modal-prompt-input am-modal-prompt-input-cost am-modal-prompt-input-cost-category input-changeable-tax-rate-cost-select">
<option value="华智产品"
<#if incomeDetail.name ="华智产品" >selected</#if>>
<#if costDetail.category ="华智产品" >selected</#if>>
华智产品
</option>
<option value="华三产品"
<#if incomeDetail.name ="华三产品">selected</#if>>
<#if costDetail.category ="华三产品">selected</#if>>
华三产品
</option>
<option value="汇智产品"
<#if incomeDetail.name ="汇智产品">selected</#if>>
<#if costDetail.category ="汇智产品">selected</#if>>
汇智产品
</option>
<option value="自定义">自定义</option>
</select>
<input <#if incomeDetail.name!='华智产品'&&incomeDetail.name!='华三产品'&&incomeDetail.name!='汇智产品'>type="text"
<input <#if costDetail.category!='华智产品'&&costDetail.category!='华三产品'&&costDetail.category!='汇智产品'>type="text"
<#else>type="hidden"</#if>
class="am-modal-prompt-input am-modal-prompt-input-cost input-changeable-tax-rate-cost-name"
value="${incomeDetail.name!}">
</td>
<td width="150px">
<select style="float: left;"
class="am-modal-prompt-input am-modal-prompt-input-cost am-modal-prompt-input-cost-category">
<#--<option value="1" <#if costDetail.category == 1>selected</#if>>华智产品</option>
<option value="2" <#if costDetail.category == 2>selected</#if>>紫光其他产品</option>
<option value="3" <#if costDetail.category == 3>selected</#if>>外购产品</option>
<option value="4" <#if costDetail.category == 4>selected</#if>>外购工程</option>
<option value="5" <#if costDetail.category == 5>selected</#if>>华智服务</option>
<option value="6" <#if costDetail.category == 6>selected</#if>>紫光其他服务</option>
<option value="7" <#if costDetail.category == 7>selected</#if>>外购服务</option>
<option value="8" <#if costDetail.category == 8>selected</#if>>其他</option>-->
<#list procurementTypes as procurementType>
<option value="${procurementType.id}"
<#if costDetail.category == procurementType.id>selected</#if>>${procurementType.name}</option>
</#list>
</select>
value="${costDetail.category!}">
</td>
<td width="100px"><input type="text" maxlength="5"
class="number am-modal-prompt-input am-modal-prompt-input-cost input-changeable-tax-rate input-changeable-tax-rate-cost"
@ -1534,7 +1520,7 @@
readonly/></td>
<td style="display: block;"><input type="text"
class="number am-modal-prompt-input input-total-title-device-cost-budget-plan"
value="${Utils.format(projectBudgetPlanDetailTotalTitle.deviceCost)}"/>
value="${Utils.format(projectBudgetPlanDetailTotalTitle.deviceCost)}" readonly/>
</td>
<td style="display: block;"><input type="text"
@ -1677,7 +1663,7 @@
oninput="if(value.length>16)value=value.slice(0,16)"
maxlength="16"
class="number am-modal-prompt-input am-modal-prompt-input-budget-plan-detail input-changeable-device-cost-budget-plan"
value="${Utils.format(projectBudgetPlanDetail.deviceCost)}">
value="${Utils.format(projectBudgetPlanDetail.deviceCost)}" readonly>
</td>
<td style="display: block;"><input type="text"
oninput="if(value.length>16)value=value.slice(0,16)"
@ -1940,8 +1926,8 @@
<#-- </tr>-->
<tr>
<td>合计</td>
<td></td>
<td></td>
<#-- <td></td>-->
<#-- <td></td>-->
<td><input type="text" class="number" name="costTotalTaxInclude"
value="${Utils.format(budgetBean.costTotalTaxInclude,'0')}" readonly
title="此列累计"></td>
@ -2455,8 +2441,7 @@
console.log(data);
//设置服务器返回的url
$("#collaboratorUrlBudget").val(data.result.data.url);
$("#collaboratorUrl_span").text(data.result.data.url);
$("#collaboratorUrl_check").text("已上传");
$("#collaboratorUrl_check").text(data.result.data.newName);
// console.log("collboratorUrl: " + $("#collaboratorUrl").val());
setTimeout(function () {
progressArea.addClass("am-hide");
@ -2515,7 +2500,7 @@
console.log(data);
//设置服务器返回的url
$("#collaboratorUrl").val(data.result.data.url);
$("#collaboratorUrl_span").text(data.result.data.url);
$("#collaboratorUrl_check").text(data.result.newName);
// console.log("collboratorUrl: " + $("#collaboratorUrl").val());
setTimeout(function () {
progressArea.addClass("am-hide");