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

main
cyl 1 year ago
parent 0914689103
commit b110961d37

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

@ -329,7 +329,13 @@
<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>
</el-upload> --> </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-row v-if="optType != 'view'">
<el-col :span="8"> <el-col :span="8">
<UploadBankSlip <UploadBankSlip

@ -237,7 +237,13 @@
width="1000px" width="1000px"
append-to-body 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-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="业务实体" prop="company"> <el-form-item label="业务实体" prop="company">

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

@ -384,7 +384,13 @@
只能上传图片PDFOFD文件 只能上传图片PDFOFD文件
</div> </div>
</el-upload> --> </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-row v-if="optType != 'view'">
<el-col :span="8"> <el-col :span="8">
<UploadInvoice <UploadInvoice

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

@ -210,7 +210,13 @@
width="1000px" width="1000px"
append-to-body 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-form-item label="业务实体" prop="company">
<el-select <el-select
v-model="form.company" v-model="form.company"

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

@ -244,7 +244,12 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="摘要" prop="digest"> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>

@ -285,6 +285,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>
@ -296,6 +297,7 @@
: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">
@ -326,6 +328,7 @@
:clearable="true" :clearable="true"
placeholder="请选择归属部门" placeholder="请选择归属部门"
:normalizer="normalizer" :normalizer="normalizer"
:disabled="treeDisabled"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -524,6 +527,8 @@ export default {
Authorization: "Bearer " + getAccessToken(), Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(), "tenant-id": getTenantId(),
}, // }, //
uploadDisabled: undefined,
treeDisabled: undefined,
fileList: [], // fileList: [], //
// //
deptOptions: undefined, deptOptions: undefined,
@ -759,11 +764,15 @@ export default {
this.fileList = []; this.fileList = [];
this.open = true; this.open = true;
this.optType = "add"; this.optType = "add";
this.treeDisabled = false;
this.uploadDisabled = true;
this.title = "添加资产档案"; this.title = "添加资产档案";
}, },
/** 查看按钮操作 */ /** 查看按钮操作 */
handleView(row) { handleView(row) {
this.reset(); this.reset();
this.treeDisabled = true;
this.uploadDisabled = false;
this.optType = "view"; this.optType = "view";
const id = row.id; const id = row.id;
getElectronicAssets(id).then((response) => { getElectronicAssets(id).then((response) => {
@ -776,6 +785,8 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id; const id = row.id;
this.treeDisabled = false;
this.uploadDisabled = true;
this.optType = "edit"; this.optType = "edit";
getElectronicAssets(id).then((response) => { getElectronicAssets(id).then((response) => {
this.form = response.data; this.form = response.data;

@ -335,6 +335,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>
@ -346,6 +347,7 @@
: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">
@ -376,6 +378,7 @@
:clearable="true" :clearable="true"
placeholder="请选择归属部门" placeholder="请选择归属部门"
:normalizer="normalizer" :normalizer="normalizer"
:disabled="treeDisabled"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -591,6 +594,8 @@ export default {
Authorization: "Bearer " + getAccessToken(), Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(), "tenant-id": getTenantId(),
}, // }, //
uploadDisabled: undefined,
treeDisabled: undefined,
fileList: [], // fileList: [], //
// //
deptOptions: undefined, deptOptions: undefined,
@ -818,12 +823,16 @@ export default {
this.fileList = []; this.fileList = [];
this.open = true; this.open = true;
this.optType = "add"; this.optType = "add";
this.treeDisabled = false;
this.uploadDisabled = true;
this.title = "添加咨询档案"; this.title = "添加咨询档案";
}, },
/** 查看按钮操作 */ /** 查看按钮操作 */
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;
getElectronicConsultation(id).then((response) => { getElectronicConsultation(id).then((response) => {
this.form = response.data; this.form = response.data;
@ -835,6 +844,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;
getElectronicConsultation(id).then((response) => { getElectronicConsultation(id).then((response) => {
this.form = response.data; this.form = response.data;

@ -349,8 +349,9 @@
: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"
drag drag
:limit="1" :limit="1"
@ -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;

@ -340,6 +340,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>
@ -350,6 +351,7 @@
: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">
@ -385,6 +387,7 @@
:clearable="true" :clearable="true"
placeholder="请选择归属部门" placeholder="请选择归属部门"
:normalizer="normalizer" :normalizer="normalizer"
:disabled="treeDisabled"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -609,6 +612,8 @@ export default {
Authorization: "Bearer " + getAccessToken(), Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(), "tenant-id": getTenantId(),
}, // }, //
uploadDisabled: undefined,
treeDisabled: undefined,
fileList: [], // fileList: [], //
// //
deptOptions: undefined, deptOptions: undefined,
@ -844,12 +849,16 @@ export default {
this.fileList = []; this.fileList = [];
this.open = true; this.open = true;
this.optType = "add"; this.optType = "add";
this.treeDisabled = false;
this.uploadDisabled = true;
this.title = "添加客诉档案"; this.title = "添加客诉档案";
}, },
/** 查看按钮操作 */ /** 查看按钮操作 */
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;
getElectronicCustomerComplaint(id).then((response) => { getElectronicCustomerComplaint(id).then((response) => {
this.form = response.data; this.form = response.data;
@ -861,6 +870,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;
getElectronicCustomerComplaint(id).then((response) => { getElectronicCustomerComplaint(id).then((response) => {
this.form = response.data; this.form = response.data;

@ -267,6 +267,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>
@ -277,6 +278,7 @@
: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">
@ -307,6 +309,7 @@
:clearable="true" :clearable="true"
placeholder="请选择归属部门" placeholder="请选择归属部门"
:normalizer="normalizer" :normalizer="normalizer"
:disabled="treeDisabled"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -689,6 +692,8 @@ export default {
"tenant-id": getTenantId(), "tenant-id": getTenantId(),
}, // }, //
optType: undefined, optType: undefined,
uploadDisabled: undefined,
treeDisabled: undefined,
fileList: [], // fileList: [], //
// //
deptOptions: undefined, deptOptions: undefined,
@ -983,11 +988,15 @@ 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 = "添加员工档案";
}, },
/** 查看按钮操作 */ /** 查看按钮操作 */
handleView(row) { handleView(row) {
this.reset(); this.reset();
this.treeDisabled = true;
this.uploadDisabled = false;
const id = row.id; const id = row.id;
getElectronicEmployee(id).then((response) => { getElectronicEmployee(id).then((response) => {
this.form = response.data; this.form = response.data;
@ -1000,6 +1009,8 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
this.treeDisabled = false;
this.uploadDisabled = true;
const id = row.id; const id = row.id;
getElectronicEmployee(id).then((response) => { getElectronicEmployee(id).then((response) => {
this.form = response.data; this.form = response.data;

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

Loading…
Cancel
Save