|
@@ -513,7 +513,6 @@ $(document).ready(function() {
|
|
|
{title: '合同名称', colSpan: '1', rowSpan: '1', field: 'name', hAlign: 0, width: 160, formatter: '@', readOnly: true},
|
|
{title: '合同名称', colSpan: '1', rowSpan: '1', field: 'name', hAlign: 0, width: 160, formatter: '@', readOnly: true},
|
|
|
{title: '乙方', colSpan: '1', rowSpan: '1', field: 'party_b', hAlign: 0, width: 150, formatter: '@', readOnly: true},
|
|
{title: '乙方', colSpan: '1', rowSpan: '1', field: 'party_b', hAlign: 0, width: 150, formatter: '@', readOnly: true},
|
|
|
{title: '支付年月', colSpan: '1', rowSpan: '1', field: 'pay_date', hAlign: 1, width: 120, formatter: '@', readOnly: true},
|
|
{title: '支付年月', colSpan: '1', rowSpan: '1', field: 'pay_date', hAlign: 1, width: 120, formatter: '@', readOnly: true},
|
|
|
- {title: '合同金额', colSpan: '1', rowSpan: '1', field: 'deal_tp', hAlign: 2, width: 80, type: 'Number', readOnly: true},
|
|
|
|
|
{title: '税率(%)', colSpan: '1', rowSpan: '1', field: 'tax', hAlign: 2, width: 80, type: 'Number', readOnly: true},
|
|
{title: '税率(%)', colSpan: '1', rowSpan: '1', field: 'tax', hAlign: 2, width: 80, type: 'Number', readOnly: true},
|
|
|
{title: '付款金额', colSpan: '1', rowSpan: '1', field: 'pay_tp', hAlign: 2, width: 80, type: 'Number', readOnly: true},
|
|
{title: '付款金额', colSpan: '1', rowSpan: '1', field: 'pay_tp', hAlign: 2, width: 80, type: 'Number', readOnly: true},
|
|
|
{title: '扣款金额', colSpan: '1', rowSpan: '1', field: 'cut_tp', hAlign: 2, width: 80, type: 'Number', readOnly: true},
|
|
{title: '扣款金额', colSpan: '1', rowSpan: '1', field: 'cut_tp', hAlign: 2, width: 80, type: 'Number', readOnly: true},
|
|
@@ -967,7 +966,12 @@ $(document).ready(function() {
|
|
|
detailObj.loadDetailData(curNode);
|
|
detailObj.loadDetailData(curNode);
|
|
|
};
|
|
};
|
|
|
$('#import-deal-type-ok').click(function() {
|
|
$('#import-deal-type-ok').click(function() {
|
|
|
- const updateData = { target: 'importContract', ledger_id: curNode.id, cost_id: curNode.cost_id, types: $('[name=contract_type]').val(), months: $('#type-pay-date').val() };
|
|
|
|
|
|
|
+ const updateData = {
|
|
|
|
|
+ target: 'importContract', ledger_id: curNode.id, cost_id: curNode.cost_id,
|
|
|
|
|
+ types: $('[name=contract_type]').val(),
|
|
|
|
|
+ months: $('#type-pay-date').val(),
|
|
|
|
|
+ used: $('#type-contract-used').val(),
|
|
|
|
|
+ };
|
|
|
if (updateData.types.length === 0) {
|
|
if (updateData.types.length === 0) {
|
|
|
toastr.warning('请至少选择一种类型');
|
|
toastr.warning('请至少选择一种类型');
|
|
|
return;
|
|
return;
|
|
@@ -1002,7 +1006,12 @@ $(document).ready(function() {
|
|
|
contractSelectSpread.refresh();
|
|
contractSelectSpread.refresh();
|
|
|
});
|
|
});
|
|
|
$('#import-deal-select-ok').click(function() {
|
|
$('#import-deal-select-ok').click(function() {
|
|
|
- const updateData = { target: 'importContract', ledger_id: curNode.id, cost_id: curNode.cost_id, ids: getSelectContractId(), months: $('#select-pay-date').val() };
|
|
|
|
|
|
|
+ const updateData = {
|
|
|
|
|
+ target: 'importContract', ledger_id: curNode.id, cost_id: curNode.cost_id,
|
|
|
|
|
+ ids: getSelectContractId(),
|
|
|
|
|
+ months: $('#select-pay-date').val(),
|
|
|
|
|
+ used: $('#select-contract-used').val(),
|
|
|
|
|
+ };
|
|
|
if (updateData.ids.length === 0) {
|
|
if (updateData.ids.length === 0) {
|
|
|
toastr.warning('请至少选择一项合同数据');
|
|
toastr.warning('请至少选择一项合同数据');
|
|
|
return;
|
|
return;
|