|
@@ -129,17 +129,18 @@
|
|
|
</a-form-item>
|
|
|
<a-form-item field="" :label="$t('tariffManagement.pricing')" required>
|
|
|
<a-input v-model="formState.pricing" v-if="formState.billingMethod==2">
|
|
|
- <template #append >
|
|
|
+ <template #append>
|
|
|
{{ formState.currency === '0' ? '元' : '美金' }}
|
|
|
</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;" v-if="formState.billingMethod==1">
|
|
|
+ <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;"
|
|
|
+ v-if="formState.billingMethod==1">
|
|
|
<a-option value="KB">KB</a-option>
|
|
|
<a-option value="MB">MB</a-option>
|
|
|
<a-option value="GB">GB</a-option>
|
|
|
</a-select>
|
|
|
- <a-input v-model="formState.trafficBillingAmount" v-if="formState.billingMethod==1">
|
|
|
+ <a-input v-model="formState.trafficBillingAmount" v-if="formState.billingMethod==1">
|
|
|
<template #append>
|
|
|
{{ formState.currency === '0' ? '元' : '美金' }}
|
|
|
</template>
|
|
@@ -161,15 +162,15 @@
|
|
|
</a-input>
|
|
|
</a-form-item>
|
|
|
<a-form-item :label="$t('tariffManagement.MRCName')" field="mrcAmount">
|
|
|
- <a-input v-model="formState.mrcAmount" >
|
|
|
- <template #append >
|
|
|
+ <a-input v-model="formState.mrcAmount">
|
|
|
+ <template #append>
|
|
|
{{ formState.currency === '0' ? '元' : '美金' }}
|
|
|
</template>
|
|
|
</a-input>
|
|
|
</a-form-item>
|
|
|
<a-form-item :label="$t('tariffManagement.networkName')" field="networkAccessFee">
|
|
|
- <a-input v-model="formState.networkAccessFee" >
|
|
|
- <template #append >
|
|
|
+ <a-input v-model="formState.networkAccessFee">
|
|
|
+ <template #append>
|
|
|
{{ formState.currency === '0' ? '元' : '美金' }}
|
|
|
</template>
|
|
|
</a-input>
|
|
@@ -255,7 +256,7 @@ const intData = async () => {
|
|
|
return {
|
|
|
...item,
|
|
|
sourceName,
|
|
|
- pricingName:item.pricing!==''?item.pricing + '/' + pricingCurrty:'',
|
|
|
+ pricingName: item.pricing !== '' ? item.pricing + '/' + pricingCurrty : '',
|
|
|
billingCycleName,
|
|
|
feeCode: "NR0" + (index + 1),
|
|
|
status: "正常"
|
|
@@ -326,15 +327,15 @@ const formState = ref({
|
|
|
// 币种(必填)
|
|
|
"currency": "0",
|
|
|
// 流量资费计费
|
|
|
- "trafficBilling":'',
|
|
|
+ "trafficBilling": '',
|
|
|
// 流量资费计费类型
|
|
|
- "trafficBillingType":'',
|
|
|
+ "trafficBillingType": '',
|
|
|
// 流量资费计费金
|
|
|
- "trafficBillingAmount":'',
|
|
|
+ "trafficBillingAmount": '',
|
|
|
// MRC金额
|
|
|
- "mrcAmount":'',
|
|
|
+ "mrcAmount": '',
|
|
|
// 网络接入费
|
|
|
- "networkAccessFee":'',
|
|
|
+ "networkAccessFee": '',
|
|
|
|
|
|
"settlementCycleMap": {
|
|
|
"starTime": '',
|
|
@@ -405,8 +406,11 @@ const handleSubmit = ({values, errors}) => {
|
|
|
const dictShowModel = (type, data) => {
|
|
|
handleModelId()
|
|
|
formRef.value.resetFields();
|
|
|
- formState.value.settlementCycleMap.starTime = ''
|
|
|
- formState.value.settlementCycleMap.endTime = ''
|
|
|
+ if (formState.value.settlementCycleMap) {
|
|
|
+ formState.value.settlementCycleMap.starTime = ''
|
|
|
+ formState.value.settlementCycleMap.endTime = ''
|
|
|
+ }
|
|
|
+
|
|
|
typeCurrent.value = type;
|
|
|
|
|
|
// 编辑
|
|
@@ -418,7 +422,7 @@ const dictShowModel = (type, data) => {
|
|
|
})
|
|
|
formState.value.simDataPlanId = Number(formState.value.simDataPlanId)
|
|
|
formState.value.userId = Number(formState.value.userId)
|
|
|
- if (data.pricing!=='') {
|
|
|
+ if (data.pricing !== '') {
|
|
|
formState.value.pricing = data.pricing.match(/\d+/)[0] || ''
|
|
|
}
|
|
|
if (data.settlementCycle) {
|
|
@@ -454,9 +458,14 @@ const handleDataPlan = async () => {
|
|
|
// 取消
|
|
|
const resetForm = () => {
|
|
|
visible.value = false;
|
|
|
- Object.keys(formState.value).forEach(key=>{
|
|
|
- formState.value[key]= ''
|
|
|
+ Object.keys(formState.value).forEach(key => {
|
|
|
+ formState.value[key] = ''
|
|
|
})
|
|
|
+
|
|
|
+ formState.value.settlementCycleMap = {
|
|
|
+ starTime:'',
|
|
|
+ endTime:''
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// --------------------------------------------------------
|