|
@@ -313,7 +313,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { listSimplePosts } from "@/api/system/post";
|
|
import { listSimplePosts } from "@/api/system/post";
|
|
|
import { getEmployeeInfo } from "@/api/system/user";
|
|
import { getEmployeeInfo } from "@/api/system/user";
|
|
|
-import { listTurnover, getTurnover, delTurnover, addTurnover, updateTurnover, exportTurnover } from "@/api/personnel/attendance/turnover/index";
|
|
|
|
|
|
|
+import { listBusiness, getBusiness, delBusiness, addBusiness, updateBusiness, exportBusiness } from "@/api/personnel/attendance/business/index";
|
|
|
import PeopleSelect from "@/components/PeopleSelect/index.vue";
|
|
import PeopleSelect from "@/components/PeopleSelect/index.vue";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -511,7 +511,7 @@ export default {
|
|
|
getList() {
|
|
getList() {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
// 执行查询
|
|
// 执行查询
|
|
|
- listTurnover(this.queryParams).then(response => {
|
|
|
|
|
|
|
+ listBusiness(this.queryParams).then(response => {
|
|
|
this.typeList = response.data.list;
|
|
this.typeList = response.data.list;
|
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -563,7 +563,7 @@ export default {
|
|
|
handleDetail(row) {
|
|
handleDetail(row) {
|
|
|
this.reset();
|
|
this.reset();
|
|
|
const id = row.id;
|
|
const id = row.id;
|
|
|
- getTurnover(id).then(response => {
|
|
|
|
|
|
|
+ getBusiness(id).then(response => {
|
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
|
this.openDetail = true;
|
|
this.openDetail = true;
|
|
|
this.title = "详情";
|
|
this.title = "详情";
|
|
@@ -573,7 +573,7 @@ export default {
|
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
this.reset();
|
|
|
const id = row.id;
|
|
const id = row.id;
|
|
|
- getTurnover(id).then(response => {
|
|
|
|
|
|
|
+ getBusiness(id).then(response => {
|
|
|
let files = response.data.fileList;
|
|
let files = response.data.fileList;
|
|
|
if (files) {
|
|
if (files) {
|
|
|
this.files = [];
|
|
this.files = [];
|
|
@@ -599,13 +599,13 @@ export default {
|
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (this.form.id !== undefined) {
|
|
if (this.form.id !== undefined) {
|
|
|
- updateTurnover(this.form).then(response => {
|
|
|
|
|
|
|
+ updateBusiness(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
- addTurnover(this.form).then(response => {
|
|
|
|
|
|
|
+ addBusiness(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
this.getList();
|
|
this.getList();
|
|
@@ -618,7 +618,7 @@ export default {
|
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal.confirm('是否确认删除数据项?').then(function () {
|
|
this.$modal.confirm('是否确认删除数据项?').then(function () {
|
|
|
- return delTurnover(ids);
|
|
|
|
|
|
|
+ return delBusiness(ids);
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
this.$modal.msgSuccess("删除成功");
|
|
@@ -633,7 +633,7 @@ export default {
|
|
|
// 执行导出
|
|
// 执行导出
|
|
|
this.$modal.confirm('是否确认导出所有数据项?').then(() => {
|
|
this.$modal.confirm('是否确认导出所有数据项?').then(() => {
|
|
|
this.exportLoading = true;
|
|
this.exportLoading = true;
|
|
|
- return exportTurnover(params);
|
|
|
|
|
|
|
+ return exportBusiness(params);
|
|
|
}).then(response => {
|
|
}).then(response => {
|
|
|
this.$download.excel(response, '出差信息.xls');
|
|
this.$download.excel(response, '出差信息.xls');
|
|
|
this.exportLoading = false;
|
|
this.exportLoading = false;
|