|
@@ -44,13 +44,13 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
<!-- 计费周期-->
|
|
|
- <a-form-item field="label" :label="$t('tariffManagement.ChargingCycle')">
|
|
|
- <a-select v-model="formState.pricingUnit" style="width: 140px; margin-left: 8px;" :placeholder="$t('lotCard.ChargingCycleName')">
|
|
|
- <a-option value="天">天</a-option>
|
|
|
- <a-option value="年">年</a-option>
|
|
|
- <a-option value="月">月</a-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
+<!-- <a-form-item field="label" :label="$t('tariffManagement.ChargingCycle')">-->
|
|
|
+<!-- <a-select v-model="formState.pricingUnit" style="width: 140px; margin-left: 8px;" :placeholder="$t('lotCard.ChargingCycleName')">-->
|
|
|
+<!-- <a-option value="天">天</a-option>-->
|
|
|
+<!-- <a-option value="年">年</a-option>-->
|
|
|
+<!-- <a-option value="月">月</a-option>-->
|
|
|
+<!-- </a-select>-->
|
|
|
+<!-- </a-form-item>-->
|
|
|
<a-form-item>
|
|
|
<a-space>
|
|
|
<a-button type="primary" @click="handleSearch">{{ $t('form.Search') }}</a-button>
|
|
@@ -184,11 +184,11 @@
|
|
|
</a-form-item>
|
|
|
<a-form-item field="bagSize" :label="$t('tariffManagement.bagSize')">
|
|
|
<a-input v-model="formState.bagSize" :placeholder="$t('tariffManagement.bagSize')"/>
|
|
|
- <a-select v-model="formState.bagSizeUnit" style="width: 80px; margin-left: 8px;">
|
|
|
- <a-option value="KB">KB</a-option>
|
|
|
- <a-option value="MB">MB</a-option>
|
|
|
- <a-option value="GB">GB</a-option>
|
|
|
- </a-select>
|
|
|
+<!-- <a-select v-model="formState.bagSizeUnit" style="width: 80px; margin-left: 8px;">-->
|
|
|
+<!-- <a-option value="KB">KB</a-option>-->
|
|
|
+<!-- <a-option value="MB">MB</a-option>-->
|
|
|
+<!-- <a-option value="GB">GB</a-option>-->
|
|
|
+<!-- </a-select>-->
|
|
|
</a-form-item>
|
|
|
<a-form-item field="pricing" :label="$t('tariffManagement.pricing')" required>
|
|
|
<a-input v-model="formState.pricing" :placeholder="$t('tariffManagement.pricing')">
|
|
@@ -196,11 +196,11 @@
|
|
|
元
|
|
|
</template>
|
|
|
</a-input>
|
|
|
- <a-select v-model="formState.pricingUnit" style="width: 80px; margin-left: 8px;" placeholder="周期分类">
|
|
|
- <a-option value="天">天</a-option>
|
|
|
- <a-option value="年">年</a-option>
|
|
|
- <a-option value="月">月</a-option>
|
|
|
- </a-select>
|
|
|
+<!-- <a-select v-model="formState.pricingUnit" style="width: 80px; margin-left: 8px;" placeholder="周期分类">-->
|
|
|
+<!-- <a-option value="天">天</a-option>-->
|
|
|
+<!-- <a-option value="年">年</a-option>-->
|
|
|
+<!-- <a-option value="月">月</a-option>-->
|
|
|
+<!-- </a-select>-->
|
|
|
</a-form-item>
|
|
|
<a-form-item field="settlementCycle" :label="$t('tariffManagement.cycleBuy')">
|
|
|
<a-input v-model="formState.settlementCycleMap.starTime">
|
|
@@ -439,8 +439,8 @@ const handleSubmit = ({values, errors}) => {
|
|
|
if (!errors) {
|
|
|
const formVal = JSON.parse(JSON.stringify(values))
|
|
|
delete formVal.settlementCycleMap
|
|
|
- delete formVal.bagSizeUnit
|
|
|
- delete formVal.pricingUnit
|
|
|
+ // delete formVal.bagSizeUnit
|
|
|
+ // delete formVal.pricingUnit
|
|
|
|
|
|
formVal.currency = '1'
|
|
|
formVal.userId = Number(values.userId)
|
|
@@ -453,12 +453,12 @@ const handleSubmit = ({values, errors}) => {
|
|
|
duration: 2000,
|
|
|
})
|
|
|
}
|
|
|
- if (values.bagSize && values.bagSizeUnit) {
|
|
|
- values.bagSize = values.bagSize + values.bagSizeUnit
|
|
|
- }
|
|
|
- if (values.pricingUnit) {
|
|
|
- values.pricing = values.pricing + '元/' + values.pricingUnit
|
|
|
- }
|
|
|
+ // if (values.bagSize && values.bagSizeUnit) {
|
|
|
+ // values.bagSize = values.bagSize + values.bagSizeUnit
|
|
|
+ // }
|
|
|
+ // if (values.pricingUnit) {
|
|
|
+ // values.pricing = values.pricing + '元/' + values.pricingUnit
|
|
|
+ // }
|
|
|
if (formState.value.id) {
|
|
|
const {code, data} = await updateTariff(formVal)
|
|
|
|
|
@@ -499,11 +499,11 @@ const dictShowModel = (type, data) => {
|
|
|
formState.value.simDataPlanId = Number(formState.value.simDataPlanId)
|
|
|
formState.value.userId = Number(formState.value.userId)
|
|
|
if (data.bagSize) {
|
|
|
- formState.value.bagSizeUnit = data.bagSize.replace(/\d/g, '')
|
|
|
+ // formState.value.bagSizeUnit = data.bagSize.replace(/\d/g, '')
|
|
|
formState.value.bagSize = data.bagSize.match(/\d+/)[0]
|
|
|
}
|
|
|
if (data.pricing) {
|
|
|
- formState.value.pricingUnit = data.pricing.split('/')[1] || ''
|
|
|
+ // formState.value.pricingUnit = data.pricing.split('/')[1] || ''
|
|
|
formState.value.pricing = data.pricing.match(/\d+/)[0] || ''
|
|
|
}
|
|
|
if (data.settlementCycle) {
|
|
@@ -590,10 +590,10 @@ const handleDictValue = () => {
|
|
|
const dictList = JSON.parse(window.localStorage.getItem('dictList')) ?? []
|
|
|
sourceList.value = dictList.filter((item) => item.typeKey == enum_dict.SOURCE)
|
|
|
trafficList.value = dictList.filter((item) => item.typeKey == enum_dict.BILLING_TYPE) // 计费分类
|
|
|
- cycleist.value = dictList.filter((item) => item.typeKey == enum_dict.billingCycle)
|
|
|
- typeList.value = dictList.filter((item) => item.typeKey == enum_dict.billingType)
|
|
|
+ cycleist.value = dictList.filter((item) => item.typeKey == enum_dict.BILLING_CYCLE)
|
|
|
+ typeList.value = dictList.filter((item) => item.typeKey == enum_dict.BILLING_CYCLE)
|
|
|
methodList.value = dictList.filter((item) => item.typeKey == enum_dict.BILLING_METHOD)
|
|
|
- settlementCycleMap.value = dictList.filter((item) => item.typeKey == enum_dict.settlementCycle)
|
|
|
+ // settlementCycleMap.value = dictList.filter((item) => item.typeKey == enum_dict.settlementCycle)
|
|
|
currency.value = dictList.filter(item=>item.typeKey == enum_dict.CURRENCY_TYPE)
|
|
|
}
|
|
|
|