20 changed files with 854 additions and 108 deletions
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询欠薪情况列表
|
||||
|
export function listUnpaidWages(query) { |
||||
|
return request({ |
||||
|
url: '/build/unpaidWages/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询欠薪情况详细
|
||||
|
export function getUnpaidWages(id) { |
||||
|
return request({ |
||||
|
url: '/build/unpaidWages/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增欠薪情况
|
||||
|
export function addUnpaidWages(data) { |
||||
|
return request({ |
||||
|
url: '/build/unpaidWages', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改欠薪情况
|
||||
|
export function updateUnpaidWages(data) { |
||||
|
return request({ |
||||
|
url: '/build/unpaidWages', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除欠薪情况
|
||||
|
export function delUnpaidWages(id) { |
||||
|
return request({ |
||||
|
url: '/build/unpaidWages/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出欠薪情况
|
||||
|
export function exportUnpaidWages(query) { |
||||
|
return request({ |
||||
|
url: '/build/unpaidWages/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -1,3 +1,630 @@ |
|||||
<template> |
<template> |
||||
<div>333</div> |
<div class="app-container"> |
||||
|
<el-form |
||||
|
:model="queryParams" |
||||
|
ref="queryForm" |
||||
|
:inline="true" |
||||
|
v-show="showSearch" |
||||
|
> |
||||
|
<el-form-item label="发现日期" prop="discoveryDate"> |
||||
|
<el-date-picker |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
v-model="queryParams.discoveryDate" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择发现日期" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="是否清欠" prop="debtCollection"> |
||||
|
<el-select |
||||
|
v-model="queryParams.data.debtCollection" |
||||
|
placeholder="请选择是否清欠" |
||||
|
clearable |
||||
|
size="small" |
||||
|
@change="handleQuery" |
||||
|
> |
||||
|
<el-option |
||||
|
v-for="dict in debtCollectionOptions" |
||||
|
:key="dict.dictValue" |
||||
|
:label="dict.dictLabel" |
||||
|
:value="dict.dictValue" |
||||
|
/> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item> |
||||
|
<!-- <el-button |
||||
|
type="cyan" |
||||
|
icon="el-icon-search" |
||||
|
size="mini" |
||||
|
@click="handleQuery" |
||||
|
>搜索</el-button |
||||
|
> --> |
||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
||||
|
>重置</el-button |
||||
|
> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
|
||||
|
<el-row :gutter="10" class="mb8"> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
icon="el-icon-plus" |
||||
|
size="mini" |
||||
|
@click="handleAdd" |
||||
|
v-hasPermi="['build:unpaidWages:add']" |
||||
|
>新增</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="success" |
||||
|
icon="el-icon-edit" |
||||
|
size="mini" |
||||
|
:disabled="single" |
||||
|
@click="handleUpdate" |
||||
|
v-hasPermi="['build:unpaidWages:edit']" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="danger" |
||||
|
icon="el-icon-delete" |
||||
|
size="mini" |
||||
|
:disabled="multiple" |
||||
|
@click="handleDelete" |
||||
|
v-hasPermi="['build:unpaidWages:remove']" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<!-- <el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="warning" |
||||
|
icon="el-icon-download" |
||||
|
size="mini" |
||||
|
@click="handleExport" |
||||
|
v-hasPermi="['build:unpaidWages:export']" |
||||
|
>导出</el-button |
||||
|
> |
||||
|
</el-col> --> |
||||
|
<right-toolbar |
||||
|
:showSearch.sync="showSearch" |
||||
|
@queryTable="getList" |
||||
|
></right-toolbar> |
||||
|
</el-row> |
||||
|
|
||||
|
<el-table |
||||
|
v-loading="loading" |
||||
|
:data="unpaidWagesList" |
||||
|
@selection-change="handleSelectionChange" |
||||
|
> |
||||
|
<el-table-column type="selection" width="55" align="center" fixed /> |
||||
|
<el-table-column |
||||
|
label="序号" |
||||
|
type="index" |
||||
|
width="50" |
||||
|
align="center" |
||||
|
fixed |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="发现日期" |
||||
|
align="center" |
||||
|
prop="discoveryDate" |
||||
|
min-width="120" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<span>{{ parseTime(scope.row.discoveryDate, "{y}-{m}-{d}") }}</span> |
||||
</template> |
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="欠薪人数" |
||||
|
align="center" |
||||
|
prop="unpaidEmployeeCount" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="欠薪金额" |
||||
|
align="center" |
||||
|
prop="unpaidAmount" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="欠薪情况描述" |
||||
|
align="center" |
||||
|
prop="unpaidStatusText" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="处置日期" |
||||
|
align="center" |
||||
|
prop="disposalDate" |
||||
|
min-width="120" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<span>{{ parseTime(scope.row.disposalDate, "{y}-{m}-{d}") }}</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="处置详情" |
||||
|
align="center" |
||||
|
prop="disposalText" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="是否列入拖欠农民工工资失信联合惩戒对象名单" |
||||
|
align="center" |
||||
|
prop="wageNonpayment" |
||||
|
:formatter="wageNonpaymentFormat" |
||||
|
min-width="180" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="支付人数" |
||||
|
align="center" |
||||
|
prop="payCount" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="支付金额" |
||||
|
align="center" |
||||
|
prop="payAmount" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="是否清欠" |
||||
|
align="center" |
||||
|
prop="debtCollection" |
||||
|
:formatter="debtCollectionFormat" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<!-- <el-table-column |
||||
|
label="欠薪人数" |
||||
|
align="center" |
||||
|
prop="unpaidEmployeeCountB" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="欠薪金额" |
||||
|
align="center" |
||||
|
prop="unpaidAmountB" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="下一步计划" |
||||
|
align="center" |
||||
|
prop="nextPlan" |
||||
|
min-width="120" |
||||
|
/> --> |
||||
|
<el-table-column |
||||
|
label="操作" |
||||
|
align="center" |
||||
|
class-name="small-padding fixed-width" |
||||
|
width="180" |
||||
|
fixed="right" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-edit" |
||||
|
@click="handleUpdate(scope.row)" |
||||
|
v-hasPermi="['build:unpaidWages:edit']" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
v-hasPermi="['build:unpaidWages:remove']" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
|
||||
|
<pagination |
||||
|
v-show="total > 0" |
||||
|
:total="total" |
||||
|
:page.sync="queryParams.pageNum" |
||||
|
:limit.sync="queryParams.pageSize" |
||||
|
@pagination="getList" |
||||
|
/> |
||||
|
|
||||
|
<!-- 添加或修改欠薪情况对话框 --> |
||||
|
<el-dialog |
||||
|
:title="title" |
||||
|
:visible.sync="open" |
||||
|
width="1200px" |
||||
|
append-to-body |
||||
|
:close-on-click-modal="false" |
||||
|
> |
||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
||||
|
<el-form-item label="发现日期" prop="discoveryDate"> |
||||
|
<el-date-picker |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 100%" |
||||
|
v-model="form.discoveryDate" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择发现日期" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="欠薪人数" prop="unpaidEmployeeCount"> |
||||
|
<el-input |
||||
|
v-model="form.unpaidEmployeeCount" |
||||
|
placeholder="请输入欠薪人数" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="欠薪金额" prop="unpaidAmount"> |
||||
|
<el-input v-model="form.unpaidAmount" placeholder="请输入欠薪金额" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="欠薪情况描述" prop="unpaidStatusText"> |
||||
|
<el-input |
||||
|
v-model="form.unpaidStatusText" |
||||
|
type="textarea" |
||||
|
placeholder="请输入内容" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="处置日期" prop="disposalDate"> |
||||
|
<el-date-picker |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 100%" |
||||
|
v-model="form.disposalDate" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择处置日期" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="处置详情" prop="disposalText"> |
||||
|
<el-input |
||||
|
v-model="form.disposalText" |
||||
|
type="textarea" |
||||
|
placeholder="请输入内容" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item |
||||
|
label="是否列入拖欠农民工工资失信联合惩戒对象名单" |
||||
|
prop="wageNonpayment" |
||||
|
> |
||||
|
<el-select |
||||
|
v-model="form.wageNonpayment" |
||||
|
placeholder="请选择是否列入拖欠农民工工资失信联合惩戒对象名单" |
||||
|
style="width: 100%" |
||||
|
> |
||||
|
<el-option |
||||
|
v-for="dict in wageNonpaymentOptions" |
||||
|
:key="dict.dictValue" |
||||
|
:label="dict.dictLabel" |
||||
|
:value="dict.dictValue" |
||||
|
></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="支付人数" prop="payCount"> |
||||
|
<el-input v-model="form.payCount" placeholder="请输入支付人数" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="支付金额" prop="payAmount"> |
||||
|
<el-input v-model="form.payAmount" placeholder="请输入支付金额" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="是否清欠" prop="debtCollection"> |
||||
|
<el-select |
||||
|
v-model="form.debtCollection" |
||||
|
placeholder="请选择是否清欠" |
||||
|
style="width: 100%" |
||||
|
> |
||||
|
<el-option |
||||
|
v-for="dict in debtCollectionOptions" |
||||
|
:key="dict.dictValue" |
||||
|
:label="dict.dictLabel" |
||||
|
:value="dict.dictValue" |
||||
|
></el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="欠薪人数" prop="unpaidEmployeeCountB"> |
||||
|
<el-input |
||||
|
v-model="form.unpaidEmployeeCountB" |
||||
|
placeholder="请输入欠薪人数" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="欠薪金额" prop="unpaidAmountB"> |
||||
|
<el-input v-model="form.unpaidAmountB" placeholder="请输入欠薪金额" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="下一步计划" prop="nextPlan"> |
||||
|
<el-input v-model="form.nextPlan" placeholder="请输入下一步计划" /> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listUnpaidWages, |
||||
|
getUnpaidWages, |
||||
|
delUnpaidWages, |
||||
|
addUnpaidWages, |
||||
|
updateUnpaidWages, |
||||
|
exportUnpaidWages, |
||||
|
} from "@/api/build/unpaidWages"; |
||||
|
|
||||
|
export default { |
||||
|
name: "UnpaidWages", |
||||
|
props: ["proNo", "proCode"], |
||||
|
data() { |
||||
|
return { |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 欠薪情况表格数据 |
||||
|
unpaidWagesList: [], |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
// 是否列入拖欠农民工工资失信联合惩戒对象名单字典 |
||||
|
wageNonpaymentOptions: [], |
||||
|
// 是否清欠字典 |
||||
|
debtCollectionOptions: [], |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: { |
||||
|
discoveryDate: null, |
||||
|
unpaidEmployeeCount: null, |
||||
|
unpaidAmount: null, |
||||
|
unpaidStatusText: null, |
||||
|
disposalDate: null, |
||||
|
disposalText: null, |
||||
|
wageNonpayment: null, |
||||
|
payCount: null, |
||||
|
payAmount: null, |
||||
|
debtCollection: null, |
||||
|
unpaidEmployeeCountB: null, |
||||
|
unpaidAmountB: null, |
||||
|
nextPlan: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sortBy: "desc", |
||||
|
}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
// 表单校验 |
||||
|
rules: { |
||||
|
debtCollection: [ |
||||
|
{ required: true, message: "是否清欠不能为空", trigger: "change" }, |
||||
|
], |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
this.getDicts("whether").then((response) => { |
||||
|
this.wageNonpaymentOptions = response.data; |
||||
|
}); |
||||
|
this.getDicts("whether").then((response) => { |
||||
|
this.debtCollectionOptions = response.data; |
||||
|
}); |
||||
|
}, |
||||
|
methods: { |
||||
|
/** 查询欠薪情况列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
this.queryParams.data.proNo = this.proNo; |
||||
|
this.queryParams.data.proCode = this.proCode; |
||||
|
listUnpaidWages(this.queryParams).then((response) => { |
||||
|
this.unpaidWagesList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 是否列入拖欠农民工工资失信联合惩戒对象名单字典翻译 |
||||
|
wageNonpaymentFormat(row, column) { |
||||
|
return this.selectDictLabel( |
||||
|
this.wageNonpaymentOptions, |
||||
|
row.wageNonpayment |
||||
|
); |
||||
|
}, |
||||
|
// 是否清欠字典翻译 |
||||
|
debtCollectionFormat(row, column) { |
||||
|
return this.selectDictLabel( |
||||
|
this.debtCollectionOptions, |
||||
|
row.debtCollection |
||||
|
); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.form = { |
||||
|
id: null, |
||||
|
discoveryDate: null, |
||||
|
unpaidEmployeeCount: null, |
||||
|
unpaidAmount: null, |
||||
|
unpaidStatusText: null, |
||||
|
disposalDate: null, |
||||
|
disposalText: null, |
||||
|
wageNonpayment: null, |
||||
|
payCount: null, |
||||
|
payAmount: null, |
||||
|
debtCollection: null, |
||||
|
unpaidEmployeeCountB: null, |
||||
|
unpaidAmountB: null, |
||||
|
nextPlan: null, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
data: { |
||||
|
id: null, |
||||
|
discoveryDate: null, |
||||
|
unpaidEmployeeCount: null, |
||||
|
unpaidAmount: null, |
||||
|
unpaidStatusText: null, |
||||
|
disposalDate: null, |
||||
|
disposalText: null, |
||||
|
wageNonpayment: null, |
||||
|
payCount: null, |
||||
|
payAmount: null, |
||||
|
debtCollection: null, |
||||
|
unpaidEmployeeCountB: null, |
||||
|
unpaidAmountB: null, |
||||
|
nextPlan: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sortBy: "desc", |
||||
|
}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length !== 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.title = "添加欠薪情况"; |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
const id = row.id || this.ids; |
||||
|
getUnpaidWages(id).then((response) => { |
||||
|
this.form = response.data; |
||||
|
this.open = true; |
||||
|
this.title = "修改欠薪情况"; |
||||
|
}); |
||||
|
}, |
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
if (this.form.id != null) { |
||||
|
updateUnpaidWages(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
this.form.proNo = this.proNo; |
||||
|
this.form.proCode = this.proCode; |
||||
|
addUnpaidWages(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delUnpaidWages(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
/** 导出按钮操作 */ |
||||
|
handleExport() { |
||||
|
const queryParams = this.queryParams; |
||||
|
let message = "是否确认导出所有的数据项?"; |
||||
|
if (this.ids) { |
||||
|
message = "是否确认导出选中的数据项?"; |
||||
|
queryParams.ids = this.ids; |
||||
|
} |
||||
|
this.$confirm(message, "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return exportUnpaidWages(queryParams); |
||||
|
}) |
||||
|
.then((response) => { |
||||
|
this.downloadFile(response, true, response.msg); |
||||
|
// this.download(response.msg); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
//::v-deep { |
||||
|
// .el-dialog { |
||||
|
// margin-top: 10vh !important; |
||||
|
// } |
||||
|
//} |
||||
|
</style> |
||||
|
Loading…
Reference in new issue