|
@@ -168,6 +168,19 @@
|
|
|
>下载附件</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button type="primary" size="mini" :disabled="multiple" @click="toExamine"
|
|
|
+ >批量审核</el-button
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-date-picker
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ v-model="examineTime"
|
|
|
+ type="datetime"
|
|
|
+ placeholder="选择审批日期时间"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
|
@queryTable="getList"
|
|
@@ -363,11 +376,24 @@
|
|
|
<ImagePreview :src="srcList" :width="100" :height="100" />
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="审批意见" width="400px" :visible.sync="examineVisible">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :rows="3"
|
|
|
+ v-model="content"
|
|
|
+ placeholder="请填写审批意见"
|
|
|
+ ></el-input>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="batchExamineRecord(3)">驳 回</el-button>
|
|
|
+ <el-button type="primary" @click="batchExamineRecord(2)">同 意</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listRecord } from "@/api/system/record";
|
|
|
+import { listRecord, batchExamineRecord } from "@/api/system/record";
|
|
|
import { deptTreeSelect } from "@/api/system/user";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -379,6 +405,10 @@ export default {
|
|
|
components: { Treeselect },
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 审核弹窗
|
|
|
+ examineVisible: false,
|
|
|
+ // 审核意见
|
|
|
+ content: "",
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 选中数组
|
|
@@ -405,7 +435,8 @@ export default {
|
|
|
initPassword: undefined,
|
|
|
// 日期范围
|
|
|
dateRange: [],
|
|
|
- datResearch:[],
|
|
|
+ datResearch: [],
|
|
|
+ examineTime: "",
|
|
|
// 岗位选项
|
|
|
postOptions: [],
|
|
|
// 角色选项
|
|
@@ -515,7 +546,7 @@ export default {
|
|
|
this.queryParams.startTime = this.dateRange[0];
|
|
|
this.queryParams.endTime = this.dateRange[1];
|
|
|
}
|
|
|
- if(this.datResearch.length>0){
|
|
|
+ if (this.datResearch.length > 0) {
|
|
|
this.queryParams.researchStart = this.datResearch[0];
|
|
|
this.queryParams.researchEnd = this.datResearch[1];
|
|
|
}
|
|
@@ -570,6 +601,37 @@ export default {
|
|
|
this.srcList = row.annexUrl;
|
|
|
this.open = true;
|
|
|
},
|
|
|
+ /** 批量审核 */
|
|
|
+ toExamine() {
|
|
|
+ // if (!this.examineTime) {
|
|
|
+ // this.$modal.msgWarning("请先选择审批日期时间!");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ this.examineVisible = true;
|
|
|
+ },
|
|
|
+ batchExamineRecord(status) {
|
|
|
+ if (!this.content) {
|
|
|
+ this.$modal.msgWarning("请填写审批意见!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let data = {
|
|
|
+ id: this.ids.toString(),
|
|
|
+ processStatus: status,
|
|
|
+ content: this.content,
|
|
|
+ examineTime: this.examineTime,
|
|
|
+ };
|
|
|
+ batchExamineRecord(data).then((response) => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ this.getList();
|
|
|
+ this.examineVisible = false;
|
|
|
+ this.content = "";
|
|
|
+ this.$modal.msgSuccess("操作成功");
|
|
|
+ }
|
|
|
+ // this.userList = response.rows;
|
|
|
+ // this.total = response.total;
|
|
|
+ // this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 下载附件 */
|
|
|
handleDownload(row) {
|
|
|
const ids = this.ids.toString();
|