页面修改

main
mo 1 year ago
parent b2714a6926
commit 57e2923c04

@ -17,20 +17,6 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<!-- <el-form-item label="业务实体" prop="company">-->
<!-- <el-input v-model="queryParams.company" placeholder="请输入业务实体" clearable-->
<!-- @keyup.enter.native="handleQuery"/>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="创建日期" prop="createTime">-->
<!-- <el-date-picker v-model="queryParams.createTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss"-->
<!-- type="daterange"-->
<!-- range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"-->
<!-- :default-time="['00:00:00', '23:59:59']"/>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="所属部门" prop="deptName">-->
<!-- <el-input v-model="queryParams.deptName" placeholder="请输入所属部门" clearable-->
<!-- @keyup.enter.native="handleQuery"/>-->
<!-- </el-form-item>-->
<el-form-item label="合同编号" prop="contractCode"> <el-form-item label="合同编号" prop="contractCode">
<el-input <el-input
v-model="queryParams.contractCode" v-model="queryParams.contractCode"
@ -206,20 +192,7 @@
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="业务实体" align="center" prop="company" /> <el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="所属部门" align="center" prop="deptName" /> <el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="合同编号" align="center" prop="contractCode" /> <el-table-column label="合同编号" align="center" prop="contractCode" />
<el-table-column label="合同名称" align="center" prop="contractTitle" /> <el-table-column label="合同名称" align="center" prop="contractTitle" />
@ -239,7 +212,7 @@
width="98px" width="98px"
> >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.signDate) }}</span> <span>{{ parseTime2(scope.row.signDate) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -249,7 +222,7 @@
width="98px" width="98px"
> >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.effectiveDate) }}</span> <span>{{ parseTime2(scope.row.effectiveDate) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -259,7 +232,7 @@
width="98px" width="98px"
> >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.expiryDate) }}</span> <span>{{ parseTime2(scope.row.expiryDate) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合同状态" align="center" prop="contractStatus"> <el-table-column label="合同状态" align="center" prop="contractStatus">
@ -271,7 +244,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="金额" align="center" prop="contractAmount" /> <el-table-column label="金额" align="center" prop="contractAmount" />
<el-table-column <!-- <el-table-column
label="查看附件" label="查看附件"
align="center" align="center"
prop="contractAttachment" prop="contractAttachment"
@ -285,23 +258,7 @@
{{ scope.row.contractAttachment }} {{ scope.row.contractAttachment }}
</el-button> </el-button>
</template> </template>
<!-- <template v-slot="scope">--> </el-table-column> -->
<!-- <image-preview v-if="isImg(scope.row.contractAttachment)" :src="scope.row.contractAttachment"-->
<!-- :width="'100px'"></image-preview>-->
<!-- <video v-else-if="isVideo(scope.row.contractAttachment)" :width="'100px'" type="video/mp4" poster="false.png"-->
<!-- autoplay="autoplay" controls="controls" loop="-1">-->
<!-- <source :src="scope.row.contractAttachment"/>-->
<!-- </video>-->
<!-- &lt;!&ndash; <img :src="scope.row.contractAttachment" alt="" width="60" height="60" class="imgs"/>&ndash;&gt;-->
<!-- <i v-if="isImg(scope.row.contractAttachment) === false &&isVideo(scope.row.contractAttachment) === false">-->
<!-- <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;"-->
<!-- :href="getFileUrl +19 + '/get' + cutFile(scope.row.contractAttachment) ">下载-->
<!-- </el-link>-->
<!-- </i>-->
<!-- </template>-->
</el-table-column>
<el-table-column label="处理结果" align="center" prop="handleResult"> <el-table-column label="处理结果" align="center" prop="handleResult">
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <dict-tag
@ -342,6 +299,17 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
@ -350,12 +318,19 @@
width="180px" width="180px"
> >
<template v-slot="scope"> <template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
v-if="scope.row.contractAttachment"
@click="handleViewFJ(scope.row)"
>查看附件
</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-view" icon="el-icon-view"
@click="handleView(scope.row)" @click="handleView(scope.row)"
v-hasPermi="['ea:electronic-contracts:update']"
>查看 >查看
</el-button> </el-button>
<el-button <el-button
@ -385,43 +360,6 @@
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />
<!--预览-->
<!-- <el-dialog :title="previewtitle" :visible.sync="preview" width="1000px" v-dialogDrag append-to-body>-->
<!-- <el-form ref="form" :model="form" :rules="rules" label-width="98px">-->
<!-- <el-form-item label="附件">-->
<!-- <fileUpload-->
<!-- v-model="form.contractAttachment"/>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<!-- <el-tabs>-->
<!-- <el-tab-pane label="附件" name="first" prop="contractAttachment" width="180">-->
<!-- <el-table v-loading="loading" :data="list">-->
<!-- <el-table-column label="附件" align="center" prop="contractAttachment">-->
<!-- <template v-slot="scope">-->
<!-- <image-preview v-if="isImg(scope.row.contractAttachment)" :src="scope.row.contractAttachment"-->
<!-- :width="'100px'"></image-preview>-->
<!-- <video v-else-if="isVideo(scope.row.contractAttachment)" :width="'100px'" type="video/mp4"-->
<!-- poster="false.png"-->
<!-- autoplay="autoplay" controls="controls" loop="-1">-->
<!-- <source :src="scope.row.contractAttachment"/>-->
<!-- </video>-->
<!-- <i-->
<!-- v-else-if="isImg(scope.row.contractAttachment) === false &&isVideo(scope.row.contractAttachment) === false">无法预览点击-->
<!-- <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;"-->
<!-- :href="getFileUrl +19 + '/get' + cutFile(scope.row.contractAttachment) ">下载-->
<!-- </el-link>-->
<!-- </i>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- </el-tab-pane>-->
<!-- </el-tabs>-->
<!-- </el-dialog>-->
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog <el-dialog
@ -568,7 +506,6 @@
placeholder="请选择会计年份" placeholder="请选择会计年份"
> >
</el-date-picker> </el-date-picker>
<!-- <el-date-picker clearable v-model="form.year" type="date" value-format="timestamp" placeholder="选择年度"/>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -582,7 +519,6 @@
placeholder="请选择会计月份" placeholder="请选择会计月份"
> >
</el-date-picker> </el-date-picker>
<!-- <el-date-picker clearable v-model="form.period" type="date" value-format="timestamp" placeholder="选择月份"/>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -628,7 +564,6 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="归档状态" prop="fileStatus"> <el-form-item label="归档状态" prop="fileStatus">
<el-select v-model="form.fileStatus" placeholder="请选择归档状态"> <el-select v-model="form.fileStatus" placeholder="请选择归档状态">
@ -667,7 +602,6 @@ import {
} from "@/api/ea/electronicContracts/electronicContracts"; } from "@/api/ea/electronicContracts/electronicContracts";
import FileUpload from "@/components/FileUpload"; import FileUpload from "@/components/FileUpload";
import ImagePreview from "@/components/ImagePreview"; import ImagePreview from "@/components/ImagePreview";
import Video from "@/components/VideoUpload";
import WxVideoPlayer from "@/views/mp/components/wx-video-play/main"; import WxVideoPlayer from "@/views/mp/components/wx-video-play/main";
export default { export default {
@ -741,7 +675,6 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
// console.log(imgs)
}, },
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
@ -852,12 +785,10 @@ export default {
this.optType = "add"; this.optType = "add";
this.title = "添加合同档案"; this.title = "添加合同档案";
}, },
/* 预览按钮*/ /** 查看附件按钮操作 */
handlePreview() { handleViewFJ(row) {
this.preview = true; this.openLink(row.contractAttachment);
this.previewtitle = "附件预览";
}, },
/** 查看按钮操作 */ /** 查看按钮操作 */
handleView(row) { handleView(row) {
this.reset(); this.reset();

Loading…
Cancel
Save