|
|
|
@ -23,15 +23,6 @@ |
|
|
|
|
<el-input v-model="formData.sort" placeholder="请输入排序" type="number" :min="0" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
|
<el-form-item label="成本模式" prop="costModel"> |
|
|
|
|
<el-radio-group v-model="formData.costModel"> |
|
|
|
|
<el-radio :label="0"> 总价 </el-radio> |
|
|
|
|
<el-radio :label="1"> 单价 </el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
|
<el-form-item label="状态" prop="status"> |
|
|
|
|
<el-radio-group v-model="formData.status"> |
|
|
|
@ -40,6 +31,39 @@ |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
|
<el-form-item label="开户费用" prop="accountFee"> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="formData.accountFee" |
|
|
|
|
:controls="false" |
|
|
|
|
style="width: 100%" |
|
|
|
|
:min="0" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
|
<el-form-item label="开户日期" prop="starendDate"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="formData.startDate" |
|
|
|
|
type="date" |
|
|
|
|
format="YYYY-MM-DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
placeholder="选择日期时间" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12" :offset="0"> |
|
|
|
|
<el-form-item label="到期日期" prop="endDate"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="formData.endDate" |
|
|
|
|
type="date" |
|
|
|
|
format="YYYY-MM-DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
placeholder="选择日期时间" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="24" :offset="0"> |
|
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
|
<el-input |
|
|
|
@ -71,14 +95,37 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column v-for="col in 12" :key="col" :label="`${col}月`" width="100px"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="row.monthData[col - 1].costMoney" |
|
|
|
|
size="small" |
|
|
|
|
:controls="false" |
|
|
|
|
style="width: 100%" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
<el-table-column label="充值"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="row.monthData[col - 1].rechargeMoney" |
|
|
|
|
size="small" |
|
|
|
|
:controls="false" |
|
|
|
|
style="width: 100%" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="消耗"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="row.monthData[col - 1].costMoney" |
|
|
|
|
size="small" |
|
|
|
|
:controls="false" |
|
|
|
|
style="width: 100%" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="线索数"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="row.monthData[col - 1].clueNum" |
|
|
|
|
size="small" |
|
|
|
|
:controls="false" |
|
|
|
|
style="width: 100%" |
|
|
|
|
:min="0" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
@ -177,7 +224,9 @@ function handleAddPrice() { |
|
|
|
|
for (let i = 1; i <= 12; i++) { |
|
|
|
|
obj.monthData.push({ |
|
|
|
|
month: i, |
|
|
|
|
costMoney: undefined |
|
|
|
|
costMoney: undefined, |
|
|
|
|
rechargeMoney: undefined, |
|
|
|
|
clueNum: 0 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (!formData.value.sourceCostVOS) { |
|
|
|
|