|
|
@@ -22,7 +22,7 @@
|
|
|
maxlength="15"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="接待机构" prop="receptionOrgIds">
|
|
|
<org-tree-select v-model="formData.receptionOrgIds" ref="orgTreeSelect" :checkShow="true">
|
|
|
@@ -37,7 +37,7 @@
|
|
|
maxlength="100"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item prop="startTime" label="开具日期">
|
|
|
<!-- <el-date-picker
|
|
|
@@ -91,7 +91,7 @@
|
|
|
<h3>
|
|
|
<i class="el-icon-collection-tag"></i>
|
|
|
人员信息
|
|
|
- </h3>
|
|
|
+ </h3>
|
|
|
</el-col>
|
|
|
<el-col :offset="8" :span="2">
|
|
|
<h3>
|
|
|
@@ -102,8 +102,8 @@
|
|
|
@click="handleAddUser"
|
|
|
>新增来访人员</el-button
|
|
|
>
|
|
|
- </h3>
|
|
|
-
|
|
|
+ </h3>
|
|
|
+
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
@@ -119,9 +119,9 @@
|
|
|
<el-table-column label="证件号码" width="200" align="center" prop="idCard">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="证件图片" align="center" prop="imgFile">
|
|
|
- <template slot-scope="scope">
|
|
|
- <ImageListPreview v-model="scope.row.imgFile"></ImageListPreview>
|
|
|
- </template>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <ImageListPreview v-model="scope.row.imgFile"></ImageListPreview>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
@@ -142,7 +142,7 @@
|
|
|
</div>
|
|
|
|
|
|
<DialogCom
|
|
|
- title="添加来访人员"
|
|
|
+ :title="userPageTitle"
|
|
|
:visible.sync="open"
|
|
|
width="600px"
|
|
|
append-to-body
|
|
|
@@ -153,7 +153,7 @@
|
|
|
:model="userInfo"
|
|
|
:rules="userInfoRules"
|
|
|
label-width="120px"
|
|
|
- >
|
|
|
+ >
|
|
|
<el-form-item label="来访单位" prop="companyName">
|
|
|
<el-input v-model="userInfo.companyName" maxlength="20" placeholder="请输入来访单位" />
|
|
|
</el-form-item>
|
|
|
@@ -219,8 +219,8 @@ export default {
|
|
|
reasons: [{ required: true, message: "请输入来访事由" }],
|
|
|
letterNo: [{ required: true, message: "请输入介绍信编号" }],
|
|
|
receptionOrgIds: [{ required: true, message: "请选择接待机构" }],
|
|
|
- startTime: [{ required: true, message: "请选择开具日期" }],
|
|
|
- effectiveDays: [{ required: true, message: "请选择有效天数" }],
|
|
|
+ startTime: [{ required: true, message: "请选择开具日期" }],
|
|
|
+ effectiveDays: [{ required: true, message: "请选择有效天数" }],
|
|
|
userInfos: [{ required: true, message: "请添加来访人员" }],
|
|
|
letterFile:[{ required: true, message: "请上传介绍信附件" }],
|
|
|
},
|
|
|
@@ -264,6 +264,7 @@ export default {
|
|
|
description: null,
|
|
|
letterFile: [],
|
|
|
userInfos: [],
|
|
|
+ userPageTitle:null,
|
|
|
type:1,
|
|
|
status:0,
|
|
|
...other,
|
|
|
@@ -279,9 +280,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
|
|
|
- async show(id, other = {}) {
|
|
|
+ async show(id, other = {}) {
|
|
|
if (id) {
|
|
|
- this.title = "编辑介绍信";
|
|
|
+ this.title = "编辑介绍信";
|
|
|
this.isShow = true;
|
|
|
getLetter(id).then((response) => {
|
|
|
// let tempRange=[];
|
|
|
@@ -290,16 +291,17 @@ export default {
|
|
|
// response.data.range=tempRange;
|
|
|
this.formData = response.data;
|
|
|
this.formFileListDefualtValue=this.formData.letterFile;
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
- else
|
|
|
+ else
|
|
|
{
|
|
|
this.isShow = true;
|
|
|
this.title = "录入介绍信";
|
|
|
- this.formData = this.reset();
|
|
|
+ this.formData = this.reset();
|
|
|
}
|
|
|
},
|
|
|
handleAddUser() {
|
|
|
+ this.userPageTitle = '添加来访人员';
|
|
|
this.open = true;
|
|
|
},
|
|
|
imageListChanged(list) {
|
|
|
@@ -389,6 +391,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
editUser(row) {
|
|
|
+ this.userPageTitle = '编辑来访人员'
|
|
|
this.open = true;
|
|
|
this.userInfo = row;
|
|
|
},
|