功能移植--salary-newSalary(多员工检索)
| | |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | <el-date-picker v-model="query.salaryYearMonth" type="month" clearable placeholder="工资年月" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
| | | <el-date-picker v-model="query.salaryYearMonth" type="month" clearable placeholder="工资年月" style="width: 185px;margin-top: 6px" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
| | | <el-cascader |
| | | v-model="selectedValue" |
| | | :filterable="true" |
| | | :options="options" |
| | | :props="props" |
| | | clearable |
| | | collapse-tags |
| | | placeholder="所属员工" |
| | | :show-all-levels="false" |
| | | style="width: 230px" |
| | | @change="changeUserList" |
| | | /> |
| | | <rrOperation :crud="crud" /> |
| | | </div> |
| | | <!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'--> |
| | |
| | | // 个人所得税随机数 |
| | | individualIncomeTaxRandom: 0, |
| | | // 税后金额随机数 |
| | | afterTaxAmountRandom: 0 |
| | | afterTaxAmountRandom: 0, |
| | | selectedValue: [], |
| | | options: [], |
| | | props: { multiple: true } |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | crudUser.getAll().then(res => { |
| | | // 用户列表 |
| | | this.users = res |
| | | }) |
| | | crudUser.getUserDept().then(res => { |
| | | this.options = res |
| | | }) |
| | | }, |
| | | // 钩子: 开始 "新建/编辑" - 之前 |
| | |
| | | this.form.afterTaxAmount = (taxableAmount - this.form.individualIncomeTax) < 0 ? 0 : taxableAmount - this.form.individualIncomeTax |
| | | // 税后金额随机数 |
| | | this.afterTaxAmountRandom = Math.random() |
| | | }, |
| | | changeUserList(e) { |
| | | var tempList = [] |
| | | for (let i = 0; i < e.length; i++) { |
| | | var temp = e[i] |
| | | tempList.push(temp[e[i].length - 1]) |
| | | } |
| | | this.query.userIds = tempList |
| | | } |
| | | } |
| | | } |
| | |
| | | <div v-if="crud.props.searchToggle"> |
| | | <div> |
| | | <!-- 搜索 --> |
| | | <el-date-picker v-model="query.salaryYearMonth" type="month" clearable placeholder="工资年月" style="width: 185px;margin-top: 6px" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
| | | <el-cascader |
| | | v-model="selectedValue" |
| | | :filterable="true" |
| | | :options="options" |
| | | :props="props" |
| | | clearable |
| | | collapse-tags |
| | | placeholder="所属员工" |
| | | :show-all-levels="false" |
| | | style="width: 230px" |
| | | @change="changeUserList" |
| | | /> |
| | | <el-date-picker v-model="query.salaryYearMonth" type="month" clearable placeholder="工资年月" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
| | | <rrOperation :crud="crud" /> |
| | | </div> |
| | | </div> |
| | |
| | | // 个人所得税随机数 |
| | | individualIncomeTaxRandom: 0, |
| | | // 税后金额随机数 |
| | | afterTaxAmountRandom: 0, |
| | | selectedValue: [], |
| | | options: [], |
| | | props: { multiple: true } |
| | | afterTaxAmountRandom: 0 |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | this.form.afterTaxAmount = (taxableAmount - this.form.individualIncomeTax) < 0 ? 0 : taxableAmount - this.form.individualIncomeTax |
| | | // 税后金额随机数 |
| | | this.afterTaxAmountRandom = Math.random() |
| | | }, |
| | | changeUserList(e) { |
| | | var tempList = [] |
| | | for (let i = 0; i < e.length; i++) { |
| | | var temp = e[i] |
| | | tempList.push(temp[e[i].length - 1]) |
| | | } |
| | | this.query.userIds = tempList |
| | | } |
| | | } |
| | | } |