电子档案/会计档案所有查看禁止用户编辑

main
cyl 1 year ago
parent 0914689103
commit b110961d37

@ -183,6 +183,7 @@
:rules="rules"
label-width="140px"
style="margin-top: 20px"
:disabled="this.title === '查看会计附件'"
>
<el-row>
<el-col :span="8">

@ -329,7 +329,13 @@
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload> -->
<el-form ref="form" :model="form" :rules="rules" label-width="130px">
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="130px"
:disabled="this.title === '查看银行回单'"
>
<el-row v-if="optType != 'view'">
<el-col :span="8">
<UploadBankSlip

@ -237,7 +237,13 @@
width="1000px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="90px"
:disabled="this.title === '查看会计账簿'"
>
<el-row>
<el-col :span="8">
<el-form-item label="业务实体" prop="company">

@ -193,6 +193,7 @@
:rules="rules"
label-width="130px"
style="margin-top: 20px"
:disabled="this.title === '查看审批流程'"
>
<el-row>
<el-col :span="8">

@ -384,7 +384,13 @@
只能上传图片PDFOFD文件
</div>
</el-upload> -->
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="140px"
:disabled="this.title === '查看发票'"
>
<el-row v-if="optType != 'view'">
<el-col :span="8">
<UploadInvoice

@ -226,6 +226,7 @@
:rules="rules"
label-width="130px"
style="margin-top: 20px"
:disabled="this.title === '查看其他资料'"
>
<el-row>
<el-col :span="8">

@ -210,7 +210,13 @@
width="1000px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="90px"
:disabled="this.title === '查看会计报表'"
>
<el-form-item label="业务实体" prop="company">
<el-select
v-model="form.company"

@ -205,7 +205,13 @@
width="1200px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="100px"
:disabled="this.title === '查看会计凭证'"
>
<el-row>
<el-col :span="8">
<el-form-item label="业务实体名称" prop="company">
@ -310,7 +316,13 @@
<!-- 记账凭证 -->
<el-divider v-if="optType != 'add'"></el-divider>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="100px"
:disabled="this.title === '查看会计凭证'"
>
<el-row>
<el-col :span="8">
<el-form-item label="凭证号" prop="voucherNum">
@ -440,6 +452,7 @@
:model="form"
label-width="140px"
style="margin-top: 20px"
:disabled="this.title === '查看会计凭证'"
>
<el-row>
<el-col :span="8">
@ -515,6 +528,7 @@
:model="form"
label-width="130px"
style="margin-top: 20px"
:disabled="this.title === '查看会计凭证'"
>
<el-row>
<el-col :span="8">
@ -588,7 +602,12 @@
width="1200px"
append-to-body
>
<el-form ref="form" :model="form" label-width="140px">
<el-form
ref="form"
:model="form"
label-width="140px"
:disabled="this.title === '查看会计凭证'"
>
<el-divider>发票信息</el-divider>
<el-row>
<el-col :span="8">
@ -936,7 +955,12 @@
width="1200px"
append-to-body
>
<el-form ref="form" :model="form" label-width="130px">
<el-form
ref="form"
:model="form"
label-width="130px"
:disabled="this.title === '查看会计凭证'"
>
<el-divider>银行回单信息</el-divider>
<el-row>
<el-col :span="8">

@ -244,7 +244,12 @@
<el-row>
<el-col :span="8">
<el-form-item label="摘要" prop="digest">
<el-input v-model="form.digest" placeholder="请输入摘要" />
<el-input
v-model="form.digest"
type="textarea"
autosize
placeholder="请输入摘要"
/>
</el-form-item>
</el-col>
</el-row>

@ -285,6 +285,7 @@
name="multipartFile"
:multiple="false"
:accept="imgType"
v-show="uploadDisabled"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
@ -296,6 +297,7 @@
:rules="rules"
label-width="98px"
style="margin-top: 20px"
:disabled="this.title === '查看资产档案'"
>
<el-row>
<el-col :span="8">
@ -326,6 +328,7 @@
:clearable="true"
placeholder="请选择归属部门"
:normalizer="normalizer"
:disabled="treeDisabled"
/>
</el-form-item>
</el-col>
@ -524,6 +527,8 @@ export default {
Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(),
}, //
uploadDisabled: undefined,
treeDisabled: undefined,
fileList: [], //
//
deptOptions: undefined,
@ -759,11 +764,15 @@ export default {
this.fileList = [];
this.open = true;
this.optType = "add";
this.treeDisabled = false;
this.uploadDisabled = true;
this.title = "添加资产档案";
},
/** 查看按钮操作 */
handleView(row) {
this.reset();
this.treeDisabled = true;
this.uploadDisabled = false;
this.optType = "view";
const id = row.id;
getElectronicAssets(id).then((response) => {
@ -776,6 +785,8 @@ export default {
handleUpdate(row) {
this.reset();
const id = row.id;
this.treeDisabled = false;
this.uploadDisabled = true;
this.optType = "edit";
getElectronicAssets(id).then((response) => {
this.form = response.data;

@ -335,6 +335,7 @@
name="multipartFile"
:multiple="false"
:accept="imgType"
v-show="uploadDisabled"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
@ -346,6 +347,7 @@
:rules="rules"
label-width="98px"
style="margin-top: 20px"
:disabled="this.title === '查看咨询档案'"
>
<el-row>
<el-col :span="8">
@ -376,6 +378,7 @@
:clearable="true"
placeholder="请选择归属部门"
:normalizer="normalizer"
:disabled="treeDisabled"
/>
</el-form-item>
</el-col>
@ -591,6 +594,8 @@ export default {
Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(),
}, //
uploadDisabled: undefined,
treeDisabled: undefined,
fileList: [], //
//
deptOptions: undefined,
@ -818,12 +823,16 @@ export default {
this.fileList = [];
this.open = true;
this.optType = "add";
this.treeDisabled = false;
this.uploadDisabled = true;
this.title = "添加咨询档案";
},
/** 查看按钮操作 */
handleView(row) {
this.reset();
this.optType = "view";
this.treeDisabled = true;
this.uploadDisabled = false;
const id = row.id;
getElectronicConsultation(id).then((response) => {
this.form = response.data;
@ -835,6 +844,8 @@ export default {
handleUpdate(row) {
this.reset();
this.optType = "edit";
this.treeDisabled = false;
this.uploadDisabled = true;
const id = row.id;
getElectronicConsultation(id).then((response) => {
this.form = response.data;

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

@ -340,6 +340,7 @@
name="multipartFile"
:multiple="false"
:accept="imgType"
v-show="uploadDisabled"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
@ -350,6 +351,7 @@
:rules="rules"
label-width="98px"
style="margin-top: 20px"
:disabled="this.title === '查看客诉档案'"
>
<el-row>
<!-- <el-col :span="8">
@ -385,6 +387,7 @@
:clearable="true"
placeholder="请选择归属部门"
:normalizer="normalizer"
:disabled="treeDisabled"
/>
</el-form-item>
</el-col>
@ -609,6 +612,8 @@ export default {
Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(),
}, //
uploadDisabled: undefined,
treeDisabled: undefined,
fileList: [], //
//
deptOptions: undefined,
@ -844,12 +849,16 @@ export default {
this.fileList = [];
this.open = true;
this.optType = "add";
this.treeDisabled = false;
this.uploadDisabled = true;
this.title = "添加客诉档案";
},
/** 查看按钮操作 */
handleView(row) {
this.reset();
this.optType = "view";
this.treeDisabled = true;
this.uploadDisabled = false;
const id = row.id;
getElectronicCustomerComplaint(id).then((response) => {
this.form = response.data;
@ -861,6 +870,8 @@ export default {
handleUpdate(row) {
this.reset();
this.optType = "edit";
this.treeDisabled = false;
this.uploadDisabled = true;
const id = row.id;
getElectronicCustomerComplaint(id).then((response) => {
this.form = response.data;

@ -267,6 +267,7 @@
name="multipartFile"
:multiple="false"
:accept="imgType"
v-show="uploadDisabled"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
@ -277,6 +278,7 @@
:rules="rules"
label-width="98px"
style="margin-top: 20px"
:disabled="this.title === '查看员工档案'"
>
<el-row>
<el-col :span="8">
@ -307,6 +309,7 @@
:clearable="true"
placeholder="请选择归属部门"
:normalizer="normalizer"
:disabled="treeDisabled"
/>
</el-form-item>
</el-col>
@ -689,6 +692,8 @@ export default {
"tenant-id": getTenantId(),
}, //
optType: undefined,
uploadDisabled: undefined,
treeDisabled: undefined,
fileList: [], //
//
deptOptions: undefined,
@ -983,11 +988,15 @@ export default {
this.reset();
this.open = true;
this.optType = "add";
this.treeDisabled = false;
this.uploadDisabled = true;
this.title = "添加员工档案";
},
/** 查看按钮操作 */
handleView(row) {
this.reset();
this.treeDisabled = true;
this.uploadDisabled = false;
const id = row.id;
getElectronicEmployee(id).then((response) => {
this.form = response.data;
@ -1000,6 +1009,8 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
this.treeDisabled = false;
this.uploadDisabled = true;
const id = row.id;
getElectronicEmployee(id).then((response) => {
this.form = response.data;

@ -181,6 +181,7 @@
:on-success="handleSuccess"
name="multipartFile"
:multiple="false"
v-show="uploadDisabled"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
@ -192,6 +193,7 @@
:rules="rules"
label-width="130px"
style="margin-top: 20px"
:disabled="this.title === '查看其他档案'"
>
<el-row>
<el-col :span="8"> </el-col>
@ -217,6 +219,7 @@
:clearable="true"
placeholder="请选择归属部门"
:normalizer="normalizer"
:disabled="treeDisabled"
/>
</el-form-item>
</el-col>
@ -371,7 +374,7 @@ export default {
components: { Treeselect },
data() {
return {
optType: undefined,
optType:undefined,
//
deptOptions: undefined,
//
@ -602,13 +605,15 @@ export default {
this.fileList = [];
this.open = true;
this.optType = "add";
this.treeDisabled = false;
this.uploadDisabled = true;
this.title = "添加其他档案";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id;
getElectronicOther(id).then((response) => {
this.form = response.data;
this.open = true;
@ -647,6 +652,8 @@ export default {
/** 查看按钮操作 */
handleView(row) {
this.reset();
this.treeDisabled = true;
this.uploadDisabled = false;
this.optType = "view";
const id = row.id;
getElectronicOther(id).then((response) => {

Loading…
Cancel
Save