|
@@ -26,7 +26,7 @@
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item
|
|
|
- :disabled="form.status > 0"
|
|
|
+ disabled
|
|
|
@click.native="pleaseCheck"
|
|
|
>请核数据</el-dropdown-item
|
|
|
>
|
|
@@ -872,11 +872,14 @@
|
|
|
class="schoolupload"
|
|
|
>
|
|
|
<template slot="excelTemplate">
|
|
|
- <div style="display:flex">
|
|
|
- <el-button type="primary" @click="derivation">
|
|
|
- 点击下载<i class="el-icon-download el-icon--right"></i>
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
+ <el-button type="primary" @click="derivation">
|
|
|
+ 点击下载<i class="el-icon-download el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ <template slot="date">
|
|
|
+ <span>
|
|
|
+ {{ time }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</avue-form>
|
|
|
<p style="text-align: center;color: #DC0505">
|
|
@@ -914,12 +917,34 @@
|
|
|
reportName="高中部"
|
|
|
@onClose="onClose()"
|
|
|
></report-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="温馨提示"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ width="70%"
|
|
|
+ :before-close="handleClose"
|
|
|
+ append-to-body
|
|
|
+ class='abnormal'
|
|
|
+ >
|
|
|
+ <span>
|
|
|
+ <avue-crud :data="auditList" :option="auditOption">
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-button type="info" size="small" @click.stop="exportAbnormal()"
|
|
|
+ >导出
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </avue-crud></span
|
|
|
+ >
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false">关闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { getToken } from "@/util/auth";
|
|
|
+import { dateFormat } from "@/util/date";
|
|
|
import {
|
|
|
detail,
|
|
|
copyDetail,
|
|
@@ -931,12 +956,14 @@ import {
|
|
|
calculate
|
|
|
} from "@/api/salaryManagement/primarySchool";
|
|
|
import { numCal } from "@/util/calculate";
|
|
|
-import { optionList } from "./js/optionList";
|
|
|
+import { optionList, auditOption } from "./js/optionList";
|
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
|
data() {
|
|
|
return {
|
|
|
+ time: "",
|
|
|
+ dialogVisible: false,
|
|
|
switchDialog: false,
|
|
|
annexLoading: false,
|
|
|
crudForm: {},
|
|
@@ -968,12 +995,11 @@ export default {
|
|
|
label: "模板下载",
|
|
|
prop: "excelTemplate",
|
|
|
formslot: true,
|
|
|
- span: 8
|
|
|
+ span: 10
|
|
|
},
|
|
|
{
|
|
|
- label: "日期",
|
|
|
+ label: "当前时间",
|
|
|
prop: "date",
|
|
|
- type: "datetime",
|
|
|
span: 13
|
|
|
},
|
|
|
{
|
|
@@ -1187,7 +1213,9 @@ export default {
|
|
|
450,
|
|
|
500
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+ auditList: [],
|
|
|
+ auditOption: auditOption
|
|
|
};
|
|
|
},
|
|
|
props: {
|
|
@@ -1207,8 +1235,14 @@ export default {
|
|
|
}
|
|
|
this.optionList.height = 450;
|
|
|
this.annexOption.height = 450;
|
|
|
+ this.auditOption.height = 600;
|
|
|
},
|
|
|
methods: {
|
|
|
+ getTime() {
|
|
|
+ setInterval(() => {
|
|
|
+ this.time = dateFormat(new Date());
|
|
|
+ }, 1000);
|
|
|
+ },
|
|
|
cellStyle() {
|
|
|
return "padding:0;height:40px;";
|
|
|
},
|
|
@@ -1509,6 +1543,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.excelBox = true;
|
|
|
+ this.getTime();
|
|
|
},
|
|
|
//导出全部
|
|
|
exportAll() {
|
|
@@ -1676,14 +1711,14 @@ export default {
|
|
|
},
|
|
|
openEdit() {
|
|
|
const data = {
|
|
|
- moduleName: "xxb",
|
|
|
+ moduleName: "gzb",
|
|
|
tableName: "primary_school",
|
|
|
billId: this.form.id,
|
|
|
no: localStorage.getItem("browserID"),
|
|
|
billNo: this.form.annual + "-" + this.form.moon
|
|
|
};
|
|
|
this.inDetailsKey(this.$route.name, {
|
|
|
- moduleName: "xxb",
|
|
|
+ moduleName: "gzb",
|
|
|
tableName: "primary_school",
|
|
|
billId: this.form.id,
|
|
|
billNo: this.form.annual + "-" + this.form.moon
|
|
@@ -1711,25 +1746,41 @@ export default {
|
|
|
}).then(() => {
|
|
|
const data = {
|
|
|
id: this.form.id,
|
|
|
- checkType: "gzgz",
|
|
|
+ checkType: "xsgz",
|
|
|
url: "/salaryManagement/primarySchool/index",
|
|
|
pageStatus: "this.$store.getters.domSaleStatus",
|
|
|
pageLabel: "高中部",
|
|
|
checkFlag: 2
|
|
|
};
|
|
|
pleaseCheck(data).then(res => {
|
|
|
- this.$message.success("请核成功");
|
|
|
- this.detailData.status = 1;
|
|
|
- this.option.disabled = true;
|
|
|
- this.getDetail(this.form.id);
|
|
|
+ if (res.data.msg == "请核失败") {
|
|
|
+ this.dialogVisible = true;
|
|
|
+ this.auditList = res.data.data;
|
|
|
+ } else {
|
|
|
+ this.$message.success("请核成功");
|
|
|
+ this.detailData.status = 1;
|
|
|
+ this.option.disabled = true;
|
|
|
+ this.getDetail(this.form.id);
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ handleClose() {
|
|
|
+ this.auditList = [];
|
|
|
+ this.dialogVisible = false
|
|
|
+ },
|
|
|
+ exportAbnormal() {
|
|
|
+ window.open(
|
|
|
+ `/api//blade-school/salaryitem/export/exception?${
|
|
|
+ this.website.tokenHeader
|
|
|
+ }=${getToken()}&pid=${this.form.id}`
|
|
|
+ );
|
|
|
+ },
|
|
|
//返回列表
|
|
|
backToList() {
|
|
|
if (this.form.id) {
|
|
|
this.unLock({
|
|
|
- moduleName: "xxb",
|
|
|
+ moduleName: "gzb",
|
|
|
tableName: "primary_school",
|
|
|
billId: this.form.id,
|
|
|
billNo: this.form.annual + "-" + this.form.moon
|
|
@@ -2023,4 +2074,7 @@ export default {
|
|
|
.schoolupload ::v-deep .el-upload-list {
|
|
|
display: none;
|
|
|
}
|
|
|
+.abnormal ::v-deep .el-dialog__body {
|
|
|
+ padding: 10px 20px;
|
|
|
+}
|
|
|
</style>
|