|
@@ -5,7 +5,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="addSetMeal">
|
|
|
- <a-button type="primary" @click="visible = true; Edit = true">新增套餐</a-button>
|
|
|
+ <a-button type="primary" @click="visible = true; Edit = true;Type=true">新增套餐</a-button>
|
|
|
<a-button @click="breakFlos">返回</a-button>
|
|
|
</div>
|
|
|
|
|
@@ -120,9 +120,10 @@ const state = ref({
|
|
|
id: "",
|
|
|
},
|
|
|
formRef: null,
|
|
|
- Edit: true
|
|
|
+ Edit: true,
|
|
|
+ Type:true
|
|
|
})
|
|
|
-const { pagination, visible, puyType, Currency, cyciy, tariffListData, Form, formRef, billingMethodList, Edit } = toRefs(state.value)
|
|
|
+const { pagination, visible, puyType, Currency, cyciy, tariffListData, Form, formRef, billingMethodList, Edit,Type } = toRefs(state.value)
|
|
|
|
|
|
const rules = {
|
|
|
label: [{ required: true, message: '套餐名称不能为空' }, {
|
|
@@ -170,8 +171,9 @@ const processData = (data) => {
|
|
|
typeName: item.type == 1 ? '服务时长' : "购买流量",
|
|
|
profitPrice: item.billingMethod == 1 ? '---' : item.profitPrice + item.currency,
|
|
|
billingMethod: filterDict(billingMethodList.value, item.billingMethod),
|
|
|
- costPrice: item.costPrice + item.trafficCurrency,
|
|
|
+ costPrice: item.billingMethod == 1? item.flow+item.flowUnit+'/'+ item.price +item.currency : item.costPrice + item.trafficCurrency,
|
|
|
oldPrice: item.billingMethod == 1 ? '---' : item.oldPrice + item.trafficCurrency,
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -252,6 +254,7 @@ const SetUpPackage = async (record) => {
|
|
|
Form.value.type = String(Form.value.type)
|
|
|
visible.value = true
|
|
|
Edit.value = false
|
|
|
+ Type.value = false
|
|
|
}
|
|
|
|
|
|
const breakFlos = () => {
|