dev-cl
qsh 4 months ago
parent 9180d14ede
commit f8a6617a7a
  1. 24
      src/views/Finance/Commission/Comp/DialogPlan.vue
  2. 8
      src/views/Home/Salary/index.vue

@ -146,7 +146,23 @@
</el-row> </el-row>
<el-divider direction="horizontal" /> <el-divider direction="horizontal" />
<el-row :gutter="20">
<el-col :span="12" :offset="0">
<el-form-item label="包含区域提成" labelWidth="150px">
<el-radio-group v-model="formData.quyuticheng">
<el-radio :label="true"> </el-radio>
<el-radio :label="false"> </el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12" :offset="0">
<el-form-item label="接待提成比例" labelWidth="150px">
<el-input v-model="formData.jiedaiticheng" placeholder="比例" clearable>
<template #suffix> % </template>
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12" :offset="0"> <el-col :span="12" :offset="0">
<el-form-item label="是否扣除其他支出" labelWidth="150px"> <el-form-item label="是否扣除其他支出" labelWidth="150px">
@ -303,13 +319,15 @@ const resetForm = () => {
rateRules: [], rateRules: [],
isDeductExtraPay: true, isDeductExtraPay: true,
isDeductAfterSale: true, isDeductAfterSale: true,
calculateType: 1 calculateType: 1,
jiedaiticheng: undefined,
quyuticheng: false
} }
formRef.value?.resetFields() formRef.value?.resetFields()
} }
function handleAddRules() { function handleAddRules() {
formData.value.rules.push(formData.value.rules[0]) formData.value.rules.push({ ...formData.value.rules[0] })
} }
const emit = defineEmits(['success']) const emit = defineEmits(['success'])

@ -285,13 +285,15 @@
</el-button> </el-button>
<el-button <el-button
type="danger" type="danger"
v-if="row.id && !row.isConfirm" v-if="row.id"
:disabled="row.status == 1"
style="padding: 0" style="padding: 0"
text text
v-hasPermi="['home:salary:sealup']" v-hasPermi="['home:salary:sealup']"
@click="handleSealup(row)" @click="handleSealup(row)"
> >
封存 <span v-if="row.status == 0">封存</span>
<span v-else-if="row.status == 1">已封存</span>
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -359,7 +361,7 @@ async function getList() {
tableList.value = data.list.map((it, index) => ({ tableList.value = data.list.map((it, index) => ({
...it, ...it,
id: index + 1, id: index + 1,
edit: it.isConfirm ? '2' : '0' edit: it.status == 1 ? '2' : '0'
})) }))
} }
total.value = data.total total.value = data.total

Loading…
Cancel
Save