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. 34
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  4. 61
      anrui-buscenter/anrui-buscenter-ui/src/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangAdd.vue
  5. 2
      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. 2
      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 request from '@/utils/request'
import qs from 'qs'
// 盖章申请管理分页列表 // 盖章申请管理分页列表
export function listPage(data) { 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) { export function delBySids(data) {
return request({ return request({
url: '/buscenter/v1/bussealapply/delBySids?sids=' + data, url: '/buscenter/v1/bussealapply/delBySids',
method: 'DELETE', method: 'DELETE',
data: qs.stringify(data) data: data,
headers: {
'Content-Type': 'application/json'
}
}) })
} }
@ -50,3 +64,51 @@ export function dataDictionary(data) {
params: 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: { methods: {
show(val) { show(val) {
console.log(val) this.fileList_FuJian = []
this.fileList_FuJian = val this.fileList_FuJian = val
}, },
handleChange(file, fileList) { handleChange(file, fileList) {

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

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

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

@ -7,7 +7,7 @@
</el-button> </el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交 <el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交
</el-button> </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> </div>
<div class="listconadd"> <div class="listconadd">
@ -75,7 +75,7 @@
</template> </template>
<script> <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' // import Upload from '@/components/uploadFile/filesUpload' //
export default { export default {
@ -99,6 +99,8 @@ export default {
fileNameOrSealReason: '', // fileNameOrSealReason: '', //
sealFileUrl: '', sealFileUrl: '',
useOrgSid: '', useOrgSid: '',
userSid: window.sessionStorage.getItem('userSid'),
staffSid: window.sessionStorage.getItem('staffSid'),
busSealApplyAppendices: [] // busSealApplyAppendices: [] //
}, },
rules: {}, rules: {},
@ -124,6 +126,20 @@ export default {
fetchDetailsBySid(row.sid).then(resp => { fetchDetailsBySid(row.sid).then(resp => {
if (resp.code === '200') { if (resp.code === '200') {
this.formobj = resp.data 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) { if (this.formobj.busSealApplyAppendices.length > 0) {
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) { for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) {
this.list1.push({ this.list1.push({
@ -168,7 +184,7 @@ export default {
}) })
}, },
handsave() { handsave() {
// this.submitdisabled = true this.submitdisabled = true
if (this.formobj.busSealApplyAppendices.length > 0) { if (this.formobj.busSealApplyAppendices.length > 0) {
var sealFileUrl_list = [] var sealFileUrl_list = []
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) { for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) {
@ -179,13 +195,52 @@ export default {
console.log(this.formobj) console.log(this.formobj)
save(this.formobj).then(resp => { save(this.formobj).then(resp => {
this.submitdisabled = false this.submitdisabled = false
if (resp.code === '200') {
this.$message({ showClose: true, type: 'success', message: resp.msg }) this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn() 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(() => { }).catch(() => {
this.submitdisabled = false this.submitdisabled = false
}) })
}, },
handleReturn() { 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') this.$emit('doback')
} }
} }

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

@ -32,7 +32,9 @@
<el-form-item><span>盖章类型</span></el-form-item> <el-form-item><span>盖章类型</span></el-form-item>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="6" class="trightb">
<el-form-item>
<span>{{ formobj.sealTypeValue }}</span> <span>{{ formobj.sealTypeValue }}</span>
</el-form-item>
</el-col> </el-col>
<el-col :span="6" class="tleftb"> <el-col :span="6" class="tleftb">
<el-form-item><span>盖章个数</span></el-form-item> <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>
<el-table-column label="状态" align="center"> <el-table-column label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.applyName }}</span> <span>{{ scope.row.nodeState }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="申请人" align="center"> <el-table-column label="申请人" align="center">
@ -187,7 +187,7 @@ export default {
this.viewState = 3 this.viewState = 3
this.$refs['divAdd'].showEdit(row) this.$refs['divAdd'].showEdit(row)
}, },
handlook(row) { handLook(row) {
this.viewState = 4 this.viewState = 4
this.$refs['divInfo'].showInfo(row) this.$refs['divInfo'].showInfo(row)
}, },

2
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-form-item><span>盖章类型</span></el-form-item>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="6" class="trightb">
<el-form-item>
<span>{{ formobj.sealTypeValue }}</span> <span>{{ formobj.sealTypeValue }}</span>
</el-form-item>
</el-col> </el-col>
<el-col :span="6" class="tleftb"> <el-col :span="6" class="tleftb">
<el-form-item><span>盖章个数</span></el-form-item> <el-form-item><span>盖章个数</span></el-form-item>

Loading…
Cancel
Save