Browse Source

完善价值客户备案

master
yunuo970428 2 years ago
parent
commit
ed5657bae1
  1. 110
      anrui-buscenter/anrui-buscenter-ui/src/api/valuablecustomer/valuablecustomer.js
  2. 39
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  3. 245
      anrui-buscenter/anrui-buscenter-ui/src/views/valuablecustomer/valuablecustomer.vue
  4. 275
      anrui-buscenter/anrui-buscenter-ui/src/views/valuablecustomer/valuablecustomerAdd.vue
  5. 162
      anrui-buscenter/anrui-buscenter-ui/src/views/valuablecustomer/valuablecustomerInfo.vue
  6. 360
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiazhikehubeianFlow/valuablecustomerDaiBan.vue
  7. 274
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiazhikehubeianFlow/valuablecustomerEdit.vue
  8. 230
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiazhikehubeianFlow/valuablecustomerYiBan.vue

110
anrui-buscenter/anrui-buscenter-ui/src/api/valuablecustomer/valuablecustomer.js

@ -0,0 +1,110 @@
import request from '@/utils/request'
// 分页列表
export function listPage(data) {
return request({
url: '/buscenter/v1/busvalcustfiling/listPage',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 保存(新增、编辑)
export function save(data) {
return request({
url: '/buscenter/v1/busvalcustfiling/save',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 根据Sid获取一条记录
export function fetchDetailsBySid(data) {
return request({
url: '/buscenter/v1/busvalcustfiling/fetchDetailsBySid/' + data,
method: 'get'
})
}
export function submit(params) {
return request({
url: '/buscenter/v1/busvalcustfiling/submit',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 流程审批(同意)
export function complete(params) {
return request({
url: '/buscenter/v1/busvalcustfiling/complete',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 流程审批(终止)
export function breakProcess(params) {
return request({
url: '/buscenter/v1/busvalcustfiling/breakProcess',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 流程审批(驳回)
export function reject(params) {
return request({
url: '/buscenter/v1/busvalcustfiling/reject',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 流程审批(撤回)
export function revokeProcess(params) {
return request({
url: '/buscenter/v1/busvalcustfiling/revokeProcess',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 流程审批(获取下一环节)
export function getNextNodesForSubmit(data) {
return request({
url: '/buscenter/v1/busvalcustfiling/getNextNodesForSubmit',
method: 'get',
params: data
})
}
// 流程审批(获取上一环节)
export function getPreviousNodesForReject(data) {
return request({
url: '/buscenter/v1/busvalcustfiling/getPreviousNodesForReject',
method: 'get',
params: data
})
}

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

@ -434,6 +434,23 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/valuablecustomer',
component: Layout,
redirect: '/valuablecustomer',
meta: {
title: '价值客户备案'
},
children: [
{
path: '/valuablecustomer/valuablecustomer',
component: () =>
import('@/views/valuablecustomer/valuablecustomer.vue'),
name: 'ValuableCustomer',
meta: { title: '价值客户备案', noCache: true }
}
]
},
// 流程所需页面路径 // 流程所需页面路径
// 订金收取审批、发起人详情页面 // 订金收取审批、发起人详情页面
{ {
@ -705,8 +722,28 @@ export const constantRoutes = [
component: () => component: () =>
import('@/views/workflow/jiaochebanliFlow/deliveryconfirmationEdit.vue'), import('@/views/workflow/jiaochebanliFlow/deliveryconfirmationEdit.vue'),
name: 'DeliveryconfirmationEdit' name: 'DeliveryconfirmationEdit'
},
// 价值客户备案待办详情
{
path: '/jiazhikehubeianFlow/valuablecustomerDaiBan',
component: () =>
import('@/views/workflow/jiazhikehubeianFlow/valuablecustomerDaiBan.vue'),
name: 'ValuableCustomerDaiBan'
},
// 价值客户备案已办详情
{
path: '/jiazhikehubeianFlow/valuablecustomerYiBan',
component: () =>
import('@/views/workflow/jiazhikehubeianFlow/valuablecustomerYiBan.vue'),
name: 'ValuableCustomerYiBan'
},
// 价值客户备案驳回到发起人办理
{
path: '/jiazhikehubeianFlow/valuablecustomerEdit',
component: () =>
import('@/views/workflow/jiazhikehubeianFlow/valuablecustomerEdit.vue'),
name: 'ValuableCustomerEdit'
} }
// 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 }
] ]

245
anrui-buscenter/anrui-buscenter-ui/src/views/valuablecustomer/valuablecustomer.vue

@ -0,0 +1,245 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div v-show="viewState == 1">
<button-bar view-title="价值客户备案管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="110px" class="tab-header">
<el-form-item label="合同编号">
<el-input v-model="listQuery.params.contractNo" placeholder="" clearable />
</el-form-item>
<el-form-item label="车型">
<el-input v-model="listQuery.params.modelName" placeholder="" clearable />
</el-form-item>
<el-form-item label="申请日期">
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="listQuery.params.createStartTime" clearable type="date" placeholder="开始日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="listQuery.params.createEndTime" clearable type="date" placeholder="结束日期"/>
</el-form-item>
<el-form-item label="申请人">
<el-input v-model="listQuery.params.createByName" placeholder="" clearable />
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">价值客户备案列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;">
<el-table-column fixed width="80px" label="编号" type="index" :index="indexMethod" align="center"/>
<el-table-column fixed label="操作" align="center" width="180">
<template slot-scope="scope">
<el-button type="primary" size="small" :disabled="scope.row.nodeState == '发起申请' ? false : scope.row.nodeState == '待提交' ? false : true" @click="toEdit(scope.row)">办理
</el-button>
<el-button type="primary" size="small" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column label="状态" width="150" header-align="center">
<template slot-scope="scope">
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column prop="useOrgName" label="分公司" align="center" />
<el-table-column prop="applyDeptName" label="申请部门" align="center" width="120"/>
<el-table-column prop="createByName" label="申请人" align="center" />
<el-table-column prop="createTime" label="申请日期" align="center" width="120"/>
<el-table-column label="销售合同编号" align="center" width="150">
<template slot-scope="scope">
<span class="bluezi" @click="lookSales(scope.row)">{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column prop="modelName" label="车型" align="center" width="130"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="100" />
<el-table-column prop="money" label="加装配置/销售让利金额" align="center" width="200"/>
<el-table-column prop="ysMoney" label="应收手续费" align="center" width="130"/>
<el-table-column prop="ssMoney" label="实收手续费" align="center" width="130"/>
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- 新增或编辑 -->
<valuablecustomerAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!-- 详情 -->
<valuablecustomerInfo v-show="viewState == 4" ref="divInfo" @doback="resetState"/>
<!-- 查看销售订单 -->
<dingdanInfo v-show="viewState == 5" ref="divSales" @doback="resetState"/>
</div>
</template>
<script>
import { listPage } from '@/api/valuablecustomer/valuablecustomer'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import valuablecustomerAdd from './valuablecustomerAdd.vue'
import valuablecustomerInfo from './valuablecustomerInfo'
import dingdanInfo from '@/components/publicPage/dingdanInfo'
export default {
name: 'ValuableCustomer',
components: {
Pagination,
pageye,
ButtonBar,
valuablecustomerAdd,
valuablecustomerInfo,
dingdanInfo
},
data() {
return {
btndisabled: false,
btnList: [
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1,
// -----------
tableKey: 0,
list: [],
sids: [],
FormLoading: false,
listLoading: false,
listQuery: {
params: {
contractNo: '',
createByName: '',
createEndTime: '',
createStartTime: '',
menuUrl: '',
modelName: '',
orgPath: '',
userSid: ''
},
current: 1,
size: 5,
total: 0
},
rules: {}
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.menuUrl = this.$route.path
listPage(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
contractNo: '',
createByName: '',
createEndTime: '',
createStartTime: '',
menuUrl: '',
modelName: '',
orgPath: '',
userSid: ''
},
current: 1,
size: 5,
total: 0
}
this.getList()
},
toEdit(row) {
this.viewState = 2
this.$refs['divAdd'].showEdit(row)
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showInfo(row)
},
lookSales(row) {
this.viewState = 5
this.$refs['divSales'].showInfo({ sid: row.saleOrderSid })
},
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
/*表格列设置fixed后固定列出现下边框的设置*/
/deep/ .el-table__fixed {
height: 100% !important;
}
/*表格列设置fixed后固定列出现下边框的设置*/
/deep/ .el-table__fixed-right {
height: 100% !important;
}
</style>

275
anrui-buscenter/anrui-buscenter-ui/src/views/valuablecustomer/valuablecustomerAdd.vue

@ -0,0 +1,275 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存
</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交
</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div><span style="font-size: 16px">金额单位</span></div>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">销售合同编号</div>
<el-form-item><span class="addinputInfo" style="color: #0294D7" @click="lookSales(formobj.saleOrderSid)">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty">车型</div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">车架号</div>
<el-form-item><span class="addinputInfo">{{ formobj.vinNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>{{ formobj.isGdk === '0' ? '加装配置金额' : '销售让利金额' }}</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.money }}</span></el-form-item>
</el-col>
</el-row>
<el-row v-if="formobj.isGdk === '0'">
<el-col :span="8">
<div class="span-sty">应收手续费</div>
<el-form-item><span class="addinputInfo">{{ formobj.ysMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">实收手续费</div>
<el-form-item><el-input v-model="formobj.ssMoney" class="addinputInfo" style="width: 40%" @keyup.native="UpNumber" @keydown.native="UpNumber" clearable placeholder=""/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手续费差额</div>
<el-form-item>
<span class="addinputInfo">{{ commissionmargin() }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input v-model="formobj.remarks" class="addinputInfo addinputw" clearable placeholder=""/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<dingdanInfo v-show="viewState == 2" ref="divInfo" @doback="resetState"/>
</div>
</template>
<script>
import { fetchDetailsBySid, save, submit } from '@/api/valuablecustomer/valuablecustomer'
import upload from '@/components/uploadFile/upload'
import dingdanInfo from '@/components/publicPage/dingdanInfo'
export default {
name: 'ValuableCustomerAdd',
components: {
upload,
dingdanInfo
},
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
image_list1: [],
formobj: {
applyDeptName: '',
applyDeptSid: '',
billNo: '',
busSid: '',
busSource: '',
contractNo: '',
createByName: '',
createBySid: '',
fjImages: [],
isGdk: '',
modelName: '',
modelSid: '',
money: '',
orgSidPath: '',
remarks: '',
saleOrderSid: '',
sid: '',
ssMoney: '',
useOrgName: '',
useOrgSid: '',
vinNo: '',
vinSid: '',
ysMoney: ''
},
rules: {}
}
},
methods: {
UpNumber(e) {
e.target.value = e.target.value.replace(/[^0-9.]/g, '') // .
e.target.value = e.target.value.replace(/^00/, '0.') // 0
e.target.value = e.target.value.replace(/\.{2,}/g, '.') // .
e.target.value = e.target.value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')
e.target.value = e.target.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3') //
if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
// 0102
e.target.value = parseFloat(e.target.value)
}
},
showEdit(row) {
this.viewTitle = '价值客户备案申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.fjImages.length > 0) {
this.formobj.fjImages.forEach((e) => {
this.image_list1.push({
name: '',
url: e
})
})
}
}
})
},
commissionmargin() {
var aa = ''
if (this.formobj.ssMoney !== '' && this.formobj.ssMoney !== null && this.formobj.ssMoney !== undefined && this.formobj.ssMoney !== '0') {
aa = parseFloat(this.formobj.ysMoney) - parseFloat(this.formobj.ssMoney)
}
return aa
},
lookSales(sid) {
this.viewState = 2
this.$refs['divInfo'].showInfo({ sid: sid })
},
resetState() {
this.viewState = 1
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
if (this.image_list1.length > 0) {
const aa = []
this.image_list1.forEach((e) => {
aa.push(e.url)
})
this.formobj.fjImages = aa
} else {
this.formobj.fjImages = []
}
this.submitdisabled = true
save(this.formobj).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['form_obj'].validate((valid) => {
if (valid) {
if (this.image_list1.length > 0) {
const aa = []
this.image_list1.forEach((e) => {
aa.push(e.url)
})
this.formobj.fjImages = aa
} else {
this.formobj.fjImages = []
}
this.submitdisabled = true
submit(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
applyDeptName: '',
applyDeptSid: '',
billNo: '',
busSid: '',
busSource: '',
contractNo: '',
createByName: '',
createBySid: '',
fjImages: [],
isGdk: '',
modelName: '',
modelSid: '',
money: '',
orgSidPath: '',
remarks: '',
saleOrderSid: '',
sid: '',
ssMoney: '',
useOrgName: '',
useOrgSid: '',
vinNo: '',
vinSid: '',
ysMoney: ''
}
this.image_list1 = []
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}
}
}
</script>
<style scoped>
.rowStyle {
border-left: 0px;
}
.colStyle {
border-right: 0px !important;
text-align: right;
}
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
</style>

162
anrui-buscenter/anrui-buscenter-ui/src/views/valuablecustomer/valuablecustomerInfo.vue

@ -0,0 +1,162 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" class="formaddcopy02">
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div><span style="font-size: 16px">金额单位</span></div>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">销售合同编号</div>
<el-form-item><span class="addinputInfo" style="color: #0294D7" @click="lookSales(formobj.saleOrderSid)">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty">车型</div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">车架号</div>
<el-form-item><span class="addinputInfo">{{ formobj.vinNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>{{ formobj.isGdk === '0' ? '加装配置金额' : '销售让利金额' }}</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.money }}</span></el-form-item>
</el-col>
</el-row>
<el-row v-if="formobj.isGdk === '0'">
<el-col :span="8">
<div class="span-sty">应收手续费</div>
<el-form-item><span class="addinputInfo">{{ formobj.ysMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">实收手续费</div>
<el-form-item><span class="addinputInfo">{{ formobj.ssMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手续费差额</div>
<el-form-item><span class="addinputInfo">{{ commissionmargin() }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in formobj.fjImages" :key="index" :src="item" :preview-src-list="formobj.fjImages"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<dingdanInfo ref="divInfo" v-show="viewState == 2" @doback="resetState"/>
</div>
</template>
<script>
import { fetchDetailsBySid } from '@/api/valuablecustomer/valuablecustomer'
import dingdanInfo from '@/components/publicPage/dingdanInfo'
export default {
name: 'ValuableCustomerInfo',
components: {
dingdanInfo
},
data() {
return {
viewTitle: '',
viewState: 1,
image_list1: [],
formobj: {
applyDeptName: '',
applyDeptSid: '',
billNo: '',
busSid: '',
busSource: '',
contractNo: '',
createByName: '',
createBySid: '',
fjImages: [],
isGdk: '',
modelName: '',
modelSid: '',
money: '',
orgSidPath: '',
remarks: '',
saleOrderSid: '',
sid: '',
ssMoney: '',
useOrgName: '',
useOrgSid: '',
vinNo: '',
vinSid: '',
ysMoney: ''
}
}
},
methods: {
showInfo(row) {
this.viewTitle = '价值客户备案申请详情'
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
commissionmargin() {
var aa = ''
if (this.formobj.ssMoney !== '' && this.formobj.ssMoney !== null && this.formobj.ssMoney !== undefined && this.formobj.ssMoney !== '0') {
aa = parseFloat(this.formobj.ysMoney) - parseFloat(this.formobj.ssMoney)
}
return aa
},
lookSales(sid) {
this.viewState = 2
this.$refs['divInfo'].showInfo({ sid: sid })
},
resetState() {
this.viewState = 1
},
handleReturn() {
this.formobj = {}
this.$emit('doback')
}
}
}
</script>
<style scoped>
.rowStyle {
border-left: 0px;
}
.colStyle {
border-right: 0px !important;
text-align: right;
}
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
</style>

360
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiazhikehubeianFlow/valuablecustomerDaiBan.vue

@ -0,0 +1,360 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<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>
<div class="">
<el-form ref="form_obj" :model="formobj" class="formaddcopy02">
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div><span style="font-size: 16px">金额单位</span></div>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">销售合同编号</div>
<el-form-item><span class="addinputInfo" style="color:#0294D7;" @click="lookSales(formobj.saleOrderSid)">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty">车型</div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">车架号</div>
<el-form-item><span class="addinputInfo">{{ formobj.vinNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>{{ formobj.isGdk === '0' ? '加装配置金额' : '销售让利金额' }}</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.money }}</span></el-form-item>
</el-col>
</el-row>
<el-row v-if="formobj.isGdk === '0'">
<el-col :span="8">
<div class="span-sty">应收手续费</div>
<el-form-item><span class="addinputInfo">{{ formobj.ysMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">实收手续费</div>
<el-form-item><span class="addinputInfo">{{ formobj.ssMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手续费差额</div>
<el-form-item><span class="addinputInfo">{{ commissionmargin() }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in formobj.fjImages" :key="index" :src="item" :preview-src-list="formobj.fjImages"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<dingdanInfo ref="divInfo" v-show="viewState == 2" @doback="resetState"/>
<!-- 选择待办人 的弹出框-->
<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 { fetchDetailsBySid, complete, breakProcess, reject, getNextNodesForSubmit, getPreviousNodesForReject } from '@/api/valuablecustomer/valuablecustomer'
import dingdanInfo from '../publicPage/dingdanInfo'
export default {
name: 'ValuableCustomerDaiBan',
components: {
dingdanInfo
},
data() {
return {
viewTitle: '',
viewState: 1,
image_list1: [],
formobj: {
applyDeptName: '',
applyDeptSid: '',
billNo: '',
busSid: '',
busSource: '',
contractNo: '',
createByName: '',
createBySid: '',
fjImages: [],
isGdk: '',
modelName: '',
modelSid: '',
money: '',
orgSidPath: '',
remarks: '',
saleOrderSid: '',
sid: '',
ssMoney: '',
useOrgName: '',
useOrgSid: '',
vinNo: '',
vinSid: '',
ysMoney: ''
},
operation: '', //
dialogList: {
comment: ''
},
startTask: true,
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.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: 500 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
this.viewTitle = '价值客户备案申请详情'
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
commissionmargin() {
var aa = ''
if (this.formobj.ssMoney !== '' && this.formobj.ssMoney !== null && this.formobj.ssMoney !== undefined && this.formobj.ssMoney !== '0') {
aa = parseFloat(this.formobj.ysMoney) - parseFloat(this.formobj.ssMoney)
}
return aa
},
lookSales(sid) {
this.viewState = 2
this.$refs['divInfo'].showInfo({ sid: sid })
},
resetState() {
this.viewState = 1
},
//
openAgree(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).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, businessSid: this.linkByParameter.businessSid }).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>
.rowClass{
border-top: 1px solid #E0E3EB;
}
.rowStyle {
border-left: 0px;
}
.colStyle {
border-right: 0px !important;
text-align: right;
}
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
</style>

274
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiazhikehubeianFlow/valuablecustomerEdit.vue

@ -0,0 +1,274 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存
</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交
</el-button>
</div>
</div>
<div class="">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div><span style="font-size: 16px">金额单位</span></div>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">销售合同编号</div>
<el-form-item><span class="addinputInfo" style="color: #0294D7" @click="lookSales(formobj.saleOrderSid)">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty">车型</div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">车架号</div>
<el-form-item><span class="addinputInfo">{{ formobj.vinNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>{{ formobj.isGdk === '0' ? '加装配置金额' : '销售让利金额' }}</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.money }}</span></el-form-item>
</el-col>
</el-row>
<el-row v-if="formobj.isGdk === '0'">
<el-col :span="8">
<div class="span-sty">应收手续费</div>
<el-form-item><span class="addinputInfo">{{ formobj.ysMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">实收手续费</div>
<el-form-item><el-input v-model="formobj.ssMoney" class="addinputInfo" style="width: 40%" @keyup.native="UpNumber" @keydown.native="UpNumber" clearable placeholder=""/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手续费差额</div>
<el-form-item>
<span class="addinputInfo">{{ commissionmargin() }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input v-model="formobj.remarks" class="addinputInfo addinputw" clearable placeholder=""/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<dingdanInfo ref="divInfo" v-show="viewState == 2" @doback="resetState"/>
</div>
</template>
<script>
import { fetchDetailsBySid, save, submit } from '@/api/valuablecustomer/valuablecustomer'
import upload from '@/components/uploadFile/upload'
import dingdanInfo from '../publicPage/dingdanInfo'
export default {
name: 'ValuableCustomerEdit',
components: {
upload,
dingdanInfo
},
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
image_list1: [],
formobj: {
applyDeptName: '',
applyDeptSid: '',
billNo: '',
busSid: '',
busSource: '',
contractNo: '',
createByName: '',
createBySid: '',
fjImages: [],
isGdk: '',
modelName: '',
modelSid: '',
money: '',
orgSidPath: '',
remarks: '',
saleOrderSid: '',
sid: '',
ssMoney: '',
useOrgName: '',
useOrgSid: '',
vinNo: '',
vinSid: '',
ysMoney: ''
},
rules: {}
}
},
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: 500 + 'px'
}
}, '*')
},
methods: {
UpNumber(e) {
e.target.value = e.target.value.replace(/[^0-9.]/g, '') // .
e.target.value = e.target.value.replace(/^00/, '0.') // 0
e.target.value = e.target.value.replace(/\.{2,}/g, '.') // .
e.target.value = e.target.value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')
e.target.value = e.target.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3') //
if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
// 0102
e.target.value = parseFloat(e.target.value)
}
},
showInfo(sid) {
this.viewTitle = '价值客户备案申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.instanceId = res.data.procInstId
if (this.formobj.fjImages.length > 0) {
this.formobj.fjImages.forEach((e) => {
this.image_list1.push({
name: '',
url: e
})
})
}
}
})
},
commissionmargin() {
var aa = ''
if (this.formobj.ssMoney !== '' && this.formobj.ssMoney !== null && this.formobj.ssMoney !== undefined && this.formobj.ssMoney !== '0') {
aa = parseFloat(this.formobj.ysMoney) - parseFloat(this.formobj.ssMoney)
}
return aa
},
lookSales(sid) {
this.viewState = 2
this.$refs['divInfo'].showInfo({ sid: sid })
},
resetState() {
this.viewState = 1
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
if (this.image_list1.length > 0) {
const aa = []
this.image_list1.forEach((e) => {
aa.push(e.url)
})
this.formobj.fjImages = aa
} else {
this.formobj.fjImages = []
}
this.submitdisabled = true
save(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
// ()
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleSubmit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
if (this.image_list1.length > 0) {
const aa = []
this.image_list1.forEach((e) => {
aa.push(e.url)
})
this.formobj.fjImages = aa
} else {
this.formobj.fjImages = []
}
this.submitdisabled = true
submit(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
// ()
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
}
}
}
</script>
<style scoped>
.rowStyle {
border-left: 0px;
}
.colStyle {
border-right: 0px !important;
text-align: right;
}
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
</style>

230
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiazhikehubeianFlow/valuablecustomerYiBan.vue

@ -0,0 +1,230 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="danger" size="small" @click="openRevoke()">撤回</el-button>
</div>
</div>
<div class="">
<el-form ref="form_obj" :model="formobj" class="formaddcopy02">
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div><span style="font-size: 16px">金额单位</span></div>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">销售合同编号</div>
<el-form-item><span class="addinputInfo" style="color: #0294d7" @click="lookSales(formobj.saleOrderSid)">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty">车型</div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">车架号</div>
<el-form-item><span class="addinputInfo">{{ formobj.vinNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>{{ formobj.isGdk === '0' ? '加装配置金额' : '销售让利金额' }}</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.money }}</span></el-form-item>
</el-col>
</el-row>
<el-row v-if="formobj.isGdk === '0'">
<el-col :span="8">
<div class="span-sty">应收手续费</div>
<el-form-item><span class="addinputInfo">{{ formobj.ysMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">实收手续费</div>
<el-form-item><span class="addinputInfo">{{ formobj.ssMoney }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手续费差额</div>
<el-form-item><span class="addinputInfo">{{ commissionmargin() }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in formobj.fjImages" :key="index" :src="item" :preview-src-list="formobj.fjImages"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<dingdanInfo ref="divInfo" v-show="viewState == 2" @doback="resetState"/>
</div>
</template>
<script>
import { fetchDetailsBySid, revokeProcess } from '@/api/valuablecustomer/valuablecustomer'
import dingdanInfo from '../publicPage/dingdanInfo'
export default {
name: 'ValuableCustomerYiBan',
components: {
dingdanInfo
},
data() {
return {
viewTitle: '',
viewState: 1,
image_list1: [],
formobj: {
applyDeptName: '',
applyDeptSid: '',
billNo: '',
busSid: '',
busSource: '',
contractNo: '',
createByName: '',
createBySid: '',
fjImages: [],
isGdk: '',
modelName: '',
modelSid: '',
money: '',
orgSidPath: '',
remarks: '',
saleOrderSid: '',
sid: '',
ssMoney: '',
useOrgName: '',
useOrgSid: '',
vinNo: '',
vinSid: '',
ysMoney: ''
},
//
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.userSid = window.sessionStorage.getItem('userSid')
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 500 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
this.viewTitle = '价值客户备案申请详情'
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
commissionmargin() {
var aa = ''
if (this.formobj.ssMoney !== '' && this.formobj.ssMoney !== null && this.formobj.ssMoney !== undefined && this.formobj.ssMoney !== '0') {
aa = parseFloat(this.formobj.ysMoney) - parseFloat(this.formobj.ssMoney)
}
return aa
},
lookSales(sid) {
this.viewState = 2
this.$refs['divInfo'].showInfo({ sid: sid })
},
resetState() {
this.viewState = 1
},
/** 确认撤回任务 */
openRevoke() {
this.$confirm('是否确认执行撤回操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleRevoke()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消撤回'
})
})
},
/** 撤回任务 */
handleRevoke() {
revokeProcess(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>
.rowStyle {
border-left: 0px;
}
.colStyle {
border-right: 0px !important;
text-align: right;
}
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
</style>
Loading…
Cancel
Save