qsh 2 weeks ago
parent 24e540f151
commit 7e771a89e4
  1. 85
      src/views/Clue/Set/Comp/DialogSource.vue
  2. 2
      src/views/MiniMall/MallSet/Comp/SupplierSet.vue

@ -23,15 +23,6 @@
<el-input v-model="formData.sort" placeholder="请输入排序" type="number" :min="0" /> <el-input v-model="formData.sort" placeholder="请输入排序" type="number" :min="0" />
</el-form-item> </el-form-item>
</el-col> </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-col :span="12" :offset="0">
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-radio-group v-model="formData.status"> <el-radio-group v-model="formData.status">
@ -40,6 +31,39 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </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-col :span="24" :offset="0">
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input <el-input
@ -71,14 +95,37 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-for="col in 12" :key="col" :label="`${col}月`" width="100px"> <el-table-column v-for="col in 12" :key="col" :label="`${col}月`" width="100px">
<template #default="{ row }"> <el-table-column label="充值">
<el-input-number <template #default="{ row }">
v-model="row.monthData[col - 1].costMoney" <el-input-number
size="small" v-model="row.monthData[col - 1].rechargeMoney"
:controls="false" size="small"
style="width: 100%" :controls="false"
/> style="width: 100%"
</template> />
</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-column>
</el-table> </el-table>
@ -177,7 +224,9 @@ function handleAddPrice() {
for (let i = 1; i <= 12; i++) { for (let i = 1; i <= 12; i++) {
obj.monthData.push({ obj.monthData.push({
month: i, month: i,
costMoney: undefined costMoney: undefined,
rechargeMoney: undefined,
clueNum: 0
}) })
} }
if (!formData.value.sourceCostVOS) { if (!formData.value.sourceCostVOS) {

@ -17,7 +17,7 @@
</el-form> </el-form>
<el-table v-loading="loading" :data="tableList"> <el-table v-loading="loading" :data="tableList">
<el-table-column prop="label" label="供应商名称" /> <el-table-column prop="label" label="供应商名称" />
<!-- <el-table-column prop="" label="微信群名称" /> --> <el-table-column prop="wechatGroup" label="微信群名称" />
<el-table-column prop="sort" label="排序" width="100px" /> <el-table-column prop="sort" label="排序" width="100px" />
<el-table-column prop="remark" label="备注" /> <el-table-column prop="remark" label="备注" />
<el-table-column <el-table-column

Loading…
Cancel
Save