Commit d3a1136d authored by gzj34291's avatar gzj34291

合同签约前变更

parent 366f4419
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
function acr512_grid_update(record_id, invoice_hd_id) { function acr512_grid_update(record_id, invoice_hd_id) {
var maintain_type = 'UPDATE'; var maintain_type = 'UPDATE';
var currency_reocrd = $('acr512_invoice_result_ds').findById(record_id); var currency_reocrd = $('acr512_invoice_result_ds').findById(reocrd_id);
var param = currency_reocrd.data; var param = currency_reocrd.data;
param['function_code'] = 'ACR512'; param['function_code'] = 'ACR512';
param['winid'] = 'confirm_invoice_win'; param['winid'] = 'confirm_invoice_win';
...@@ -252,9 +252,9 @@ ...@@ -252,9 +252,9 @@
var saveData = []; var saveData = [];
var invoice_hd_ids = ''; var invoice_hd_ids = '';
var invoice_kind = records[0].get('invoice_kind'); var invoice_kind = records[0].get('invoice_kind');
var invoice_type = records[0].get('invoice_type'); var invoice_type = records[0].get('invoice_type');
var invoice_kind_type = records[0].get('invoice_kind_type'); var full_elec_invoice_flag = records[0].get('full_elec_invoice_flag');
var full_elec_invoice_flag = records[0].get('full_elec_invoice_flag'); debugger
for (var i = 0; i < records.length; i++) { for (var i = 0; i < records.length; i++) {
var invoice_status = records[i].get('invoice_status'); var invoice_status = records[i].get('invoice_status');
if (invoice_status != 'NEW' && invoice_status != 'REJECT') { if (invoice_status != 'NEW' && invoice_status != 'REJECT') {
...@@ -262,14 +262,20 @@ ...@@ -262,14 +262,20 @@
return; return;
} }
if(invoice_kind != records[i].get('invoice_kind')){ if(invoice_kind != records[i].get('invoice_kind')){
$L.showErrorMessage("提示", '普票和专票不能同时勾选!'); if(invoice_kind=='RECEIPT' || records[i].get('invoice_kind')=='RECEIPT'){
return; $L.showErrorMessage("提示", '收据和其它发票不能同时勾选!');
return;
}else{
$L.showErrorMessage("提示", '普票和专票不能同时勾选!');
return;
}
} }
if(invoice_kind_type != records[i].get('invoice_kind_type')){ if(invoice_type != records[i].get('invoice_type')){
$L.showErrorMessage("提示", '纸质发票与电子发票不能同时勾选!'); $L.showErrorMessage("提示", '纸质发票与电子发票不能同时勾选!');
return; return;
} }
if(full_elec_invoice_flag != records[i].get('full_elec_invoice_flag')){ if(full_elec_invoice_flag != records[i].get('full_elec_invoice_flag')){
$L.showErrorMessage("提示", '全电发票与非全电发票不能同时勾选!'); $L.showErrorMessage("提示", '全电发票与非全电发票不能同时勾选!');
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment