|
|
|
|
@ -120,6 +120,18 @@
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queform.date"
|
|
|
|
|
type="month"
|
|
|
|
|
size="mini"
|
|
|
|
|
placeholder="选择年月"
|
|
|
|
|
value-format="yyyy-MM">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleBaohuogs" v-hasPermi="['secure:baohuo:sum']">查询员工总工时</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
@ -128,7 +140,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['pay:workOrderBaohuo:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
>信息导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
@ -712,7 +724,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listWorkOrderBaohuo, getWorkOrderBaohuo, delWorkOrderBaohuo, addWorkOrderBaohuo, updateWorkOrderBaohuo } from "@/api/pay/workOrderBaohuo";
|
|
|
|
|
import { listWorkOrderBaohuo, listWorkOrderBaohuoSum, getWorkOrderBaohuo, delWorkOrderBaohuo, addWorkOrderBaohuo, updateWorkOrderBaohuo } from "@/api/pay/workOrderBaohuo";
|
|
|
|
|
import { listTenant } from "@/api/pay/tenant";
|
|
|
|
|
import { listEmployeeInfo } from "@/api/pay/employeeInfo";
|
|
|
|
|
import { listProducts } from "@/api/pay/products";
|
|
|
|
|
@ -802,8 +814,9 @@ export default {
|
|
|
|
|
employeeList: [],
|
|
|
|
|
opena: false,
|
|
|
|
|
queform: {
|
|
|
|
|
date: null,
|
|
|
|
|
deptId: null
|
|
|
|
|
date: undefined,
|
|
|
|
|
deptId: undefined,
|
|
|
|
|
tenantId: undefined,
|
|
|
|
|
},
|
|
|
|
|
baohuogsList: [],
|
|
|
|
|
// 员工选择框
|
|
|
|
|
@ -882,6 +895,18 @@ export default {
|
|
|
|
|
this.getDeptTree();
|
|
|
|
|
this.getlistEmployee();
|
|
|
|
|
},
|
|
|
|
|
handleBaohuogs() {
|
|
|
|
|
this.queform.deptId = this.queryParams.deptId;
|
|
|
|
|
this.queform.tenantId = this.gsInfo.active_id;
|
|
|
|
|
if (this.queform.date != null && this.queform.date != '') {
|
|
|
|
|
listWorkOrderBaohuoSum(this.queform).then(response => {
|
|
|
|
|
this.baohuogsList = response.data
|
|
|
|
|
this.opena = true;
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$modal.msgError("请选择要查询的年月");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 查询时员工 */
|
|
|
|
|
getlistEmployee() {
|
|
|
|
|
listEmployeeInfo({ pageSize: 1000000000 }).then(response => {
|
|
|
|
|
@ -1165,7 +1190,7 @@ export default {
|
|
|
|
|
this.queryParams.exportDate = this.queform.date
|
|
|
|
|
this.download('pay/workOrderBaohuo/export', {
|
|
|
|
|
...this.queryParams
|
|
|
|
|
}, `workOrderBaohuo_${new Date().getTime()}.xlsx`)
|
|
|
|
|
}, `包活信息_${new Date().getTime()}.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 新增员工
|
|
|
|
|
|