|
@@ -76,16 +76,6 @@
|
|
|
>重置</el-button
|
|
>重置</el-button
|
|
|
>
|
|
>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <!-- <el-col :span="1.5">
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- @click="handleAdd"
|
|
|
|
|
- v-hasPermi="['core:letter:add']"
|
|
|
|
|
- >录入介绍信</el-button
|
|
|
|
|
- >
|
|
|
|
|
- </el-col> -->
|
|
|
|
|
<right-toolbar
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
:showSearch.sync="showSearch"
|
|
|
@queryTable="getList"
|
|
@queryTable="getList"
|
|
@@ -97,11 +87,11 @@
|
|
|
height="650"
|
|
height="650"
|
|
|
border
|
|
border
|
|
|
:data="outInRecrodList"
|
|
:data="outInRecrodList"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
|
|
|
+
|
|
|
>
|
|
>
|
|
|
<el-table-column label="序号" align="center" type="index" width="70" />
|
|
<el-table-column label="序号" align="center" type="index" width="70" />
|
|
|
<el-table-column label="出入人员" prop="userName" align="center" width="100" />
|
|
<el-table-column label="出入人员" prop="userName" align="center" width="100" />
|
|
|
- <el-table-column label="证件号" prop="idCard" align="center" width="100" />
|
|
|
|
|
|
|
+ <el-table-column label="证件号" prop="idCard" align="center" width="180" />
|
|
|
<el-table-column label="人员单位" prop="companyName" align="center" width="100" />
|
|
<el-table-column label="人员单位" prop="companyName" align="center" width="100" />
|
|
|
<el-table-column label="出入类型" header-align="center" align="left" prop="type" width="150">
|
|
<el-table-column label="出入类型" header-align="center" align="left" prop="type" width="150">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -123,6 +113,12 @@
|
|
|
width="120"
|
|
width="120"
|
|
|
>
|
|
>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="出入时间" align="center" width="300">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>{{ scope.row.arrivalTime }}~</span>
|
|
|
|
|
+ <span v-if="scope.row.departureTime">{{ scope.row.departureTime }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="核验结果" width="250" align="center" prop="checkImage">
|
|
<el-table-column label="核验结果" width="250" align="center" prop="checkImage">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<ImageListPreview v-model="scope.row.imgFile"></ImageListPreview>
|
|
<ImageListPreview v-model="scope.row.imgFile"></ImageListPreview>
|
|
@@ -133,21 +129,17 @@
|
|
|
<K-file-upload ref="upload" :isShowUploadBtn="false"
|
|
<K-file-upload ref="upload" :isShowUploadBtn="false"
|
|
|
:defaultValue="scope.row.letterFile"
|
|
:defaultValue="scope.row.letterFile"
|
|
|
/>
|
|
/>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="出入时间" align="center" width="250">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span>{{ scope.row.arrivalTime }}</span>
|
|
|
|
|
- <span v-if="scope.row.departureTime">~{{ scope.row.departureTime }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="操作"
|
|
label="操作"
|
|
|
header-align="center"
|
|
header-align="center"
|
|
|
align="left"
|
|
align="left"
|
|
|
width="100"
|
|
width="100"
|
|
|
|
|
+ fixed="right"
|
|
|
class-name="small-padding fixed-width"
|
|
class-name="small-padding fixed-width"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -171,7 +163,7 @@
|
|
|
@pagination="getList"
|
|
@pagination="getList"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
- <!-- <dialog-add-letter ref="dialogAddLetter" @success="handleQuery(true)"></dialog-add-letter> -->
|
|
|
|
|
|
|
+ <dialog-out-in-detail ref="dialogDetail" @success="handleQuery(true)"></dialog-out-in-detail>
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -186,8 +178,9 @@ import KFileUpload from "@/components/K-FileUpload/index.vue";
|
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
|
import OrgTree from "@/components/orgTree";
|
|
import OrgTree from "@/components/orgTree";
|
|
|
import DataRangePicker from "@/components/dateTime/daterange.picker.vue";
|
|
import DataRangePicker from "@/components/dateTime/daterange.picker.vue";
|
|
|
|
|
+import dialogOutInDetail from "./dialog.outIn.detail.vue";
|
|
|
export default {
|
|
export default {
|
|
|
- components: {OrgTree,KFileUpload,DataRangePicker},
|
|
|
|
|
|
|
+ components: {OrgTree,KFileUpload,DataRangePicker,dialogOutInDetail},
|
|
|
dicts: ["letter_status",'out_in_type'],
|
|
dicts: ["letter_status",'out_in_type'],
|
|
|
name: "outInLog",
|
|
name: "outInLog",
|
|
|
data() {
|
|
data() {
|
|
@@ -254,12 +247,6 @@ export default {
|
|
|
this.resetForm("queryForm");
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
|
},
|
|
},
|
|
|
- // 多选框选中数据
|
|
|
|
|
- handleSelectionChange(selection) {
|
|
|
|
|
- this.ids = selection.map((item) => item.id);
|
|
|
|
|
- this.single = selection.length !== 1;
|
|
|
|
|
- this.multiple = !selection.length;
|
|
|
|
|
- },
|
|
|
|
|
getDefaultKey(key) {
|
|
getDefaultKey(key) {
|
|
|
this.queryParams.orgId = key;
|
|
this.queryParams.orgId = key;
|
|
|
this.getList();
|
|
this.getList();
|
|
@@ -275,55 +262,9 @@ export default {
|
|
|
this.queryParams.orgId = data.id;
|
|
this.queryParams.orgId = data.id;
|
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
|
},
|
|
},
|
|
|
- /** 新增按钮操作 */
|
|
|
|
|
- handleAdd() {
|
|
|
|
|
- this.$refs["dialogAddLetter"].show(null, {});
|
|
|
|
|
- },
|
|
|
|
|
- /** 修改按钮操作 */
|
|
|
|
|
- handleUpdate(row) {
|
|
|
|
|
- // this.reset();
|
|
|
|
|
- // const id = row.id || this.ids
|
|
|
|
|
- this.$refs["dialogAddLetter"].show(row.id, {});
|
|
|
|
|
- },
|
|
|
|
|
- handleUseLetter(row) {
|
|
|
|
|
- updateLetterStatus({ id: row.id, status: 1 }).then((response) => {
|
|
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
|
|
- this.getList();
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- handleDetailInfo(row) {},
|
|
|
|
|
- /** 提交按钮 */
|
|
|
|
|
- submitForm() {
|
|
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
|
|
- if (valid) {
|
|
|
|
|
- if (this.form.id != null) {
|
|
|
|
|
- updateLetter(this.form).then((response) => {
|
|
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
|
|
- this.getList();
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- addLetter(this.form).then((response) => {
|
|
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
|
|
- this.getList();
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- /** 删除按钮操作 */
|
|
|
|
|
- handleDelete(row) {
|
|
|
|
|
- const ids = row.id || this.ids;
|
|
|
|
|
- this.$modal
|
|
|
|
|
- .confirm('是否确认删除介绍信编号为"' + ids + '"的数据项?')
|
|
|
|
|
- .then(function () {
|
|
|
|
|
- return delLetter(ids);
|
|
|
|
|
- })
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- this.getList();
|
|
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
|
|
- })
|
|
|
|
|
- .catch(() => {});
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ handleDetailInfo(row) {
|
|
|
|
|
+ this.$refs["dialogDetail"].show(row.id);
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|