|
|
@ -224,6 +224,7 @@ |
|
|
|
|
|
|
|
var materialProcessMethodDatas = [[${@dict.getType('processMethod')}]]; |
|
|
|
var materialTypeDatas = [[${@category.getChildByCode('materialType')}]]; |
|
|
|
var taxInvoiceStatusDatas = [[${@dict.getType('tax_invoice_status')}]]; |
|
|
|
|
|
|
|
var taxInvoice = [[${taxInvoice}]]; |
|
|
|
|
|
|
@ -273,11 +274,11 @@ |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//开票物料 |
|
|
|
$(function() { |
|
|
|
var options = { |
|
|
|
id: 'bootstrap-table-material', |
|
|
|
url: prefix + "/getSalesOrderCodeChildListByCode", |
|
|
|
url: prefix + "/getSalesOrderChildListByCode", |
|
|
|
queryParams: function(params) { |
|
|
|
return { |
|
|
|
salesOrderCode: $("#salesOrderCode").val(), |
|
|
@ -364,6 +365,76 @@ |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//开票历史 |
|
|
|
$(function() { |
|
|
|
var options = { |
|
|
|
id: 'bootstrap-table-history', |
|
|
|
url: prefix + "/getInvoiceHistoryListBySalesOrderCode", |
|
|
|
queryParams: function(params) { |
|
|
|
return { |
|
|
|
salesOrderCode: $("#salesOrderCode").val(), |
|
|
|
} |
|
|
|
}, |
|
|
|
showSearch: false, |
|
|
|
showRefresh: false, |
|
|
|
showToggle: false, |
|
|
|
showColumns: false, |
|
|
|
pagination: false, // 设置不分页 |
|
|
|
modalName: "国税发票历史记录", |
|
|
|
columns: [{ |
|
|
|
checkbox: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '国税发票历史id', |
|
|
|
field: 'invoiceHistoryId', |
|
|
|
visible: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '国税发票单号', |
|
|
|
field: 'taxInvoiceCode', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '发票状态', //(0待审核、1待开具、2已开具、3审核拒绝) |
|
|
|
field: 'taxInvoiceStatus', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
return $.table.selectDictLabel(taxInvoiceStatusDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '申请时间', |
|
|
|
field: 'applyTime', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '财务员', |
|
|
|
field: 'financeMembers', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '开票额度比例', |
|
|
|
field: 'invoiceQuotaRatio', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '开票金额(RMB)', |
|
|
|
field: 'invoiceAmountRmb', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '开票用途', |
|
|
|
field: 'invoicePurpose', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
align: 'center', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
var actions = []; |
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.invoiceHistoryId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
|
return actions.join(''); |
|
|
|
} |
|
|
|
}] |
|
|
|
}; |
|
|
|
$.table.init(options); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取客户发票信息 |
|
|
|
$(document).ready(function() { |
|
|
|