|
@@ -267,6 +267,7 @@
|
|
|
v-model="formBudgetData.data.trailerFeeCurrency"
|
|
|
placeholder="请选择货币"
|
|
|
style="width: 115px"
|
|
|
+ disabled
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in accountCurrency"
|
|
@@ -293,6 +294,7 @@
|
|
|
v-model="formBudgetData.data.customsFeeCurrency"
|
|
|
placeholder="请选择货币"
|
|
|
style="width: 115px"
|
|
|
+ disabled
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in accountCurrency"
|
|
@@ -319,6 +321,7 @@
|
|
|
v-model="formBudgetData.data.agencyFeeCurrency"
|
|
|
placeholder="请选择货币"
|
|
|
style="width: 115px"
|
|
|
+ disabled
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in accountCurrency"
|
|
@@ -345,6 +348,7 @@
|
|
|
v-model="formBudgetData.data.portMixedFeeCurrency"
|
|
|
placeholder="请选择货币"
|
|
|
style="width: 115px"
|
|
|
+ disabled
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in accountCurrency"
|
|
@@ -371,6 +375,7 @@
|
|
|
v-model="formBudgetData.data.inspectionRedPackCurrency"
|
|
|
placeholder="请选择货币"
|
|
|
style="width: 115px"
|
|
|
+ disabled
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in accountCurrency"
|
|
@@ -397,6 +402,7 @@
|
|
|
v-model="formBudgetData.data.commissionCurrency"
|
|
|
placeholder="请选择货币"
|
|
|
style="width: 115px"
|
|
|
+ disabled
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in accountCurrency"
|
|
@@ -419,6 +425,7 @@
|
|
|
v-model="formBudgetData.data.otherCurrency"
|
|
|
placeholder="请选择货币"
|
|
|
style="width: 115px"
|
|
|
+ disabled
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in accountCurrency"
|
|
@@ -792,30 +799,34 @@ const formBudgetConfig = computed(() => {
|
|
|
];
|
|
|
});
|
|
|
const changeBudget = (row) => {
|
|
|
+ let currency = "CNY";
|
|
|
+ if (accountCurrency.value && accountCurrency.value.length > 0) {
|
|
|
+ currency = accountCurrency.value[0].value;
|
|
|
+ }
|
|
|
formBudgetData.data = {
|
|
|
- id: row.id,
|
|
|
+ contractId: row.contractId,
|
|
|
code: row.code,
|
|
|
customerName: row.customerName,
|
|
|
userName: row.userName,
|
|
|
- trailerFeeCurrency: row.trailerFeeCurrency,
|
|
|
+ trailerFeeCurrency: currency,
|
|
|
trailerFee: row.trailerFee,
|
|
|
- customsFeeCurrency: row.customsFeeCurrency,
|
|
|
+ customsFeeCurrency: currency,
|
|
|
customsFee: row.customsFee,
|
|
|
- agencyFeeCurrency: row.agencyFeeCurrency,
|
|
|
+ agencyFeeCurrency: currency,
|
|
|
agencyFee: row.agencyFee,
|
|
|
- portMixedFeeCurrency: row.portMixedFeeCurrency,
|
|
|
+ portMixedFeeCurrency: currency,
|
|
|
portMixedFee: row.portMixedFee,
|
|
|
- inspectionRedPackCurrency: row.inspectionRedPackCurrency,
|
|
|
+ inspectionRedPackCurrency: currency,
|
|
|
inspectionRedPack: row.inspectionRedPack,
|
|
|
- commissionCurrency: row.commissionCurrency,
|
|
|
+ commissionCurrency: currency,
|
|
|
commission: row.commission,
|
|
|
- otherCurrency: row.otherCurrency,
|
|
|
+ otherCurrency: currency,
|
|
|
other: row.other,
|
|
|
};
|
|
|
openBudget.value = true;
|
|
|
};
|
|
|
const submitBudgetForm = () => {
|
|
|
- proxy.post("/contract/edit", formBudgetData.data).then(() => {
|
|
|
+ proxy.post("/contractBudget/budget", formBudgetData.data).then(() => {
|
|
|
ElMessage({
|
|
|
message: "保存成功",
|
|
|
type: "success",
|