|
|
@ -349,6 +349,7 @@
|
|
|
|
:visible.sync="open"
|
|
|
|
:visible.sync="open"
|
|
|
|
width="1000px"
|
|
|
|
width="1000px"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-upload
|
|
|
|
<el-upload
|
|
|
|
class="upload-demo"
|
|
|
|
class="upload-demo"
|
|
|
@ -361,6 +362,7 @@
|
|
|
|
name="multipartFile"
|
|
|
|
name="multipartFile"
|
|
|
|
:multiple="false"
|
|
|
|
:multiple="false"
|
|
|
|
:accept="imgType"
|
|
|
|
:accept="imgType"
|
|
|
|
|
|
|
|
v-show="uploadDisabled"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<i class="el-icon-upload"></i>
|
|
|
|
<i class="el-icon-upload"></i>
|
|
|
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
@ -371,7 +373,9 @@
|
|
|
|
:rules="rules"
|
|
|
|
:rules="rules"
|
|
|
|
label-width="98px"
|
|
|
|
label-width="98px"
|
|
|
|
style="margin-top: 20px"
|
|
|
|
style="margin-top: 20px"
|
|
|
|
|
|
|
|
:disabled='this.title==="查看合同档案"'
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="业务实体" prop="company">
|
|
|
|
<el-form-item label="业务实体" prop="company">
|
|
|
@ -401,6 +405,7 @@
|
|
|
|
:clearable="true"
|
|
|
|
:clearable="true"
|
|
|
|
placeholder="请选择归属部门"
|
|
|
|
placeholder="请选择归属部门"
|
|
|
|
:normalizer="normalizer"
|
|
|
|
:normalizer="normalizer"
|
|
|
|
|
|
|
|
:disabled = "treeDisabled"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
@ -637,6 +642,8 @@ export default {
|
|
|
|
fileList: [], // 文件列表
|
|
|
|
fileList: [], // 文件列表
|
|
|
|
getFileUrl: process.env.VUE_APP_BASE_API + "/admin-api/infra/file/",
|
|
|
|
getFileUrl: process.env.VUE_APP_BASE_API + "/admin-api/infra/file/",
|
|
|
|
imgs: null,
|
|
|
|
imgs: null,
|
|
|
|
|
|
|
|
uploadDisabled:undefined,
|
|
|
|
|
|
|
|
treeDisabled:undefined,
|
|
|
|
// 部门树选项
|
|
|
|
// 部门树选项
|
|
|
|
deptOptions: undefined,
|
|
|
|
deptOptions: undefined,
|
|
|
|
// 非单个禁用
|
|
|
|
// 非单个禁用
|
|
|
@ -908,6 +915,8 @@ export default {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.optType = "add";
|
|
|
|
this.optType = "add";
|
|
|
|
|
|
|
|
this.treeDisabled = false;
|
|
|
|
|
|
|
|
this.uploadDisabled = true;
|
|
|
|
this.title = "添加合同档案";
|
|
|
|
this.title = "添加合同档案";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 查看附件按钮操作 */
|
|
|
|
/** 查看附件按钮操作 */
|
|
|
@ -918,6 +927,8 @@ export default {
|
|
|
|
handleView(row) {
|
|
|
|
handleView(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.optType = "view";
|
|
|
|
this.optType = "view";
|
|
|
|
|
|
|
|
this.treeDisabled = true;
|
|
|
|
|
|
|
|
this.uploadDisabled = false;
|
|
|
|
const id = row.id;
|
|
|
|
const id = row.id;
|
|
|
|
getElectronicContracts(id).then((response) => {
|
|
|
|
getElectronicContracts(id).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
@ -931,6 +942,8 @@ export default {
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.optType = "edit";
|
|
|
|
this.optType = "edit";
|
|
|
|
|
|
|
|
this.treeDisabled = false;
|
|
|
|
|
|
|
|
this.uploadDisabled = true;
|
|
|
|
const id = row.id;
|
|
|
|
const id = row.id;
|
|
|
|
getElectronicContracts(id).then((response) => {
|
|
|
|
getElectronicContracts(id).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|