Commit 56b5289c authored by 黄奎's avatar 黄奎

页面修改

parent b1d520d0
...@@ -15,12 +15,26 @@ ...@@ -15,12 +15,26 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<td>
全部
</td>
<td>
微途账户基金
</td>
<td>
{{allzb}}%
</td>
<td>
</td>
</tr>
<tr v-for="(item,index) in dataList" :key="index"> <tr v-for="(item,index) in dataList" :key="index">
<td>{{item.EmployeeName}}</td> <td>{{item.EmployeeName}}</td>
<td>{{item.DepartmentName}}</td> <td>{{item.DepartmentName}}</td>
<td>{{item.CommissionPercent}}%</td> <td>{{item.CommissionPercent}}%</td>
<td> <td>
<el-button @click="SetRules(item)" style="padding:4px" type="primary" icon="el-icon-edit" circle></el-button> <el-button @click="SetRules(item)" style="padding:4px" type="primary" icon="el-icon-edit" circle>
</el-button>
<el-button @click="Delete(item)" style="padding:4px" type="danger" icon="el-icon-delete" circle></el-button> <el-button @click="Delete(item)" style="padding:4px" type="danger" icon="el-icon-delete" circle></el-button>
</td> </td>
</tr> </tr>
...@@ -31,7 +45,6 @@ ...@@ -31,7 +45,6 @@
</table> </table>
<el-dialog title="提成规则" :visible.sync="ruleVisible" width="400px"> <el-dialog title="提成规则" :visible.sync="ruleVisible" width="400px">
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="人员" prop="EmployeeId"> <el-form-item label="人员" prop="EmployeeId">
<el-select class="multiple_input" filterable v-model="form.EmployeeId"> <el-select class="multiple_input" filterable v-model="form.EmployeeId">
<el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId" <el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId"
...@@ -55,7 +68,7 @@ ...@@ -55,7 +68,7 @@
export default { export default {
data() { data() {
return { return {
allzb: 100, allzb: 100, //剩余百分比
dataList: [], dataList: [],
loading: false, loading: false,
ruleVisible: false, ruleVisible: false,
...@@ -99,7 +112,6 @@ ...@@ -99,7 +112,6 @@
this.getList() this.getList()
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
}) })
}) })
...@@ -127,9 +139,9 @@ ...@@ -127,9 +139,9 @@
let newnum = 0; let newnum = 0;
if (this.form.Id) { if (this.form.Id) {
this.dataList.forEach(item => { this.dataList.forEach(item => {
if (item.Id != this.form.Id) { if (item.Id != this.form.Id) {
num += item.CommissionPercent; num += item.CommissionPercent;
} }
}) })
newnum = 100 - num; newnum = 100 - num;
} else { } else {
...@@ -181,12 +193,12 @@ ...@@ -181,12 +193,12 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
// allzb
let num=0; let num = 0;
this.dataList.forEach(item=>{ this.dataList.forEach(item => {
num+=item.CommissionPercent; num += item.CommissionPercent;
}) })
this.allzb=100-num; this.allzb = 100 - num;
} }
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment