|
@@ -206,6 +206,11 @@
|
|
|
<a-input v-model:value="formData.sellerBankAccount" placeholder="请输入" allow-clear />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="币种(curreny)" v-bind="validateInfos.curreny" id="saleInvoiceForm-curreny" name="curreny">
|
|
|
+ <JDictSelectTag v-model:value="formData.currency" placeholder="请选择" dictCode="currency" style="width: 100%;" disabled/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="F号(F number)" v-bind="validateInfos.fnumber" id="saleInvoiceForm-fnumber" name="fnumber">
|
|
|
<a-input v-model:value="formData.fnumber" placeholder="请输入" allow-clear AutoComplete="off" />
|
|
@@ -383,6 +388,7 @@
|
|
|
fnumber: '',
|
|
|
notes: '',
|
|
|
busynessType: '',
|
|
|
+ currency:''
|
|
|
});
|
|
|
|
|
|
//表单验证
|
|
@@ -545,7 +551,7 @@
|
|
|
var num = Number(prop.row.taxPrice) * Number(prop.row.quantity);
|
|
|
prop.row.taxMoney = num.toFixed(2);
|
|
|
prop.row.taxRate = prop.row.taxRate ? prop.row.taxRate : 0;
|
|
|
- prop.row.taxAmount = (Number(prop.row.taxMoney) * Number(prop.row.taxRate)) / 100;
|
|
|
+ prop.row.taxAmount = ((Number(prop.row.taxMoney) * Number(prop.row.taxRate)) / 100).toFixed(4)
|
|
|
}
|
|
|
}
|
|
|
function selectDeliveryList() {
|
|
@@ -575,7 +581,7 @@
|
|
|
item.taxMoney = item.money && item.money !== '' ? item.money : 0;
|
|
|
//暂无税率字段,设置默认为1
|
|
|
item.taxRate = item.taxRate ? item.taxRate : 0;
|
|
|
- item.taxAmount = (item.taxMoney * item.taxRate) / 100;
|
|
|
+ item.taxAmount = ((item.taxMoney * item.taxRate) / 100).toFixed(4)
|
|
|
item.sourceType='普通业务'
|
|
|
});
|
|
|
notAllowEdit.value = true;
|
|
@@ -589,6 +595,7 @@
|
|
|
formData.sourceCode = data[0].billCode;
|
|
|
formData.invoiceHeader = data[0].invoiceHeader;
|
|
|
formData.invoiceAddress = data[0].invoiceAddress;
|
|
|
+ formData.currency = data[0].currency;
|
|
|
formData.busynessType = '普通业务';
|
|
|
getCustomerOptions({ pageSize: -1, id: data[0].customer }).then((res) => {
|
|
|
formData.buyerTaxNumber = res.records[0].dutyParagraph;
|