|
@@ -94,6 +94,9 @@
|
|
$("#attachment_btn").click(function () {
|
|
$("#attachment_btn").click(function () {
|
|
$("#attachment_file").click();
|
|
$("#attachment_file").click();
|
|
});
|
|
});
|
|
|
|
+ $("#attachment_btn_xml").click(function () {
|
|
|
|
+ $("#attachment_InvoiceReimbursement_file").click();
|
|
|
|
+ });
|
|
// getRandom();
|
|
// getRandom();
|
|
|
|
|
|
laydate.render({
|
|
laydate.render({
|
|
@@ -110,6 +113,43 @@
|
|
type : 'datetime'
|
|
type : 'datetime'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ var invoiceVATTaxes = $("#reimbursementElectronicInvoiceVATTaxes tr").length;
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesMoneys = "";
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesTaxAmount = "";
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesSumMoney = "";
|
|
|
|
+ for(var i = 0;i < invoiceVATTaxes;i++){
|
|
|
|
+ var moneys = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(6).find("input").eq(0).val();
|
|
|
|
+ var taxAmount = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(7).find("input").eq(0).val();
|
|
|
|
+ var rsumMoney = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(8).find("input").eq(0).val();
|
|
|
|
+
|
|
|
|
+ if (moneys!=undefined && isNumber(moneys)){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesMoneys==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesMoneys = parseFloat(moneys).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesMoneys = (parseFloat(reimbursementElectronicInvoiceVATTaxesMoneys) + parseFloat(moneys)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (taxAmount!=undefined && isNumber(taxAmount)){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesTaxAmount==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesTaxAmount = parseFloat(taxAmount).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesTaxAmount = (parseFloat(reimbursementElectronicInvoiceVATTaxesTaxAmount) + parseFloat(taxAmount)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (rsumMoney!=undefined && isNumber(rsumMoney)){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesSumMoney==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesSumMoney = parseFloat(rsumMoney).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesSumMoney = (parseFloat(reimbursementElectronicInvoiceVATTaxesSumMoney) + parseFloat(rsumMoney)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesMoneys").val(reimbursementElectronicInvoiceVATTaxesMoneys);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesTaxAmount").val(reimbursementElectronicInvoiceVATTaxesTaxAmount);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesSumMoney").val(reimbursementElectronicInvoiceVATTaxesSumMoney);
|
|
|
|
+
|
|
|
|
+
|
|
});
|
|
});
|
|
|
|
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
@@ -144,7 +184,7 @@
|
|
|
|
|
|
if(reimbursementType == '1'){
|
|
if(reimbursementType == '1'){
|
|
var leng = $("#file_attachment_InvoiceReimbursement tr").length;
|
|
var leng = $("#file_attachment_InvoiceReimbursement tr").length;
|
|
- if(leng.length == 0){
|
|
|
|
|
|
+ if(leng === 0){
|
|
parent.layer.msg("请上传数电发票xml文件!", {icon: 5});
|
|
parent.layer.msg("请上传数电发票xml文件!", {icon: 5});
|
|
flags= false;
|
|
flags= false;
|
|
}
|
|
}
|
|
@@ -152,41 +192,11 @@
|
|
|
|
|
|
var electronicInvoiceArr = $("#reimbursementElectronicInvoiceVATTaxes tr:visible");
|
|
var electronicInvoiceArr = $("#reimbursementElectronicInvoiceVATTaxes tr:visible");
|
|
if(electronicInvoiceArr.length>0){
|
|
if(electronicInvoiceArr.length>0){
|
|
- var flag = false;
|
|
|
|
- var countFlag = 0;
|
|
|
|
- var list = "${workReimbursement.workAttachments}";
|
|
|
|
- var size = (list.split('url')).length-1;
|
|
|
|
- /*var files = $("#attachment_file")[0].files;
|
|
|
|
- for(var i = 0;i<files.length;i++) {
|
|
|
|
- var file = files[i];
|
|
|
|
- //如果文件以xml文件结尾,则需要将该文件上传到后台进行数据处理后返回数据
|
|
|
|
- const spliceLength2 = file.name.lastIndexOf(".");
|
|
|
|
- var fileNameSuffix = file.name.slice(spliceLength2 + 1);
|
|
|
|
- if(fileNameSuffix === "xml" ) {
|
|
|
|
- flag = true;
|
|
|
|
- countFlag ++;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(!flag){
|
|
|
|
- var data = ${fns:toJson(workReimbursement.workAttachments)};//后端获取值
|
|
|
|
- for (var i=0; i<data.length; i++){
|
|
|
|
- //如果文件以xml文件结尾,则需要将该文件上传到后台进行数据处理后返回数据
|
|
|
|
- const spliceLength2 = data[i].attachmentName.lastIndexOf(".");
|
|
|
|
- var fileNameSuffix = data[i].attachmentName.slice(spliceLength2 + 1);
|
|
|
|
- if(fileNameSuffix === "xml" ) {
|
|
|
|
- flag = true;
|
|
|
|
- countFlag ++;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(!flag){
|
|
|
|
- parent.layer.msg("已填写电子发票信息,请上传对应发票的xml文件!", {icon: 5});
|
|
|
|
- flags= false;
|
|
|
|
- }*/
|
|
|
|
- /*if(countFlag < electronicInvoiceArr.length){
|
|
|
|
|
|
+ var leng = $("#file_attachment_InvoiceReimbursement tr").length;
|
|
|
|
+ if(leng != electronicInvoiceArr.length){
|
|
parent.layer.msg("填写电子发票数据量与上传发票xml文件数量不符,请重新上传!", {icon: 5});
|
|
parent.layer.msg("填写电子发票数据量与上传发票xml文件数量不符,请重新上传!", {icon: 5});
|
|
flags= false;
|
|
flags= false;
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if (flags){
|
|
if (flags){
|
|
@@ -401,8 +411,11 @@
|
|
|
|
|
|
}
|
|
}
|
|
function delRowA(obj, prefix){
|
|
function delRowA(obj, prefix){
|
|
|
|
+ console.log("obj:",obj)
|
|
|
|
+ console.log("prefix:",prefix)
|
|
var id = $(prefix+"_id");
|
|
var id = $(prefix+"_id");
|
|
var delFlag = $(prefix+"_delFlag");
|
|
var delFlag = $(prefix+"_delFlag");
|
|
|
|
+ var invoiceNumber = $(prefix+"_invoiceNumber").val();
|
|
if (id.val() == ""){
|
|
if (id.val() == ""){
|
|
delFlag.val("1");
|
|
delFlag.val("1");
|
|
$(obj).parent().parent().remove();
|
|
$(obj).parent().parent().remove();
|
|
@@ -443,107 +456,269 @@
|
|
var size = (list.split('url')).length-1;
|
|
var size = (list.split('url')).length-1;
|
|
var files = $("#attachment_file")[0].files;
|
|
var files = $("#attachment_file")[0].files;
|
|
|
|
|
|
|
|
+ for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
|
|
+ var attachmentId = "";
|
|
|
|
+ var attachmentFlag = "6";
|
|
|
|
+ var timestamp=new Date().getTime();
|
|
|
|
+
|
|
|
|
+ var storeAs = "wrkReimbursement";
|
|
|
|
+ var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
|
|
+ var divId = "_attachment";
|
|
|
|
+ $("#addFile"+divId).show();
|
|
|
|
+ multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size);}
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function insertTitleInvoiceReimbursement(tValue){
|
|
|
|
+ var id = "${workReimbursement.id}";
|
|
|
|
+ var list = "${workReimbursement.workAttachmentInvoiceReimbursements}";
|
|
|
|
+ var size = (list.split('url')).length-1;
|
|
|
|
+ var files = $("#attachment_InvoiceReimbursement_file")[0].files;
|
|
//判断报销类型是否为电子报销
|
|
//判断报销类型是否为电子报销
|
|
- var reimbursementType=$('input:radio[name="reimbursementType"]:checked').val();
|
|
|
|
- if(reimbursementType === "1"){
|
|
|
|
- for(var i = 0;i<files.length;i++) {
|
|
|
|
- var file = files[i];
|
|
|
|
- //如果文件以xml文件结尾,则需要将该文件上传到后台进行数据处理后返回数据
|
|
|
|
- const spliceLength2 = file.name.lastIndexOf(".");
|
|
|
|
- var fileNameSuffix = file.name.slice(spliceLength2 + 1);
|
|
|
|
- if(fileNameSuffix === "xml" ) {
|
|
|
|
- var formdata = new FormData();
|
|
|
|
- formdata.append("multipartFile",file);
|
|
|
|
- $.ajax({
|
|
|
|
- type:'post',
|
|
|
|
- url:"${ctx}/workreimbursement/workReimbursement/disposeXmlFile",
|
|
|
|
- data:formdata,
|
|
|
|
- contentType: false,
|
|
|
|
- processData: false,
|
|
|
|
- success:function (data) {
|
|
|
|
- if(data.flag){
|
|
|
|
- top.layer.msg(data.message,{icon:2});
|
|
|
|
- }else{
|
|
|
|
- //创建判断值,若行信息存在相同的发票号,则进行数据检查调整,若不存在发票号,则新增行,并将信息写入
|
|
|
|
- var includeFlag = false;
|
|
|
|
- //xml文件处理
|
|
|
|
- //首先查询专用发票信息中对应发票号是否存在,并对应其数据是否正确
|
|
|
|
- //获取专用发票信息 行数
|
|
|
|
- var trlen = $("#reimbursementElectronicInvoiceVATTaxes tr").length;
|
|
|
|
- for(var i = 0;i < trlen;i++){
|
|
|
|
- var id = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(0).find("input").eq(0).val();
|
|
|
|
- var delFlag = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(0).find("input").eq(1).val();
|
|
|
|
- var invoiceType = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(1).find("select").eq(0).val();
|
|
|
|
- var invoiceNumber = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(2).find("input").eq(0).val();
|
|
|
|
- var invoiceDate = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(3).find("input").eq(0).val();
|
|
|
|
- var invoiceUnit = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(4).find("input").eq(0).val();
|
|
|
|
- var money = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(5).find("input").eq(0).val();
|
|
|
|
- var taxAmount = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(6).find("input").eq(0).val();
|
|
|
|
- var sumMoney = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(7).find("input").eq(0).val();
|
|
|
|
- var remarks = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(8).find("input").eq(0).val();
|
|
|
|
-
|
|
|
|
- if(invoiceNumber === data.InvoiceNumber && data.InvoiceNumber){
|
|
|
|
- includeFlag = true
|
|
|
|
- //数据处理
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(1).find("select").eq(0).val(data.InherentLabelGeneralOrSpecialVATLabelCode);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(2).find("input").eq(0).val(data.IssuItemInformationItemName);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(3).find("input").eq(0).val(data.InvoiceNumber);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(4).find("input").eq(0).val(data.BasicInformationRequestTime);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(5).find("input").eq(0).val(data.BuyerInformationBuyerName);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(6).find("input").eq(0).val(data.BasicInformationTotalAmWithoutTax);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(7).find("input").eq(0).val(data.BasicInformationTotalTaxAm);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(8).find("input").eq(0).val(data.BasicInformationTotalTaxincludedAmount);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(9).find("input").eq(0).val("");
|
|
|
|
|
|
+ for(var i = 0;i<files.length;i++) {
|
|
|
|
+ var file = files[i];
|
|
|
|
+ //如果文件以xml文件结尾,则需要将该文件上传到后台进行数据处理后返回数据
|
|
|
|
+ const spliceLength2 = file.name.lastIndexOf(".");
|
|
|
|
+ var fileNameSuffix = file.name.slice(spliceLength2 + 1);
|
|
|
|
+ if(fileNameSuffix === "xml" ) {
|
|
|
|
+ var formdata = new FormData();
|
|
|
|
+ formdata.append("multipartFile",file);
|
|
|
|
+ formdata.append("id",id);
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:'post',
|
|
|
|
+ url:"${ctx}/workreimbursement/workReimbursement/disposeXmlFile",
|
|
|
|
+ data:formdata,
|
|
|
|
+ contentType: false,
|
|
|
|
+ async: false,
|
|
|
|
+ processData: false,
|
|
|
|
+ success:function (data) {
|
|
|
|
+ console.log(data)
|
|
|
|
+ if(data.flag){
|
|
|
|
+ top.layer.msg(data.message,{icon:2});
|
|
|
|
+ }else{
|
|
|
|
+ console.log(3123124)
|
|
|
|
+ //获取专用发票信息 行数
|
|
|
|
+ var trlen = $("#reimbursementElectronicInvoiceVATTaxes tr").length;
|
|
|
|
+ console.log("trlen:" , trlen)
|
|
|
|
+ //创建判断值,若行信息存在相同的发票号,则进行数据检查调整,若不存在发票号,则新增行,并将信息写入
|
|
|
|
+ var includeFlag = false;
|
|
|
|
+ //xml文件处理
|
|
|
|
+ //首先查询专用发票信息中对应发票号是否存在,并对应其数据是否正确
|
|
|
|
+ //获取专用发票信息 行数
|
|
|
|
+ for(var i = 0;i < trlen;i++){
|
|
|
|
+ var invoiceNumber = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(3).find("input").eq(0).val();
|
|
|
|
+
|
|
|
|
+ if(invoiceNumber === data.InvoiceNumber && data.InvoiceNumber){
|
|
|
|
+ includeFlag = true
|
|
|
|
+ //数据处理
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(0).find("input").eq(2).val(data.InherentLabelGeneralOrSpecialVATLabelCode);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(1).find("input").eq(0).val(data.InherentLabelGeneralOrSpecialVATLabelName);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(2).find("input").eq(0).val(data.IssuItemInformationItemName);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(3).find("input").eq(0).val(data.InvoiceNumber);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(4).find("input").eq(0).val(data.IssueTime);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(5).find("input").eq(0).val(data.SellerInformationSellerName);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(6).find("input").eq(0).val(data.BasicInformationTotalAmWithoutTax);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(7).find("input").eq(0).val(data.BasicInformationTotalTaxAm);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(8).find("input").eq(0).val(data.BasicInformationTotalTaxincludedAmount);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(9).find("input").eq(0).val("");
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes" + i + "_delFlag").val("0")
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).show();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //若发票号不存在。则新增行将对应信息添加进去
|
|
|
|
+ if(!includeFlag && data.InvoiceNumber){
|
|
|
|
+ addRow('#reimbursementElectronicInvoiceVATTaxes', reimbursementElectronicInvoiceVATTaxesRowIdx, reimbursementElectronicInvoiceVATTaxesTpl);
|
|
|
|
+
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(0).find("input").eq(0).val("");
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(0).find("input").eq(1).val(0);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(0).find("input").eq(2).val(data.InherentLabelGeneralOrSpecialVATLabelCode);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(1).find("input").eq(0).val(data.InherentLabelGeneralOrSpecialVATLabelName);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(2).find("input").eq(0).val(data.IssuItemInformationItemName);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(3).find("input").eq(0).val(data.InvoiceNumber);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(4).find("input").eq(0).val(data.IssueTime);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(5).find("input").eq(0).val(data.SellerInformationSellerName);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(6).find("input").eq(0).val(data.BasicInformationTotalAmWithoutTax);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(7).find("input").eq(0).val(data.BasicInformationTotalTaxAm);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(8).find("input").eq(0).val(data.BasicInformationTotalTaxincludedAmount);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(trlen).find("td").eq(9).find("input").eq(0).val("");
|
|
|
|
+
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesRowIdx = reimbursementElectronicInvoiceVATTaxesRowIdx + 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ var attachmentFileLength = $("#file_attachment_InvoiceReimbursement tr").length;
|
|
|
|
+ var attachmentFile = $("#file_attachment_InvoiceReimbursement tr");
|
|
|
|
+ var fileName = "";
|
|
|
|
+ var fileNameFlag = true;
|
|
|
|
+ for(var i = 0 ; i<attachmentFileLength; i++){
|
|
|
|
+ // 获取当前行中的第一个<td>元素
|
|
|
|
+ var firstTd = attachmentFile[i].getElementsByTagName("td")[0];
|
|
|
|
+ // 检查第一个<td>元素是否存在
|
|
|
|
+ if (firstTd) {
|
|
|
|
+ // 获取第一个<td>元素中的第一个<a>标签
|
|
|
|
+ var firstA = firstTd.getElementsByTagName("a")[0];
|
|
|
|
+ // 检查第一个<a>标签是否存在
|
|
|
|
+ if (firstA) {
|
|
|
|
+ // 获取<a>标签中的文本信息
|
|
|
|
+ fileName = firstA.textContent || firstA.innerText;
|
|
|
|
+ } else {
|
|
|
|
+ console.log("在当前行中的第一个<td>元素中未找到<a>标签");
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ console.log("在当前行中未找到<td>元素");
|
|
}
|
|
}
|
|
- //若发票号不存在。则新增行将对应信息添加进去
|
|
|
|
- if(!includeFlag && data.InvoiceNumber){
|
|
|
|
- addRow('#reimbursementElectronicInvoiceVATTaxes', reimbursementElectronicInvoiceVATTaxesRowIdx, reimbursementElectronicInvoiceVATTaxesTpl);
|
|
|
|
-
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(0).find("input").eq(0).val("");
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(0).find("input").eq(1).val(0);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(1).find("select").eq(0).val(data.InherentLabelGeneralOrSpecialVATLabelCode);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(2).find("input").eq(0).val(data.IssuItemInformationItemName);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(3).find("input").eq(0).val(data.InvoiceNumber);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(4).find("input").eq(0).val(data.BasicInformationRequestTime);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(5).find("input").eq(0).val(data.BuyerInformationBuyerName);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(6).find("input").eq(0).val(data.BasicInformationTotalAmWithoutTax);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(7).find("input").eq(0).val(data.BasicInformationTotalTaxAm);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(8).find("input").eq(0).val(data.BasicInformationTotalTaxincludedAmount);
|
|
|
|
- $("#reimbursementElectronicInvoiceVATTaxes tr").eq(reimbursementElectronicInvoiceVATTaxesRowIdx).find("td").eq(9).find("input").eq(0).val("");
|
|
|
|
-
|
|
|
|
- reimbursementElectronicInvoiceVATTaxesRowIdx = reimbursementElectronicInvoiceVATTaxesRowIdx + 1;
|
|
|
|
|
|
+
|
|
|
|
+ if(fileName == file.name){
|
|
|
|
+ fileNameFlag = false;
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(fileNameFlag){
|
|
var attachmentId = "";
|
|
var attachmentId = "";
|
|
- var attachmentFlag = "6";
|
|
|
|
|
|
+ var attachmentFlag = "workInvoiceReimbursement";
|
|
var timestamp=new Date().getTime();
|
|
var timestamp=new Date().getTime();
|
|
|
|
|
|
- var storeAs = "wrkReimbursement";
|
|
|
|
|
|
+ var storeAs = "workInvoiceReimbursement";
|
|
var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
- var divId = "_attachment";
|
|
|
|
|
|
+ var divId = "_attachment_InvoiceReimbursement";
|
|
$("#addFile"+divId).show();
|
|
$("#addFile"+divId).show();
|
|
- multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size);
|
|
|
|
|
|
+ console.log(file)
|
|
|
|
+ invoiceReimbursementMultipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size);
|
|
|
|
+ }else{
|
|
|
|
+ parent.layer.msg("该电子发票xml文件已经上传,无法重复上传!", {icon: 5});
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ var invoiceVATTaxes = $("#reimbursementElectronicInvoiceVATTaxes tr").length;
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesMoneys = "";
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesTaxAmount = "";
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesSumMoney = "";
|
|
|
|
+ for(var i = 0;i < invoiceVATTaxes;i++){
|
|
|
|
+ var delFalg = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(0).find("input").eq(1).val();
|
|
|
|
+ var moneys = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(6).find("input").eq(0).val();
|
|
|
|
+ var taxAmount = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(7).find("input").eq(0).val();
|
|
|
|
+ var rsumMoney = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(8).find("input").eq(0).val();
|
|
|
|
+
|
|
|
|
+ if (moneys!=undefined && isNumber(moneys) && 1 != delFalg){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesMoneys==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesMoneys = parseFloat(moneys).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesMoneys = (parseFloat(reimbursementElectronicInvoiceVATTaxesMoneys) + parseFloat(moneys)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (taxAmount!=undefined && isNumber(taxAmount) && 1 != delFalg){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesTaxAmount==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesTaxAmount = parseFloat(taxAmount).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesTaxAmount = (parseFloat(reimbursementElectronicInvoiceVATTaxesTaxAmount) + parseFloat(taxAmount)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (rsumMoney!=undefined && isNumber(rsumMoney) && 1 != delFalg){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesSumMoney==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesSumMoney = parseFloat(rsumMoney).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesSumMoney = (parseFloat(reimbursementElectronicInvoiceVATTaxesSumMoney) + parseFloat(rsumMoney)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesMoneys").val(reimbursementElectronicInvoiceVATTaxesMoneys);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesTaxAmount").val(reimbursementElectronicInvoiceVATTaxesTaxAmount);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesSumMoney").val(reimbursementElectronicInvoiceVATTaxesSumMoney);
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ parent.layer.msg("请上传xml格式文件!", {icon: 5});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ function deleteInvoiceReimbursementByNumber(number){
|
|
|
|
+ if (number){
|
|
|
|
+ console.log("invoiceNumber:",number)
|
|
|
|
+ //xml文件处理
|
|
|
|
+ //首先查询专用发票信息中对应发票号是否存在,并对应其数据是否正确
|
|
|
|
+ //获取专用发票信息 行数
|
|
|
|
+ var trlen = $("#reimbursementElectronicInvoiceVATTaxes tr").length;
|
|
|
|
+ for(var i = 0;i < trlen;i++){
|
|
|
|
+ var id = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(0).find("input").eq(0).val();
|
|
|
|
+ var delFlag = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(1).find("input").eq(1).val();
|
|
|
|
+ var invoiceType = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(2).find("select").eq(0).val();
|
|
|
|
+ var invoiceNumber = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(3).find("input").eq(0).val();
|
|
|
|
+ var invoiceDate = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(4).find("input").eq(0).val();
|
|
|
|
+ var invoiceUnit = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(5).find("input").eq(0).val();
|
|
|
|
+ var money = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(6).find("input").eq(0).val();
|
|
|
|
+ var taxAmount = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(7).find("input").eq(0).val();
|
|
|
|
+ var sumMoney = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(8).find("input").eq(0).val();
|
|
|
|
+ var remarks = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(9).find("input").eq(0).val();
|
|
|
|
+
|
|
|
|
+ if(invoiceNumber === number){
|
|
|
|
+ //数据处理
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes" + i + "_delFlag").val("1")
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).hide();
|
|
|
|
+ //删除数据表中的数据
|
|
|
|
+
|
|
|
|
+ $.ajax({
|
|
|
|
+ url:"${ctx}/workreimbursement/workReimbursement/updateAccountInfoById",
|
|
|
|
+ type : "post",
|
|
|
|
+ dataType:"json",
|
|
|
|
+ data:{invoiceNumber:number},
|
|
|
|
+ success:function (data) {
|
|
|
|
+ if(data.success){
|
|
|
|
+ parent.layer.msg("删除成功!!!",{icon:6});
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }else{
|
|
|
|
- for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
|
|
- var attachmentId = "";
|
|
|
|
- var attachmentFlag = "6";
|
|
|
|
- console.log(file);
|
|
|
|
- var timestamp=new Date().getTime();
|
|
|
|
-
|
|
|
|
- var storeAs = "wrkReimbursement";
|
|
|
|
- var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
|
|
- var divId = "_attachment";
|
|
|
|
- $("#addFile"+divId).show();
|
|
|
|
- multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,size);}
|
|
|
|
|
|
+ var invoiceVATTaxes = $("#reimbursementElectronicInvoiceVATTaxes tr").length;
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesMoneys = "";
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesTaxAmount = "";
|
|
|
|
+ var reimbursementElectronicInvoiceVATTaxesSumMoney = "";
|
|
|
|
+ for(var i = 0;i < invoiceVATTaxes;i++){
|
|
|
|
+ var delFalg = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(0).find("input").eq(1).val();
|
|
|
|
+ var moneys = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(6).find("input").eq(0).val();
|
|
|
|
+ var taxAmount = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(7).find("input").eq(0).val();
|
|
|
|
+ var rsumMoney = $("#reimbursementElectronicInvoiceVATTaxes tr").eq(i).find("td").eq(8).find("input").eq(0).val();
|
|
|
|
+
|
|
|
|
+ if (moneys!=undefined && isNumber(moneys) && 1 != delFalg){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesMoneys==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesMoneys = parseFloat(moneys).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesMoneys = (parseFloat(reimbursementElectronicInvoiceVATTaxesMoneys) + parseFloat(moneys)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (taxAmount!=undefined && isNumber(taxAmount) && 1 != delFalg){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesTaxAmount==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesTaxAmount = parseFloat(taxAmount).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesTaxAmount = (parseFloat(reimbursementElectronicInvoiceVATTaxesTaxAmount) + parseFloat(taxAmount)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (rsumMoney!=undefined && isNumber(rsumMoney) && 1 != delFalg){
|
|
|
|
+ if(reimbursementElectronicInvoiceVATTaxesSumMoney==""){
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesSumMoney = parseFloat(rsumMoney).toFixed(2);
|
|
|
|
+ }else {
|
|
|
|
+ reimbursementElectronicInvoiceVATTaxesSumMoney = (parseFloat(reimbursementElectronicInvoiceVATTaxesSumMoney) + parseFloat(rsumMoney)).toFixed(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesMoneys").val(reimbursementElectronicInvoiceVATTaxesMoneys);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesTaxAmount").val(reimbursementElectronicInvoiceVATTaxesTaxAmount);
|
|
|
|
+ $("#reimbursementElectronicInvoiceVATTaxesSumMoney").val(reimbursementElectronicInvoiceVATTaxesSumMoney);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
function insertTitleCollection(tValue){
|
|
function insertTitleCollection(tValue){
|
|
var list = "${workReimbursement.workAttachments}";
|
|
var list = "${workReimbursement.workAttachments}";
|
|
var size = (list.split('url')).length-1;
|
|
var size = (list.split('url')).length-1;
|
|
@@ -1014,12 +1189,13 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group layui-row count2">
|
|
<div class="form-group layui-row count2">
|
|
- <div class="form-group-label"><h2>数电发票信息<span style="color: red;font-size: 14px"> (可通过上传数电发票xml文件自动填写数电发票信息)</span></h2></div>
|
|
|
|
|
|
+ <div class="form-group-label"><h2>数电发票信息<span style="color: red;font-size: 14px"> (可通过上传数电发票xml格式的附件自动获取发票信息)</span></h2></div>
|
|
<div class="layui-item nav-btns">
|
|
<div class="layui-item nav-btns">
|
|
- <a class="nav-btn nav-btn-add" onclick="addRow('#reimbursementElectronicInvoiceVATTaxes', reimbursementElectronicInvoiceVATTaxesRowIdx, reimbursementElectronicInvoiceVATTaxesTpl);reimbursementElectronicInvoiceVATTaxesRowIdx = reimbursementElectronicInvoiceVATTaxesRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增</a>
|
|
|
|
|
|
+ <%--<a class="nav-btn nav-btn-add" onclick="addRow('#reimbursementElectronicInvoiceVATTaxes', reimbursementElectronicInvoiceVATTaxesRowIdx, reimbursementElectronicInvoiceVATTaxesTpl);reimbursementElectronicInvoiceVATTaxesRowIdx = reimbursementElectronicInvoiceVATTaxesRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增</a>--%>
|
|
|
|
+ <a id="attachment_btn_xml" class="nav-btn nav-btn-add" title="上传数电发票xml文件"><i class="fa fa-plus"></i> 上传xml文件</a>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-xs12 form-table-container">
|
|
<div class="layui-item layui-col-xs12 form-table-container">
|
|
- <table id="contentTable3" class="table table-bordered table-condensed can-edit">
|
|
|
|
|
|
+ <table id="contentTable3" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<th width="150px"><font color="red">*</font>发票类型</th>
|
|
<th width="150px"><font color="red">*</font>发票类型</th>
|
|
@@ -1031,7 +1207,7 @@
|
|
<th width="150px"><font color="red">*</font>税额</th>
|
|
<th width="150px"><font color="red">*</font>税额</th>
|
|
<th width="150px"><font color="red">*</font>价税合计</th>
|
|
<th width="150px"><font color="red">*</font>价税合计</th>
|
|
<th width="200px">备注</th>
|
|
<th width="200px">备注</th>
|
|
- <th width="150px">操作</th>
|
|
|
|
|
|
+ <%--<th width="150px">操作</th>--%>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody id="reimbursementElectronicInvoiceVATTaxes">
|
|
<tbody id="reimbursementElectronicInvoiceVATTaxes">
|
|
@@ -1041,39 +1217,36 @@
|
|
<td class="hide">
|
|
<td class="hide">
|
|
<input id="reimbursementElectronicInvoiceVATTaxes${index.index}_id" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].id" type="hidden" value="${reimbursementElectronicInvoiceVATTaxes.id}"/>
|
|
<input id="reimbursementElectronicInvoiceVATTaxes${index.index}_id" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].id" type="hidden" value="${reimbursementElectronicInvoiceVATTaxes.id}"/>
|
|
<input id="reimbursementElectronicInvoiceVATTaxes${index.index}_delFlag" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].delFlag" type="hidden" value="0"/>
|
|
<input id="reimbursementElectronicInvoiceVATTaxes${index.index}_delFlag" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceType" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceType" type="hidden" value="${reimbursementElectronicInvoiceVATTaxes.invoiceType}"/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
<%--发票类型--%>
|
|
<%--发票类型--%>
|
|
<td>
|
|
<td>
|
|
- <select name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceType" id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceType" class="form-control judgment">
|
|
|
|
- <option value=""></option>
|
|
|
|
- <c:forEach items="${fns:getMainDictList('invoiceReimbursementType')}" var="var">
|
|
|
|
- <option value="${var.value}" <c:if test="${reimbursementElectronicInvoiceVATTaxes.invoiceType eq var.value}">selected</c:if>>${var.label}</option>
|
|
|
|
- </c:forEach>
|
|
|
|
- </select>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceTypeStr" onmouseover="this.title=this.value" readOnly="true" maxlength="50" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceTypeStr" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceTypeStr}" onmouseover="this.title=this.value" class="form-control judgment "/>
|
|
</td>
|
|
</td>
|
|
<%--发票项目名--%>
|
|
<%--发票项目名--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceProjectName" onmouseover="this.title=this.value" maxlength="500" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceProjectName" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceProjectName}" onmouseover="this.title=this.value" placeholder="请输入发票项目名" class="form-control judgment "/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceProjectName" onmouseover="this.title=this.value" maxlength="500" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceProjectName" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceProjectName}" onmouseover="this.title=this.value" placeholder="请输入发票项目名" class="form-control judgment "/>
|
|
</td>
|
|
</td>
|
|
<%--发票号--%>
|
|
<%--发票号--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceNumber" onmouseover="this.title=this.value" maxlength="30" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceNumber" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceNumber}" onmouseover="this.title=this.value" placeholder="请输入发票号" class="form-control judgment number "/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceNumber" onmouseover="this.title=this.value" maxlength="30" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceNumber" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceNumber}" onmouseover="this.title=this.value" placeholder="请输入发票号" class="form-control judgment number "/>
|
|
</td>
|
|
</td>
|
|
<%--开票日期--%>
|
|
<%--开票日期--%>
|
|
<td>
|
|
<td>
|
|
- <input lay-verify="date" placeholder="yyyy-MM-dd HH:mm:ss" readonly onmouseover="this.title=this.value" autocomplete="off" id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceDate" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceDate" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceDateStr}" onmouseover="this.title=this.value" class="form-control judgment datetime"/>
|
|
|
|
|
|
+ <input disabled readonly onmouseover="this.title=this.value" autocomplete="off" readOnly="true" id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceDate" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceDate" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceDateStr}" onmouseover="this.title=this.value" class="form-control judgment datetime"/>
|
|
</td>
|
|
</td>
|
|
<%--开票单位--%>
|
|
<%--开票单位--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceUnit" onmouseover="this.title=this.value" maxlength="30" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceUnit" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceUnit}" placeholder="请输入开票单位" onmouseover="this.title=this.value" class="form-control judgment "/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_invoiceUnit" onmouseover="this.title=this.value" maxlength="30" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].invoiceUnit" type="text" value="${reimbursementElectronicInvoiceVATTaxes.invoiceUnit}" placeholder="请输入开票单位" onmouseover="this.title=this.value" class="form-control judgment "/>
|
|
</td>
|
|
</td>
|
|
<%--金额--%>
|
|
<%--金额--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_money" onmouseover="this.title=this.value" onchange="getMoneyElectronicInvoiceVATT(${index.index})" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].money" type="text" maxlength="32" value="${reimbursementElectronicInvoiceVATTaxes.money}" placeholder="请输入金额" onmouseover="this.title=this.value" class="form-control judgment number "/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_money" onmouseover="this.title=this.value" readOnly="true" onchange="getMoneyElectronicInvoiceVATT(${index.index})" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].money" type="text" maxlength="32" value="${reimbursementElectronicInvoiceVATTaxes.money}" placeholder="请输入金额" onmouseover="this.title=this.value" class="form-control judgment number "/>
|
|
</td>
|
|
</td>
|
|
<%--税额--%>
|
|
<%--税额--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_taxAmount" onmouseover="this.title=this.value" onchange="getMoneyElectronicInvoiceVATT(${index.index})" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].taxAmount" type="text" maxlength="32" value="${reimbursementElectronicInvoiceVATTaxes.taxAmount}" placeholder="请输入税额" onmouseover="this.title=this.value" class="form-control judgment number "/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_taxAmount" onmouseover="this.title=this.value" readOnly="true" onchange="getMoneyElectronicInvoiceVATT(${index.index})" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].taxAmount" type="text" maxlength="32" value="${reimbursementElectronicInvoiceVATTaxes.taxAmount}" placeholder="请输入税额" onmouseover="this.title=this.value" class="form-control judgment number "/>
|
|
</td>
|
|
</td>
|
|
<%--合计价税--%>
|
|
<%--合计价税--%>
|
|
<td>
|
|
<td>
|
|
@@ -1081,54 +1254,71 @@
|
|
</td>
|
|
</td>
|
|
<%--备注--%>
|
|
<%--备注--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_remarks" onmouseover="this.title=this.value" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].remarks" type="text" maxlength="255" value="${reimbursementElectronicInvoiceVATTaxes.remarks}" class="form-control input"/>
|
|
|
|
- </td>
|
|
|
|
- <td class="text-center op-td">
|
|
|
|
- <span class="op-btn op-btn-delete" onclick="delRowA(this, '#reimbursementElectronicInvoiceVATTaxes${index.index}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes${index.index}_remarks" onmouseover="this.title=this.value" name="reimbursementElectronicInvoiceVATTaxes[${index.index}].remarks" type="text" maxlength="255" value="${reimbursementElectronicInvoiceVATTaxes.remarks}" class="form-control input"/>
|
|
</td>
|
|
</td>
|
|
|
|
+ <%--<td class="text-center op-td">
|
|
|
|
+ <span class="op-btn op-btn-delete" onclick="delRowA(this, '#reimbursementElectronicInvoiceVATTaxes${index.index}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>
|
|
|
|
+ </td>--%>
|
|
</tr>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</c:if>
|
|
</c:if>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
|
|
+ <table id="contentTable4" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr >
|
|
|
|
+ <td width="150px" style="vertical-align:middle;text-align: center;"><label>费用汇总(元):</label></td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ <td width="150px" style="border: 0px">
|
|
|
|
+ <input htmlEscape="false" style="border: 0px; font-weight: bold;" id="reimbursementElectronicInvoiceVATTaxesMoneys" name="reimbursementElectronicInvoiceVATTaxesMoneys" readonly="true" class="form-control layui-input" value=""/>
|
|
|
|
+ </td>
|
|
|
|
+ <td width="150px">
|
|
|
|
+ <input htmlEscape="false" style="border: 0px; font-weight: bold;" id="reimbursementElectronicInvoiceVATTaxesTaxAmount" name="reimbursementElectronicInvoiceVATTaxesTaxAmount" readonly="true" class="form-control layui-input" value=""/>
|
|
|
|
+ </td>
|
|
|
|
+ <td width="150px">
|
|
|
|
+ <input htmlEscape="false" style="border: 0px; font-weight: bold;" id="reimbursementElectronicInvoiceVATTaxesSumMoney" name="reimbursementElectronicInvoiceVATTaxesSumMoney" readonly="true" class="form-control layui-input" value=""/>
|
|
|
|
+ </td>
|
|
|
|
+ <td width="200px"></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ </table>
|
|
<script type="text/template" id="reimbursementElectronicInvoiceVATTaxesTpl">//<!--
|
|
<script type="text/template" id="reimbursementElectronicInvoiceVATTaxesTpl">//<!--
|
|
<tr id="reimbursementElectronicInvoiceVATTaxes{{idx}}">
|
|
<tr id="reimbursementElectronicInvoiceVATTaxes{{idx}}">
|
|
<td class="hide">
|
|
<td class="hide">
|
|
<input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_id" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
<input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_id" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
<input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_delFlag" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
<input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_delFlag" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceType" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceType" type="hidden" value="{{row.invoiceType}}"/>
|
|
</td>
|
|
</td>
|
|
<%--发票类型--%>
|
|
<%--发票类型--%>
|
|
<td>
|
|
<td>
|
|
- <select name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceType" id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceType" class="form-control judgment">
|
|
|
|
- <option value=""></option>
|
|
|
|
- <c:forEach items="${fns:getMainDictList('invoiceReimbursementType')}" var="var">
|
|
|
|
- <option value="${var.value}">${var.label}</option>
|
|
|
|
- </c:forEach>
|
|
|
|
- </select>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceTypeStr" readOnly="true" onmouseover="this.title=this.value" maxlength="50" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceTypeStr" type="text" value="{{row.invoiceTypeStr}}" onmouseover="this.title=this.value" class="form-control judgment "/>
|
|
</td>
|
|
</td>
|
|
<%--发票项目名--%>
|
|
<%--发票项目名--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceProjectName" onmouseover="this.title=this.value" maxlength="500" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceProjectName" type="text" value="{{row.invoiceNumber}}" onmouseover="this.title=this.value" placeholder="请输入发票项目名" class="form-control judgment "/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceProjectName" readOnly="true" onmouseover="this.title=this.value" maxlength="500" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceProjectName" type="text" value="{{row.invoiceNumber}}" onmouseover="this.title=this.value" placeholder="请输入发票项目名" class="form-control judgment "/>
|
|
</td>
|
|
</td>
|
|
<%--发票号--%>
|
|
<%--发票号--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceNumber" maxlength="30" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceNumber" type="text" value="{{row.invoiceNumber}}" onmouseover="this.title=this.value" maxlength="32" placeholder="请输入发票号" class="form-control judgment number "/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceNumber" readOnly="true" maxlength="30" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceNumber" type="text" value="{{row.invoiceNumber}}" onmouseover="this.title=this.value" maxlength="32" placeholder="请输入发票号" class="form-control judgment number "/>
|
|
</td>
|
|
</td>
|
|
<%--开票日期--%>
|
|
<%--开票日期--%>
|
|
<td>
|
|
<td>
|
|
- <input lay-verify="date" placeholder="yyyy-MM-dd HH:mm:ss" readonly autocomplete="off" id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceDate" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceDate" type="text" value="{{row.invoiceDate}}" onmouseover="this.title=this.value" class="form-control required datetime"/>
|
|
|
|
|
|
+ <input readOnly="true" id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceDate" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceDate" type="text" value="{{row.invoiceDate}}" onmouseover="this.title=this.value" class="form-control required"/>
|
|
</td>
|
|
</td>
|
|
<%--开票单位--%>
|
|
<%--开票单位--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceUnit" maxlength="30" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceUnit" type="text" value="{{row.invoiceUnit}}" maxlength="32" placeholder="请输入开票单位" onmouseover="this.title=this.value" class="form-control judgment "/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_invoiceUnit" maxlength="30" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].invoiceUnit" type="text" value="{{row.invoiceUnit}}" maxlength="32" placeholder="请输入开票单位" onmouseover="this.title=this.value" class="form-control judgment "/>
|
|
</td>
|
|
</td>
|
|
<%--金额--%>
|
|
<%--金额--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_money" onchange="getMoneyElectronicInvoiceVATT({{idx}})" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].money" type="text" value="{{row.money}}" maxlength="32" placeholder="请输入金额" onmouseover="this.title=this.value" class="form-control number judgment"/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_money" onchange="getMoneyElectronicInvoiceVATT({{idx}})" readOnly="true" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].money" type="text" value="{{row.money}}" maxlength="32" placeholder="请输入金额" onmouseover="this.title=this.value" class="form-control number judgment"/>
|
|
</td>
|
|
</td>
|
|
<%--税额--%>
|
|
<%--税额--%>
|
|
<td>
|
|
<td>
|
|
- <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_taxAmount" onchange="getMoneyElectronicInvoiceVATT({{idx}})"name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].taxAmount" type="text" value="{{row.taxAmount}}" maxlength="32" placeholder="请输入税额" onmouseover="this.title=this.value" class="form-control number judgment"/>
|
|
|
|
|
|
+ <input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_taxAmount" readOnly="true" onchange="getMoneyElectronicInvoiceVATT({{idx}})" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].taxAmount" type="text" value="{{row.taxAmount}}" maxlength="32" placeholder="请输入税额" onmouseover="this.title=this.value" class="form-control number judgment"/>
|
|
</td>
|
|
</td>
|
|
<%--合计价税--%>
|
|
<%--合计价税--%>
|
|
<td>
|
|
<td>
|
|
@@ -1138,9 +1328,9 @@
|
|
<td>
|
|
<td>
|
|
<input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_remarks" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].remarks" type="text" value="{{row.remarks}}" maxlength="255" onmouseover="this.title=this.value" class="form-control"/>
|
|
<input id="reimbursementElectronicInvoiceVATTaxes{{idx}}_remarks" name="reimbursementElectronicInvoiceVATTaxes[{{idx}}].remarks" type="text" value="{{row.remarks}}" maxlength="255" onmouseover="this.title=this.value" class="form-control"/>
|
|
</td>
|
|
</td>
|
|
- <td class="text-center op-td">
|
|
|
|
|
|
+ <%--<td class="text-center op-td">
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRowA(this, '#reimbursementElectronicInvoiceVATTaxes{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRowA(this, '#reimbursementElectronicInvoiceVATTaxes{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
- </td>
|
|
|
|
|
|
+ </td>--%>
|
|
</tr>//-->
|
|
</tr>//-->
|
|
</script>
|
|
</script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
@@ -1163,9 +1353,186 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+ <div class="form-group layui-row count2">
|
|
|
|
+ <input id="attachment_InvoiceReimbursement_file" type="file" multiple="multiple" style="display: none;" onChange="if(this.value)insertTitleInvoiceReimbursement(this.value);"/>
|
|
|
|
+ <span id="attachment_title"></span>
|
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
|
+ <table id="listAttachment" class="table table-bordered table-condensed details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
|
+ <th>数电发票文件预览</th>
|
|
|
|
+ <th>上传人</th>
|
|
|
|
+ <th>上传时间</th>
|
|
|
|
+ <th width="200px">操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="file_attachment_InvoiceReimbursement">
|
|
|
|
+ <c:forEach items="${workReimbursement.workAttachmentInvoiceReimbursements}" var = "workClientAttachment" varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+
|
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${workReimbursement.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${workReimbursement.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+
|
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
|
+ <td class="op-td">
|
|
|
|
+ <div class="op-btn-box" >
|
|
|
|
+ <%--附件下载删除--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${workReimbursement.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" target="_blank" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'xml')}">
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ <c:if test="${workClientAttachment.createBy.id eq fns:getUser().id}">
|
|
|
|
+ <a href="javascript:void(0)" onclick="deleteFileFromAliyunByInvoiceReimbursement(this,'${ctx}/sys/workattachment/deleteFileFromAliyunByInvoiceReimbursement?url=${workClientAttachment.url}&id=${workClientAttachment.id}&type=2','addFile_attachment_InvoiceReimbursement','_attachment_InvoiceReimbursement')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i> 删除</a>
|
|
|
|
+ </c:if>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
- <div class="form-group-label"><h2>报销附件信息</h2></div>
|
|
|
|
|
|
+ <div class="form-group-label"><h2>附件信息</h2></div>
|
|
<div class="layui-item nav-btns">
|
|
<div class="layui-item nav-btns">
|
|
<a id="attachment_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
<a id="attachment_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
<sys:collectSelect id="linkman" url="${ctx}/workclientinfo/workClientInfo/linkmanList"
|
|
<sys:collectSelect id="linkman" url="${ctx}/workclientinfo/workClientInfo/linkmanList"
|