Browse Source

调整盖章申请管理部分功能

master
yunuo970428 3 years ago
parent
commit
dfdf1936fa
  1. 68
      anrui-buscenter/anrui-buscenter-ui/src/api/sealContract/sealContract.js
  2. 2
      anrui-buscenter/anrui-buscenter-ui/src/components/uploadFile/filesUpload.vue
  3. 52
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  4. 67
      anrui-buscenter/anrui-buscenter-ui/src/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangAdd.vue
  5. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangInfo.vue
  6. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangguanli.vue
  7. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/gaizhangguanliFlow/gaizhangshenqingguanli/gaizhangshenqingInfo.vue

68
anrui-buscenter/anrui-buscenter-ui/src/api/sealContract/sealContract.js

@ -1,5 +1,4 @@
import request from '@/utils/request'
import qs from 'qs'
// 盖章申请管理分页列表
export function listPage(data) {
@ -25,12 +24,27 @@ export function save(data) {
})
}
// 盖章申请管理提交
export function submitSealApply(data) {
return request({
url: '/buscenter/v1/bussealapply/submitSealApply',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 盖章申请管理分页列表删除
export function delBySids(data) {
return request({
url: '/buscenter/v1/bussealapply/delBySids?sids=' + data,
url: '/buscenter/v1/bussealapply/delBySids',
method: 'DELETE',
data: qs.stringify(data)
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
@ -50,3 +64,51 @@ export function dataDictionary(data) {
params: data
})
}
// 待办任务同意办理
export function businessAgree(data) {
return request({
url: '/buscenter/v1/scmapplyinbound/complete',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 待办任务驳回任务
export function rejectTask(data) {
return request({
url: '/buscenter/v1/scmapplyinbound/reject/' + data.businessSid,
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 待办任务终止任务
export function breakTask(data) {
return request({
url: '/buscenter/v1/scmapplyinbound/breakProcess/' + data.businessSid,
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 待办任务撤回任务
export function revokeTask(data) {
return request({
url: '/buscenter/v1/scmapplyinbound/revokeProcess/' + data.userSid + '/' + data.businessSid,
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}

2
anrui-buscenter/anrui-buscenter-ui/src/components/uploadFile/filesUpload.vue

@ -41,7 +41,7 @@ export default {
},
methods: {
show(val) {
console.log(val)
this.fileList_FuJian = []
this.fileList_FuJian = val
},
handleChange(file, fileList) {

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

@ -43,7 +43,7 @@ export const constantRoutes = [{
import('@/views/404'),
hidden: true
},
//询价车型
// 询价车型
{
path: '/xunjiachexing',
component: Layout,
@ -96,7 +96,7 @@ export const constantRoutes = [{
meta: {
title: '欠款提车申请'
}
},
}
]
},
// 客户管理
@ -220,7 +220,7 @@ export const constantRoutes = [{
meta: {
title: '出库办理'
}
},
}
]
},
// 销售管理
@ -496,7 +496,7 @@ export const constantRoutes = [{
component: Layout,
redirect: '/gaizhangguanli',
meta: {
title: '车型查询'
title: '盖章管理'
},
children: [
{
@ -517,21 +517,21 @@ export const constantRoutes = [{
path: '/xiaoshouguanliFlow/xunidingdan/dingjinshouquInfo',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquInfo.vue'),
name: 'dingjinshouquInfo',
name: 'dingjinshouquInfo'
},
// 订金收取发起人办理编辑页面
{
path: '/xiaoshouguanliFlow/xunidingdan/dingjinshouquEdit',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquEdit.vue'),
name: 'dingjinshouquEdit',
name: 'dingjinshouquEdit'
},
// 订金收取审批办理页面
{
path: '/xiaoshouguanliFlow/xunidingdan/dingjinshouqu',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouqu.vue'),
name: 'dingjinshouqu',
name: 'dingjinshouqu'
},
// 车辆预定审批办理页面
@ -539,68 +539,68 @@ export const constantRoutes = [{
path: '/xiaoshouguanliFlow/xunidingdan/cheliangyuding',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyuding.vue'),
name: 'cheliangyuding',
name: 'cheliangyuding'
},
// 车辆预定发起人办理编辑页面
{
path: '/xiaoshouguanliFlow/xunidingdan/cheliangyudingEdit',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingEdit.vue'),
name: 'cheliangyudingEdit',
name: 'cheliangyudingEdit'
},
// 车辆预定审批、发起人详情页面
{
path: '/xiaoshouguanliFlow/xunidingdan/cheliangyudingInfo',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingInfo.vue'),
name: 'cheliangyudingInfo',
name: 'cheliangyudingInfo'
},
//特殊审批
//欠款提车申请详情
// 特殊审批
// 欠款提车申请详情
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuanticheInfo',
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuanticheInfo.vue'),
name: 'qiankuanticheInfo',
name: 'qiankuanticheInfo'
},
//欠款提车编辑
// 欠款提车编辑
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuanticheEdit',
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuanticheEdit.vue'),
name: 'qiankuanticheEdit',
name: 'qiankuanticheEdit'
},
//欠款提车复核
// 欠款提车复核
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuhe',
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuhe.vue'),
name: 'qiankuantichefuhe',
name: 'qiankuantichefuhe'
},
//欠款提车复核详情
// 欠款提车复核详情
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuheInfo',
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuheInfo.vue'),
name: 'qiankuantichefuheInfo',
name: 'qiankuantichefuheInfo'
},
//合同管理
//合同档案详情
// 合同管理
// 合同档案详情
{
path: '/hetongguanliFlow/hetongdanganguanli/hetongdangan',
component: () =>
import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue'),
name: 'hetongdangan',
name: 'hetongdangan'
},
//合同档案编辑
// 合同档案编辑
{
path: '/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit',
component: () =>
import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit.vue'),
name: 'hetongdanganEdit',
},
name: 'hetongdanganEdit'
}
// 销售订单
// 销售管理详情
@ -617,8 +617,6 @@ export const constantRoutes = [{
// import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue'),
// name: 'hetongdangan',
// },
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }
]

67
anrui-buscenter/anrui-buscenter-ui/src/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangAdd.vue

@ -7,7 +7,7 @@
</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交
</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
@ -45,7 +45,7 @@
</el-col>
<el-col :span="6" class="trightb">
<el-form-item>
<el-input v-model="formobj.sealNum" placeholder="" style="width: 50%"clearable/>
<el-input v-model="formobj.sealNum" placeholder="" style="width: 50%" clearable/>
</el-form-item>
</el-col>
</el-row>
@ -75,7 +75,7 @@
</template>
<script>
import { dataDictionary, fetchDetailsBySid, save } from '@/api/sealContract/sealContract.js'
import { dataDictionary, fetchDetailsBySid, save, submitSealApply } from '@/api/sealContract/sealContract.js'
import Upload from '@/components/uploadFile/filesUpload' //
export default {
@ -99,6 +99,8 @@ export default {
fileNameOrSealReason: '', //
sealFileUrl: '',
useOrgSid: '',
userSid: window.sessionStorage.getItem('userSid'),
staffSid: window.sessionStorage.getItem('staffSid'),
busSealApplyAppendices: [] //
},
rules: {},
@ -124,6 +126,20 @@ export default {
fetchDetailsBySid(row.sid).then(resp => {
if (resp.code === '200') {
this.formobj = resp.data
this.formobj = {
sid: row.sid,
applyName: window.sessionStorage.getItem('name'),
sealDate: resp.data.sealDate,
sealTypeValue: resp.data.sealTypeValue, //
sealTypekey: resp.data.sealTypekey,
sealNum: resp.data.sealNum, //
fileNameOrSealReason: resp.data.fileNameOrSealReason, //
sealFileUrl: resp.data.sealFileUrl,
useOrgSid: '',
userSid: window.sessionStorage.getItem('userSid'),
staffSid: window.sessionStorage.getItem('staffSid'),
busSealApplyAppendices: resp.data.busSealApplyAppendices //
}
if (this.formobj.busSealApplyAppendices.length > 0) {
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) {
this.list1.push({
@ -168,7 +184,7 @@ export default {
})
},
handsave() {
// this.submitdisabled = true
this.submitdisabled = true
if (this.formobj.busSealApplyAppendices.length > 0) {
var sealFileUrl_list = []
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) {
@ -179,13 +195,52 @@ export default {
console.log(this.formobj)
save(this.formobj).then(resp => {
this.submitdisabled = false
this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn()
if (resp.code === '200') {
this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn()
}
}).catch(() => {
this.submitdisabled = false
})
},
submit() {
this.submitdisabled = true
if (this.formobj.busSealApplyAppendices.length > 0) {
var sealFileUrl_list = []
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) {
sealFileUrl_list.push(this.formobj.busSealApplyAppendices[i].filePath)
}
this.formobj.sealFileUrl = sealFileUrl_list.join(',')
}
submitSealApply(this.formobj).then(resp => {
this.submitdisabled = false
if (resp.code === '200') {
this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn()
}
}).catch(() => {
this.submitdisabled = false
})
},
handleReturn() {
this.formobj = {
sid: '',
applyName: window.sessionStorage.getItem('name'),
sealDate: '',
sealTypeValue: '', //
sealTypekey: '',
sealNum: '', //
fileNameOrSealReason: '', //
sealFileUrl: '',
useOrgSid: '',
userSid: window.sessionStorage.getItem('userSid'),
staffSid: window.sessionStorage.getItem('staffSid'),
busSealApplyAppendices: [] //
}
this.list1 = []
this.$nextTick(() => {
this.$refs['divUpload'].show(this.list1)
})
this.$emit('doback')
}
}

4
anrui-buscenter/anrui-buscenter-ui/src/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangInfo.vue

@ -32,7 +32,9 @@
<el-form-item><span>盖章类型</span></el-form-item>
</el-col>
<el-col :span="6" class="trightb">
<span>{{ formobj.sealTypeValue }}</span>
<el-form-item>
<span>{{ formobj.sealTypeValue }}</span>
</el-form-item>
</el-col>
<el-col :span="6" class="tleftb">
<el-form-item><span>盖章个数</span></el-form-item>

4
anrui-buscenter/anrui-buscenter-ui/src/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangguanli.vue

@ -48,7 +48,7 @@
</el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.applyName }}</span>
<span>{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column label="申请人" align="center">
@ -187,7 +187,7 @@ export default {
this.viewState = 3
this.$refs['divAdd'].showEdit(row)
},
handlook(row) {
handLook(row) {
this.viewState = 4
this.$refs['divInfo'].showInfo(row)
},

4
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/gaizhangguanliFlow/gaizhangshenqingguanli/gaizhangshenqingInfo.vue

@ -36,7 +36,9 @@
<el-form-item><span>盖章类型</span></el-form-item>
</el-col>
<el-col :span="6" class="trightb">
<span>{{ formobj.sealTypeValue }}</span>
<el-form-item>
<span>{{ formobj.sealTypeValue }}</span>
</el-form-item>
</el-col>
<el-col :span="6" class="tleftb">
<el-form-item><span>盖章个数</span></el-form-item>

Loading…
Cancel
Save