Browse Source

完善合同审核

zhanglei
yunuo970428 2 years ago
parent
commit
b244ed3e97
  1. 6
      anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js
  2. 425
      anrui-buscenter/anrui-buscenter-ui/src/components/uploadFile/upload.vue
  3. 14
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  4. 124
      anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue
  5. 85
      anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue
  6. 78
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo.vue
  7. 336
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo.vue
  8. 311
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit.vue
  9. 43
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganYiBanInfo.vue

6
anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js

@ -21,7 +21,7 @@ export function saveContract(data) {
export function updateContract(data) {
return request({
url: '/base/v1/commoncontract/update/' + data.sid,
url: '/base/v1/commoncontract/update',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
@ -31,7 +31,7 @@ export function updateContract(data) {
// 编辑回显
export function getOneContract(data) {
return request({
url: '/base/v1/commoncontract/fetchSid/' + data,
url: '/base/v1/commoncontract/getCommonContract/' + data,
method: 'get'
})
}
@ -70,7 +70,7 @@ export function submitVehicleApply(params) {
// 流程审批(同意)
export function complete(params) {
return request({
url: '/base/v1/commoncontract/complete',
url: '/base/v1/commoncontract/completeBy',
method: 'post',
data: params
})

425
anrui-buscenter/anrui-buscenter-ui/src/components/uploadFile/upload.vue

@ -1,7 +1,7 @@
<template>
<div>
<el-upload ref="imgUpload" v-loading="loadding" class="avatar-uploader" :headers="accessToken"
:action="uploadFile" accept=".jpg,.jpeg,.png,.bmp,.pdf,.JPG,.JPEG,.BMP" list-type="picture-card"
:action="uploadFile" accept=".jpg,.jpeg,.png,.JPG,.JPEG" list-type="picture-card"
:file-list="files" :on-remove="removeImage" :on-preview="handlePictureCardPreview"
:on-progress="uploadProgrees"
:on-error="uploadError" :on-success="uploadImgSuccess_FuJian">
@ -10,248 +10,237 @@
<el-dialog :visible.sync="dialogVisible" :append-to-body="true" title="查看图片">
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
<!-- <el-upload list-type="picture-card" :on-preview="handlePictureCardPreview" :on-remove="handleRemove">-->
<!-- <i class="el-icon-plus"></i>-->
<!-- </el-upload>-->
<!-- <el-dialog :visible.sync="dialogVisible">-->
<!-- <img width="100%" :src="dialogImageUrl" alt="">-->
<!-- </el-dialog>-->
<!-- <el-upload class="upload-demo" :headers="accessToken" :action="uploadFile" :accept="accept" :data="uploadData" :on-success="uploadImgSuccess_FuJian" :on-remove="handleRemove" :file-list="fileList_FuJian">-->
<!-- <el-button size="small" type="primary">点击上传</el-button>-->
<!-- &lt;!&ndash; <el-button v-show="isview" size="small" type="primary" @click="view()">查看</el-button> &ndash;&gt;-->
<!-- &lt;!&ndash; <div slot="tip" class="el-upload__tip">单个文件大小不允许超过100M,支持上传文件类型{{ accept }}</div> &ndash;&gt;-->
<!-- </el-upload>-->
</div>
</template>
<script>
import {uploadFile} from '@/api/jichuxinxi/file.js'
import {getStorage} from '@/utils/auth.js' //token
import {mapGetters} from 'vuex'
import { uploadFile } from '@/api/jichuxinxi/file.js'
import { getStorage } from '@/utils/auth.js'
import { mapGetters } from 'vuex'
export default {
model: {
prop: 'name',
event: 'change',
export default {
model: {
prop: 'name',
event: 'change'
},
props: {
placeholder: {
type: String,
default: ''
},
props: {
placeholder: {
type: String,
default: '',
},
bucket: {
type: String,
default: 'abc',
},
//
width: {
type: String,
default: '270px',
},
limit: {
type: Number,
default: 1,
},
accept: {
type: String,
default:
'.jpg,.jpeg,.png,.bmp,.pdf,.JPG,.JPEG,.BMP,.PDF,.xls,.docx,.xlsx,.ppt,.pptx',
},
//
name: {
type: Array,
required: true,
},
uploadData: {
type: Object,
default: {},
},
bucket: {
type: String,
default: 'abc'
},
data() {
return {
dialogImageUrl: '',
dialogVisible: false,
accessToken: null,
uploadFile: uploadFile,
fileList_FuJian: [],
enclosure: '',
file_add: '',
file_catch: '',
files: [],
files_list: [],
filedUrl: '',
// fileUrl: fileUrl,
// showpicture:false,
isview: false,
nameArr: '',
loadding: false,
stateName: '',
}
//
width: {
type: String,
default: '270px'
},
computed: {
...mapGetters([
'id',
'departmentCode',
'departmentLevel',
'departmentType',
'token',
]),
limit: {
type: Number,
default: 1
},
watch: {
name: {
deep: true,
immediate: true,
handler(newVal, oldVal) {
console.log('aaaa1', newVal)
console.log('aaaa2', oldVal)
this.files = newVal
if (this.stateName = 'xunidingjinAdd') {
if (this.files.length > 1) {
this.files.splice(0, 1);
}
}
console.log('aaaa2this.files', this.files)
},
},
accept: {
type: String,
default:
'.jpg,.jpeg,.png,.bmp,.pdf,.JPG,.JPEG,.BMP,.PDF,.xls,.docx,.xlsx,.ppt,.pptx'
},
mounted() {
this.$nextTick(() => {
this.Init()
})
//
name: {
type: Array,
required: true
},
created() {
this.uploadFile = uploadFile //
this.accessToken = {
token: getStorage(),
uploadData: {
type: Object,
default: {}
}
},
data() {
return {
dialogImageUrl: '',
dialogVisible: false,
accessToken: null,
uploadFile: uploadFile,
fileList_FuJian: [],
enclosure: '',
file_add: '',
file_catch: '',
files: [],
files_list: [],
filedUrl: '',
// fileUrl: fileUrl,
// showpicture:false,
isview: false,
nameArr: '',
loadding: false,
stateName: ''
}
},
computed: {
...mapGetters([
'id',
'departmentCode',
'departmentLevel',
'departmentType',
'token'
])
},
watch: {
name: {
deep: true,
immediate: true,
handler(newVal, oldVal) {
console.log('aaaa1', newVal)
console.log('aaaa2', oldVal)
this.files = newVal
// if (this.stateName = 'xunidingjinAdd') {
// if (this.files.length > 1) {
// this.files.splice(0, 1);
// }
// }
console.log('aaaa2this.files', this.files)
}
}
},
mounted() {
this.$nextTick(() => {
this.Init()
})
},
created() {
this.uploadFile = uploadFile //
this.accessToken = {
token: getStorage()
}
},
methods: {
showImg(imgList) {
this.stateName = 'xunidingjinAdd'
this.files = imgList
console.log('回显图片', this.files)
},
methods: {
showImg(imgList) {
this.stateName = 'xunidingjinAdd'
this.files = imgList
console.log('回显图片', this.files)
},
view() {
// window.open(this.filedUrl)
},
//
Init() {
if (this.name !== undefined) {
this.files = []
for (var i = 0; i < this.name.length; i++) {
this.files.push({
name: this.name[i],
url: this.name[i],
})
}
}
},
// --
uploadImgSuccess_FuJian(response, file, fileList) {
console.log('您选择的file:', file)
if (file.response.code === '200') {
this.loadding = false
//
this.filedUrl = this.fileUrl + file.response.data
// var uid = file.response.data
view() {
// window.open(this.filedUrl)
},
//
Init() {
if (this.name !== undefined) {
this.files = []
for (var i = 0; i < this.name.length; i++) {
this.files.push({
name: file.response.data.sourceFileName,
url: file.response.data.fullUrl,
size: file.response.data.size,
name: this.name[i],
url: this.name[i]
})
this.$emit('change', this.files)
this.$emit('eett', this.files)
}
},
}
},
// --
uploadImgSuccess_FuJian(response, file, fileList) {
console.log('您选择的file:', file)
if (file.response.code === '200') {
this.loadding = false
//
this.filedUrl = this.fileUrl + file.response.data
// var uid = file.response.data
this.files.push({
name: file.response.data.sourceFileName,
url: file.response.data.fullUrl,
filePath: file.response.data.filePath,
size: file.response.data.size
})
this.$emit('change', this.files)
this.$emit('eett', this.files)
}
},
removeImage(file, ImageFileList) {
this.files.splice(this.files.indexOf(file), 1)
const imgFiles = []
removeImage(file, ImageFileList) {
this.files.splice(this.files.indexOf(file), 1)
const imgFiles = []
this.files.forEach((o) => {
imgFiles.push(o.url)
})
this.$emit('fileChange', this.files)
},
handleRemove(file, fileList) {
console.log('file:' + JSON.stringify(file))
console.log('fileList:' + JSON.stringify(fileList))
this.enclosure = ''
// 1. id(this.file_add)
this.getNewFileId(fileList)
// 2. id(this.file_catch)
this.getCatchFileId(file)
// 3. id
this.getFileId()
// 4. id
this.$emit('change', this.enclosure)
},
// this.file_add(id)
getNewFileId(fileList) {
// debugger
this.file_add = ''
for (var i = 0; i < fileList.length; i++) {
if (fileList[i].response && fileList[i].response.code === '200') {
this.file_add = this.file_add + fileList[i].response.data + ','
}
}
if (this.file_add !== '') {
this.file_add = this.file_add.substring(0, this.file_add.length - 1)
}
// console.log('1. this.file_add: ' + this.file_add)
},
// this.file_catchid
getCatchFileId(file) {
for (var i = 0; i < this.files_list.length; i++) {
if (this.file_catch !== '') {
// 1. id
if (this.files_list[i].name === file.name) {
// 2. file_catchfils_arry
var fils_arry = this.file_catch.split(',')
// 3. fils_arry this.files_list[i].id
var arry = []
fils_arry.forEach((element) => {
//
if (element !== this.files_list[i].id) {
arry.push(element)
}
})
// 4. file_catch
this.file_catch = arry.join(',')
}
}
this.files.forEach((o) => {
imgFiles.push(o.url)
})
this.$emit('fileChange', this.files)
},
handleRemove(file, fileList) {
console.log('file:' + JSON.stringify(file))
console.log('fileList:' + JSON.stringify(fileList))
this.enclosure = ''
// 1. id(this.file_add)
this.getNewFileId(fileList)
// 2. id(this.file_catch)
this.getCatchFileId(file)
// 3. id
this.getFileId()
// 4. id
this.$emit('change', this.enclosure)
},
// this.file_add(id)
getNewFileId(fileList) {
// debugger
this.file_add = ''
for (var i = 0; i < fileList.length; i++) {
if (fileList[i].response && fileList[i].response.code === '200') {
this.file_add = this.file_add + fileList[i].response.data + ','
}
// console.log('2. this.file_catch:' + this.file_catch)
},
// id
getFileId() {
// console.log('3. this.file_catch:' + this.file_catch + ',this.file_add:' + this.file_add)
}
if (this.file_add !== '') {
this.file_add = this.file_add.substring(0, this.file_add.length - 1)
}
// console.log('1. this.file_add: ' + this.file_add)
},
// this.file_catchid
getCatchFileId(file) {
for (var i = 0; i < this.files_list.length; i++) {
if (this.file_catch !== '') {
if (this.file_add !== '') {
this.enclosure = this.file_catch + ',' + this.file_add
} else {
this.enclosure = this.file_catch
// 1. id
if (this.files_list[i].name === file.name) {
// 2. file_catchfils_arry
var fils_arry = this.file_catch.split(',')
// 3. fils_arry this.files_list[i].id
var arry = []
fils_arry.forEach((element) => {
//
if (element !== this.files_list[i].id) {
arry.push(element)
}
})
// 4. file_catch
this.file_catch = arry.join(',')
}
} else {
this.enclosure = this.file_add
}
},
handlePictureCardPreview(file) {
this.dialogVisible = true
this.dialogImageUrl = file.url
},
//
uploadError() {
this.loadding = false
},
uploadProgrees(event, file, fileList) {
if (Number(event.percent) > 0) {
this.loadding = true
}
// console.log('2. this.file_catch:' + this.file_catch)
},
// id
getFileId() {
// console.log('3. this.file_catch:' + this.file_catch + ',this.file_add:' + this.file_add)
if (this.file_catch !== '') {
if (this.file_add !== '') {
this.enclosure = this.file_catch + ',' + this.file_add
} else {
this.enclosure = this.file_catch
}
},
} else {
this.enclosure = this.file_add
}
},
handlePictureCardPreview(file) {
this.dialogVisible = true
this.dialogImageUrl = file.url
},
//
uploadError() {
this.loadding = false
},
uploadProgrees(event, file, fileList) {
if (Number(event.percent) > 0) {
this.loadding = true
}
}
}
}
</script>
<style lang="scss" scoped></style>

14
anrui-buscenter/anrui-buscenter-ui/src/router/index.js

@ -418,13 +418,6 @@ export const constantRoutes = [
},
// 合同管理
// 合同档案待办详情
{
path: '/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo',
component: () =>
import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo.vue'),
name: 'HeTongDangAnDaiiBanInfo'
},
// 合同档案编辑
{
path: '/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit',
@ -439,6 +432,13 @@ export const constantRoutes = [
import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganYiBanInfo.vue'),
name: 'HeTongDangAnYiBanInfo'
},
// 合同档案待办详情--审核过程中修改附件
{
path: '/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo',
component: () =>
import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo.vue'),
name: 'hetongdanganDaiBanByFileInfo'
},
// 盖章管理
// 盖章申请详情

124
anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue

@ -67,7 +67,7 @@
<el-col :span="12">
<el-form-item prop="contractAmount">
<span slot="label">合同金额</span>
<el-input v-model="temp.contractAmount" placeholder="" type="Number" class="addinputw" clearable/>
<el-input v-model="temp.contractAmount" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
@ -75,32 +75,37 @@
<el-col :span="12">
<el-form-item prop="deposit">
<span slot="label">订金</span>
<el-input v-model="temp.deposit" placeholder="" type="Number" class="addinputw" clearable/>
<el-input v-model="temp.deposit" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">备注</span>
<el-input v-model="temp.remarks" placeholder="" class="addinputw" clearable/>
<el-input v-model="temp.remarks" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<div class="title">新车买卖合同</div>
<el-row>
<el-col :span="24">
<Upload ref="uploadImg" v-model="list1" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
<Upload ref="imgUpload" v-model="list1" bucket="map" :upload-data="{type:'0001'}"/>
</el-col>
</el-row>
<div class="title">现场签署照片</div>
<el-row>
<el-col :span="24">
<Upload ref="uploadImg" v-model="list2" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
<Upload ref="imgUpload" v-model="list2" bucket="map" :upload-data="{type:'0001'}"/>
</el-col>
</el-row>
<div class="title">证件照片</div>
<el-row>
<el-col :span="24">
<Upload ref="uploadImg" v-model="list3" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
<div v-show="temp.idCardArchives == true">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.list3" :key="index" :src="item" :preview-src-list="temp.list3"></el-image>
</div>
<div v-show="temp.idCardArchives !== true">
<Upload ref="imgUpload" v-model="list3" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
</div>
</el-col>
</el-row>
</el-form>
@ -139,26 +144,32 @@ export default {
},
contractPdfView: false,
temp: {
sid: '',
address: '',
appdixUrl: '',
busSid: '',
contractAmount: '',
contractNo: '',
contractSid: '',
contractType: '',
contractTypeKey: '',
createDate: '',
customerKey: '',
customerSid: '',
deposit: '',
idCardArchives: false,
num: '',
oneDeposit: '',
partyA: '',
partyB: '',
partyC: '',
pcCommonAppendixDtoList: [],
remarks: '',
sceneSignUrl: '',
sceneSignUrlList: [],
idCardImages: [],
sid: '',
price: '',
procInsId: '',
taskId: '',
userSid: '',
staffName: '',
staffSid: ''
contractImages: [],
siteSigImages: [],
idCardImages: []
},
rules: {
contractType: [{ required: true, message: '合同类型不能为空', trigger: 'change' }],
@ -196,33 +207,31 @@ export default {
getOneContract(row.sid).then((res) => {
if (res.success) {
this.temp = res.data
if (this.temp.pcCommonAppendixDtoList.length > 0) {
this.temp.pcCommonAppendixDtoList.forEach((e) => {
this.temp.userSid = window.sessionStorage.getItem('userSid')
if (this.temp.contractImages.length > 0) {
this.temp.contractImages.forEach((e) => {
this.list1.push({
name: e.fileName,
filePath: e.filePath,
size: e.fileSize,
url: e.filePath
name: '',
filePath: e,
url: e
})
})
}
if (this.temp.sceneSignUrlList.length > 0) {
this.temp.sceneSignUrlList.forEach((e) => {
if (this.temp.siteSigImages.length > 0) {
this.temp.siteSigImages.forEach((e) => {
this.list2.push({
name: e.fileName,
filePath: e.filePath,
size: e.fileSize,
url: e.filePath
name: '',
filePath: e,
url: e
})
})
}
if (this.temp.idCardImages.length > 0) {
this.temp.idCardImages.forEach((e) => {
this.list3.push({
name: e.fileName,
filePath: e.filePath,
size: e.fileSize,
url: e.filePath
name: '',
filePath: e,
url: e
})
})
}
@ -275,66 +284,57 @@ export default {
},
getUrl() {
if (this.list1.length > 0) {
const cc = []
for (var i = 0; i < this.list1.length; i++) {
this.temp.pcCommonAppendixDtoList.push({
name: window.sessionStorage.getItem('name'),
createBySid: window.sessionStorage.getItem('userSid'),
fileName: this.list1[i].name,
filePath: this.list1[i].url,
fileSize: this.list1[i].size,
fileType: this.list1[i].name.substr(this.list1[i].name.lastIndexOf('.'))
})
cc.push(this.list1[i].url)
}
this.temp.contractImages = cc
}
if (this.list2.length > 0) {
const bb = []
for (var k = 0; k < this.list2.length; k++) {
this.temp.sceneSignUrlList.push({
name: window.sessionStorage.getItem('name'),
createBySid: window.sessionStorage.getItem('userSid'),
fileName: this.list2[k].name,
filePath: this.list2[k].url,
fileSize: this.list2[k].size,
fileType: this.list2[k].name.substr(this.list2[k].name.lastIndexOf('.'))
})
bb.push(this.list2[k].url)
}
this.temp.siteSigImages = bb
}
if (this.list3.length > 0) {
const aa = []
for (var p = 0; p < this.list3.length; p++) {
this.temp.idCardImages.push({
name: window.sessionStorage.getItem('name'),
createBySid: window.sessionStorage.getItem('userSid'),
fileName: this.list3[p].name,
filePath: this.list3[p].url,
fileSize: this.list3[p].size,
fileType: this.list3[p].name.substr(this.list3[p].name.lastIndexOf('.'))
})
aa.push(this.list3[p].url)
}
this.temp.idCardImages = aa
}
},
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {
sid: '',
address: '',
appdixUrl: '',
busSid: '',
contractAmount: '',
contractNo: '',
contractSid: '',
contractType: '',
contractTypeKey: '',
createDate: '',
customerKey: '',
customerSid: '',
deposit: '',
idCardArchives: false,
num: '',
oneDeposit: '',
partyA: '',
partyB: '',
partyC: '',
pcCommonAppendixDtoList: [],
remarks: '',
sceneSignUrl: '',
sceneSignUrlList: [],
idCardImages: [],
sid: '',
price: '',
procInsId: '',
taskId: '',
userSid: '',
staffName: '',
staffSid: ''
contractImages: [],
siteSigImages: [],
idCardImages: []
}
this.list3 = []
this.list2 = []

85
anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue

@ -1,13 +1,13 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>XXX合同详情</div>
<div>合同详情</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">XXX合同</div>
<div class="titwu">合同</div>
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="formadd">
<el-row class="bordertopline">
<el-col :span="12">
@ -82,19 +82,19 @@
<div class="title">新车买卖合同</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.list1" :key="index" :src="item" :preview-src-list="temp.list1"></el-image>
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.contractImages" :key="index" :src="item" :preview-src-list="temp.contractImages"></el-image>
</el-col>
</el-row>
<div class="title">现场签署照片</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.list2" :key="index" :src="item" :preview-src-list="temp.list2"></el-image>
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.siteSigImages" :key="index" :src="item" :preview-src-list="temp.siteSigImages"></el-image>
</el-col>
</el-row>
<div class="title">证件照片</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.list3" :key="index" :src="item" :preview-src-list="temp.list3"></el-image>
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.idCardImages" :key="index" :src="item" :preview-src-list="temp.idCardImages"></el-image>
</el-col>
</el-row>
</el-form>
@ -109,10 +109,34 @@ export default {
name: 'HetongdanganguanliInfo',
data() {
return {
temp: {},
list1: [],
list2: [],
list3: []
temp: {
sid: '',
address: '',
contractAmount: '',
contractNo: '',
contractSid: '',
contractType: '',
contractTypeKey: '',
createDate: '',
customerKey: '',
customerSid: '',
deposit: '',
idCardArchives: false,
num: '',
oneDeposit: '',
partyA: '',
partyB: '',
partyC: '',
remarks: '',
price: '',
procInsId: '',
taskId: '',
userSid: '',
staffName: '',
contractImages: [],
siteSigImages: [],
idCardImages: []
}
}
},
methods: {
@ -120,26 +144,39 @@ export default {
getOneContract(row.sid).then((resp) => {
if (resp.success) {
this.temp = resp.data
if (this.temp.pcCommonAppendixDtoList.length > 0) {
this.temp.pcCommonAppendixDtoList.forEach((e) => {
this.list1.push(e.filePath)
})
}
if (this.temp.sceneSignUrlList.length > 0) {
this.temp.sceneSignUrlList.forEach((e) => {
this.list2.push(e.filePath)
})
}
if (this.temp.idCardImages.length > 0) {
this.temp.idCardImages.forEach((e) => {
this.list3.push(e.filePath)
})
}
}
})
},
//
handleReturn() {
this.temp = {
sid: '',
address: '',
contractAmount: '',
contractNo: '',
contractSid: '',
contractType: '',
contractTypeKey: '',
createDate: '',
customerKey: '',
customerSid: '',
deposit: '',
idCardArchives: false,
num: '',
oneDeposit: '',
partyA: '',
partyB: '',
partyC: '',
remarks: '',
price: '',
procInsId: '',
taskId: '',
userSid: '',
staffName: '',
contractImages: [],
siteSigImages: [],
idCardImages: []
}
this.$emit('handleReturn')
}
}

78
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo.vue

@ -95,7 +95,9 @@
</el-row>
<div class="title">证件照片</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.idCardImages" :key="index" :src="item" :preview-src-list="temp.idCardImages"></el-image>
</el-col>
</el-row>
</el-form>
</div>
@ -138,9 +140,35 @@ export default {
},
data() {
return {
temp: {},
temp: {
sid: '',
address: '',
contractAmount: '',
contractNo: '',
contractSid: '',
contractType: '',
contractTypeKey: '',
createDate: '',
customerKey: '',
customerSid: '',
deposit: '',
idCardArchives: false,
num: '',
oneDeposit: '',
partyA: '',
partyB: '',
partyC: '',
remarks: '',
price: '',
procInsId: '',
taskId: '',
userSid: '',
staffName: '',
contractImages: [],
siteSigImages: [],
idCardImages: []
},
list2: [],
list3: [],
list1: [],
operation: '', //
dialogList: {
@ -161,6 +189,8 @@ export default {
taskId: '',
orgSidPath: '',
taskDefKey: '',
contractImages: [],
siteSigImages: [],
userSid: ''
}
}
@ -197,7 +227,25 @@ export default {
showInfo(sid) {
getOneContract(sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.temp = res.data
if (this.temp.contractImages.length > 0) {
this.temp.contractImages.forEach((e) => {
this.list1.push({
name: '',
filePath: e,
url: e
})
})
}
if (this.temp.siteSigImages.length > 0) {
this.temp.siteSigImages.forEach((e) => {
this.list2.push({
name: '',
filePath: e,
url: e
})
})
}
}
})
},
@ -255,7 +303,10 @@ export default {
},
/** 同意任务 */
handleAgree() {
this.getUrl()
this.linkByParameter.comment = this.dialogList.comment
this.linkByParameter.contractImages = this.temp.contractImages
this.linkByParameter.siteSigImages = this.temp.siteSigImages
complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
@ -321,14 +372,27 @@ export default {
}, '*')
}
})
},
getUrl() {
if (this.list1.length > 0) {
const cc = []
for (var i = 0; i < this.list1.length; i++) {
cc.push(this.list1[i].url)
}
this.temp.contractImages = cc
}
if (this.list2.length > 0) {
const bb = []
for (var k = 0; k < this.list2.length; k++) {
bb.push(this.list2[k].url)
}
this.temp.siteSigImages = bb
}
}
}
}
</script>
<style scoped>
.imgcontent {
display: inline-block;
}
.titwu {
font-size: 28px;
text-align: center;

336
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo.vue

@ -1,336 +0,0 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>XXX合同详情</div>
<div>
<el-button type="primary" size="small" @click="openAgree('同意')"> </el-button>
<el-button type="danger" size="small" @click="openReject('驳回')"> </el-button>
<el-button type="danger" size="small" @click="openStop('终止')"> </el-button>
</div>
</div>
<div class="">
<div class="titwu">XXX合同</div>
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="formadd">
<el-row class="bordertopline">
<el-col :span="12">
<el-form-item>
<span slot="label">合同类型</span>
<span>{{ temp.contractType }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">合同编号</span>
<span>{{ temp.contractNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">甲方名称</span>
<span>{{ temp.partyA }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">乙方名称</span>
<span>{{ temp.partyB }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">其他方名称</span>
<span>{{ temp.partyC }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">签订日期</span>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">签订地点</span>
<span>{{ temp.address }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">合同金额</span>
<span>{{ temp.contractAmount }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">订金</span>
<span>{{ temp.deposit }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">备注</span>
<span>{{ temp.remarks }}</span>
</el-form-item>
</el-col>
</el-row>
<div class="title">新车买卖合同</div>
<el-row>
</el-row>
<div class="title">现场签署照片</div>
<el-row>
</el-row>
<div class="title">证件照片</div>
<el-row>
</el-row>
</el-form>
</div>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form class="formadd" >
<el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb">
<el-col :span="4" class="tleftb">
<span>当前环节:</span>
</el-col>
<el-col :span="20">
<el-form-item><span>{{ current.taskName }}->{{ nextNode.name }}</span></el-form-item>
</el-col>
</el-row>
<el-row :class="{rowClass:!currentLink}">
<el-col :span="4" class="tleftb">
<span>意见:</span>
</el-col>
<el-col :span="20">
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" type="textarea" :autosize="{ minRows: 1, maxRows: 10}" clearable ></el-input></el-form-item>
</el-col>
</el-row>
<div style="text-align:center;margin-top: 20px;">
<el-button type="primary" size="mini" @click="reject"> </el-button>
<el-button type="info " size="mini" @click="nodeDialogVisible = false"> </el-button>
</div>
</el-form>
</el-dialog>
</div>
</template>
<script>
import {
breakProcess,
complete,
getNextNodesForSubmit,
getOneContract,
getPreviousNodesForReject,
reject
} from '@/api/jichuxinxi/contract'
export default {
name: 'HeTongDangAnDaiBanInfo',
data() {
return {
temp: {},
list2: [],
list3: [],
list1: [],
operation: '', //
dialogList: {
comment: ''
},
current: {
taskDefKey: '',
taskName: '' //
},
nextNode: {}, //
nodeDialogVisible: false,
currentLink: true,
//
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('iframe页面获取的obj:', obj)
//
this.linkByParameter.businessSid = obj.businessSid
this.linkByParameter.instanceId = obj.instanceId
this.linkByParameter.taskId = obj.taskId
this.linkByParameter.taskDefKey = obj.taskDefKey
this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 450 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
getOneContract(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
//
openAgree(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openReject(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = ''
getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openStop(val) {
this.operation = val
this.currentLink = false
this.dialogList.comment = ''
this.nodeDialogVisible = true
},
reject() {
if (this.operation === '同意') {
this.handleAgree()
} else if (this.operation === '驳回') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleReject()
}
} else if (this.operation === '终止') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleStop()
}
}
},
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 驳回任务 */
handleReject() {
this.linkByParameter.comment = this.dialogList.comment
reject(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 终止任务 */
handleStop() {
this.linkByParameter.comment = this.dialogList.comment
breakProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
}
}
</script>
<style scoped>
.imgcontent {
display: inline-block;
}
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
</style>

311
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit.vue

@ -1,13 +1,318 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交</el-button>
<el-button type="primary" size="small">预览</el-button>
<el-button type="primary" size="small">打印</el-button>
</div>
</div>
<div class="">
<div class="titwu">合同审核</div>
<el-form ref="temp_obj" :model="temp" label-position="right" label-width="190px" class="formadd" :rules="rules">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="12">
<el-form-item prop="contractNo">
<span slot="label">合同编号</span>
<el-input v-model="temp.contractNo" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="contractType">
<span slot="label">合同类型</span>
<el-select v-model="temp.contractType" placeholder="请选择" filterable class="addinputw" @change="typeChange">
<el-option v-for="item in typeList" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="partyA">
<span slot="label">甲方名称</span>
<el-input v-model="temp.partyA" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="partyB">
<span slot="label">乙方名称</span>
<el-input v-model="temp.partyB" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="partyC">
<span slot="label">其他方名称</span>
<el-input v-model="temp.partyC" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="createDate">
<span slot="label">签订日期</span>
<el-date-picker v-model="temp.createDate" type="date" value-format="yyyy-MM-dd" format="yyyy-MM-dd" clearable placeholder="选择日期" class="addinputw"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="address">
<span slot="label">签订地点</span>
<el-input v-model="temp.address" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="contractAmount">
<span slot="label">合同金额</span>
<el-input v-model="temp.contractAmount" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="deposit">
<span slot="label">订金</span>
<el-input v-model="temp.deposit" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">备注</span>
<el-input v-model="temp.remarks" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<div class="title">新车买卖合同</div>
<el-row>
<el-col :span="24">
<Upload ref="imgUpload" v-model="list1" bucket="map" :upload-data="{type:'0001'}"/>
</el-col>
</el-row>
<div class="title">现场签署照片</div>
<el-row>
<el-col :span="24">
<Upload ref="imgUpload" v-model="list2" bucket="map" :upload-data="{type:'0001'}"/>
</el-col>
</el-row>
<div class="title">证件照片</div>
<el-row>
<el-col :span="24">
<div v-show="temp.idCardArchives == true">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.list3" :key="index" :src="item" :preview-src-list="temp.list3"></el-image>
</div>
<div v-show="temp.idCardArchives !== true">
<Upload ref="imgUpload" v-model="list3" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
</div>
</el-col>
</el-row>
</el-form>
</div>
<!-- <el-dialog style="margin-top: -15vh!important;" width="60%" :append-to-body="true" :visible.sync="contractPdfView" title="合同">-->
<!-- <embed id="plugin" width="100%" height="600" name="plugin" :src="contractPdf" type="application/pdf" internalinstanceid="119">-->
<!-- </el-dialog>-->
</div>
</template>
<script>
import { getOneContract, updateContract, submitVehicleApply } from '@/api/jichuxinxi/contract'
import Upload from '@/components/uploadFile/upload.vue' //
import { typeValues } from '@/api/dictcommons/dictcommons'
export default {
name: 'HeTongDangAnEdit'
name: 'HetongdanganEdit',
components: { Upload },
data() {
return {
submitdisabled: false, //
viewTitle: '',
//
dialogImageUrl: '',
dialogVisible: false,
typeList: [],
list1: [],
list2: [],
list3: [],
contractPdf: '',
visible: false,
file_list: {
attachType: '0001',
linkSid: ''
},
contractPdfView: false,
temp: {
sid: '',
address: '',
contractAmount: '',
contractNo: '',
contractSid: '',
contractType: '',
contractTypeKey: '',
createDate: '',
customerKey: '',
customerSid: '',
deposit: '',
idCardArchives: false,
num: '',
oneDeposit: '',
partyA: '',
partyB: '',
partyC: '',
remarks: '',
price: '',
procInsId: '',
taskId: '',
userSid: '',
staffName: '',
contractImages: [],
siteSigImages: [],
idCardImages: []
},
rules: {
contractType: [{ required: true, message: '合同类型不能为空', trigger: 'change' }],
contractNo: [{ required: true, message: '合同编号不能为空', trigger: 'blur' }],
address: [{ required: true, message: '签订地点不能为空', trigger: 'blur' }],
contractAmount: [{ required: true, message: '合同金额不能为空', trigger: 'blur' }],
createDate: [{ required: true, message: '签订日期不能为空', trigger: 'blur' }]
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 450 + 'px'
}
}, '*')
},
methods: {
//
init() {
typeValues({ type: 'contractType' }).then((response) => {
if (response.success) {
this.typeList = response.data
}
})
},
showInfo(row) {
this.init()
this.$nextTick(() => {
this.$refs['temp_obj'].clearValidate()
})
this.viewTitle = '【编辑】合同审核'
getOneContract(row).then((res) => {
if (res.success) {
this.temp = res.data
if (this.temp.contractImages.length > 0) {
this.temp.contractImages.forEach((e) => {
this.list1.push({
name: '',
filePath: e,
url: e
})
})
}
if (this.temp.siteSigImages.length > 0) {
this.temp.siteSigImages.forEach((e) => {
this.list2.push({
name: '',
filePath: e,
url: e
})
})
}
if (this.temp.idCardImages.length > 0) {
this.temp.idCardImages.forEach((e) => {
this.list3.push({
name: '',
filePath: e,
url: e
})
})
}
}
})
},
typeChange(val) {
const choose = this.typeList.filter((item) => item.dictValue === val)
if (choose.length > 0) {
this.temp.contractTypeKey = choose[0].dictKey
}
},
//
handleCreate() {
this.$refs['temp_obj'].validate((valid) => {
if (valid) {
this.getUrl()
this.submitdisabled = true
updateContract(this.temp).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
//
handleSubmit() {
this.$refs['temp_obj'].validate((valid) => {
if (valid) {
this.getUrl()
this.submitdisabled = true
submitVehicleApply(this.temp).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
getUrl() {
if (this.list1.length > 0) {
const cc = []
for (var i = 0; i < this.list1.length; i++) {
cc.push(this.list1[i].url)
}
this.temp.contractImages = cc
}
if (this.list2.length > 0) {
const bb = []
for (var k = 0; k < this.list2.length; k++) {
bb.push(this.list2[k].url)
}
this.temp.siteSigImages = bb
}
if (this.list3.length > 0) {
const aa = []
for (var p = 0; p < this.list3.length; p++) {
aa.push(this.list3[p].url)
}
this.temp.idCardImages = aa
}
}
}
}
</script>
<style scoped>
</style>

43
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganYiBanInfo.vue

@ -81,15 +81,21 @@
</el-row>
<div class="title">新车买卖合同</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.contractImages" :key="index" :src="item" :preview-src-list="temp.contractImages"></el-image>
</el-col>
</el-row>
<div class="title">现场签署照片</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.siteSigImages" :key="index" :src="item" :preview-src-list="temp.siteSigImages"></el-image>
</el-col>
</el-row>
<div class="title">证件照片</div>
<el-row>
<el-col :span="24">
<el-image style="width: 178px;height: 178px;" v-for="(item,index) in temp.idCardImages" :key="index" :src="item" :preview-src-list="temp.idCardImages"></el-image>
</el-col>
</el-row>
</el-form>
</div>
@ -103,7 +109,34 @@ export default {
name: 'HeTongDangAnYiBanInfo',
data() {
return {
temp: {},
temp: {
sid: '',
address: '',
contractAmount: '',
contractNo: '',
contractSid: '',
contractType: '',
contractTypeKey: '',
createDate: '',
customerKey: '',
customerSid: '',
deposit: '',
idCardArchives: false,
num: '',
oneDeposit: '',
partyA: '',
partyB: '',
partyC: '',
remarks: '',
price: '',
procInsId: '',
taskId: '',
userSid: '',
staffName: '',
contractImages: [],
siteSigImages: [],
idCardImages: []
},
list2: [],
list3: [],
list1: [],
@ -149,7 +182,7 @@ export default {
showInfo(sid) {
getOneContract(sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.temp = res.data
}
})
},

Loading…
Cancel
Save