|
@@ -8,7 +8,7 @@
|
|
|
<a-select v-model="formState.source">
|
|
|
<a-option v-for=" item in sourceList" :key="item.id" :value="item.value">{{
|
|
|
item.label
|
|
|
- }}
|
|
|
+ }}
|
|
|
</a-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
@@ -25,7 +25,7 @@
|
|
|
</template>
|
|
|
<template v-if="formState.source">
|
|
|
<a-form-item :label="$t('tariffManagement.TestFlowPacket')" field="testSimDataPlanId">
|
|
|
- <a-select v-model="formState.testSimDataPlanId" >
|
|
|
+ <a-select v-model="formState.testSimDataPlanId">
|
|
|
<a-option v-for=" (item, index) in planList" :key="item.id" :value="item.productId">{{
|
|
|
$t('tariffManagement.TestFlowPacket') }} {{
|
|
|
item.productName
|
|
@@ -41,15 +41,15 @@
|
|
|
<a-select v-model="formState.userId">
|
|
|
<a-option v-for=" item in userIdList" :key="item.id" :value="item.id">{{
|
|
|
item.name
|
|
|
- }}
|
|
|
+ }}
|
|
|
</a-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
- <a-form-item :label="$t('tariffManagement.billingMethod')" field="billingMethod">
|
|
|
+ <a-form-item :label="$t('tariffManagement.pricingUser')" field="billingMethod">
|
|
|
<a-select v-model="formState.billingMethod">
|
|
|
<a-option v-for=" item in methodList" :key="item.id" :value="item.value">{{
|
|
|
item.label
|
|
|
- }}
|
|
|
+ }}
|
|
|
</a-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
@@ -57,7 +57,7 @@
|
|
|
<a-select v-model="formState.currency">
|
|
|
<a-option v-for=" item in currency" :key="item.id" :value="item.value">{{
|
|
|
item.label
|
|
|
- }}
|
|
|
+ }}
|
|
|
</a-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
@@ -85,46 +85,46 @@
|
|
|
</template>
|
|
|
</a-input>
|
|
|
</a-form-item>
|
|
|
- <!-- <a-form-item label="原价" field="networkAccessFee">
|
|
|
- <a-input v-model="formState.pricing" v-if="formState.billingMethod == 2">
|
|
|
+ <a-form-item label="原价" field="networkAccessFee">
|
|
|
+ <a-input v-model="formState.oldPricing" v-if="formState.billingMethod == 2">
|
|
|
<template #append>
|
|
|
{{ formState.currency }}
|
|
|
</template>
|
|
|
</a-input>
|
|
|
- <a-input v-model="formState.trafficBilling" v-if="formState.billingMethod == 1"></a-input>
|
|
|
- <a-select v-model="formState.trafficBillingType" style="width: 80px; margin:0 8px;"
|
|
|
+ <a-input v-model="formState.oldTrafficBilling" v-if="formState.billingMethod == 1"></a-input>
|
|
|
+ <a-select v-model="formState.oldTrafficBillingType" style="width: 80px; margin:0 8px;"
|
|
|
v-if="formState.billingMethod == 1">
|
|
|
<a-option value="MB">MB</a-option>
|
|
|
<a-option value="GB">GB</a-option>
|
|
|
<a-option value="KB">KB</a-option>
|
|
|
</a-select>
|
|
|
- <a-input v-model="formState.trafficBillingAmount" v-if="formState.billingMethod == 1">
|
|
|
+ <a-input v-model="formState.oldTrafficBillingAmount" v-if="formState.billingMethod == 1">
|
|
|
<template #append>
|
|
|
{{ formState.currency }}
|
|
|
</template>
|
|
|
</a-input>
|
|
|
- </a-form-item> -->
|
|
|
+ </a-form-item>
|
|
|
<a-form-item field="endDate" :label="$t('tariffManagement.cycleBuy')">
|
|
|
<a-date-picker v-model="formState.endDate" style="width: 100%;" />
|
|
|
</a-form-item>
|
|
|
<a-form-item :label="$t('tariffManagement.MRCName')" field="mrcAmount">
|
|
|
<a-input v-model="formState.mrcAmount">
|
|
|
<template #append>
|
|
|
- {{ formState.currency }}
|
|
|
+ {{ formState.currency }}
|
|
|
</template>
|
|
|
</a-input>
|
|
|
</a-form-item>
|
|
|
<a-form-item :label="$t('tariffManagement.networkName')" field="networkAccessFee">
|
|
|
<a-input v-model="formState.networkAccessFee">
|
|
|
<template #append>
|
|
|
- {{ formState.currency }}
|
|
|
+ {{ formState.currency }}
|
|
|
</template>
|
|
|
</a-input>
|
|
|
</a-form-item>
|
|
|
<a-form-item>
|
|
|
<a-button type="primary" html-type="submit" style="margin-right: 10px;">{{
|
|
|
$t('form.Confirm')
|
|
|
- }}
|
|
|
+ }}
|
|
|
</a-button>
|
|
|
<a-button @click="resetForm">{{ $t('form.Cancel') }}</a-button>
|
|
|
</a-form-item>
|
|
@@ -185,7 +185,11 @@ const state = ref({
|
|
|
// 网络接入费
|
|
|
"networkAccessFee": '',
|
|
|
"endDate": '',
|
|
|
- "testSimDataPlanId":null, // 测试流量包
|
|
|
+ "testSimDataPlanId": null, // 测试流量包
|
|
|
+ "oldPricing": "",
|
|
|
+ "oldTrafficBilling": "",
|
|
|
+ "oldTrafficBillingType": "MB",
|
|
|
+ "oldTrafficBillingAmount": ""
|
|
|
},
|
|
|
sourceList: [],
|
|
|
userIdList: [],
|
|
@@ -305,8 +309,13 @@ watch(() => formState.value.billingMethod, val => {
|
|
|
formState.value.trafficBillingType = ''
|
|
|
formState.value.trafficBilling = ''
|
|
|
formState.value.trafficBillingAmount = ''
|
|
|
+ formState.value.oldTrafficBilling = ""
|
|
|
+ formState.value.oldTrafficBillingType = ""
|
|
|
+ formState.value.oldTrafficBillingAmount = ""
|
|
|
} else {
|
|
|
formState.value.pricing = ''
|
|
|
+ formState.value.trafficBillingType = 'MB'
|
|
|
+ formState.value.oldTrafficBillingType = "MB"
|
|
|
}
|
|
|
})
|
|
|
|