Browse Source

完善简易订单--订金收取、车辆预定业务和流程相关功能

master
yunuo970428 3 years ago
parent
commit
430d55c2e9
  1. 59
      anrui-buscenter/anrui-buscenter-ui/src/api/flow/jianyidingdan.js
  2. 22
      anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/busdeposit.js
  3. 1
      anrui-buscenter/anrui-buscenter-ui/src/components/uploadFile/upload.vue
  4. 660
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyuding.vue
  5. 611
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingEdit.vue
  6. 356
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingInfo.vue
  7. 195
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouqu.vue
  8. 872
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquEdit.vue
  9. 352
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquInfo.vue
  10. 299
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/relation/xuanzecheliang.vue
  11. 269
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/relation/xuanzekehu.vue
  12. 948
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/relation/xuanzekehuAdd.vue
  13. 390
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzecheliang.vue
  14. 439
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzekehu.vue
  15. 1480
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzekehuAdd.vue
  16. 285
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdanAdd.vue
  17. 121
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdanguanli.vue
  18. 216
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdaninfo.vue
  19. 309
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingjinAdd.vue
  20. 159
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingjininfo.vue

59
anrui-buscenter/anrui-buscenter-ui/src/api/flow/jianyidingdan.js

@ -2,59 +2,80 @@ import request from '@/utils/request'
export default { export default {
// 车辆预定流程审批(同意) 已改 // 车辆预定流程审批(同意) 已改
agreeCheliangTask: function(params) { agreeCheliangTask: function(data) {
return request({ return request({
url: 'buscenter/v1/busmaindeposit/completeVehicle', url: 'buscenter/v1/busmaindeposit/completeVehicle',
method: 'post', method: 'put',
data: params data: data,
headers: {
'Content-Type': 'application/json'
}
}) })
}, },
// 订金收取流程审批(同意) 已改 // 订金收取流程审批(同意) 已改
agreeDingjinTask: function(params) { agreeDingjinTask: function(data) {
return request({ return request({
url: 'buscenter/v1/busmaindeposit/completeDeposit', url: 'buscenter/v1/busmaindeposit/completeDeposit',
method: 'post', method: 'put',
data: params data: data,
headers: {
'Content-Type': 'application/json'
}
}) })
}, },
// 流程审批(驳回) 已改 // 流程审批(驳回) 已改
rejectTask: function(params) { rejectTask: function(data) {
return request({ return request({
url: 'buscenter/v1/busmaindeposit/reject', url: 'buscenter/v1/busmaindeposit/reject',
method: 'post', method: 'put',
data: params data: data,
headers: {
'Content-Type': 'application/json'
}
}) })
}, },
// 流程审批(终止) 已改 // 流程审批(终止) 已改
breakTask: function(params) { breakTask: function(data) {
return request({ return request({
url: 'buscenter/v1/busmaindeposit/breakProcess', url: 'buscenter/v1/busmaindeposit/breakProcess',
method: 'post', method: 'put',
data: params data: data,
headers: {
'Content-Type': 'application/json'
}
}) })
}, },
// 流程审批(撤回) 已改 // 流程审批(撤回) 已改
revokeTask: function(params) { revokeTask: function(data) {
return request({ return request({
url: 'buscenter/v1/busmaindeposit/revokeProcess', url: 'buscenter/v1/busmaindeposit/revokeProcess',
method: 'post', method: 'put',
data: params data: data,
headers: {
'Content-Type': 'application/json'
}
}) })
}, },
// 审批流程(同意)获取下一环节 已改 // 审批流程(同意)获取下一环节 已改
getNextNodesForSubmit: function(data) { getNextNodesForSubmit: function(data) {
return request({ return request({
url: 'buscenter/v1/busmaindeposit/getNextNodesForSubmit', url: 'buscenter/v1/busmaindeposit/getNextNodesForSubmit',
method: 'get', method: 'post',
params: data data: data,
headers: {
'Content-Type': 'application/json'
}
}) })
}, },
// 审批流程(驳回、终止)获取上一环节 已改 // 审批流程(驳回、终止)获取上一环节 已改
getPreviousNodesForReject: function(data) { getPreviousNodesForReject: function(data) {
return request({ return request({
url: 'buscenter/v1/busmaindeposit/getPreviousNodesForReject', url: 'buscenter/v1/busmaindeposit/getPreviousNodesForReject',
method: 'get', method: 'post',
params: data data: data,
headers: {
'Content-Type': 'application/json'
}
}) })
}, },
// 读取xml文件 // 读取xml文件

22
anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/busdeposit.js

@ -1,8 +1,7 @@
import request from '@/utils/request' import request from '@/utils/request'
import qs from 'qs'
// 简易订单页面接口 // 简易订单页面接口
//条件分页查询数据的列表 (8.12测试) // 条件分页查询数据的列表 (8.12测试)
export function listPage(data) { export function listPage(data) {
return request({ return request({
url: '/buscenter/v1/busmaindeposit/listPage', url: '/buscenter/v1/busmaindeposit/listPage',
@ -14,7 +13,7 @@ export function listPage(data) {
}) })
} }
//根据sid批量删除 (8.12测试) // 根据sid批量删除 (8.12测试)
export function deleteBySids(data) { export function deleteBySids(data) {
return request({ return request({
url: '/buscenter/v1/busmaindeposit/deleteBySids', url: '/buscenter/v1/busmaindeposit/deleteBySids',
@ -26,8 +25,7 @@ export function deleteBySids(data) {
}) })
} }
// ==========订金收取
//==========订金收取
// 保存虚拟订单(订金)(8.12已改) // 保存虚拟订单(订金)(8.12已改)
export function saveDing(data) { export function saveDing(data) {
return request({ return request({
@ -56,7 +54,7 @@ export function submitApprove(data) {
export function depositDetail(data) { export function depositDetail(data) {
return request({ return request({
url: 'buscenter/v1/busdeposit/init/depositDetail/' + data.virtualOrderSid + '/' + data.userSid, url: 'buscenter/v1/busdeposit/init/depositDetail/' + data.virtualOrderSid + '/' + data.userSid,
method: 'get', method: 'get'
}) })
} }
@ -64,12 +62,11 @@ export function depositDetail(data) {
export function fetchSid(data) { export function fetchSid(data) {
return request({ return request({
url: 'buscenter/v1/busdeposit/getDepositInfoDetails/' + data, url: 'buscenter/v1/busdeposit/getDepositInfoDetails/' + data,
method: 'get', method: 'get'
}) })
} }
// ==========预定车辆
//==========预定车辆
// 保存虚拟订单(预定车辆) (8.12已改) // 保存虚拟订单(预定车辆) (8.12已改)
export function saveChe(data) { export function saveChe(data) {
return request({ return request({
@ -85,7 +82,7 @@ export function saveChe(data) {
// 提交虚拟订单(车辆)审批流程 (8.12已改) // 提交虚拟订单(车辆)审批流程 (8.12已改)
export function submitVehicleApprove(data) { export function submitVehicleApprove(data) {
return request({ return request({
url: 'buscenter/v1/busmaindeposit', url: 'buscenter/v1/busmaindeposit/submitVirtualOrderVehicle',
method: 'post', method: 'post',
data: data, data: data,
headers: { headers: {
@ -110,11 +107,10 @@ export function selectSid(data) {
export function getReserveCarDetails(data) { export function getReserveCarDetails(data) {
return request({ return request({
url: 'buscenter/v1/busdepositvehicle/getReserveCarDetails/' + data, url: 'buscenter/v1/busdepositvehicle/getReserveCarDetails/' + data,
method: 'get', method: 'get'
}) })
} }
// 获取下拉框 // 获取下拉框
export function typeValues(data) { export function typeValues(data) {
return request({ return request({
@ -133,7 +129,7 @@ export function kehu(data) {
}) })
} }
//订单批量删除主车优惠情况 // 订单批量删除主车优惠情况
export function getDelDis(data) { export function getDelDis(data) {
return request({ return request({
url: '/buscenter/v1/busorder/delDis/' + data, url: '/buscenter/v1/busorder/delDis/' + data,

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

@ -238,6 +238,7 @@
} }
}, },
handlePictureCardPreview(file) { handlePictureCardPreview(file) {
this.dialogVisible = true
this.dialogImageUrl = file.url this.dialogImageUrl = file.url
}, },
// //

660
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyuding.vue

@ -1,74 +1,79 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="visible"> <div>
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>销售简易订单详情</div> <div>销售简易订单详情</div>
<!-- <div v-else></div> --> <!-- <div v-else></div> -->
<div> <div>
<el-button type="primary" @click="openAgree('同意')"> </el-button> <el-button type="primary" size="small" @click="openAgree('同意')"> </el-button>
<el-button type="danger" @click="openReject('驳回')"> </el-button> <el-button type="danger" size="small" @click="openReject('驳回')"> </el-button>
<el-button type="danger" @click="openStop('终止')"> </el-button> <el-button type="danger" size="small" @click="openStop('终止')"> </el-button>
</div> </div>
</div> </div>
<div class="listconadd"> <div class="">
<el-form <div class="titwu">销售简易订单</div>
ref="dataForm" <el-form ref="dataForm" :model="temp" label-position="right" class="formadd">
:model="temp" <el-row class="rowStyle">
label-position="right" <el-col :span="24" class="tleftb colStyle">
class="formadd" <span>金额单位: </span>
>
<div class="tit">
销售虚拟订车单
<div class="times">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div>
<div><span>金额单位</span><span></span></div>
</div>
</div>
<el-row class="bordertopline">
<el-col :span="2" class="tleftb">
<el-form-item>订单类型</el-form-item>
</el-col> </el-col>
<el-col :span="6" class="trightb"> </el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>分公司</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>客户名称</el-form-item> <span>客户名称</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.customerName }} {{ temp.customerName }}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>联系电话</el-form-item> <span>联系电话</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.mobile }} {{ temp.mobile }}
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 预订车辆信息--> <!--Start 预订车辆信息-->
<!-- <div class="title">-->
<div class="title">预订车辆信息</div> <div class="title">预订车辆信息</div>
<!-- </div>--> <el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index">
<el-table <el-table-column align="center" label="序号" type="index" width="60"/>
v-loading="listLoading"
:data="list"
border
style="width: 100%"
:index="index"
>
<el-table-column
align="center"
label="序号"
type="index"
width="50"
/>
<el-table-column label="品牌" align="center"> <el-table-column label="品牌" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.brand }}</span> <span>{{ scope.row.brand }}</span>
@ -80,16 +85,16 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="车架号" align="center"> <el-table-column label="车架号" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.vin }}</span> <span>{{ scope.row.vin }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="颜色" align="center"> <el-table-column label="颜色" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.colour }}</span> <span>{{ scope.row.colour }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="存放地点" align="center"> <el-table-column label="存放地点">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.location }}</span> <span>{{ scope.row.location }}</span>
</template> </template>
@ -115,18 +120,19 @@
</div> </div>
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%"> <el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form label-position="right" class="formadd"> <el-form label-position="right" class="formadd">
<el-row v-show="currentLink"> <el-row v-show="currentLink" style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb">当前环节</el-col> <el-col :span="4" class="tleftb">当前环节</el-col>
<el-col :span="20" class="trightb"> <el-col :span="20">
<el-form-item prop="purchasingUnitName"><span>{{ current.taskName }}->{{ nextNode.name }}</span> <el-form-item prop="purchasingUnitName"><span>{{ current.taskName }}->{{ nextNode.name }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="border-bottom: 1px solid #e0e3eb;"> <el-row :class="{ rowClass:!currentLink }">
<el-col :span="4" class="tleftb">意见</el-col> <el-col :span="4" class="tleftb">意见</el-col>
<el-col :span="20" class="trightb"> <el-col :span="20">
<el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" <el-form-item>
clearable></el-input> <el-input v-model="dialogList.comment" placeholder="审批意见" class="addinputw" clearable></el-input>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<div style="text-align:center;margin-top: 20px;"> <div style="text-align:center;margin-top: 20px;">
@ -139,336 +145,272 @@
</template> </template>
<script> <script>
import {mapGetters} from "vuex"; import { getReserveCarDetails } from '@/api/jichuxinxi/busdeposit'
import {getReserveCarDetails} from "@/api/jichuxinxi/busdeposit";
import req from '@/api/flow/jianyidingdan.js' import req from '@/api/flow/jianyidingdan.js'
export default { export default {
name: "cheliangyuding", name: 'cheliangyuding',
data() { data() {
return { return {
disabled: true, disabled: true,
index: 0, index: 0,
edit: true, // ---------
// --------- FormLoading: false,
YongHuid: [], listLoading: false,
visible: true, list: [],
stateId: "0", temp: {}, //
FormLoading: false, // ------------------------------------
listLoading: false, currentLink: true, //
list: [], dialogList: {
temp: {}, // comment: ''
textMap: { },
update: "修改", xmlData: '', // xml
create: "创建", taskList: [],
}, startTask: true,
submitDto: { current: {
businessSid: '', taskDefKey: '',
userSid: window.sessionStorage.getItem("userSid"), taskName: '' //
}, },
nodeState: '', nextNode: {}, //
billNo: '', nodeDialogVisible: false,
createDate: '', //
mobile: '', agreeList: {
orgName: '', businessSid: '',
staffName: '', comment: '',
_userSid: '', instanceId: '',
customerName: [], taskId: '',
xuniSid: '', orgSidPath: '',
tificateT: [], taskDefKey: '',
dnumbDate: [], userSid: ''
dialogStatus: '', // },
// ------------------------------------ //
currentLink:true, // regectList: {
dialogList: { businessSid: '',
comment: '' comment: '',
}, instanceId: '',
xmlData: '', // xml taskId: '',
taskList: [], userSid: ''
startTask: true, },
current: { //
taskDefKey: '', stopList: {
taskName: '' // businessSid: '',
}, comment: '',
nextNode: {}, // instanceId: '',
nodeDialogVisible: false, taskId: '',
// userSid: ''
agreeList: { }
businessSid: '', }
comment: '', },
instanceId: '', mounted() {
taskId: '', window.parent.postMessage({
orgSidPath: '', cmd: 'returnHeight',
taskDefKey: '', params: {
userSid:'' //
}, code: 2,
// data: 350 + 'px'
regectList: { }
businessSid: '', }, '*')
comment: '', },
instanceId: '', created() {
taskId: '', // ===
userSid: '' var one = window.location.href.indexOf('&data') + 6
}, const data = window.location.href.substr(one) // urlunescape()web,使
// const obj = JSON.parse(decodeURIComponent(data))
stopList: { console.log('获取到的obj', obj)
businessSid: '', //
comment: '', this.agreeList.businessSid = obj.businessSid
instanceId: '', this.agreeList.instanceId = obj.instanceId
taskId: '', this.agreeList.taskId = obj.taskId
userSid: '' this.agreeList.taskDefKey = obj.taskDefKey
this.agreeList.userSid = window.sessionStorage.getItem('userSid')
this.agreeList.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.regectList.businessSid = obj.businessSid
this.regectList.instanceId = obj.instanceId
this.regectList.taskId = obj.taskId
this.regectList.userSid = window.sessionStorage.getItem('userSid')
//
this.stopList.businessSid = obj.businessSid
this.stopList.instanceId = obj.instanceId
this.stopList.taskId = obj.taskId
this.stopList.userSid = window.sessionStorage.getItem('userSid')
//
this.showInfo(obj.businessSid)
},
methods: {
// ------------------
showInfo(sid) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
getReserveCarDetails(sid).then((response) => {
if (response.code) {
this.temp = response.data
this.list = response.data.vehicleList
} }
}; })
}, },
computed: { // ---------- -----------------------------
...mapGetters([ //
"id", openAgree(val) {
"roles", this.operation = val
"rolesIds", this.dialogList.comment = '同意'
"departmentId", this.currentLink = true //
"departmentCode", // const formVariables = {
]), // businessSid: this.agreeList.businessSid
// }
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
}, },
mounted() { //
window.parent.postMessage({ openReject(val) {
cmd: 'returnHeight', this.operation = val
params: { this.dialogList.comment = ''
// this.currentLink = true //
code: 2, // const formVariables = {
data: document.body.scrollHeight + 220 + 'px' // businessSid: this.regectList.businessSid
// }
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
} }
}, '*') this.submitdisabled = false
})
}, },
created() { //
// === openStop(val) {
var one = window.location.href.indexOf('&data') + 6 this.operation = val
const data = window.location.href.substr(one) // urlunescape()web,使 this.dialogList.comment = ''
const obj = JSON.parse(decodeURIComponent(data)) this.currentLink = false //
console.log('获取到的obj',obj) this.nodeDialogVisible = true
//
this.agreeList.businessSid = obj.businessSid
this.agreeList.instanceId = obj.instanceId
this.agreeList.taskId = obj.taskId
this.agreeList.taskDefKey = obj.taskDefKey
this.agreeList.userSid = window.sessionStorage.getItem('userSid')
this.agreeList.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.regectList.businessSid = obj.businessSid
this.regectList.instanceId = obj.instanceId
this.regectList.taskId = obj.taskId
this.regectList.userSid = window.sessionStorage.getItem('userSid')
//
this.stopList.businessSid = obj.businessSid
this.stopList.instanceId = obj.instanceId
this.stopList.taskId = obj.taskId
this.stopList.userSid = window.sessionStorage.getItem('userSid')
//
this.transactState = obj.transactState
//
this.showInfo(obj.businessSid)
this.getModelDetail(obj.deployId)
this.getFlowViewer(obj.instanceId)
}, },
methods: { /** 选择代办人确认 */
// ------------------ confirm() {
showInfo(sid) { if (this.operation === '同意') {
console.log("修改打开", sid); this.handleAgree()
this.submitDto.businessSid = sid; } else if (this.operation === '驳回') {
this.$nextTick(() => { this.handleReject()
this.$refs["dataForm"].clearValidate(); } else if (this.operation === '终止') {
}); this.handleStop()
getReserveCarDetails(sid).then((response) => { }
if (response.code) { },
this.temp = response.data /** 同意任务 */
this.list = response.data.vehicleList handleAgree() {
} else { this.agreeList.comment = this.dialogList.comment
this.$notify({ if (this.agreeList.comment === '') {
title: "提示", this.$message({
message: "查看失败", showClose: true,
type: "error", message: '请填写同意意见!',
duration: 2000, type: 'error'
});
}
});
},
// ---------- ------------------------------
/** xml 文件 */
getModelDetail(deployId) {
// xml
req.readXml(deployId).then((res) => {
this.xmlData = res.data
})
},
//
getFlowViewer(procInsId) {
req.getFlowViewer(procInsId).then((res) => {
this.taskList = res.data
})
},
//
openAgree(val) {
this.operation = val
this.dialogList.comment = '同意'
this.currentLink = true //
// const formVariables = {
// businessSid: this.agreeList.businessSid
// }
req.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.dialogList.comment = ''
this.currentLink = true //
// const formVariables = {
// businessSid: this.regectList.businessSid
// }
req.getPreviousNodesForReject({taskDefKey: this.current.taskDefKey}).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
}) })
}, return
// }
openStop(val) { req.agreeCheliangTask(this.agreeList).then((response) => {
this.operation = val if (response.success) {
this.dialogList.comment = ''
this.currentLink = false //
this.nodeDialogVisible = true
},
/** 选择代办人确认 */
confirm() {
if (this.operation === '同意') {
this.handleAgree()
} else if (this.operation === '驳回') {
this.handleReject()
} else if (this.operation === '终止') {
this.handleStop()
}
},
/** 同意任务 */
handleAgree() {
this.agreeList.comment = this.dialogList.comment
if (this.agreeList.comment == '') {
this.$message({ this.$message({
showClose: true, showClose: true,
message: '请填写同意意见!', message: '执行成功',
type: 'error' type: 'success'
}) })
return this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} }
req.agreeCheliangTask(this.agreeList).then((response) => { })
if (response.success) { },
this.$message({ /** 驳回任务 */
showClose: true, handleReject() {
message: '执行成功', this.regectList.comment = this.dialogList.comment
type: 'success' if (this.regectList.comment === '') {
}) this.$message({
this.nodeDialogVisible = false showClose: true,
// message: '请填写驳回意见!',
window.parent.postMessage({ type: 'error'
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
}) })
}, return
/** 驳回任务 */ }
handleReject() { req.rejectTask(this.regectList).then((response) => {
this.regectList.comment = this.dialogList.comment if (response.success) {
if (this.regectList.comment == '') {
this.$message({ this.$message({
showClose: true, showClose: true,
message: '请填写驳回意见!', message: '执行成功',
type: 'error' type: 'success'
}) })
return this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} }
req.rejectTask(this.regectList).then((response) => { })
if (response.success) { },
this.$message({ /** 终止任务 */
showClose: true, handleStop() {
message: '执行成功', this.stopList.comment = this.dialogList.comment
type: 'success' if (this.stopList.comment === '') {
}) this.$message({
this.nodeDialogVisible = false showClose: true,
// message: '请填写终止意见!',
window.parent.postMessage({ type: 'error'
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
}) })
}, return
/** 终止任务 */ }
handleStop() { req.breakTask(this.stopList).then((response) => {
this.stopList.comment = this.dialogList.comment if (response.success) {
if (this.stopList.comment == '') {
this.$message({ this.$message({
showClose: true, showClose: true,
message: '请填写终止意见!', message: '执行成功',
type: 'error' type: 'success'
}) })
return this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} }
req.breakTask(this.stopList).then((response) => { })
if (response.success) { }
this.$message({
showClose: true,
message: '执行成功',
type: 'success'
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
},
} }
}
</script> </script>
<style scoped> <style scoped>
.tit { .titwu {
margin: 0 0 20px 0; font-size: 28px;
padding: 10px 0 0 0; text-align: center;
} padding: 30px 0 20px 0;
}
.times { .rowStyle {
display: flex; border-left: 0px !important;
flex-direction: row; }
justify-content: space-around; .colStyle {
padding: 30px 0 10px 0; border-right: 0px !important;
margin: 0 auto 0px auto; }
width: 70%; .rowClass {
font-size: 14px; border-top: 1px solid #E0E3EB;
} }
/deep/ . el-form-item__content {
margin-left: 0 !important;
}
</style> </style>

611
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingEdit.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="visible"> <div v-show="viewState == 1">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
@ -9,57 +9,79 @@
</div> </div>
</div> </div>
<div class=""> <div class="">
<el-form ref="dataForm" :model="temp" label-position="right" label-width="100%" class="formadd" :rules="rules"> <div class="titwu">销售简易订单</div>
<div class="tit"> <el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
销售虚拟订车单 <el-row class="rowStyle">
<div class="times"> <el-col :span="24" class="tleftb colStyle">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div> <span>金额单位: </span>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div> </el-col>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div> </el-row>
<div><span>金额单位</span><span></span></div> <el-row>
</div> <el-col :span="3" class="tleftb">
</div> <span>分公司</span>
<el-row class="bordertopline"> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="5">
<el-form-item>订单类型</el-form-item> <el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>客户名称</el-form-item> <span>客户名称</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.customerName }} {{ temp.customerName }}
<span class="bluezi changeIt" @click="handleCustomer()">选择客户/新增客户</span> <span class="bluezi changeIt" @click="handleCustomer()">选择客户</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>联系电话</el-form-item> <span>联系电话</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.mobile }} {{ temp.mobile }}
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 预订车辆信息--> <!--Start 预订车辆信息-->
<div class="titcon"> <div class="title">
<div class="title">预订车辆信息</div> <div>预订车辆信息</div>
<div class="baocun"> <div>
<el-button size="medium" type="primary" @click="handleyudingcheliang" class="btntopbluebut">选择车辆 <el-button size="mini" type="primary" @click="handleyudingcheliang" class="btntopbluebut">选择车辆
</el-button> </el-button>
</div> </div>
</div> </div>
<el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index"> <el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index">
<el-table-column align="center" label="序号" type="index" width="50"/> <el-table-column align="center" label="序号" type="index" width="60"/>
<el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="danger" <el-button size="mini" type="danger" @click="handleDelete(scope.row,scope.$index,list[scope.$index])">删除
@click="handleDelete(scope.row,scope.$index,list[scope.$index])">删除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -74,12 +96,12 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="车架号" width="140px" align="center"> <el-table-column label="车架号" width="140px" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.vin }}</span> <span>{{ scope.row.vin }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="颜色" width="100px" align="center"> <el-table-column label="颜色" width="100px" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.colour }}</span> <span>{{ scope.row.colour }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -95,10 +117,7 @@
</el-table-column> </el-table-column>
<el-table-column label="预计订金日期" width="220px" align="center"> <el-table-column label="预计订金日期" width="220px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker v-model="scope.row.depositDate" type="date" style="width:90%" <el-date-picker v-model="scope.row.depositDate" type="date" style="width:90%" value-format="yyyy-MM-dd" placeholder="选择日期" :picker-options="pickerOptions">
value-format="yyyy-MM-dd"
placeholder="选择日期"
:picker-options="pickerOptions">
</el-date-picker> </el-date-picker>
</template> </template>
</el-table-column> </el-table-column>
@ -111,313 +130,279 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<xuanzecheliang v-show="viewState == 3" @yudingcheliangfanhui="resetState" ref="divCheLiang" @handleVehicle="selectVehicle"/>
<!--选择车辆确定-->
<xuanzecheliang v-show="xuanzecheliangShow" @yudingcheliangfanhui="yudingcheliangfanhui" ref="xuanzecheliang"
@handleVehicle="selectVehicle"/>
<!--选择客户确定--> <!--选择客户确定-->
<xuanzekehu v-show="xuanzekehuShow" @yudingcheliangfanhui="yudingcheliangfanhui" ref="xuanzekehu" <xuanzekehu v-show="viewState == 2" ref="divSelect" @doback="resetState" @handleCustomer="selectCustomer"/>
@handleCustomer="selectCustomer"/>
</div> </div>
</template> </template>
<script> <script>
import {fetchBySid, getPathSidByUserSid} from '@/api/dictcommons/dictcommons' import { fetchBySid, getPathSidByUserSid } from '@/api/dictcommons/dictcommons'
import {saveChe, selectSid, submitVehicleApprove, typeValues} from '@/api/jichuxinxi/busdeposit' import { saveChe, selectSid, submitVehicleApprove, typeValues } from '@/api/jichuxinxi/busdeposit'
import req from '@/api/flow/jianyidingdan.js' import xuanzecheliang from './relation/xuanzecheliang'
import yudingcheliang from "@/views/xiaoshouguanli/xunidingdan/com/yudingcheliang" import xuanzekehu from './relation/xuanzekehu'
import hetongdanganguanliAdd from '@/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue'
import hetongdanganguanliInfo from '@/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue' export default {
import kehudanganAdd from '@/views/kehuguanli/kehudangan/kehudanganAdd.vue' name: 'cheliangyudingEdit',
import xuanzecheliang from "@/views/xiaoshouguanli/xunidingdan/com/xuanzecheliang" components: {
import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu" xuanzecheliang,
export default { xuanzekehu
name: "cheliangyudingEdit", },
components: { data() {
yudingcheliang, return {
hetongdanganguanliAdd, //
hetongdanganguanliInfo, pickerOptions: {
kehudanganAdd, disabledDate(time) {
xuanzecheliang, let threeDay = 60 * 60 * 24 * 1000 * 3
xuanzekehu return time.getTime() < Date.now() || time.getTime() > Date.now() + threeDay
}, }
data() { },
return { viewTitle: '',
// index: 0,
pickerOptions: { disabled: false, //
disabledDate(time) { // ---------
let threeDay = 60 * 60 * 24 * 1000 * 3; viewState: 1,
return time.getTime() < Date.now() || time.getTime() > Date.now() + threeDay; FormLoading: false,
}, listLoading: false,
}, list: [],
viewTitle: '', temp: {
index: 0,
disabled: false, //
// dialogStatus: 'add',
// ---------
YongHuid: [],
edit: true,
visible: true,
stateId: '0',
FormLoading: false,
listLoading: false,
list: [],
temp: {
staffName: '',
customerSid: '', // sid
virtualOrderSid: '', // s
customerName: '', //
virtualOrderId: '', // s
sellerName: '', //
departmentName: '', //
mobile: '', //
createDate: '', //
carList: [],
taskId: '', // Id
procInsId: '', // ID
userSid: window.sessionStorage.getItem('userSid')
}, //
xuniSid: '',
mobile: '',
orgName: '',
staffName: '', staffName: '',
_userSid: '', customerSid: '', // sid
deposit_list: [], virtualOrderSid: '', // s
customerName: [], customerName: '', //
tificateT: [], virtualOrderId: '', // s
dnumbDate: [], sellerName: '', //
dialogStatus: '', // departmentName: '', //
yudingcheliangShow: false, mobile: '', //
xuanzecheliangShow: false, // createDate: '', //
xuanzekehuShow: false, // carList: [],
rules: {}, taskId: '', // Id
// ------------------------------------ procInsId: '', // ID
userSid: window.sessionStorage.getItem('userSid')
},
deposit_list: [],
rules: {}
// ------------------------------------
}
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 350 + 'px'
} }
}, '*')
},
created() {
// ===
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
this.showEdit(obj.businessSid, obj.instanceId, obj.taskId)
},
methods: {
// -
getDeposit_date() {
typeValues({
type: 'reserveDepositDate'
}).then((res) => {
if (res.code === '200') {
this.deposit_list = res.data
console.log('下拉框请求预计订金日期', res.data)
}
})
}, },
mounted() { changeDeposit_date(row) {
window.parent.postMessage({ for (var i = 0; i < this.deposit_list.length; i++) {
cmd: 'returnHeight', if (this.deposit_list[i].dictValue === row.depositDate) {
params: { row.depositDate = this.deposit_list[i].dictValue
// this.list[i].reserve_deposit_date_key = this.deposit_list[i].dictKey
code: 2,
data: document.body.scrollHeight + 220 + 'px'
} }
}, '*') }
}, },
created() { getPathSid() {
// === const userSid = window.sessionStorage.getItem('userSid')
var one = window.location.href.indexOf('&data') + 6 getPathSidByUserSid({ userSid: userSid }).then((res) => {
const data = window.location.href.substr(one) // urlunescape()web,使 if (res.success) {
const obj = JSON.parse(decodeURIComponent(data)) this.getCreateOrgName(res.data)
this.showEdit(obj.businessSid,obj.instanceId,obj.taskId) }
})
}, },
methods: { getCreateOrgName(sid) {
//- fetchBySid(sid).then((res) => {
getDeposit_date() { if (res.success) {
typeValues({ this.temp.departmentName = res.data.name
type: 'reserveDepositDate'
}).then((res) => {
if (res.code === '200') {
this.deposit_list = res.data
console.log('下拉框请求预计订金日期', res.data)
}
})
},
changeDeposit_date(row) {
for (var i = 0; i < this.deposit_list.length; i++) {
if (this.deposit_list[i].dictValue === row.depositDate) {
row.depositDate = this.deposit_list[i].dictValue
this.list[i].reserve_deposit_date_key = this.deposit_list[i].dictKey
}
} }
}, })
getPathSid() { },
const userSid = window.sessionStorage.getItem('userSid') showEdit(businessSid, instanceId, taskId) {
getPathSidByUserSid({userSid: userSid}).then((res) => { this.$nextTick(() => {
if (res.success) { this.$refs['dataForm'].clearValidate()
this.getCreateOrgName(res.data) })
} this.viewTitle = '【编辑】销售简易订单'
}) const data = {
}, customerSid: '',
getCreateOrgName(sid) { virtualOrderSid: businessSid,
fetchBySid(sid).then((res) => { userSid: window.sessionStorage.getItem('userSid')
if (res.success) { }
this.temp.departmentName = res.data.name selectSid(data).then((response) => {
} if (response.code) {
}) this.temp = response.data
}, this.list = response.data.carList
showEdit(businessSid,instanceId,taskId) { this.temp.sid = businessSid
this.$nextTick(() => { this.temp.instanceId = instanceId
this.$refs['dataForm'].clearValidate() this.temp.taskId = taskId
});
this.stateId = '1'
this.dialogStatus = 'edit';
this.viewTitle = '【编辑】销售简易订单';
const data = {
customerSid: '',
virtualOrderSid: businessSid,
userSid: window.sessionStorage.getItem('userSid')
} }
selectSid(data).then((response) => { })
if (response.code) { this.getDeposit_date()
this.temp = response.data },
this.list = response.data.carList // ------------ ------------
this.temp.sid = businessSid //
this.temp.instanceId = instanceId handleCreate() {
this.temp.taskId = taskId this.$refs['dataForm'].validate((valid) => {
} if (valid) {
}); this.temp.carList = this.list
this.getDeposit_date() this.temp.staffSid = window.sessionStorage.getItem('staffSid')
}, this.temp.orgSid = window.sessionStorage.getItem('orgSid')
saveChe(this.temp).then((response) => {
// ------------ ------------ this.FormLoading = true
// if (response.code === '200') {
handleCreate() { this.FormLoading = false
this.$message({ showClose: true, type: 'success', message: '提交成功' })
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.$notify({
title: '提示',
message: '添加失败',
type: 'error',
duration: 2000
})
}
})
}
})
},
//
handleSubmit() {
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
this.dialogStatus = 'create'; this.FormLoading = true
this.temp.carList = this.list; this.temp.carList = this.list
this.temp.staffSid = window.sessionStorage.getItem('staffSid') this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid') this.temp.orgSid = window.sessionStorage.getItem('orgSid')
saveChe(this.temp).then((response) => { console.log('提交时sid', this.temp.sid)
this.FormLoading = true; //
submitVehicleApprove(this.temp).then((response) => {
if (response.code === '200') { if (response.code === '200') {
this.xuniSid = response.data;
this.FormLoading = false;
// this.$emit('doback')
} else {
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '添加失败', message: '提交成功',
type: 'error', type: 'success',
duration: 2000, duration: 2000
})
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.$notify({
title: '提交失败',
message: response.msg,
type: 'error'
}) })
} }
}) })
} }
}) })
}, })
},
// //
handleSubmit() { selectCustomer(row) {
this.$confirm('是否确定提交该业务', '提示', { this.viewState = 1
confirmButtonText: '确定', this.temp.customerName = row.name
cancelButtonText: '取消', this.temp.customerSid = row.sid
type: 'warning' this.temp.mobile = row.mobile
}).then(() => { },
this.$refs['dataForm'].validate((valid) => { //
if (valid) { selectVehicle(depositVehicleList) {
this.FormLoading = true; this.viewState = 1
this.dialogStatus = 'create'; for (var i = 0; i < depositVehicleList.length; i++) {
this.temp.carList = this.list; this.list.push({
this.temp.staffSid = window.sessionStorage.getItem('staffSid') brand: depositVehicleList[i].brandName,
this.temp.orgSid = window.sessionStorage.getItem('orgSid') model: depositVehicleList[i].vehicleAlias,
console.log('提交时sid', this.temp.sid) vin: depositVehicleList[i].vinNo,
// colour: depositVehicleList[i].carColor,
submitVehicleApprove(this.temp).then((response) => { location: depositVehicleList[i].location,
if (response.code === '200') { price: depositVehicleList[i].guidedPrice,
this.$notify({ modelSid: depositVehicleList[i].modelSid,
title: '提示', configSid: depositVehicleList[i].configSid,
message: '提交成功', carSid: depositVehicleList[i].sid
type: 'success',
duration: 2000,
})
} else {
this.$notify({
title: '提交失败',
message: response.msg,
type: 'error',
})
}
})
}
})
}) })
}, }
//
selectCustomer(row) {
this.temp.customerName = row.name
this.temp.customerSid = row.sid
this.temp.mobile = row.mobile
},
//
selectVehicle(depositVehicleList) {
for (var i = 0; i < depositVehicleList.length; i++) {
this.list.push({
brand: depositVehicleList[i].brandName,
model: depositVehicleList[i].vehicleAlias,
vin: depositVehicleList[i].vinNo,
colour: depositVehicleList[i].carColor,
location: depositVehicleList[i].location,
price: depositVehicleList[i].guidedPrice,
modelSid: depositVehicleList[i].modelSid,
configSid: depositVehicleList[i].configSid,
carSid: depositVehicleList[i].sid
})
}
},
//
handleDelete(row, index) {
this.list.splice(index, 1)
// if (row.sid !== '') {
// const sid_list = []
// sid_list.push(row.sid, row.vehicleSid)
// console.log('', sid_list)
// } else {
// this.list.splice(index, 1)
// }
},
// ------------ ------------
//
handleyudingcheliang() {
this.visible = false;
this.xuanzekehuShow = false;
this.xuanzecheliangShow = true;
this.yudingcheliangShow = false;
},
//
handleCustomer() {
this.xuanzekehuShow = true
this.xuanzecheliangShow = false;
this.visible = false;
this.yudingcheliangShow = false;
},
//
yudingcheliangfanhui() {
this.visible = true;
this.xuanzecheliangShow = false
this.xuanzekehuShow = false
this.yudingcheliangShow = false;
},
}, },
//
handleDelete(row, index) {
this.list.splice(index, 1)
},
// ------------ ------------
//
handleyudingcheliang() {
this.viewState = 3
this.$refs['divCheLiang'].init()
},
//
handleCustomer() {
this.viewState = 2
this.$refs['divSelect'].init()
},
//
resetState() {
this.viewState = 1
}
} }
}
</script> </script>
<style scoped> <style scoped>
.tit { .titwu {
margin: 0 0 20px 0; font-size: 28px;
padding: 10px 0 0 0; text-align: center;
} padding: 30px 0 20px 0;
}
.times { .title {
display: flex; padding: 7px;
flex-direction: row; display: flex;
justify-content: space-around; flex-direction: row;
padding: 30px 0 10px 0; justify-content: space-between;
margin: 0 auto 0px auto; align-items: center;
width: 70%; }
font-size: 14px; .rowStyle {
} border-left: 0px !important;
}
/deep/ .el-form-item__content { .colStyle {
margin-left: 0 !important; border-right: 0px !important;
} }
.changeIt {
.changeIt { line-height: 40px;
line-height: 40px; font-size: 17px;
font-size: 17px; float: right;
float: right; }
}
</style> </style>

356
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingInfo.vue

@ -1,72 +1,76 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="visible"> <div>
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>销售简易订单详情</div> <div>销售简易订单详情</div>
<!-- <div v-else></div> -->
<div> <div>
<el-button type="danger" @click="openRevoke"> </el-button> <el-button type="danger" size="small" @click="openRevoke"> </el-button>
</div> </div>
</div> </div>
<div class="listconadd"> <div class="">
<el-form <div class="titwu">销售简易订单</div>
ref="dataForm" <el-form ref="dataForm" :model="temp" label-position="right" class="formadd">
:model="temp" <el-row class="rowStyle">
label-position="right" <el-col :span="24" class="tleftb colStyle">
class="formadd" <span>金额单位: </span>
>
<div class="tit">
销售虚拟订车单
<div class="times">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div>
<div><span>金额单位</span><span></span></div>
</div>
</div>
<el-row class="bordertopline">
<el-col :span="2" class="tleftb">
<el-form-item>订单类型</el-form-item>
</el-col> </el-col>
<el-col :span="6" class="trightb"> </el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>分公司</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>客户名称</el-form-item> <span>客户名称</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.customerName }} {{ temp.customerName }}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>联系电话</el-form-item> <span>联系电话</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.mobile }} {{ temp.mobile }}
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 预订车辆信息--> <!--Start 预订车辆信息-->
<!-- <div class="title">-->
<div class="title">预订车辆信息</div> <div class="title">预订车辆信息</div>
<!-- </div>--> <el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index">
<el-table <el-table-column align="center" label="序号" type="index" width="60"/>
v-loading="listLoading"
:data="list"
border
style="width: 100%"
:index="index"
>
<el-table-column
align="center"
label="序号"
type="index"
width="50"
/>
<el-table-column label="品牌" align="center"> <el-table-column label="品牌" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.brand }}</span> <span>{{ scope.row.brand }}</span>
@ -78,16 +82,16 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="车架号" align="center"> <el-table-column label="车架号" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.vin }}</span> <span>{{ scope.row.vin }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="颜色" align="center"> <el-table-column label="颜色" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.colour }}</span> <span>{{ scope.row.colour }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="存放地点" align="center"> <el-table-column label="存放地点">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.location }}</span> <span>{{ scope.row.location }}</span>
</template> </template>
@ -115,172 +119,116 @@
</template> </template>
<script> <script>
import {mapGetters} from "vuex"; import { getReserveCarDetails } from '@/api/jichuxinxi/busdeposit'
import {getReserveCarDetails} from "@/api/jichuxinxi/busdeposit";
import req from '@/api/flow/jianyidingdan.js' import req from '@/api/flow/jianyidingdan.js'
export default { export default {
name: "cheliangyudingInfo", name: 'cheliangyudingInfo',
data() { data() {
return { return {
disabled: true, disabled: true,
index: 0, index: 0,
edit: true, // ---------
// --------- FormLoading: false,
YongHuid: [], listLoading: false,
visible: true, list: [],
stateId: "0", temp: {}, //
FormLoading: false, // ------------------------------------
listLoading: false, //
list: [], revokeList: {
temp: {}, // businessSid: '',
textMap: { instanceId: '',
update: "修改", taskId: '',
create: "创建", userSid: ''
}, }
submitDto: { }
businessSid: '', },
userSid: window.sessionStorage.getItem("userSid"), mounted() {
}, window.parent.postMessage({
nodeState: '', cmd: 'returnHeight',
billNo: '', params: {
createDate: '', //
mobile: '', code: 2,
orgName: '', data: 380 + 'px'
staffName: '', }
_userSid: '', }, '*')
customerName: [], },
xuniSid: '', created() {
tificateT: [], // ===
dnumbDate: [], var one = window.location.href.indexOf('&data') + 6
dialogStatus: '', // // urlunescape()web,使
// ------------------------------------ const data = window.location.href.substr(one) // urlunescape()web,使
// const obj = JSON.parse(decodeURIComponent(data))
revokeList: { console.log('obj', obj)
businessSid: '', this.showInfo(obj.businessSid)
instanceId: '', //
taskId: '', this.revokeList.businessSid = obj.businessSid
userSid: '' this.revokeList.instanceId = obj.instanceId
}, this.revokeList.taskId = obj.taskId
}; this.revokeList.taskDefKey = obj.taskDefKey
}, this.revokeList.userSid = window.sessionStorage.getItem('userSid')
computed: { },
...mapGetters([ methods: {
"id", // ------------------
"roles", showInfo(sid) {
"rolesIds", this.$nextTick(() => {
"departmentId", this.$refs['dataForm'].clearValidate()
"departmentCode", })
]), getReserveCarDetails(sid).then((response) => {
}, if (response.code) {
mounted() { this.temp = response.data
window.parent.postMessage({ this.list = response.data.vehicleList
cmd: 'returnHeight',
params: {
//
code: 2,
data: document.body.scrollHeight + 220 + 'px'
} }
}, '*') })
}, },
created() { openRevoke() {
// === this.$confirm('是否确认执行撤回操作', '提示', {
var one = window.location.href.indexOf('&data') + 6 confirmButtonText: '确定',
// urlunescape()web,使 cancelButtonText: '取消',
const data = window.location.href.substr(one) // urlunescape()web,使 type: 'warning'
const obj = JSON.parse(decodeURIComponent(data)) }).then(() => {
console.log('obj',obj) this.handleRevoke()
this.showInfo(obj.businessSid) }).catch(() => {
// this.$message({
this.revokeList.businessSid = obj.businessSid type: 'info',
this.revokeList.instanceId = obj.instanceId message: '已取消撤回'
this.revokeList.taskId = obj.taskId })
this.revokeList.taskDefKey = obj.taskDefKey })
this.revokeList.userSid = window.sessionStorage.getItem('userSid')
//
this.transactState = obj.transactState
//
// this.getModelDetail(obj.deployId)
// this.getFlowViewer(obj.instanceId)
}, },
methods: { /** 撤回任务 */
// ------------------ handleRevoke() {
showInfo(sid) { req.revokeTask(this.revokeList).then((response) => {
console.log("修改打开", sid); if (response.success) {
this.submitDto.businessSid = sid;
this.$nextTick(() => {
this.$refs["dataForm"].clearValidate();
});
getReserveCarDetails(sid).then((response) => {
if (response.code) {
this.temp = response.data
this.list = response.data.vehicleList
} else {
this.$notify({
title: "提示",
message: "查看失败",
type: "error",
duration: 2000,
});
}
});
},
openRevoke() {
this.$confirm('是否确认执行撤回操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleRevoke()
}).catch(() => {
this.$message({ this.$message({
type: 'info', showClose: true,
message: '已取消撤回' message: '执行成功',
type: 'success'
}) })
}) //
}, window.parent.postMessage({
/** 撤回任务 */ cmd: 'returnHeight',
handleRevoke() { params: {
// this.revokeList.comment = this.dialogList.comment //
req.revokeTask(this.revokeList).then((response) => { code: 1
if (response.success) { }
this.$message({ }, '*')
showClose: true, }
message: '执行成功', })
type: 'success' }
});
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
},
} }
}
</script> </script>
<style scoped> <style scoped>
.tit { .titwu {
margin: 0 0 20px 0; font-size: 28px;
padding: 10px 0 0 0; text-align: center;
} padding: 30px 0 20px 0;
}
.times { .rowStyle {
display: flex; border-left: 0px !important;
flex-direction: row; }
justify-content: space-around; .colStyle {
padding: 30px 0 10px 0; border-right: 0px !important;
margin: 0 auto 0px auto; }
width: 70%;
font-size: 14px;
}
/deep/ . el-form-item__content {
margin-left: 0 !important;
}
</style> </style>

195
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouqu.vue

@ -2,63 +2,86 @@
<div class="app-container"> <div class="app-container">
<div> <div>
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>销售虚拟订单管理详细信息</div> <div>销售简易订单详情</div>
<div> <div>
<el-button type="primary" @click="openAgree('同意')"> </el-button> <el-button type="primary" size="small" @click="openAgree('同意')"> </el-button>
<el-button type="danger" @click="openReject('驳回')"> </el-button> <el-button type="danger" size="small" @click="openReject('驳回')"> </el-button>
<el-button type="danger" @click="openStop('终止')"> </el-button> <el-button type="danger" size="small" @click="openStop('终止')"> </el-button>
</div> </div>
</div> </div>
<div class="listconadd"> <div class="">
<el-form ref="dataForm" :model="temp" label-position="right" label-width="100%" class="formadd"> <div class="titwu">销售简易订单</div>
<div class="tit"> <el-form ref="dataForm" :model="temp" class="formadd">
销售简易订单 <el-row class="rowStyle">
<div class="times"> <el-col :span="24" class="tleftb colStyle">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div> <span>金额单位: </span>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div> </el-col>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div> </el-row>
<div><span>金额单位</span><span></span></div> <el-row>
</div>
</div>
<el-row class="bordertopline">
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>订单类型</span></el-form-item> <span>分公司</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款人</span></el-form-item> <span>付款人</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payName }}</span> <span>{{ temp.payName }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>联系电话</span></el-form-item> <span>联系电话</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.mobile }}</span> <span>{{ temp.phone }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>车辆台数</span></el-form-item> <span>车辆台数</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.carNumber }}</span> <span>{{ temp.carNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>订金金额</span></el-form-item> <span>订金金额</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="13">
<el-form-item> <el-form-item>
<span>{{ temp.deposit }}</span> <span>{{ temp.deposit }}</span>
</el-form-item> </el-form-item>
@ -66,43 +89,43 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款日期</span></el-form-item> <span>付款日期</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payDate }}</span> <span>{{ temp.payDate }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款方式</span></el-form-item> <span>付款方式</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payType }}</span> <span>{{ temp.payTypeValue }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款银行账号</span></el-form-item> <span>付款银行账号</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.payNumber" class="addinputw" placeholder="" clearable/> <span>{{ temp.payNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>收款银行账号</span></el-form-item> <span>收款银行账号</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.collectionNumber }}</span> <span>{{ temp.collectionNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>收款银行</span></el-form-item> <span>收款银行</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="13">
<el-form-item> <el-form-item>
<span>{{ temp.collectionBank }}</span> <span>{{ temp.collectionBank }}</span>
</el-form-item> </el-form-item>
@ -110,27 +133,27 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>备注</span></el-form-item> <span>备注</span>
</el-col> </el-col>
<el-col :span="21" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<span>{{ temp.remarks }}</span> <span>{{ temp.remarks }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span slot="label">付款凭证</span></el-form-item> <span>付款凭证</span>
</el-col> </el-col>
<el-col :span="20" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<img :src="imgUrl"> <img style="width: 178px;height: 178px" :src="imgUrl" @click="handleLook(imgUrl)">
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 客户信息--> <!--Start 客户信息-->
<div class="titcon"> <div class="title">
<div class="title">客户信息</div> <div>客户信息</div>
</div> </div>
<el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index"> <el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index">
<el-table-column align="center" label="序号" type="index" width="60"/> <el-table-column align="center" label="序号" type="index" width="60"/>
@ -149,25 +172,29 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%"> <el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form label-position="right" class="formadd"> <el-form label-position="right" class="formadd">
<el-row v-show="currentLink"> <el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb">
<el-col :span="4" class="tleftb">当前环节</el-col> <el-col :span="4" class="tleftb">当前环节</el-col>
<el-col :span="20" class="trightb"> <el-col :span="20">
<el-form-item prop="purchasingUnitName"><span>{{ current.taskName }}->{{ nextNode.name }}</span> <el-form-item><span>{{ current.taskName }}->{{ nextNode.name }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="border-bottom: 1px solid #e0e3eb;"> <el-row :class="{rowClass:!currentLink}">
<el-col :span="4" class="tleftb">意见</el-col> <el-col :span="4" class="tleftb">意见</el-col>
<el-col :span="20" class="trightb"> <el-col :span="20">
<el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" <el-form-item>
clearable></el-input> <el-input v-model="dialogList.comment" placeholder="审批意见" class="addinputw" clearable></el-input>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<div style="text-align:center;margin-top: 20px;"> <div style="text-align:center;margin-top: 20px;">
<el-button type="primary" size="mini" @click="confirm"> </el-button> <el-button type="primary" size="small" @click="confirm"> </el-button>
<el-button type="info " size="mini" @click="nodeDialogVisible = false"> </el-button> <el-button type="info " size="small" @click="nodeDialogVisible = false"> </el-button>
</div> </div>
</el-form> </el-form>
</el-dialog> </el-dialog>
@ -175,20 +202,20 @@
</template> </template>
<script> <script>
import {fetchSid} from '@/api/jichuxinxi/busdeposit' import { fetchSid } from '@/api/jichuxinxi/busdeposit'
import req from '@/api/flow/jianyidingdan.js' import req from '@/api/flow/jianyidingdan.js'
export default { export default {
name: "dingjinshouqu", name: 'dingjinshouqu',
data() { data() {
return { return {
disabled: '', disabled: '',
viewTitle: '', viewTitle: '',
dialogVisible: false,
dialogImageUrl: '',
index: 0, index: 0,
imgUrl: '', imgUrl: '',
// --------- // --------
YongHuid: [],
edit: true,
visible: true, visible: true,
stateId: '0', stateId: '0',
FormLoading: false, FormLoading: false,
@ -243,7 +270,7 @@ export default {
params: { params: {
// //
code: 2, code: 2,
data: document.body.scrollHeight + 220 + 'px' data: 500 + 'px'
} }
}, '*') }, '*')
}, },
@ -282,7 +309,7 @@ export default {
methods: { methods: {
showInfo(sid) { showInfo(sid) {
fetchSid(sid).then((response) => { fetchSid(sid).then((response) => {
if (response.code === '200') { if (response.success) {
this.temp = response.data this.temp = response.data
this.imgUrl = this.temp.payImages[this.temp.payImages.length - 1] this.imgUrl = this.temp.payImages[this.temp.payImages.length - 1]
this.list = response.data.customerList this.list = response.data.customerList
@ -291,7 +318,7 @@ export default {
title: '提示', title: '提示',
message: '查看失败', message: '查看失败',
type: 'error', type: 'error',
duration: 2000, duration: 2000
}) })
} }
}) })
@ -318,7 +345,7 @@ export default {
// const formVariables = { // const formVariables = {
// businessSid: this.agreeList.businessSid // businessSid: this.agreeList.businessSid
// } // }
req.getNextNodesForSubmit({taskDefKey: this.current.taskDefKey}).then((resp) => { req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) { if (resp.success) {
var arr = resp.data var arr = resp.data
this.nextNode = arr[0] this.nextNode = arr[0]
@ -335,7 +362,7 @@ export default {
// const formVariables = { // const formVariables = {
// businessSid: this.regectList.businessSid // businessSid: this.regectList.businessSid
// } // }
req.getPreviousNodesForReject({taskDefKey: this.current.taskDefKey}).then((resp) => { req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) { if (resp.success) {
var arr = resp.data var arr = resp.data
this.nextNode = arr[0] this.nextNode = arr[0]
@ -364,7 +391,7 @@ export default {
/** 同意任务 */ /** 同意任务 */
handleAgree() { handleAgree() {
this.agreeList.comment = this.dialogList.comment this.agreeList.comment = this.dialogList.comment
if (this.agreeList.comment == '') { if (this.agreeList.comment === '') {
this.$message({ this.$message({
showClose: true, showClose: true,
message: '请填写同意意见!', message: '请填写同意意见!',
@ -394,7 +421,7 @@ export default {
/** 驳回任务 */ /** 驳回任务 */
handleReject() { handleReject() {
this.regectList.comment = this.dialogList.comment this.regectList.comment = this.dialogList.comment
if (this.regectList.comment == '') { if (this.regectList.comment === '') {
this.$message({ this.$message({
showClose: true, showClose: true,
message: '请填写驳回意见!', message: '请填写驳回意见!',
@ -424,7 +451,7 @@ export default {
/** 终止任务 */ /** 终止任务 */
handleStop() { handleStop() {
this.stopList.comment = this.dialogList.comment this.stopList.comment = this.dialogList.comment
if (this.stopList.comment == '') { if (this.stopList.comment === '') {
this.$message({ this.$message({
showClose: true, showClose: true,
message: '请填写终止意见!', message: '请填写终止意见!',
@ -451,27 +478,27 @@ export default {
} }
}) })
}, },
handleLook(value) {
this.dialogVisible = true
this.dialogImageUrl = value
}
} }
} }
</script> </script>
<style scoped> <style scoped>
.tit { .titwu {
margin: 0 0 20px 0; font-size: 28px;
padding: 10px 0 0 0; text-align: center;
padding: 30px 0 20px 0;
} }
.rowStyle {
.times { border-left: 0px !important;
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 30px 0 10px 0;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
} }
.colStyle {
/deep/ .el-form-item__content { border-right: 0px !important;
margin-left: 0 !important; }
.rowClass{
border-top: 1px solid #E0E3EB;
} }
</style> </style>

872
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquEdit.vue

@ -1,47 +1,68 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="visible"> <div v-show="viewState == 1">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button> <el-button type="primary" size="small" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button> <el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div> </div>
</div> </div>
<div class="listconadd"> <div class="">
<el-form ref="dataForm" :model="temp" label-position="right" label-width="100%" class="formadd" :rules="rules"> <div class="titwu">销售简易订单</div>
<div class="tit"> <el-form ref="dataForm" :model="temp" class="formadd" :rules="rules">
销售虚拟订单 <el-row class="rowStyle">
<div class="times"> <el-col :span="24" class="tleftb colStyle">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div> <span>金额单位: </span>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div> </el-col>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div> </el-row>
<div><span>金额单位</span><span></span></div> <el-row>
</div>
</div>
<el-row class="bordertopline">
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>订单类型</span></el-form-item> <span>分公司</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款人</span></el-form-item> <span><span class="icon">*</span>付款人</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.payName" class="addinputw" placeholder="" <el-input v-model="temp.payName" class="addinputw" placeholder="" clearable/>
clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>联系电话</span></el-form-item> <span><span class="icon">*</span>联系电话</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item prop="mobile"> <el-form-item prop="mobile">
<el-input v-model="temp.mobile" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.mobile" class="addinputw" placeholder="" clearable/>
</el-form-item> </el-form-item>
@ -49,18 +70,17 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>车辆台数</span></el-form-item> <span>车辆台数</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.carNumber" class="addinputw" placeholder="" <el-input v-model="temp.carNumber" class="addinputw" placeholder="" clearable/>
clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>订金金额</span></el-form-item> <span><span class="icon">*</span>订金金额</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="13">
<el-form-item> <el-form-item>
<el-input v-model="temp.deposit" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.deposit" class="addinputw" placeholder="" clearable/>
</el-form-item> </el-form-item>
@ -68,34 +88,27 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款日期</span></el-form-item> <span><span class="icon">*</span>付款日期</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-date-picker <el-date-picker v-model="temp.payDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" class="addinputw"></el-date-picker>
v-model="temp.payDate"
type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd"
class="addinputw">
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款方式</span></el-form-item> <span><span class="icon">*</span>付款方式</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-select v-model="temp.payTypeKey" class="addinputw" placeholder="" @change="changePaymentType"> <el-select v-model="temp.payType" class="addinputw" placeholder="" @change="changePaymentType">
<el-option v-for="(item, index) in paymentType_list" :key="index.dictKey" :label="item.dictValue" <el-option v-for="item in paymentType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
:value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款银行账号</span></el-form-item> <span><span class="icon">*</span>付款银行账号</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.payNumber" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.payNumber" class="addinputw" placeholder="" clearable/>
</el-form-item> </el-form-item>
@ -103,32 +116,29 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>收款银行账号</span></el-form-item> <span><span class="icon">*</span>收款银行</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="13">
<el-form-item> <el-select v-model="temp.collectionBank" class="addinputw" placeholder="" @change="changeproBank">
<el-select v-model="temp.collectionNumberKey" class="addinputw" placeholder="" <el-option v-for="item in proBank_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
@change="changeProBankAccValue"> </el-select>
<el-option v-for="(item, index) in ProBankAcc_list" :key="index.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>收款银行</span></el-form-item> <span><span class="icon">*</span>收款银行账号</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="5">
<el-select v-model="temp.collectionBankKey" class="addinputw" placeholder="" @change="changeproBank"> <el-form-item>
<el-option v-for="(item, index) in proBank_list" :key="index.dictKey" :label="item.dictValue" <el-select v-model="temp.collectionNumber" class="addinputw" placeholder="" @change="changeProBankAccValue">
:value="item.dictKey"/> <el-option v-for="item in ProBankAcc_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select> </el-select>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>备注</span></el-form-item> <span>备注</span>
</el-col> </el-col>
<el-col :span="21" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<el-input v-model="temp.remarks" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.remarks" class="addinputw" placeholder="" clearable/>
</el-form-item> </el-form-item>
@ -136,21 +146,20 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款凭证</span></el-form-item> <span><span class="icon">*</span>付款凭证</span>
<div class="tips"><span>只可上传一张付款凭证</span></div> <div class="tips"><span>只可上传一张付款凭证</span></div>
</el-col> </el-col>
<el-col :span="21" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<Upload ref="uploadImg" v-model="list1" :limit="1" bucket="map" :upload-data="{type:'0001'}"/> <Upload ref="uploadImg" v-model="list1" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 客户信息--> <!--Start 客户信息-->
<div class="titcon"> <div class="title">
<div class="title">客户信息</div> <div>客户信息</div>
<div class="baocun"> <div>
<el-button type="primary" size="small" icon="el-icon-plus" class="btntopblueline" <el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="handleyudingcheliang()">选择
@click="handleyudingcheliang()">添加
</el-button> </el-button>
</div> </div>
</div> </div>
@ -180,432 +189,353 @@
</div> </div>
</div> </div>
<!-- 客户信息 --> <!-- 客户信息 -->
<xuanzekehu v-show="kehudanganAddShow" ref="addAndUpdate" @dingjinfanhui="noClickclose" <xuanzekehu v-show="viewState == 2" ref="divSelect" @doback="resetState" @handleCustomer="backData"/>
@handleCustomer="selectCustomer"></xuanzekehu>
</div> </div>
</template> </template>
<script> <script>
import {mapGetters} from 'vuex' import { depositDetail, saveDing, submitApprove, typeValues } from '@/api/jichuxinxi/busdeposit'
import {depositDetail, saveDing, submitApprove, typeValues} from '@/api/jichuxinxi/busdeposit' import { fetchBySid, getPathSidByUserSid } from '@/api/dictcommons/dictcommons'
import {fetchBySid, getPathSidByUserSid} from '@/api/dictcommons/dictcommons'
import req from '@/api/flow/jianyidingdan.js'
import Upload from '@/components/uploadFile/upload.vue' // import Upload from '@/components/uploadFile/upload.vue' //
import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu" import xuanzekehu from './relation/xuanzekehu'
export default { export default {
name: "dingjinshouquEdit", name: 'dingjinshouquEdit',
components: {Upload, xuanzekehu}, components: { Upload, xuanzekehu },
data() { data() {
var checkSubmit = (rule, value, callback) => { var checkSubmit = (rule, value, callback) => {
const Submit = const Submit =
/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/ /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/
if (Submit.test(value)) { if (Submit.test(value)) {
return callback() return callback()
}
callback(new Error('请输入手机号'))
} }
return { callback(new Error('请输入手机号'))
// --- }
list1: [], return {
viewTitle: '', // ---
dialogStatus: '', list1: [],
index: 0, viewTitle: '',
disabled: false, // index: 0,
// dialogStatus: 'add', disabled: false, //
// --------- // ---------
edit: true, viewState: 1,
visible: true, FormLoading: false,
stateId: '0', listLoading: false,
FormLoading: false, list: [],
listLoading: false, paymentType_list: [],
list: [], proBank_list: [],
paymentType_list: [], ProBankAcc_list: [],
customer_list: [], temp: {
proBank_list: [], departmentName: '',
ProBankAcc_list: [],
temp: {
departmentName:'',
staffName:'',
createDate:'',
payName: '',
payImages: [], //
collectionNumber: '', //
collectionNumberKey: '', //
payTypeKey: '', //
payType: '', //
payDate: '', //
collectionBankKey: '', //
collectionBank: '', //
collectionBankSid: '', // Sid
payNumber: '', //
deposit: '', //
carNumber: '', //
mobile: '', //
remarks: '', //
customerList: [],
userSid: window.sessionStorage.getItem('userSid'), // Sid
virtualOrderSid: '', // Sid
taskId: '', // Id
procInsId: '', // ID
}, //
nodeState: '', //
sid_list: {},
xuniSid: '',
orgName: '',
staffName: '', staffName: '',
_userSid: '', createDate: '',
customerName: [], payName: '',
tificateT: [], payImages: [], //
dnumbDate: [], collectionNumber: '', //
yudingcheliangShow: false, collectionNumberKey: '', //
hetongdanganguanliAddShow: false, payTypeKey: '', //
hetongdanganguanliInfoShow: false, payType: '', //
kehudanganAddShow: false, payDate: '', //
rules: { collectionBankKey: '', //
mobile: [ collectionBank: '', //
{ collectionBankSid: '', // Sid
required: true, payNumber: '', //
validator: checkSubmit, deposit: '', //
trigger: 'blur', carNumber: '', //
}, mobile: '', //
], remarks: '', //
}, customerList: [],
// ------------------------------------ userSid: window.sessionStorage.getItem('userSid'), // Sid
virtualOrderSid: '', // Sid
taskId: '', // Id
procInsId: '' // ID
},
customerName: [],
rules: {
mobile: [
{
required: true,
validator: checkSubmit,
trigger: 'blur'
}
]
} }
// ------------------------------------
}
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 500 + 'px'
}
}, '*')
},
created() {
// ===
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
this.showEdit(obj.businessSid, obj.instanceId, obj.taskId)
},
methods: {
getType() {
//
typeValues({
type: 'paymentType'
}).then((res) => {
if (res.code === '200') {
this.paymentType_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
typeValues({
type: 'receiptBank'
}).then((res) => {
if (res.code === '200') {
this.proBank_list = res.data
console.log('下拉框请求111', res.data)
}
})
}, },
computed: { changePaymentType(value) {
...mapGetters([ console.log('触发下拉框按钮')
'id', let bb = null
'roles', this.paymentType_list.forEach((e) => {
'rolesIds', // eslint-disable-next-line eqeqeq
'departmentId', if (e.dictValue === value) {
'departmentCode', bb = {
]), type: e.dictType,
name: e.dictValue,
key: e.dictKey,
sid: e.sid
}
}
})
this.temp.payType = bb.name
this.temp.payTypeKey = bb.key
console.log('name', this.temp.payType, 'key', this.temp.payTypeKey)
}, },
mounted() { changeproBank(value) {
window.parent.postMessage({ console.log('触发下拉框按钮')
cmd: 'returnHeight', let bb = null
params: { this.proBank_list.forEach((e) => {
// if (e.dictValue === value) {
code: 2, bb = {
data: document.body.scrollHeight + 220 + 'px' type: e.dictType,
name: e.dictValue,
key: e.dictKey,
sid: e.sid
}
} }
}, '*') })
this.temp.collectionBank = bb.name
this.temp.collectionBankKey = bb.key
this.getProBankAcc(bb.sid)
}, },
created() { getProBankAcc(sid) {
// === typeValues({ psid: sid, type: 'receiptAccount' }).then((res) => {
var one = window.location.href.indexOf('&data') + 6 if (res.code === '200') {
const data = window.location.href.substr(one) // urlunescape()web,使 this.ProBankAcc_list = res.data
const obj = JSON.parse(decodeURIComponent(data)) console.log('下拉框请求111', res.data)
this.showEdit(obj.businessSid,obj.instanceId,obj.taskId) }
})
}, },
methods: { changeProBankAccValue(value) {
getType() { console.log('触发下拉框按钮')
// let bb = null
typeValues({ this.ProBankAcc_list.forEach((e) => {
type: 'paymentType' if (e.dictValue === value) {
}).then((res) => { bb = {
if (res.code === '200') { type: e.dictType,
this.paymentType_list = res.data name: e.dictValue,
console.log('下拉框请求111', res.data) key: e.dictKey,
} sid: e.sid
})
//
typeValues({
type: 'receiptBank'
}).then((res) => {
if (res.code === '200') {
this.proBank_list = res.data
console.log('下拉框请求111', res.data)
}
})
},
changePaymentType(value) {
console.log('触发下拉框按钮')
let bb = {}
this.paymentType_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
bb = {
type: e.dictType,
name: e.dictValue,
key: e.dictKey,
sid: e.sid
}
}
})
this.temp.payType = bb.name
this.temp.payTypeKey = bb.key
console.log('name', this.temp.payType, 'key', this.temp.payTypeKey)
},
changeproBank(value) {
console.log('触发下拉框按钮')
let bb = null
this.proBank_list.forEach((e) => {
if (e.dictKey == value) {
bb = {
type: e.dictType,
name: e.dictValue,
key: e.dictKey,
sid: e.sid
}
} }
})
this.temp.collectionBank = bb.name
this.temp.collectionBankKey = bb.key
this.getProBankAcc(bb.sid)
},
getProBankAcc(sid) {
typeValues({psid: sid, type: 'receiptAccount'}).then((res) => {
if (res.code === '200') {
this.ProBankAcc_list = res.data
console.log('下拉框请求111', res.data)
}
})
},
changeProBankAccValue(value) {
console.log('触发下拉框按钮')
let bb = null
this.ProBankAcc_list.forEach((e) => {
if (e.dictKey == value) {
bb = {
type: e.dictType,
name: e.dictValue,
key: e.dictKey,
sid: e.sid
}
}
})
this.temp.collectionNumber = bb.name
this.temp.collectionNumberKey = bb.key
console.log('name', this.temp.collectionNumber, 'key', this.temp.collectionNumberKey)
},
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({userSid: userSid}).then((res) => {
if (res.success) {
this.getCreateOrgName(res.data)
}
})
},
getCreateOrgName(sid) {
fetchBySid(sid).then((res) => {
if (res.success) {
this.temp.departmentName = res.data.name
}
})
},
//
showEdit(businessSid,instanceId,taskId) {
this.stateId = '1'
console.log('上传图片组件', this.$refs['uploadImg'].stateName)
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.temp.sid = businessSid
this.dialogStatus = 'edit'
this.viewTitle = '【编辑】销售简易订单'
const data = {
virtualOrderSid:businessSid,
userSid:window.sessionStorage.getItem('userSid')
} }
depositDetail(data).then((response) => { })
if (response.code) { this.temp.collectionNumber = bb.name
this.temp = response.data this.temp.collectionNumberKey = bb.key
this.list = response.data.customerList console.log('name', this.temp.collectionNumber, 'key', this.temp.collectionNumberKey)
if (response.data.payImages.length > 0) { },
const imgName = response.data.payImages[response.data.payImages.length - 1].split("/"); getPathSid() {
this.list1.push({ const userSid = window.sessionStorage.getItem('userSid')
name: imgName[imgName.length - 1], getPathSidByUserSid({ userSid: userSid }).then((res) => {
url: response.data.payImages[response.data.payImages.length - 1], if (res.success) {
}); this.getCreateOrgName(res.data)
this.$refs['uploadImg'].showImg(this.list1)
}
this.temp.instanceId = instanceId
this.temp.taskId = taskId
this.temp.payImages = []
this.getType()
// this.getPathSid()
}
})
},
getUrl() {
console.log('已有图片', this.list1)
if (this.list1.length !== 0) {
if (this.list1.length > 1) {
this.list1.splice(0, 1);
const img_list = []
img_list.push(this.list1[this.list1.length - 1].url)
this.temp.payImages = img_list
} else {
const img_list = []
img_list.push(this.list1[this.list1.length - 1].url)
this.temp.payImages = img_list
}
} }
}, })
selectCustomer(row) { },
this.list.push({ getCreateOrgName(sid) {
customerName: row.name, fetchBySid(sid).then((res) => {
mobile: row.mobile, if (res.success) {
customerSid: row.sid, this.temp.departmentName = res.data.name
// headImage }
}) })
}, },
handleDelete(row, index) { //
console.log('客户表中的row', row); showEdit(businessSid, instanceId, taskId) {
this.list.splice(index, 1) this.$nextTick(() => {
// if (row.sid !== '') { this.$refs['dataForm'].clearValidate()
// this.sid_list.customerSid = row.customerSid })
// this.sid_list.sid = this.temp.sid this.viewTitle = '【编辑】销售简易订单'
// console.log('', this.sid_list) const data = {
// } else { virtualOrderSid: businessSid,
// this.list.splice(index, 1) userSid: window.sessionStorage.getItem('userSid')
// } }
}, depositDetail(data).then((response) => {
// if (response.code) {
handleCreate() { this.temp = response.data
this.$refs['dataForm'].validate((valid) => { this.temp.sid = response.data.virtualOrderSid
this.getUrl() this.list = response.data.customerList
this.temp.customerList = this.list if (response.data.payImages.length > 0) {
if (valid) { const imgName = response.data.payImages[response.data.payImages.length - 1].split('/')
this.FormLoading = true this.list1.push({
this.dialogStatus = 'create' name: imgName[imgName.length - 1],
this.temp.staffSid = window.sessionStorage.getItem('staffSid') url: response.data.payImages[response.data.payImages.length - 1]
this.temp.orgSid = window.sessionStorage.getItem('orgSid')
this.temp.userSid = window.sessionStorage.getItem('userSid')
saveDing(this.temp).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.xuniSid = response.data
this.handleReturn('true')
} else {
this.$notify({
title: '提示',
message: '添加失败',
type: 'error',
duration: 2000,
})
}
})
}
})
},
//
handleSubmit() {
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$refs['dataForm'].validate((valid) => {
this.getUrl()
this.temp.customerList = this.list
if (valid) {
this.FormLoading = true
this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid')
this.temp.userSid = window.sessionStorage.getItem('userSid')
//
submitApprove(this.temp).then((response) => {
if (response.code === '200') {
this.handleReturn('true')
} else {
this.$notify({
title: '提交失败',
message: response.msg,
type: 'error',
})
}
})
}
}) })
this.$refs['uploadImg'].showImg(this.list1)
} }
) this.temp.instanceId = instanceId
}, this.temp.taskId = taskId
// this.temp.payImages = []
handleReturn(isreload) { this.getType()
if (isreload === 'true') this.$emit('reloadlist') }
this.temp.sid = '' // SID })
this.temp = { },
departmentName:'', getUrl() {
staffName:'', console.log('已有图片', this.list1)
createDate:'', if (this.list1.length !== 0) {
payName: '', if (this.list1.length > 1) {
payImages: [], // this.list1.splice(0, 1)
collectionNumber: '', // const img_list = []
collectionNumberKey: '', // img_list.push(this.list1[this.list1.length - 1].url)
payTypeKey: '', // this.temp.payImages = img_list
payType: '', // } else {
payDate: '', // const img_list = []
collectionBankKey: '', // img_list.push(this.list1[this.list1.length - 1].url)
collectionBank: '', // this.temp.payImages = img_list
collectionBankSid: '', // Sid }
payNumber: '', //
deposit: '', //
carNumber: '', //
mobile: '', //
remarks: '', //
customerList: [],
userSid: '', // Sid
virtualOrderSid: '', // Sid
taskId: '', // Id
procInsId: '' // ID
} //
this.disabled = false
this.$refs['uploadImg'].stateName = '' //
this.list1 = []
this.list = []
this.$refs['dataForm'].resetFields()
this.$emit('doback')
},
// ----------------------------
//
handleyudingcheliang() {
this.visible = false
this.kehudanganAddShow = true
},
//
noClickclose() {
this.visible = true
this.yudingcheliangShow = false
this.hetongdanganguanliAddShow = false
this.hetongdanganguanliInfoShow = false
this.kehudanganAddShow = false
} }
},
backData(row) {
this.viewState = 1
this.list.push({
customerName: row.name,
mobile: row.mobile,
customerSid: row.sid
})
},
handleDelete(row, index) {
console.log('客户表中的row', row)
this.list.splice(index, 1)
},
//
handleCreate() {
this.$refs['dataForm'].validate((valid) => {
this.getUrl()
this.temp.customerList = this.list
if (valid) {
this.FormLoading = true
this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid')
this.temp.userSid = window.sessionStorage.getItem('userSid')
saveDing(this.temp).then((response) => {
this.FormLoading = false
if (response.success) {
this.$message({ showClose: true, type: 'success', message: '修改成功' })
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
})
},
//
handleSubmit() {
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$refs['dataForm'].validate((valid) => {
this.getUrl()
this.temp.customerList = this.list
if (valid) {
this.FormLoading = true
this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid')
this.temp.userSid = window.sessionStorage.getItem('userSid')
//
submitApprove(this.temp).then((response) => {
if (response.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.$notify({
title: '提交失败',
message: response.msg,
type: 'error'
})
}
})
}
})
}
)
},
// ----------------------------
//
handleyudingcheliang() {
this.viewState = 2
this.$refs['divSelect'].init()
},
//
resetState() {
this.viewState = 1
} }
} }
}
</script> </script>
<style scoped> <style scoped>
.tit { .titwu {
margin: 0 0 20px 0; font-size: 28px;
padding: 10px 0 0 0; text-align: center;
} padding: 30px 0 20px 0;
}
.times { .title {
display: flex; padding: 7px;
flex-direction: row; display: flex;
justify-content: space-around; flex-direction: row;
padding: 30px 0 10px 0; justify-content: space-between;
margin: 0 auto 0px auto; align-items: center;
width: 70%; }
font-size: 14px; .rowStyle {
} border-left: 0px !important;
}
/deep/ .el-form-item__content { .colStyle {
margin-left: 0 !important; border-right: 0px !important;
} }
.tips {
.tips { font-size: 12px;
font-size: 12px; color: #606266;
color: #606266; text-align: right;
text-align: right; }
}
.formadd .el-row .el-col /deep/ .el-form-item .addinputw {
width: 100%;
}
</style> </style>

352
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquInfo.vue

@ -2,61 +2,84 @@
<div class="app-container"> <div class="app-container">
<div> <div>
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>销售虚拟订单管理详细信息</div> <div>销售简易订单详情</div>
<div> <div>
<el-button type="danger" @click="openRevoke"> </el-button> <el-button type="danger" size="small" @click="openRevoke"> </el-button>
</div> </div>
</div> </div>
<div class="listconadd"> <div class="">
<el-form ref="dataForm" :model="temp" label-position="right" label-width="100%" class="formadd"> <div class="titwu">销售简易订单</div>
<div class="tit"> <el-form ref="dataForm" :model="temp" class="formadd">
销售简易订单 <el-row class="rowStyle">
<div class="times"> <el-col :span="24" class="tleftb colStyle">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div> <span>金额单位: </span>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div> </el-col>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div> </el-row>
<div><span>金额单位</span><span>{{ temp.price }}</span></div> <el-row>
</div> <el-col :span="3" class="tleftb">
</div> <span>分公司</span>
<el-row class="bordertopline"> </el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>订单类型</span></el-form-item> <span>申请人</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款人</span></el-form-item> <span>付款人</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payName }}</span> <span>{{ temp.payName }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>联系电话</span></el-form-item> <span>联系电话</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.mobile }}</span> <span>{{ temp.phone }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>车辆台数</span></el-form-item> <span>车辆台数</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.carNumber }}</span> <span>{{ temp.carNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>订金金额</span></el-form-item> <span>订金金额</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="13">
<el-form-item> <el-form-item>
<span>{{ temp.deposit }}</span> <span>{{ temp.deposit }}</span>
</el-form-item> </el-form-item>
@ -64,43 +87,43 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款日期</span></el-form-item> <span>付款日期</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payDate }}</span> <span>{{ temp.payDate }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款方式</span></el-form-item> <span>付款方式</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payType }}</span> <span>{{ temp.payTypeValue }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款银行账号</span></el-form-item> <span>付款银行账号</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.payNumber" class="addinputw" placeholder="" clearable/> <span>{{ temp.payNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>收款银行账号</span></el-form-item> <span>收款银行账号</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.collectionNumber }}</span> <span>{{ temp.collectionNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>收款银行</span></el-form-item> <span>收款银行</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="13">
<el-form-item> <el-form-item>
<span>{{ temp.collectionBank }}</span> <span>{{ temp.collectionBank }}</span>
</el-form-item> </el-form-item>
@ -108,27 +131,27 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>备注</span></el-form-item> <span>备注</span>
</el-col> </el-col>
<el-col :span="21" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<span>{{ temp.remarks }}</span> <span>{{ temp.remarks }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span slot="label">付款凭证</span></el-form-item> <span>付款凭证</span>
</el-col> </el-col>
<el-col :span="20" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<img :src="imgUrl"> <img style="width: 178px;height: 178px" :src="imgUrl" @click="handleLook(imgUrl)">
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 客户信息--> <!--Start 客户信息-->
<div class="titcon"> <div class="title">
<div class="title">客户信息</div> <div>客户信息</div>
</div> </div>
<el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index"> <el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index">
<el-table-column align="center" label="序号" type="index" width="60"/> <el-table-column align="center" label="序号" type="index" width="60"/>
@ -147,143 +170,138 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {fetchSid} from '@/api/jichuxinxi/busdeposit' import { fetchSid } from '@/api/jichuxinxi/busdeposit'
import req from '@/api/flow/jianyidingdan.js' import req from '@/api/flow/jianyidingdan.js'
export default { export default {
name: "dingjinshouquInfo", name: 'dingjinshouquInfo',
data() { data() {
return { return {
disabled: '', dialogVisible: false,
viewTitle: '', dialogImageUrl: '',
index: 0, disabled: '',
imgUrl: '', viewTitle: '',
// --------- index: 0,
YongHuid: [], imgUrl: '',
edit: true, // ---------
visible: true, visible: true,
stateId: '0', stateId: '0',
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
list: [], list: [],
temp: {}, temp: {},
// ------------------------------------ // ------------------------------------
// //
revokeList: { revokeList: {
businessSid: '', businessSid: '',
instanceId: '', instanceId: '',
taskId: '', taskId: '',
userSid: '' userSid: ''
},
} }
}, }
mounted() { },
window.parent.postMessage({ mounted() {
cmd: 'returnHeight', window.parent.postMessage({
params: { cmd: 'returnHeight',
// params: {
code: 2, //
data: document.body.scrollHeight + 220 + 'px' code: 2,
data: 500 + 'px'
}
}, '*')
},
created() {
// ===
var one = window.location.href.indexOf('&data') + 6
// urlunescape()web,使
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('obj', obj)
this.showInfo(obj.businessSid)
//
this.revokeList.businessSid = obj.businessSid
this.revokeList.instanceId = obj.instanceId
this.revokeList.taskId = obj.taskId
this.revokeList.taskDefKey = obj.taskDefKey
this.revokeList.userSid = window.sessionStorage.getItem('userSid')
},
methods: {
showInfo(sid) {
fetchSid(sid).then((response) => {
if (response.success) {
this.temp = response.data
this.imgUrl = this.temp.payImages[this.temp.payImages.length - 1]
this.list = response.data.customerList
} else {
this.$notify({
title: '提示',
message: '查看失败',
type: 'error',
duration: 2000
})
} }
}, '*') })
}, },
created() { openRevoke() {
// === this.$confirm('是否确认执行撤回操作', '提示', {
var one = window.location.href.indexOf('&data') + 6 confirmButtonText: '确定',
// urlunescape()web,使 cancelButtonText: '取消',
const data = window.location.href.substr(one) // urlunescape()web,使 type: 'warning'
const obj = JSON.parse(decodeURIComponent(data)) }).then(() => {
console.log('obj',obj) this.handleRevoke()
this.showInfo(obj.businessSid) }).catch(() => {
// this.$message({
this.revokeList.businessSid = obj.businessSid type: 'info',
this.revokeList.instanceId = obj.instanceId message: '已取消撤回'
this.revokeList.taskId = obj.taskId
this.revokeList.taskDefKey = obj.taskDefKey
this.revokeList.userSid = window.sessionStorage.getItem('userSid')
//
this.transactState = obj.transactState
//
// this.getModelDetail(obj.deployId)
// this.getFlowViewer(obj.instanceId)
},
methods: {
showInfo(sid) {
fetchSid(sid).then((response) => {
if (response.code === '200') {
this.temp = response.data
this.imgUrl = this.temp.payImages[this.temp.payImages.length - 1]
this.list = response.data.customerList
} else {
this.$notify({
title: '提示',
message: '查看失败',
type: 'error',
duration: 2000,
})
}
}) })
}, })
openRevoke() { },
this.$confirm('是否确认执行撤回操作', '提示', { /** 撤回任务 */
confirmButtonText: '确定', handleRevoke() {
cancelButtonText: '取消', // this.revokeList.comment = this.dialogList.comment
type: 'warning' req.revokeTask(this.revokeList).then((response) => {
}).then(() => { if (response.success) {
this.handleRevoke()
}).catch(() => {
this.$message({ this.$message({
type: 'info', showClose: true,
message: '已取消撤回' message: '执行成功',
type: 'success'
}) })
}) //
}, window.parent.postMessage({
/** 撤回任务 */ cmd: 'returnHeight',
handleRevoke() { params: {
// this.revokeList.comment = this.dialogList.comment //
req.revokeTask(this.revokeList).then((response) => { code: 1
if (response.success) { }
this.$message({ }, '*')
showClose: true, }
message: '执行成功', })
type: 'success' },
}); handleLook(value) {
// this.dialogVisible = true
window.parent.postMessage({ this.dialogImageUrl = value
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
} }
} }
}
</script> </script>
<style scoped> <style scoped>
.tit { .titwu {
margin: 0 0 20px 0; font-size: 28px;
padding: 10px 0 0 0; text-align: center;
} padding: 30px 0 20px 0;
}
.times { .rowStyle {
display: flex; border-left: 0px !important;
flex-direction: row; }
justify-content: space-around; .colStyle {
padding: 30px 0 10px 0; border-right: 0px !important;
margin: 0 auto 0px auto; }
width: 70%;
font-size: 14px;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
}
</style> </style>

299
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/relation/xuanzecheliang.vue

@ -0,0 +1,299 @@
<template>
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>现车库存</div>
<div>
<el-button type="primary" size="small" @click="handleConfirm()">确定</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="">
<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="130px" class="tab-header">
<el-form-item label="品牌">
<el-select v-model="listQuery.params.carbrand" class="addinputw" placeholder="请选择" @change="changeCarbrand">
<el-option v-for="(item, index) in carbrand_list" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="功能">
<el-input v-model="listQuery.params.vehicleType" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="系列">
<el-input v-model="listQuery.params.productLine" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="变速箱">
<el-input v-model="listQuery.params.gearboxType" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="驱动">
<el-input v-model="listQuery.params.driveForm" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="排放标准">
<el-input v-model="listQuery.params.emissionStandard" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="马力">
<el-input v-model="listQuery.params.power" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="燃料">
<el-input v-model="listQuery.params.fuelType" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="版本">
<el-input v-model="listQuery.params.vehicleVersion" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">现车库存列表</div>
<pageye v-show="total>0" :total="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%" @selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="品牌" align="center">
<template slot-scope="scope">
<span>{{ scope.row.brandName }}</span>
</template>
</el-table-column>
<el-table-column label="车型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vehicleAlias }}</span>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="颜色" align="center">
<template slot-scope="scope">
<span>{{ scope.row.carColor }}</span>
</template>
</el-table-column>
<el-table-column label="存放地点" align="center">
<template slot-scope="scope">
<span>{{ scope.row.location }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价(万元)" align="center">
<template slot-scope="scope">
<span>{{ scope.row.guidedPrice }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import { getList } from '@/api/jichuxinxi/busdepositvehicle'
export default {
name: "xuanzecheliang",
components: {
Pagination,
pageye
},
data() {
return {
createPage: '',
dialogVisible: false, //
isSearchShow: false,
searchxianshitit: '显示查询条件',
btndisabled: false,
viewState: 1, // 1 2- 3 4 5-
// -----------
carbrand_list: [], //
tableKey: 0,
list: [],
sids: [],
total: 1,
FormLoading: false,
listLoading: false,
listQuery: {
current: 1,
size: 5,
params: {
carbrand: '',
driveForm: '',
emissionStandard: '',
fuelType: '',
gearboxType: '',
lockedState: '',
power: '',
productLine: '',
vehicleState: '',
vehicleType: '',
vehicleVersion: ''
}
},
selectDate: undefined,
temp: {}, //
depositVehicleList: [],
visible: true,
hetongdanganguanliInfoShow: false
// ------------------------------------
}
},
methods: {
//
init() {
this.handleFilter()
this.getcarbrand()
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
//
handleReset() {
this.listQuery = {
current: 1,
size: 5,
params: {
carbrand: '',
driveForm: '',
emissionStandard: '',
fuelType: '',
gearboxType: '',
lockedState: '',
power: '',
productLine: '',
vehicleState: '',
vehicleType: '',
vehicleVersion: ''
}
}
},
//
handleSelectionChange(row) {
console.log('row', row)
this.depositVehicleList = row
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
console.log('选择sid', this.sids)
},
//
getcarbrand() {
// selectBrand().then((res) => {
// if (res.code === '200') {
// this.carbrand_list = res.data
// console.log('', res.data)
// }
// })
},
changeCarbrand(value) {
let bb = {}
this.carbrand_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
bb = {
name: e.dictValue,
key: e.dictKey,
sid: e.sid
}
}
})
this.listQuery.params.carbrand = bb.name
console.log('name', this.listQuery.params.carbrand)
},
//
handleConfirm() {
if (this.sids.length > 0) {
this.$emit('handleVehicle', this.depositVehicleList)
} else {
this.$notify({
title: '提示',
message: '没有选择车辆!',
type: 'error',
duration: 2000
})
return
}
},
//
handleReturn() {
this.$emit('yudingcheliangfanhui') //
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
getList({
current: this.listQuery.current,
size: this.listQuery.size,
params: {
modelName: this.listQuery.modelName,
carModel: this.listQuery.carModel,
brandName: this.listQuery.brandName
}
}).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records
this.total = response.data.total
} else {
this.list = []
this.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
}
}
}
</script>
<style scoped lang="scss">
.el-input__icon {
width: 40px;
}
.el-form-item .el-form-item__label {
width: 100% !important;
}
.block {
display: inline-block;
}
.el-form-item__content label {
padding: 0 5px;
}
</style>

269
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/relation/xuanzekehu.vue

@ -0,0 +1,269 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>选择客户</div>
<div>
<el-button type="primary" size="small" @click="handleCreate()">新增客户</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="">
<div class="searchcon">
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="客户姓名">
<el-input v-model="listQuery.params.name" placeholder="请输入" clearable class="filter-item"/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
</div>
</div>
</div>
<!-- <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>-->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column fixed label="操作" align="center">
<template slot-scope="scope">
<div class="searchbtns">
<el-button size="small" type="primary" @click="handleConfirm(scope.row)">选择</el-button>
<el-button size="small" type="primary" @click="handleUpdate(scope.row)">编辑</el-button>
</div>
</template>
</el-table-column>
<el-table-column label="登记日期" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="手机号码" align="center">
<template slot-scope="scope">
<span>{{ scope.row.mobile }}</span>
</template>
</el-table-column>
<el-table-column label="微信号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.weixin }}</span>
</template>
</el-table-column>
<el-table-column label="客户类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.customerType }}</span>
</template>
</el-table-column>
<el-table-column label="客户级别" align="center">
<template slot-scope="scope">
<span>{{ scope.row.level }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<xuanzekehu-add v-show="viewState == 2 || viewState == 3" ref="addAndUpdate" @reloadlist="resetState" @doback="resetState"/>
<el-dialog title="客户登记-类型" :visible.sync="dialogVisible" width="28%" top="13%">
<el-form :model="customerTypeList">
<el-form-item label="联络方式" :label-width="formLabelWidth" class="diaForm">
<el-select v-model="customerTypeList.visitWay" placeholder="请选择" @change="getVisitWay">
<el-option v-for="(item) in visitWay_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="客户类型" :label-width="formLabelWidth" class="diaForm">
<el-select v-model="customerTypeList.customerType" placeholder="请选择" @change="getCustomerType">
<el-option v-for="(item) in customertype_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button class="el-button-sure" type="primary" @click="handleOpen()"> </el-button>
<el-button @click="dialogVisible = false"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import { pagerList, typeValues } from '@/api/jichuxinxi/busdepositvehicle'
import xuanzekehuAdd from './xuanzekehuAdd.vue'
export default {
name: 'xuanzekehu',
components: {
Pagination,
pageye,
xuanzekehuAdd
},
data() {
return {
dialogVisible: false, //
formLabelWidth: '110px',
isSearchShow: true,
viewState: 1, // 1 2- 3 4 5-
// -----------
tableKey: 0,
list: [],
sids: [],
customerTypeList: {
visitWay: '', //
visitWayKey: '', // --Key
customerType: '', //
customerTypeKey: '', // --Key
psid: ''
},
visitWay_list: [],
customertype_list: [],
listLoading: false,
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
name: '',
userSid: ''
}
}
}
},
methods: {
init() {
this.getList()
this.getShuJUZiDian()
},
getShuJUZiDian() {
typeValues({ type: 'visitWay' }).then((res) => {
if (res.code === '200') {
this.visitWay_list = res.data
}
})
typeValues({ type: 'customertype' }).then((res) => {
if (res.code === '200') {
this.customertype_list = res.data
}
})
},
handleOpen() {
this.viewState = 2
if (this.customerTypeList.visitWay !== '' && this.customerTypeList.customerType !== '') {
this.dialogVisible = false
const customerTypeList = this.customerTypeList
this.$refs['addAndUpdate'].openCreate(customerTypeList)
this.customerTypeList = {
visitWay: '', //
visitWayKey: '', // --Key
customerType: '', //
customerTypeKey: '', // --Key
psid: ''
}
} else {
this.$message({
message: '请填写联络方式和客户类型',
type: 'warning'
})
}
},
getVisitWay(value) {
let bb = null
this.visitWay_list.forEach((e) => {
if (e.dictValue === value) {
bb = {
value: e.dictValue,
key: e.dictKey
}
}
})
this.customerTypeList.visitWay = bb.value
this.customerTypeList.visitWayKey = bb.key
},
getCustomerType(value) {
let bb = null
this.customertype_list.forEach((e) => {
if (e.dictValue === value) {
bb= {
value: e.dictValue,
key: e.dictKey,
sid: e.sid
}
}
})
this.customerTypeList.customerType = bb.value
this.customerTypeList.customerTypeKey = bb.key
this.customerTypeList.psid = bb.sid
},
// ------------------
handleCreate() {
this.dialogVisible = true
},
resetState() {
this.viewState = 1
this.getList()
},
//
handleReturn() {
this.$emit('doback')
},
//
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.userSid = window.sessionStorage.getItem('userSid')
pagerList(this.listQuery).then((response) => {
this.listLoading = false
if (response.code === '200' && response.data && response.data.total > 0) {
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()
},
//
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
console.log('选择sid', this.sids)
},
//
handleConfirm(row) {
this.$emit('handleCustomer', row)
},
handleUpdate(row) {
this.viewState = 3
this.$refs['addAndUpdate'].openUpdate(row.sid)
}
}
}
</script>
<style scoped>
.searchcon {
margin-top: 8px;
}
</style>

948
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/relation/xuanzekehuAdd.vue

@ -0,0 +1,948 @@
<template>
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>新增客户信息</div>
<div>
<el-button type="primary" size="small" icon="" @click="handleJUBuCun()">保存</el-button>
<el-button type="info" size="small" icon="el-icon-close" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="">
<div class="titwu">客户信息</div>
<el-form ref="dataForm" :model="temp" label-position="top" class="formadd" :rules="rules">
<div class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px">
<div>基础信息</div>
</div>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">客户名称</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="name">
<el-input v-model="temp.name" maxlength="20" placeholder="请输入客户名称" style="width:50%" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">客户类型</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="weChatID">
<span>{{ temp.customerType }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">联系电话</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="mobile">
<el-input v-model="temp.mobile" maxlength="20" placeholder="请输入联系电话" style="width:50%" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">微信号</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="weixin">
<el-input v-model="temp.weixin" maxlength="20" placeholder="请输入微信号" style="width:50%" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row v-show="temp.customerType==='个人'">
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">公司名称</span>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item prop="company">
<el-input v-model="temp.companyName" maxlength="20" placeholder="请输入公司名称" style="width:81%" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">客户地址</span>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<el-select v-model="temp.province" filterable placeholder="请选择省" class="addinputw" style="width:160px" @change="getShen">
<el-option v-for="item in inputProvinceList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
<el-select v-model="temp.city" filterable placeholder="请选择市" class="addinputw" style="width:160px" @change="getShi">
<el-option v-for="item in inputCityList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
<el-select v-model="temp.county" filterable placeholder="请选择县" class="addinputw" style="width:160px" @change="getQu">
<el-option v-for="item in inputCountyList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
<el-input v-model="temp.address" style="width:46%" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">客户级别</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="level">
<el-select v-model="temp.level" class="addinputw" placeholder="请选择客户级别" style="width:50%" @change="getJiBie">
<el-option v-for="(item, index) in induslevel" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" v-show="stateId=='0'" class="trightb">
<el-form-item>
<span slot="label">是否开启提醒</span>
</el-form-item>
</el-col>
<el-col :span="8" v-show="stateId=='0'">
<el-form-item>
<el-radio v-model="temp.isOnRemind" label="是"></el-radio>
<el-radio v-model="temp.isOnRemind" label="否"></el-radio>
</el-form-item>
</el-col>
</el-row>
<el-row v-show="temp.isOnRemind=='是'">
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">提醒日期</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-date-picker v-model="temp.remind_day" type="date" style="width:50%" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">提醒备注</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="temp.remind_remark" maxlength="20" style="width:50%" placeholder="请输入提醒备注" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<!--更多信息-->
<el-collapse v-model="activeNames">
<el-collapse-item title="更多信息" name="2">
<el-row v-show="temp.customerType==='个人'">
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">客户生日</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-date-picker v-model="temp.birthday" style="width:50%" type="date" format="yyyy-MM-dd" class="addinputw" value-format="yyyy-MM-dd" placeholder="请选择"/>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">性别</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-radio v-model="temp.sex" label="男"></el-radio>
<el-radio v-model="temp.sex" label="女"></el-radio>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">证件类型</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="temp.certificateType" style="width:50%" maxlength="20" :readonly="true" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">证件号码</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="temp.idnumber" style="width:50%" maxlength="20" placeholder="请输入证件号码" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">证件有效期</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-date-picker v-model="temp.endDate" style="width:50%" type="date" format="yyyy-MM-dd" class="addinputw" value-format="yyyy-MM-dd" placeholder="请选择"/>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">电子邮件</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="temp.e_mail" maxlength="20" style="width:50%" placeholder="请输入电子邮箱" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">紧急联系人</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="temp.contacts" maxlength="20" style="width:50%" placeholder="请输入紧急联系人" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">紧急联系电话</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="temp.emergencyMobile" maxlength="20" style="width:50%" placeholder="请输入紧急联系电话" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">客户来源</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-select v-model="temp.source" class="addinputw" style="width:50%" placeholder="请选择客户来源" @change="getKeHuLaiYUan">
<el-option v-for="(item, index) in sourceLisst" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">客户分类</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-select v-model="temp.customerClass" style="width:50%" class="addinputw" placeholder="请选择客户分类" @change="getFenLei">
<el-option v-for="(item, index) in merClass" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">备注</span>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<el-input v-model="temp.remarks" style="width:81%" maxlength="20" placeholder="请输入备注" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<!-- </el-form>-->
</el-collapse-item>
</el-collapse>
<!--运营情况-->
<el-collapse v-model="activeNames">
<el-collapse-item title="运营情况" name="3">
<el-form ref="datufrom" :model="templooke" label-position="top" label-width="190px" class="formadd03">
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">承运货物类型</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-select v-model="templooke.consignmentType" style="width:50%" class="addinputw" placeholder="请选择承运货物类型" @change="getHuoWuLeiXing">
<el-option v-for="(item, index) in signmentT" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">承运货物</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-select v-model="templooke.consignment" style="width:50%" class="addinputw" placeholder="请选择承运货物" @change="getHuoWu">
<el-option v-for="(item, index) in consign" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">运输路线</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="templooke.hallway_state" style="width:50%" maxlength="20" placeholder="请输入运输路线" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">购车状态</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<div class="yihang">
<el-checkbox-group v-if="aseType.length > 0" v-model="aseTypeBox" @change="changexuanze">
<el-checkbox v-for="item in aseType" :key="item.divtkey" :label="item.divtkey">
{{ item.dictValue }}
</el-checkbox>
</el-checkbox-group>
<div class="mw"><el-input v-model="templooke.purchase_num" :disabled="templooke.purchase_num == '0'" maxlength="10" class="addinputwduan" clearable/></div>
</div>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">现有车辆</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input style="width:50%" v-model="templooke.existing_vehicles" maxlength="20" placeholder="请输入现有车辆" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">现有车辆品牌</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input style="width:50%" v-model="templooke.existing_vehiclesBrand" maxlength="20" placeholder="请输入现有车辆品牌" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">
<el-form-item>
<span slot="label">备注</span>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<el-input style="width:81%" v-model="templooke.remarks" maxlength="20" placeholder="请输入备注" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-collapse-item>
</el-collapse>
<!--见证材料-->
<el-collapse v-model="activeNames" v-show="stateId=='0'">
<el-collapse-item title="见证材料" name="4">
<el-form ref="datufrom" :model="templooke" label-position="right" label-width="190px" class="formadd03">
<el-row>
<el-col :span="24">
<span slot="label">文件</span>
<Upload ref="uploadImg" v-model="list1" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
</el-col>
</el-row>
</el-form>
</el-collapse-item>
</el-collapse>
</el-form>
</div>
</div>
<!-- 弹框提示 -->
<el-dialog :visible.sync="dialogFormVisible" width="300px" :close-on-click-modal="false">
<div class="result-cont">
是否更新用户
</div>
<div slot="footer" v-loading="FormLoading" class="dialog-footer">
<el-button @click="dialogFormVisibl()"></el-button>
<el-button type="primary" @click="dialogStatus()"></el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { savePcCustomerInfo, getPcCustomerInfoBySid, updatePcCustomerInfo } from '@/api/jichuxinxi/crmcustomer'
import { getProvince, getCity, getCounty } from '@/api/portal/areaPicker' //
import { typeValues } from '@/api/dictcommons/shujuzidian'
import { getPcBusinessInfoBySid } from '@/api/jichuxinxi/crmbusiness'
import Upload from '@/components/uploadFile/upload.vue' //
export default {
name: 'xuanzekehuAdd',
components: { Upload },
data() {
var checkSubmit = (rule, value, callback) => {
const Submit =
/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/
if (Submit.test(value)) {
return callback()
}
callback(new Error('请输入手机号'))
}
var identitycard = (rules, value, callback) => {
const card =
/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
if (card.test(value)) {
return callback()
}
callback(new Error('请输入身份证号码'))
}
return {
// ---
list1: [],
province: [],
city: [],
county: [],
inputProvinceList: [],
inputCityList: [],
inputCountyList: [],
list: [],
activeNames: ['1'],
// ---------
customerClass: 'customerClass',
merClass: [],
customerSource: 'customerSource',
sourceLisst: [],
customerLevel: 'customerLevel',
induslevel: [],
visitWay: 'visitWay',
industway: [],
documenttype: 'documenttype',
cateType: [],
consignmentType: 'consignmentType',
signmentT: [],
consignment: 'consignment',
consign: [],
industrytype: 'industrytype',
industry_type: [],
customerType_list: [],
sex_list: [],
aseTypeBox: [],
aseType: [
{
dictValue: '首次购车',
divtkey: 0
},
{
dictValue: '续购',
divtkey: 1
}
],
stateId: 0,
FormLoading: false,
listLoading: false,
crmVisitAppendixDtoList: [],
temp: {
crmBusinessDto: {},
crmVisitAppendixDtoList: [],
customerType: '', //
visitWay: '', //
visitWayKey: '',
userSid: ''
}, //
templooke: {},
dialogFormVisible: false,
rules: {
name: [{ required: true, message: '请填写客户名称', trigger: 'blur' }],
address: [{ required: true, message: '请填写客户地址', trigger: 'blur' }]
}
}
},
methods: {
//
init() {
this.getShuJUZiDian()
this.huoquSheng()
},
//
openUpdate(sid) {
this.stateId = sid
this.isOnRemind = '否'
this.init()
if (this.stateId !== '0') {
getPcCustomerInfoBySid(this.stateId).then((response) => {
console.log(response.data)
if (response.code === '200') {
this.$refs['dataForm'].clearValidate()
this.temp = response.data
this.temp.birthday = this.getDates(this.temp.birthday)
if (this.temp.customerType !== '') {
typeValues({ type: 'customerType' }).then((res) => {
if (res.code === '200') {
if (this.temp.customerType === '个人') {
this.temp.certificateType = '身份证'
this.temp.certificateTypeKey = '01'
} else {
this.temp.certificateType = '营业执照'
this.temp.certificateTypeKey = '02'
}
this.customerType_list = res.data
this.customerType_list.forEach((e) => {
if (e.dictValue === this.temp.customerType) {
typeValues({ psid: e.sid, type: this.customerClass }).then((res) => {
if (res.code === '200') {
this.merClass = res.data
}
})
}
})
}
})
}
}
})
getPcBusinessInfoBySid(this.stateId).then((response) => {
if (response.code === '200') {
this.templooke = response.data
//
const Arry = []
Arry.push(parseInt(response.data.purchase_time))
this.aseTypeBox = Arry
}
})
}
},
//
openCreate(customerTypeList) {
this.temp.customerType = customerTypeList.customerType
this.temp.customerTypeKey = customerTypeList.customerTypeKey
this.temp.visitWay = customerTypeList.visitWay
this.temp.visitWayKey = customerTypeList.visitWayKey
this.$refs['dataForm'].clearValidate()
this.stateId = '0'
this.init()
if (this.temp.customerType !== '') {
if (this.temp.customerType === '个人') {
this.temp.certificateType = '身份证'
this.temp.certificateTypeKey = '01'
} else {
this.temp.certificateType = '营业执照'
this.temp.certificateTypeKey = '02'
}
typeValues({ psid: customerTypeList.psid, type: this.customerClass }).then((res) => {
if (res.code === '200') {
this.merClass = res.data
}
})
}
},
// ---------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------
//
getShuJUZiDian() {
typeValues({ type: this.documenttype }).then((res) => {
if (res.code === '200') {
this.cateType = res.data
}
})
//
typeValues({ type: this.customerSource }).then((res) => {
if (res.code === '200') {
this.sourceLisst = res.data
}
})
//
typeValues({ type: this.customerLevel }).then((res) => {
if (res.code === '200') {
this.induslevel = res.data
}
})
//
typeValues({ type: this.visitWay }).then((res) => {
if (res.code === '200') {
this.industway = res.data
}
})
//
typeValues({ type: this.industrytype }).then((res) => {
if (res.code === '200') {
this.industry_type = res.data
}
})
//
typeValues({ type: this.consignmentType }).then((res) => {
if (res.code === '200') {
this.signmentT = res.data
}
})
//
typeValues({ type: this.consignment }).then((res) => {
if (res.code === '200') {
this.consign = res.data
}
})
//
typeValues({ type: 'sex' }).then((res) => {
if (res.code === '200') {
this.sex_list = res.data
}
})
},
// --------------------------------------------------
huoquSheng() {
getProvince().then((res) => {
if (res.code === '200') {
this.inputProvinceList = res.data
}
})
},
getShen(value) {
let bb = ''
this.inputProvinceList.forEach((e) => {
if (e.sid === value) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
// codeprovince
this.temp.province = bb.name
this.huoquShi(bb.sid)
},
huoquShi(sid1) {
var sid = {
sid: sid1
}
getCity(sid).then((res) => {
console.log('2222市', res)
if (res.code === '200') {
this.inputCityList = res.data
}
})
},
getShi(value) {
let bb = ''
this.inputCityList.forEach((e) => {
if (e.sid === value) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
this.temp.city = bb.name
this.huoquXian(bb.sid)
},
huoquXian(sid1) {
var sid = {
sid: sid1
}
getCounty(sid).then((res) => {
console.log('333县', res)
if (res.code === '200') {
this.inputCountyList = res.data
}
})
},
getQu(value) {
let bb = ''
this.inputCountyList.forEach((e) => {
if (e.sid === value) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
this.temp.county = bb.name
},
// ------------------------------------------------------
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.activeNames = ['1']
this.templooke = {}
this.temp = {}
this.aseTypeBox = []
this.$emit('doback')
},
//
getDates(v) {
var now = new Date(v)
var year = now.getFullYear() //
var month = now.getMonth() + 1 //
var day = now.getDate() //
var hh = now.getHours() //
var mm = now.getMinutes() //
var ss = now.getSeconds() //
var clock = year + '-'
if (month < 10) clock += '0'
clock += month + '-'
if (day < 10) clock += '0'
clock += day + ' '
if (hh < 10) clock += '0'
clock += hh + ':'
if (mm < 10) clock += '0'
clock += mm + ':'
if (ss < 10) clock += '0'
clock += ss
return clock
},
//
findselect(list, value) {
var item = null
for (var i = 0; i < list.length; i++) {
if (list[i].divtkey === value) {
item = list[i]
break
}
}
return item
},
//
changexuanze() {
this.aseTypeBox = [this.aseTypeBox[this.aseTypeBox.length - 1]]
const item = this.findselect(this.aseType, this.aseTypeBox[0])
this.templooke.purchase_time = item.divtkey
},
//
handleJUBuCun() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.FormLoading = true
if (this.temp.sex !== '') {
this.sex_list.forEach((e) => {
if (e.dictValue === this.temp.sex) {
this.temp.sexKey = e.dictKey
}
})
}
if (this.temp.isOnRemind !== '' && this.temp.isOnRemind === '是') {
this.temp.isOnRemindkey = 1
} else {
this.temp.isOnRemindkey = 0
}
if (!this.temp.birthday) {
this.temp.birthday = ''
}
if (this.stateId === '0') {
this.temp.userSid = window.sessionStorage.getItem('userSid')
this.temp.crmBusinessDto = this.templooke
this.getUrl()
this.temp.crmVisitAppendixDtoList = this.crmVisitAppendixDtoList
savePcCustomerInfo(this.temp).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.$notify({
title: '提示',
message: '添加成功',
type: 'success',
duration: 2000
})
this.list1 = []
this.handleReturn('true')
} else if ('511' === response.code || '513' === response.code) {
this.FormLoading = false
this.dialogFormVisible = true
this.stateId = response.data
} else {
alert(200)
}
}).catch(() => {})
} else {
this.temp.userSid = window.sessionStorage.getItem('userSid')
this.temp.crmBusinessDto = this.templooke
updatePcCustomerInfo(this.temp).then((res) => {
this.FormLoading = false
if (res.code === '200') {
this.$notify({
title: '提示',
message: '修改成功',
type: 'success',
duration: 2000
})
this.handleReturn('true')
} else {
this.$notify({
title: '提示',
message: '修改失败',
type: 'error',
duration: 2000
})
}
})
}
}
})
},
dialogStatus() {
this.dialogFormVisible = false
this.openUpdate(this.stateId)
},
dialogFormVisibl() {
this.$notify({
title: '提示',
message: '用户名手机号重复',
type: 'error',
duration: 2000
})
this.dialogFormVisible = false
return
},
//
getFenLei(value) {
let bb = null
this.merClass.forEach((e) => {
if (e.dictKey === value) {
bb = {
type: 'customerClass',
name: e.dictValue,
vaule: e.dictKey
}
}
})
this.temp.customerClass = bb.name
this.temp.customerClassKey = bb.vaule
},
//
getKeHuLaiYUan(value) {
let bb = null
this.sourceLisst.forEach((e) => {
if (e.dictKey === value) {
bb = {
type: 'customerSource',
name: e.dictValue,
vaule: e.dictKey
}
}
})
this.temp.source = bb.name
this.temp.sourceKey = bb.vaule
},
//
getJiBie(value) {
let bb = null
this.induslevel.forEach((e) => {
if (e.dictKey === value) {
bb = {
type: 'customerLevel',
name: e.dictValue,
vaule: e.dictKey
}
}
})
this.temp.level = bb.name
this.temp.levelKey = bb.vaule
},
//
getHuoWuLeiXing(value) {
let bb = null
this.signmentT.forEach((e) => {
if (e.dictKey === value) {
bb = {
type: 'consignmentType',
name: e.dictValue,
vaule: e.dictKey
}
}
})
this.templooke.consignmentType = bb.name
this.templooke.consignmentTypeKey = bb.vaule
},
//
getHuoWu(value) {
let bb = null
this.consign.forEach((e) => {
if (e.dictKey === value) {
bb = {
type: 'consignment',
name: e.dictValue,
vaule: e.dictKey
}
}
})
this.templooke.consignment = bb.name
this.templooke.consignmentKey = bb.vaule
},
// --------------------------------------------------------------
getUrl() {
for (var i = 0; i < this.list1.length; i++) {
var namese = this.list1[i].name
var nameArr = namese.split('.')
this.crmVisitAppendixDtoList.push({
// attachType: '0001',
fileName: this.list1[i].name,
filePath: this.list1[i].url,
fileSize: this.list1[i].size,
// linkSid: this.temp.customerSid,
createBySid: window.sessionStorage.getItem('userSid'),
fileType: nameArr[nameArr.length - 1]
})
console.log('11223344', this.crmVisitAppendixDtoList)
}
}
}
}
</script>
<style scoped>
.trightb {
text-align: right;
}
.addinputwduan {
width: 80px;
margin: 0 5px;
}
/deep/ .el-collapse-item__header {
height: 40px;
padding: 10px;
font-weight: bold;
font-size: 20px;
text-align: left;
color: #ffffff;
background-color: #0294d7;
}
/deep/ .el-collapse-item__content {
padding-bottom: 0;
}
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
</style>

390
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzecheliang.vue

@ -8,16 +8,14 @@
<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="webcon"> <div class="main-content">
<div class="searchcon"> <div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="130px" class="tab-header"> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="130px" class="tab-header">
<el-form-item label="品牌"> <el-form-item label="品牌">
<el-select v-model="listQuery.params.carbrand" class="addinputw" placeholder="请选择" <el-select v-model="listQuery.params.carbrand" class="addinputw" placeholder="请选择" @change="changeCarbrand">
@change="changeCarbrand"> <el-option v-for="(item, index) in carbrand_list" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-option v-for="(item, index) in carbrand_list" :key="index.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="功能"> <el-form-item label="功能">
@ -53,12 +51,10 @@
</div> </div>
<div class="listtop"> <div class="listtop">
<div class="tit">现车库存列表</div> <div class="tit">现车库存列表</div>
<pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" <pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
class="pagination" @pagination="getList"/>
</div> </div>
<div class=""> <div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" <el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange">
@selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/> <el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/> <el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="品牌" align="center"> <el-table-column label="品牌" align="center">
@ -96,8 +92,7 @@
<div class="pages"> <div class="pages">
<div class="tit"/> <div class="tit"/>
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" <pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
class="pagination" @pagination="getList"/>
</div> </div>
</div> </div>
</div> </div>
@ -105,215 +100,200 @@
</template> </template>
<script> <script>
import {mapGetters} from 'vuex' import Pagination from '@/components/pagination'
import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye'
import pageye from '@/components/pagination/pageye' import { getList } from '@/api/jichuxinxi/busdepositvehicle'
import {getList, selectBrand} from '@/api/jichuxinxi/busdepositvehicle'
export default { export default {
name: "xuanzecheliang", name: "xuanzecheliang",
components: { components: {
Pagination, Pagination,
pageye pageye
},
data() {
return {
createPage: '',
dialogVisible: false, //
isSearchShow: false,
searchxianshitit: '显示查询条件',
btndisabled: false,
viewState: 1, // 1 2- 3 4 5-
// -----------
carbrand_list: [], //
tableKey: 0,
list: [],
sids: [],
total: 1,
FormLoading: false,
listLoading: false,
listQuery: {
current: 1,
size: 5,
params: {
carbrand: '',
driveForm: '',
emissionStandard: '',
fuelType: '',
gearboxType: '',
lockedState: '',
power: '',
productLine: '',
vehicleState: '',
vehicleType: '',
vehicleVersion: ''
}
},
selectDate: undefined,
temp: {}, //
depositVehicleList: [],
visible: true,
hetongdanganguanliInfoShow: false
// ------------------------------------
}
},
methods: {
//
init() {
this.handleFilter()
this.getcarbrand()
}, },
data() { //
return { clicksearchShow() {
createPage: '', this.isSearchShow = !this.isSearchShow
dialogVisible: false, // if (this.isSearchShow) {
isSearchShow: false, this.searchxianshitit = '隐藏查询条件'
searchxianshitit: '显示查询条件', } else {
btndisabled: false, this.searchxianshitit = '显示查询条件'
viewState: 1, // 1 2- 3 4 5-
// -----------
carbrand_list: [], //
tableKey: 0,
list: [],
sids: [],
total: 1,
FormLoading: false,
listLoading: false,
listQuery: {
current: 1,
size: 20,
params: {
carbrand: '',
driveForm: '',
emissionStandard: '',
fuelType: '',
gearboxType: '',
lockedState: '',
power: '',
productLine: '',
vehicleState: '',
vehicleType: '',
vehicleVersion: ''
},
},
selectDate: undefined,
temp: {}, //
depositVehicleList: [],
visible: true,
hetongdanganguanliInfoShow: false,
// ------------------------------------
} }
}, },
computed: { //
...mapGetters([ handleReset() {
'id', this.listQuery = {
'roles', current: 1,
'rolesIds', size: 5,
'departmentId', params: {
'departmentCode', carbrand: '',
]), driveForm: '',
emissionStandard: '',
fuelType: '',
gearboxType: '',
lockedState: '',
power: '',
productLine: '',
vehicleState: '',
vehicleType: '',
vehicleVersion: ''
}
}
}, },
created() { //
// handleSelectionChange(row) {
this.init() console.log('row', row)
this.depositVehicleList = row
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
console.log('选择sid', this.sids)
}, },
methods: { //
// getcarbrand() {
init() { // selectBrand().then((res) => {
this.handleFilter(); // if (res.code === '200') {
this.getcarbrand() // this.carbrand_list = res.data
}, // console.log('', res.data)
// // }
clicksearchShow() { // })
this.isSearchShow = !this.isSearchShow },
if (this.isSearchShow) { changeCarbrand(value) {
this.searchxianshitit = '隐藏查询条件' let bb = {}
} else { this.carbrand_list.forEach((e) => {
this.searchxianshitit = '显示查询条件' // eslint-disable-next-line eqeqeq
} if (e.dictKey == value) {
}, bb = {
// name: e.dictValue,
handleReset() { key: e.dictKey,
this.listQuery = { sid: e.sid
current: 1,
size: 20,
params: {
carbrand: '',
driveForm: '',
emissionStandard: '',
fuelType: '',
gearboxType: '',
lockedState: '',
power: '',
productLine: '',
vehicleState: '',
vehicleType: '',
vehicleVersion: ''
},
}
},
//
handleSelectionChange(row) {
console.log('row', row)
this.depositVehicleList = row
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
console.log('选择sid', this.sids)
},
//
getcarbrand() {
// selectBrand().then((res) => {
// if (res.code === '200') {
// this.carbrand_list = res.data
// console.log('', res.data)
// }
// })
},
changeCarbrand(value) {
let bb = {}
this.carbrand_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
bb = {
name: e.dictValue,
key: e.dictKey,
sid: e.sid
}
} }
}
})
this.listQuery.params.carbrand = bb.name
console.log('name', this.listQuery.params.carbrand)
},
//
handleConfirm() {
if (this.sids.length > 0) {
this.$emit('handleVehicle', this.depositVehicleList)
} else {
this.$notify({
title: '提示',
message: '没有选择车辆!',
type: 'error',
duration: 2000
}) })
this.listQuery.params.carbrand = bb.name return
console.log('name', this.listQuery.params.carbrand) }
}, },
// //
handleConfirm() { handleReturn() {
if (this.sids.length > 0) { this.$emit('yudingcheliangfanhui') //
this.$emit('handleVehicle', this.depositVehicleList) },
this.handleReturn() //
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
getList({
current: this.listQuery.current,
size: this.listQuery.size,
params: {
modelName: this.listQuery.modelName,
carModel: this.listQuery.carModel,
brandName: this.listQuery.brandName
}
}).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records
this.total = response.data.total
} else { } else {
this.$notify({ this.list = []
title: '提示', this.total = 0
message: '没有选择车辆!',
type: 'error',
duration: 2000
});
return
} }
}, })
//
handleReturn() {
this.$emit('yudingcheliangfanhui') //
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
getList({
current: this.listQuery.current,
size: this.listQuery.size,
params: {
modelName: this.listQuery.modelName,
carModel: this.listQuery.carModel,
brandName: this.listQuery.brandName
}
}).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records
this.total = response.data.total
} else {
this.list = []
this.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
}, },
//
handleFilter() {
this.listQuery.current = 1
this.getList()
}
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.el-input__icon { .el-input__icon {
width: 40px; width: 40px;
} }
.el-form-item .el-form-item__label { .el-form-item .el-form-item__label {
width: 100% !important; width: 100% !important;
} }
.block { .block {
display: inline-block; display: inline-block;
} }
.el-form-item__content label { .el-form-item__content label {
padding: 0 5px; padding: 0 5px;
} }
</style> </style>

439
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzekehu.vue

@ -1,19 +1,18 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="kehu_xuanze"> <div v-show="viewState == 1">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>选择客户</div> <div>选择客户</div>
<div> <div>
<el-button type="primary" size="medium" @click="handleCreate()">新增客户</el-button> <el-button type="primary" size="small" @click="handleCreate()">新增客户</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="webcon"> <div class="">
<div class="searchcon"> <div class="searchcon">
<!-- <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>-->
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="130px" class="tab-header"> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="客户姓名"> <!--客户姓名/公司名称/手机号/微信号/证件号码--> <el-form-item label="客户姓名">
<el-input v-model="listQuery.params.name" placeholder="请输入" clearable class="filter-item"/> <el-input v-model="listQuery.params.name" placeholder="请输入" clearable class="filter-item"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -22,14 +21,11 @@
</div> </div>
</div> </div>
</div> </div>
<pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" <!-- <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>-->
class="pagination" @pagination="getList"/>
<div class=""> <div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" <el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange">
@selection-change="handleSelectionChange"> <el-table-column fixed width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<!-- <el-table-column width="50px" type="selection" align="center"/>--> <el-table-column fixed label="操作" align="center">
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="searchbtns"> <div class="searchbtns">
<el-button size="small" type="primary" @click="handleConfirm(scope.row)">选择</el-button> <el-button size="small" type="primary" @click="handleConfirm(scope.row)">选择</el-button>
@ -37,14 +33,14 @@
</div> </div>
</template> </template>
</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.name }}</span> <span>{{ scope.row.createTime }}</span>
</template> </template>
</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.companyName }}</span> <span>{{ scope.row.name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="手机号码" align="center"> <el-table-column label="手机号码" align="center">
@ -57,9 +53,14 @@
<span>{{ scope.row.weixin }}</span> <span>{{ scope.row.weixin }}</span>
</template> </template>
</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.follow_state }}</span> <span>{{ scope.row.customerType }}</span>
</template>
</el-table-column>
<el-table-column label="客户级别" align="center">
<template slot-scope="scope">
<span>{{ scope.row.level }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -67,246 +68,202 @@
<div class="pages"> <div class="pages">
<div class="tit"/> <div class="tit"/>
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" <pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
class="pagination" @pagination="getList"/>
</div> </div>
</div> </div>
</div> </div>
<el-dialog <xuanzekehu-add v-show="viewState == 2 || viewState == 3" ref="addAndUpdate" @reloadlist="resetState" @doback="resetState"/>
title="客户登记-类型" <el-dialog title="客户登记-类型" :visible.sync="dialogVisible" width="28%" top="13%">
:visible.sync="dialogVisible" <el-form :model="customerTypeList">
width="28%" <el-form-item label="联络方式" :label-width="formLabelWidth" class="diaForm">
top="13%"> <el-select v-model="customerTypeList.visitWay" placeholder="请选择" @change="getVisitWay">
<el-form :model="customerTypeList"> <el-option v-for="(item) in visitWay_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
<el-form-item label="联络方式" :label-width="formLabelWidth" class="diaForm"> </el-select>
<el-select v-model="customerTypeList.visitWay" placeholder="请选择联络方式" @change="getVisitWay"> </el-form-item>
<el-option v-for="(item) in visitWay_list" :key="item.dictKey" :label="item.dictValue" <el-form-item label="客户类型" :label-width="formLabelWidth" class="diaForm">
:value="item.dictKey"/> <el-select v-model="customerTypeList.customerType" placeholder="请选择" @change="getCustomerType">
</el-select> <el-option v-for="(item) in customertype_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-form-item> </el-select>
<el-form-item label="客户类型" :label-width="formLabelWidth" class="diaForm"> </el-form-item>
<el-radio v-model="customerTypeList.customerType" label="个人">个人</el-radio> </el-form>
<el-radio v-model="customerTypeList.customerType" label="企业">企业</el-radio> <span slot="footer" class="dialog-footer">
</el-form-item> <el-button class="el-button-sure" type="primary" @click="handleOpen()"> </el-button>
</el-form> <el-button @click="dialogVisible = false"> </el-button>
<span slot="footer" class="dialog-footer"> </span>
<el-button class="el-button-sure" type="primary" @click="handleOpen()"> </el-button> </el-dialog>
<el-button @click="dialogVisible = false"> </el-button>
</span>
</el-dialog>
<kehudangan-add ref="addAndUpdate" @handleReturn="resetState"/>
</div> </div>
</template> </template>
<script> <script>
import {mapGetters} from 'vuex' import Pagination from '@/components/pagination'
import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye'
import pageye from '@/components/pagination/pageye' import { pagerList, typeValues } from '@/api/jichuxinxi/busdepositvehicle'
import {pagerList,typeValues} from '@/api/jichuxinxi/busdepositvehicle' import xuanzekehuAdd from './xuanzekehuAdd.vue'
import xuanzekehuAdd from "./xuanzekehuAdd";
import KehudanganAdd from "@/views/kehuguanli/kehudangan/kehudanganAdd";
export default { export default {
name: "xuanzekehu", name: 'xuanzekehu',
components: { components: {
KehudanganAdd, Pagination,
Pagination, pageye,
pageye, xuanzekehuAdd
xuanzekehuAdd, },
typeValues data() {
return {
dialogVisible: false, //
formLabelWidth: '110px',
isSearchShow: true,
viewState: 1, // 1 2- 3 4 5-
// -----------
tableKey: 0,
list: [],
sids: [],
customerTypeList: {
visitWay: '', //
visitWayKey: '', // --Key
customerType: '', //
customerTypeKey: '', // --Key
psid: ''
},
visitWay_list: [],
customertype_list: [],
listLoading: false,
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
name: '',
userSid: ''
}
}
}
},
methods: {
init() {
this.getList()
this.getShuJUZiDian()
},
getShuJUZiDian() {
typeValues({ type: 'visitWay' }).then((res) => {
if (res.code === '200') {
this.visitWay_list = res.data
}
})
typeValues({ type: 'customertype' }).then((res) => {
if (res.code === '200') {
this.customertype_list = res.data
}
})
}, },
data() { handleOpen() {
return { this.viewState = 2
createPage: '', if (this.customerTypeList.visitWay !== '' && this.customerTypeList.customerType !== '') {
kehu_xuanze: true, // this.dialogVisible = false
kehu_add: false, // const customerTypeList = this.customerTypeList
dialogVisible: false, // this.$refs['addAndUpdate'].openCreate(customerTypeList)
formLabelWidth: '110px', this.customerTypeList = {
isSearchShow: true,
// searchxianshitit: '',
btndisabled: false,
viewState: 1, // 1 2- 3 4 5-
// -----------
depositType: [], //
tableKey: 0,
list: [],
sids: [],
total: 1,
customerTypeList: {
visitWay: '', // visitWay: '', //
visitWayKey: '', visitWayKey: '', // --Key
customerType: ''// customerType: '', //
}, customerTypeKey: '', // --Key
visitWay_list: [], psid: ''
FormLoading: false, }
listLoading: false, } else {
listQuery: { this.$message({
current: 1, message: '请填写联络方式和客户类型',
size: 20, type: 'warning'
params: { })
orgName: '',
staffName: '',
customerName: '',
virtualDepositType: '',
createDateStart: '',
createDateEnd: '',
},
},
selectDate: undefined,
temp: {}, //
visible: true,
// ------------------------------------
} }
}, },
computed: { getVisitWay(value) {
...mapGetters([ let bb = null
'id', this.visitWay_list.forEach((e) => {
'roles', if (e.dictValue === value) {
'rolesIds', bb = {
'departmentId', value: e.dictValue,
'departmentCode', key: e.dictKey
]), }
}, }
created() { })
// this.customerTypeList.visitWay = bb.value
this.init() this.customerTypeList.visitWayKey = bb.key
this.getShuJUZiDian()
}, },
methods: { getCustomerType(value) {
init() { let bb = null
this.getList() this.customertype_list.forEach((e) => {
// this.getType() if (e.dictValue === value) {
}, bb= {
getShuJUZiDian() { value: e.dictValue,
typeValues({ key: e.dictKey,
type: 'visitWay', sid: e.sid
}).then((res) => {
if (res.code === '200') {
this.visitWay_list = res.data
} }
}) }
}, })
handleOpen() { this.customerTypeList.customerType = bb.value
if (this.customerTypeList.visitWay !== '' && this.customerTypeList.customerType !== '') { this.customerTypeList.customerTypeKey = bb.key
this.dialogVisible = false this.customerTypeList.psid = bb.sid
const customerTypeList = this.customerTypeList },
this.$refs.addAndUpdate.openCreate(customerTypeList, () => { // ------------------
// this.visible = false handleCreate() {
this.customerTypeList = { this.dialogVisible = true
visitWay: '', },
visitWayKey: '', resetState() {
customerType: '' this.viewState = 1
} this.getList()
}) },
//
handleReturn() {
this.$emit('doback')
},
//
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.userSid = window.sessionStorage.getItem('userSid')
pagerList(this.listQuery).then((response) => {
this.listLoading = false
if (response.code === '200' && response.data && response.data.total > 0) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else { } else {
this.$message({ this.list = []
message: '请填写联络方式和客户类型', this.listQuery.total = 0
type: 'warning'
});
} }
}, })
getVisitWay(value) { },
let bb = null //
this.visitWay_list.forEach((e) => { handleFilter() {
if (e.dictKey == value) { this.listQuery.current = 1
bb = { this.getList()
type: 'visitWay', },
name: e.dictValue, //
vaule: e.dictKey, handleSelectionChange(row) {
sid: e.sid, const aa = []
} row.forEach((element) => {
} aa.push(element.sid)
}) })
this.customerTypeList.visitWay = bb.name this.sids = aa
this.customerTypeList.visitWayKey = bb.vaule console.log('选择sid', this.sids)
},
//
// clicksearchShow() {
// this.isSearchShow = !this.isSearchShow
// if (this.isSearchShow) {
// this.searchxianshitit = ''
// } else {
// this.searchxianshitit = ''
// }
// },
// ------------------
handleCreate() {
this.kehu_xuanze = false
this.dialogVisible=true
// this.kehu_add = true
},
resetState() {
this.kehu_xuanze = true
this.kehu_add = false
this.getList()
},
//
handleReturn() {
this.$emit('dingjinfanhui') //
this.$emit('yudingcheliangfanhui') //
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
pagerList({
current: this.listQuery.current,
size: this.listQuery.size,
params: {
userSid: window.sessionStorage.getItem('userSid')
},
}).then((response) => {
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records
this.total = response.data.total
} else {
this.list = []
this.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
console.log('选择sid', this.sids)
},
//
handleConfirm(row) {
console.log('选择客户row', row)
this.$emit('handleCustomer', row)
this.handleReturn()
},
handleUpdate(row) {
},
}, },
//
handleConfirm(row) {
this.$emit('handleCustomer', row)
},
handleUpdate(row) {
this.viewState = 3
this.$refs['addAndUpdate'].openUpdate(row.sid)
}
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped>
.searchcon { .searchcon {
margin-top: 8px; margin-top: 8px;
} }
</style> </style>

1480
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzekehuAdd.vue

File diff suppressed because it is too large

285
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdanAdd.vue

@ -1,66 +1,88 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="visible"> <div v-show="viewState == 1">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
<el-button type="primary" size="small" :disabled="FormLoading" @click="handleCreate()">保存</el-button> <el-button type="primary" size="small" :disabled="FormLoading" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button> <el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</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">
<el-form ref="dataForm" :model="temp" label-position="right" label-width="100%" class="formadd" :rules="rules"> <div class="titwu">销售简易订单</div>
<div class="tit"> <el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
销售虚拟订车单 <el-row class="rowStyle">
<div class="times"> <el-col :span="24" class="tleftb colStyle">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div> <span>金额单位: </span>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div> </el-col>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div> </el-row>
<div><span>金额单位</span><span></span></div> <el-row>
</div> <el-col :span="3" class="tleftb">
</div> <span>分公司</span>
<el-row class="bordertopline">
<el-col :span="2" class="tleftb">
<el-form-item>订单类型</el-form-item>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>客户名称</el-form-item> <span>客户名称</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.customerName }} {{ temp.customerName }}
<span class="bluezi changeIt" @click="handleCustomer()">选择客户/新增客户</span> <span class="bluezi changeIt" @click="handleCustomer()">选择客户</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>联系电话</el-form-item> <span>联系电话</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.mobile }} {{ temp.mobile }}
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 预订车辆信息--> <!--Start 预订车辆信息-->
<div class="titcon"> <div class="title">
<div class="title">预订车辆信息</div> <div>预订车辆信息</div>
<div class="baocun"> <div>
<el-button size="medium" type="primary" @click="handleyudingcheliang" class="btntopbluebut">选择车辆 <el-button size="mini" type="primary" @click="handleyudingcheliang" class="btntopbluebut">选择车辆
</el-button> </el-button>
</div> </div>
</div> </div>
<el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index"> <el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index">
<el-table-column align="center" label="序号" type="index" width="50"/> <el-table-column align="center" label="序号" type="index" width="60"/>
<el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="danger" <el-button size="mini" type="danger" @click="handleDelete(scope.row,scope.$index,list[scope.$index])">删除
@click="handleDelete(scope.row,scope.$index,list[scope.$index])">删除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -75,12 +97,12 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="车架号" width="140px" align="center"> <el-table-column label="车架号" width="140px" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.vin }}</span> <span>{{ scope.row.vin }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="颜色" width="100px" align="center"> <el-table-column label="颜色" width="100px" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.colour }}</span> <span>{{ scope.row.colour }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -96,10 +118,7 @@
</el-table-column> </el-table-column>
<el-table-column label="预计订金日期" width="220px" align="center"> <el-table-column label="预计订金日期" width="220px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker v-model="scope.row.depositDate" type="date" style="width:90%" <el-date-picker v-model="scope.row.depositDate" type="date" style="width:90%" value-format="yyyy-MM-dd" placeholder="选择日期" :picker-options="pickerOptions">
value-format="yyyy-MM-dd"
placeholder="选择日期"
:picker-options="pickerOptions">
</el-date-picker> </el-date-picker>
</template> </template>
</el-table-column> </el-table-column>
@ -112,33 +131,22 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<!--选择车辆确定--> <!--选择车辆确定-->
<xuanzecheliang v-show="xuanzecheliangShow" @yudingcheliangfanhui="yudingcheliangfanhui" ref="xuanzecheliang" <xuanzecheliang v-show="viewState == 3" @yudingcheliangfanhui="resetState" ref="divCheLiang" @handleVehicle="selectVehicle"/>
@handleVehicle="selectVehicle"/>
<!--选择客户确定--> <!--选择客户确定-->
<xuanzekehu v-show="xuanzekehuShow" @yudingcheliangfanhui="yudingcheliangfanhui" ref="xuanzekehu" <xuanzekehu v-show="viewState == 2" ref="divSelect" @doback="resetState" @handleCustomer="selectCustomer"/>
@handleCustomer="selectCustomer"/>
</div> </div>
</template> </template>
<script> <script>
import {fetchBySid, getPathSidByUserSid} from '@/api/dictcommons/dictcommons' import { fetchBySid, getPathSidByUserSid } from '@/api/dictcommons/dictcommons'
import {saveChe, selectSid, submitVehicleApprove, typeValues} from '@/api/jichuxinxi/busdeposit' import { saveChe, selectSid, submitVehicleApprove, typeValues } from '@/api/jichuxinxi/busdeposit'
import yudingcheliang from "@/views/xiaoshouguanli/xunidingdan/com/yudingcheliang" import xuanzecheliang from '@/views/xiaoshouguanli/xunidingdan/com/xuanzecheliang'
import hetongdanganguanliAdd from '@/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue' import xuanzekehu from '@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu'
import hetongdanganguanliInfo from '@/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue'
import kehudanganAdd from '@/views/kehuguanli/kehudangan/kehudanganAdd.vue'
import xuanzecheliang from "@/views/xiaoshouguanli/xunidingdan/com/xuanzecheliang"
import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
export default { export default {
name: 'Add', name: 'xunidingdanAdd',
components: { components: {
yudingcheliang,
hetongdanganguanliAdd,
hetongdanganguanliInfo,
kehudanganAdd,
xuanzecheliang, xuanzecheliang,
xuanzekehu xuanzekehu
}, },
@ -147,56 +155,42 @@ export default {
// //
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
let threeDay = 60 * 60 * 24 * 1000 * 3; let threeDay = 60 * 60 * 24 * 1000 * 3
return time.getTime() < Date.now() || time.getTime() > Date.now() + threeDay; return time.getTime() < Date.now() || time.getTime() > Date.now() + threeDay
}, }
}, },
viewTitle: '', viewTitle: '',
index: 0, index: 0,
disabled: false, // disabled: false, //
// dialogStatus: 'add',
// --------- // ---------
YongHuid: [], viewState: 1,
edit: true,
visible: true,
stateId: '0',
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
list: [], list: [],
temp: { temp: {
staffName: '', staffName: '',
customerSid: '', // sid customerSid: '', // sid
virtualOrderSid: '', // s virtualOrderSid: '', // s
customerName: '', // customerName: '', //
virtualOrderId: '', // s virtualOrderId: '', // s
sellerName: '', // sellerName: '', //
departmentName: '', // departmentName: '', //
mobile: '', // mobile: '', //
createDate: '', // createDate: '', //
carList: [], carList: [],
taskId: '', // Id taskId: '', // Id
procInsId: '', // ID procInsId: '', // ID
userSid: window.sessionStorage.getItem('userSid') userSid: window.sessionStorage.getItem('userSid')
}, // },
xuniSid: '',
mobile: '',
orgName: '',
staffName: '', staffName: '',
_userSid: '',
deposit_list: [], deposit_list: [],
customerName: [], customerName: [],
tificateT: [], rules: {}
dnumbDate: [],
dialogStatus: '', //
yudingcheliangShow: false,
xuanzecheliangShow: false, //
xuanzekehuShow: false, //
rules: {},
// ------------------------------------ // ------------------------------------
} }
}, },
methods: { methods: {
//- // -
getDeposit_date() { getDeposit_date() {
typeValues({ typeValues({
type: 'reserveDepositDate' type: 'reserveDepositDate'
@ -217,7 +211,7 @@ export default {
}, },
getPathSid() { getPathSid() {
const userSid = window.sessionStorage.getItem('userSid') const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({userSid: userSid}).then((res) => { getPathSidByUserSid({ userSid: userSid }).then((res) => {
if (res.success) { if (res.success) {
this.getCreateOrgName(res.data) this.getCreateOrgName(res.data)
} }
@ -231,34 +225,30 @@ export default {
}) })
}, },
showAdd(depositBillType, depositBillTypeKey) { showAdd(depositBillType, depositBillTypeKey) {
this.stateId = '0';
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
}); })
var nowDate = new Date(); var nowDate = new Date()
var date = { var date = {
year: nowDate.getFullYear(), year: nowDate.getFullYear(),
month: nowDate.getMonth() + 1, month: nowDate.getMonth() + 1,
day: nowDate.getDate(), day: nowDate.getDate()
} }
var dayDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) var dayDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day)
this.temp.createDate = dayDate // this.temp.createDate = dayDate //
this.temp.staffName = window.sessionStorage.getItem('name') // this.temp.staffName = window.sessionStorage.getItem('name') //
this.temp.depositBillType = depositBillType this.temp.depositBillType = depositBillType
this.temp.depositBillTypeKey = depositBillTypeKey this.temp.depositBillTypeKey = depositBillTypeKey
this.dialogStatus = 'add'; this.viewTitle = '【新增】销售简易订单'
this.viewTitle = '【新增】销售简易订单';
this.getDeposit_date() this.getDeposit_date()
this.getPathSid() // this.getPathSid() //
}, },
showEdit(sid, depositBillType) { showEdit(sid, depositBillType) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
}); })
this.stateId = '1'
this.temp.sid = sid this.temp.sid = sid
this.dialogStatus = 'edit'; this.viewTitle = '【编辑】销售简易订单'
this.viewTitle = '【编辑】销售简易订单';
const data = { const data = {
customerSid: '', customerSid: '',
virtualOrderSid: sid, virtualOrderSid: sid,
@ -270,24 +260,21 @@ export default {
this.list = response.data.carList this.list = response.data.carList
this.temp.depositBillType = depositBillType this.temp.depositBillType = depositBillType
} }
}); })
this.getDeposit_date() this.getDeposit_date()
}, },
// ------------ ------------ // ------------ ------------
// //
handleCreate() { handleCreate() {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
this.dialogStatus = 'create'; this.temp.carList = this.list
this.temp.carList = this.list;
this.temp.staffSid = window.sessionStorage.getItem('staffSid') this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid') this.temp.orgSid = window.sessionStorage.getItem('orgSid')
saveChe(this.temp).then((response) => { saveChe(this.temp).then((response) => {
this.FormLoading = true; this.FormLoading = true
if (response.code === '200') { if (response.code === '200') {
this.xuniSid = response.data; this.FormLoading = false
this.FormLoading = false;
this.handleReturn('true') this.handleReturn('true')
// this.$emit('doback') // this.$emit('doback')
} else { } else {
@ -295,14 +282,13 @@ export default {
title: '提示', title: '提示',
message: '添加失败', message: '添加失败',
type: 'error', type: 'error',
duration: 2000, duration: 2000
}) })
} }
}) })
} }
}) })
}, },
// //
handleSubmit() { handleSubmit() {
this.$confirm('是否确定提交该业务', '提示', { this.$confirm('是否确定提交该业务', '提示', {
@ -312,9 +298,8 @@ export default {
}).then(() => { }).then(() => {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
this.FormLoading = true; this.FormLoading = true
this.dialogStatus = 'create'; this.temp.carList = this.list
this.temp.carList = this.list;
this.temp.staffSid = window.sessionStorage.getItem('staffSid') this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid') this.temp.orgSid = window.sessionStorage.getItem('orgSid')
console.log('提交时sid', this.temp.sid) console.log('提交时sid', this.temp.sid)
@ -325,14 +310,14 @@ export default {
title: '提示', title: '提示',
message: '提交成功', message: '提交成功',
type: 'success', type: 'success',
duration: 2000, duration: 2000
}) })
this.handleReturn('true') this.handleReturn('true')
} else { } else {
this.$notify({ this.$notify({
title: '提交失败', title: '提交失败',
message: response.msg, message: response.msg,
type: 'error', type: 'error'
}) })
} }
}) })
@ -342,18 +327,18 @@ export default {
}, },
// //
handleReturn(isreload) { handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist'); if (isreload === 'true') this.$emit('reloadlist')
this.temp.sid = ''; // SID this.temp.sid = '' // SID
this.temp = { this.temp = {
staffName: '', staffName: '',
customerSid: '', // sid customerSid: '', // sid
virtualOrderSid: '', // s virtualOrderSid: '', // s
customerName: '', // customerName: '', //
virtualOrderId: '', // s virtualOrderId: '', // s
sellerName: '', // sellerName: '', //
departmentName: '', // departmentName: '', //
mobile: '', // mobile: '', //
createDate: '', // createDate: '', //
carList: [], carList: [],
taskId: '', // Id taskId: '', // Id
procInsId: '', // ID procInsId: '', // ID
@ -361,17 +346,19 @@ export default {
} }
this.disabled = false this.disabled = false
this.list = [] this.list = []
this.$refs['dataForm'].resetFields(); this.$refs['dataForm'].resetFields()
this.$emit('doback') this.$emit('doback')
}, },
// //
selectCustomer(row) { selectCustomer(row) {
this.viewState = 1
this.temp.customerName = row.name this.temp.customerName = row.name
this.temp.customerSid = row.sid this.temp.customerSid = row.sid
this.temp.mobile = row.mobile this.temp.mobile = row.mobile
}, },
// //
selectVehicle(depositVehicleList) { selectVehicle(depositVehicleList) {
this.viewState = 1
for (var i = 0; i < depositVehicleList.length; i++) { for (var i = 0; i < depositVehicleList.length; i++) {
this.list.push({ this.list.push({
brand: depositVehicleList[i].brandName, brand: depositVehicleList[i].brandName,
@ -389,64 +376,42 @@ export default {
// //
handleDelete(row, index) { handleDelete(row, index) {
this.list.splice(index, 1) this.list.splice(index, 1)
// if (row.sid !== '') {
// const sid_list = []
// sid_list.push(row.sid, row.vehicleSid)
// console.log('', sid_list)
// } else {
// this.list.splice(index, 1)
// }
}, },
// ------------ ------------ // ------------ ------------
// //
handleyudingcheliang() { handleyudingcheliang() {
this.visible = false; this.viewState = 3
this.xuanzekehuShow = false; this.$refs['divCheLiang'].init()
this.xuanzecheliangShow = true;
this.yudingcheliangShow = false;
}, },
// //
handleCustomer() { handleCustomer() {
this.xuanzekehuShow = true this.viewState = 2
this.xuanzecheliangShow = false; this.$refs['divSelect'].init()
this.visible = false;
this.yudingcheliangShow = false;
}, },
// //
yudingcheliangfanhui() { resetState() {
this.visible = true; this.viewState = 1
this.xuanzecheliangShow = false }
this.xuanzekehuShow = false }
this.yudingcheliangShow = false;
},
},
} }
</script> </script>
<style scoped> <style scoped>
.tit { .rowStyle {
margin: 0 0 20px 0; border-left: 0px !important;
padding: 10px 0 0 0;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 30px 0 10px 0;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
} }
.colStyle {
/deep/ .el-form-item__content { border-right: 0px !important;
margin-left: 0 !important;
} }
.changeIt { .changeIt {
line-height: 40px; line-height: 40px;
font-size: 17px; font-size: 17px;
float: right; float: right;
} }
.title {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
</style> </style>

121
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdanguanli.vue

@ -2,46 +2,23 @@
<div class="app-container"> <div class="app-container">
<div v-show="viewState == 1"> <div v-show="viewState == 1">
<button-bar view-title="销售简易订单管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> <button-bar view-title="销售简易订单管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="tab-header webtop"> <div class="main-content">
</div>
<div class="webcon">
<div class="searchcon"> <div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="130px" class="tab-header"> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="120px" class="tab-header">
<el-form-item label="订单类型"> <el-form-item label="订单类型">
<el-select v-model="listQuery.params.depositBillTypeKey" placeholder="请选择"> <el-select v-model="listQuery.params.depositBillTypeKey" placeholder="请选择">
<el-option <el-option v-for="item in depositType" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
v-for="item in depositType"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey">
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户(付款人)"> <el-form-item label="客户(付款人)">
<el-input v-model="listQuery.params.customerName" placeholder="请输入" clearable class="filter-item"/> <el-input v-model="listQuery.params.name" placeholder="请输入" clearable class="filter-item"/>
</el-form-item> </el-form-item>
<el-form-item label="申请日期"> <el-form-item label="申请日期">
<div class="block"> <el-date-picker v-model="listQuery.params.startTime" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd"></el-date-picker>
<el-date-picker <span style="padding: 0 8px"></span>
v-model="listQuery.params.startTime" <el-date-picker v-model="listQuery.params.endTime" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd"></el-date-picker>
type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd">
</el-date-picker>
</div>
<label></label>
<div class="block">
<el-date-picker
v-model="listQuery.params.endTime"
type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd">
</el-date-picker>
</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="btn" style="text-align: center;"> <div class="btn" style="text-align: center;">
@ -52,20 +29,16 @@
</div> </div>
<div class="listtop"> <div class="listtop">
<div class="tit">销售简易订单列表</div> <div class="tit">销售简易订单列表</div>
<pageye v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
class="pagination" @pagination="getList"/>
</div> </div>
<div class=""> <div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" <el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange">
@selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/> <el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/> <el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column width="130px" label="操作" align="center"> <el-table-column width="130px" label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="searchbtns"> <div class="searchbtns">
<el-button size="mini" type="primary" <el-button size="mini" type="primary" :disabled="scope.row.nodeState == '待提交' ? false : scope.row.nodeState == '销售专员' ? false : true" @click="handleEdit(scope.row)">办理
:disabled="scope.row.nodeState == '待提交' ? false:scope.row.nodeState == '发起订单'?false : true"
@click="handleEdit(scope.row)">办理
</el-button> </el-button>
<el-button size="mini" type="primary" @click="handleCheck(scope.row)">查看</el-button> <el-button size="mini" type="primary" @click="handleCheck(scope.row)">查看</el-button>
</div> </div>
@ -126,23 +99,19 @@
<div class="pages"> <div class="pages">
<div class="tit"/> <div class="tit"/>
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" <pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
class="pagination" @pagination="getList"/>
</div> </div>
</div> </div>
</div> </div>
<el-dialog <el-dialog title="请选择简易订单类型" :visible.sync="dialogVisible" width="22%">
title="请选择订单类型"
:visible.sync="dialogVisible"
width="22%">
<div class="diaCenter"> <div class="diaCenter">
<el-radio v-model="billTypeKey" label="01">订金收取</el-radio> <el-radio v-model="billTypeKey" label="01">订金收取</el-radio>
<el-radio v-model="billTypeKey" label="02">车辆预订</el-radio> <el-radio v-model="billTypeKey" label="02">车辆预订</el-radio>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleConfirm()"> </el-button> <el-button type="primary" size="small" @click="handleConfirm()"> </el-button>
<el-button @click="dialogVisible = false">退 </el-button> <el-button size="small" @click="dialogVisible = false">退 </el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 车辆预订 新增编辑页面 --> <!-- 车辆预订 新增编辑页面 -->
<div-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="getList"/> <div-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="getList"/>
@ -158,8 +127,7 @@
</template> </template>
<script> <script>
import {mapGetters} from 'vuex' import { deleteBySids, listPage, typeValues } from '@/api/jichuxinxi/busdeposit'
import {deleteBySids, listPage, typeValues} from '@/api/jichuxinxi/busdeposit'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import divAdd from './xunidingdanAdd.vue' import divAdd from './xunidingdanAdd.vue'
@ -220,17 +188,17 @@ export default {
nodeState_list: [], // nodeState_list: [], //
sids: [], sids: [],
billType: [], billType: [],
total: 1,
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
listQuery: { listQuery: {
current: 1, current: 1,
size: 20, size: 5,
total: 0,
params: { params: {
userSid: window.sessionStorage.getItem('userSid'), userSid: window.sessionStorage.getItem('userSid'),
orgName: '', orgName: '',
staffName: '', staffName: '',
customerName: '', name: '',
billType: '', billType: '',
startTime: '', startTime: '',
endTime: '' endTime: ''
@ -243,15 +211,6 @@ export default {
// ------------------------------------ // ------------------------------------
} }
}, },
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode'
])
},
created() { created() {
// //
this.init() this.init()
@ -280,9 +239,7 @@ export default {
}, },
// - // -
getType() { getType() {
typeValues({ typeValues({type: 'depositBillType' }).then((res) => {
type: 'depositBillType'
}).then((res) => {
if (res.code === '200') { if (res.code === '200') {
this.depositType = res.data this.depositType = res.data
console.log('下拉框请求订单类型', res.data) console.log('下拉框请求订单类型', res.data)
@ -320,20 +277,16 @@ export default {
this.listLoading = true this.listLoading = true
listPage(this.listQuery).then((response) => { listPage(this.listQuery).then((response) => {
this.listLoading = false this.listLoading = false
if ( if (response.code === '200' && response.data && response.data.total > 0) {
response.code === '200' &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records this.list = response.data.records
for (var i = 0; i < response.data.records.length; i++) { for (var i = 0; i < response.data.records.length; i++) {
var timeArr = response.data.records[i].createDate.split(' '); var timeArr = response.data.records[i].createDate.split(' ')
this.list[i].createDate = timeArr[0]; this.list[i].createDate = timeArr[0]
} }
this.total = response.data.total this.listQuery.total = response.data.total
} else { } else {
this.list = [] this.list = []
this.total = 0 this.listQuery.total = 0
} }
}) })
}, },
@ -347,7 +300,7 @@ export default {
aa.push(element.sid) aa.push(element.sid)
bb.push(element.depositBillTypeKey) bb.push(element.depositBillTypeKey)
cc.push(element.nodeState) cc.push(element.nodeState)
}); })
this.sids = aa this.sids = aa
this.billType = bb this.billType = bb
this.nodeState_list = cc this.nodeState_list = cc
@ -406,11 +359,11 @@ export default {
} }
}) })
const billType = bb.name const billType = bb.name
if (this.billTypeKey == '01') { if (this.billTypeKey === '01') {
this.dialogVisible = false; this.dialogVisible = false
this.viewState = 5 this.viewState = 5
this.$refs['divDing'].showAdd(billType, this.billTypeKey) this.$refs['divDing'].showAdd(billType, this.billTypeKey)
} else if (this.billTypeKey == '02') { } else if (this.billTypeKey === '02') {
this.dialogVisible = false this.dialogVisible = false
this.viewState = 2 this.viewState = 2
this.$refs['divadd'].showAdd(billType, this.billTypeKey) this.$refs['divadd'].showAdd(billType, this.billTypeKey)
@ -422,23 +375,23 @@ export default {
}) })
} }
}, },
// //
handleEdit(row) { handleEdit(row) {
if (row.depositBillTypeKey == '01') { if (row.depositBillTypeKey === '01') {
this.viewState = 5 this.viewState = 5
this.dialogStatus = 'edit' this.dialogStatus = 'edit'
this.$refs['divDing'].showEdit(row.sid,row.depositBillType) this.$refs['divDing'].showEdit(row.sid, row.depositBillType)
} else if (row.depositBillTypeKey == '02') { } else if (row.depositBillTypeKey === '02') {
this.viewState = 3 this.viewState = 3
this.dialogStatus = 'edit' this.dialogStatus = 'edit'
this.$refs['divadd'].showEdit(row.sid,row.depositBillType) this.$refs['divadd'].showEdit(row.sid, row.depositBillType)
} }
}, },
// //
handleCheck(row) { handleCheck(row) {
if (row.depositBillTypeKey == '01') { if (row.depositBillTypeKey === '01') {
this.viewState = 6 this.viewState = 6
this.$refs['divDingInfo'].showInfo(row.sid,row.depositBillType) this.$refs['divDingInfo'].showInfo(row.sid, row.depositBillType)
} else { } else {
this.viewState = 4 this.viewState = 4
this.$refs['divinfo'].showInfo(row.sid, row.depositBillType) this.$refs['divinfo'].showInfo(row.sid, row.depositBillType)
@ -462,7 +415,7 @@ export default {
userSid: window.sessionStorage.getItem('userSid'), userSid: window.sessionStorage.getItem('userSid'),
orgName: '', orgName: '',
staffName: '', staffName: '',
customerName: '', name: '',
billType: '', billType: '',
startTime: '', startTime: '',
endTime: '' endTime: ''

216
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdaninfo.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="visible"> <div>
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>销售简易订单详情</div> <div>销售简易订单详情</div>
<!-- <div v-else></div> --> <!-- <div v-else></div> -->
@ -9,64 +9,69 @@
</div> </div>
</div> </div>
<div class="listconadd"> <div class="listconadd">
<el-form <div class="titwu">销售简易订单</div>
ref="dataForm" <el-form ref="dataForm" :model="temp" label-position="right" class="formadd">
:model="temp" <el-row class="rowStyle">
label-position="right" <el-col :span="24" class="tleftb colStyle">
class="formadd" <span>金额单位: </span>
>
<div class="tit">
销售虚拟订车单
<div class="times">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div>
<div><span>金额单位</span><span></span></div>
</div>
</div>
<el-row class="bordertopline">
<el-col :span="2" class="tleftb">
<el-form-item>订单类型</el-form-item>
</el-col> </el-col>
<el-col :span="6" class="trightb"> </el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>分公司</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>客户名称</el-form-item> <span>客户名称</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.customerName }} {{ temp.customerName }}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item>联系电话</el-form-item> <span>联系电话</span>
</el-col> </el-col>
<el-col :span="6" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
{{ temp.mobile }} {{ temp.mobile }}
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 预订车辆信息--> <!--Start 预订车辆信息-->
<!-- <div class="title">-->
<div class="title">预订车辆信息</div> <div class="title">预订车辆信息</div>
<!-- </div>--> <el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index">
<el-table <el-table-column align="center" label="序号" type="index" width="60"/>
v-loading="listLoading"
:data="list"
border
style="width: 100%"
:index="index"
>
<el-table-column
align="center"
label="序号"
type="index"
width="50"
/>
<el-table-column label="品牌" align="center"> <el-table-column label="品牌" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.brand }}</span> <span>{{ scope.row.brand }}</span>
@ -78,16 +83,16 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="车架号" align="center"> <el-table-column label="车架号" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.vin }}</span> <span>{{ scope.row.vin }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="颜色" align="center"> <el-table-column label="颜色" align="center">
<template slot-scope="scope" @click=""> <template slot-scope="scope">
<span>{{ scope.row.colour }}</span> <span>{{ scope.row.colour }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="存放地点" align="center"> <el-table-column label="存放地点">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.location }}</span> <span>{{ scope.row.location }}</span>
</template> </template>
@ -115,133 +120,48 @@
</template> </template>
<script> <script>
import {mapGetters} from "vuex"; import { getReserveCarDetails } from '@/api/jichuxinxi/busdeposit'
import {getReserveCarDetails} from "@/api/jichuxinxi/busdeposit";
export default { export default {
name: "Add", name: 'xunidingdanInfo',
data() { data() {
return { return {
disabled: true, disabled: true,
index: 0, index: 0,
edit: true,
// --------- // ---------
YongHuid: [],
visible: true,
stateId: "0",
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
list: [], list: [],
temp: {}, // temp: {} //
textMap: { }
update: "修改",
create: "创建",
},
submitDto: {
businessSid: '',
userSid: window.sessionStorage.getItem("userSid"),
},
nodeState: '',
billNo: '',
createDate: '',
mobile: '',
orgName: '',
staffName: '',
_userSid: '',
customerName: [],
xuniSid: '',
tificateT: [],
dnumbDate: [],
dialogStatus: '', //
};
},
computed: {
...mapGetters([
"id",
"roles",
"rolesIds",
"departmentId",
"departmentCode",
]),
}, },
methods: { methods: {
// ------------------ // ------------------
handleReturn(isreload) { handleReturn() {
if (isreload === "true") this.$emit("reloadlist"); this.temp = {} // SID
this.temp.sid = ''; // SID this.$refs['dataForm'].resetFields()
this.$refs["dataForm"].resetFields(); this.$emit('doback')
this.$emit("doback");
}, },
showInfo(sid, depositBillType) { showInfo(sid, depositBillType) {
console.log("修改打开", sid);
this.submitDto.businessSid = sid;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs["dataForm"].clearValidate(); this.$refs['dataForm'].clearValidate()
}); })
getReserveCarDetails(sid).then((response) => { getReserveCarDetails(sid).then((response) => {
if (response.code) { if (response.success) {
this.temp = response.data this.temp = response.data
this.temp.depositBillType = depositBillType this.temp.depositBillType = depositBillType
this.list = response.data.vehicleList this.list = response.data.vehicleList
} else {
this.$notify({
title: "提示",
message: "查看失败",
type: "error",
duration: 2000,
});
} }
}); })
}, }
// }
handleSubmit() { }
this.$confirm("是否确定提交该业务", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
this.temp.userSid = window.sessionStorage.getItem('userSid')
//
submitVehicleApprove(this.temp).then((response) => {
if (response.code === "200") {
this.$notify({
title: "提示",
message: "添加成功",
type: "success",
duration: 2000,
});
} else {
this.$notify({
title: "添加失败",
message: response.msg,
type: "error",
});
}
});
});
},
},
};
</script> </script>
<style scoped> <style scoped>
.tit { .rowStyle {
margin: 0 0 20px 0; border-left: 0px !important;
padding: 10px 0 0 0;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 30px 0 10px 0;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
} }
.colStyle {
/deep/ .el-form-item__content { border-right: 0px !important;
margin-left: 0 !important;
} }
</style> </style>

309
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingjinAdd.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="visible"> <div v-show="viewState == 1">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
@ -10,38 +10,60 @@
</div> </div>
</div> </div>
<div class="listconadd"> <div class="listconadd">
<el-form ref="dataForm" :model="temp" label-position="right" label-width="100%" class="formadd" :rules="rules"> <div class="titwu">销售简易订单</div>
<div class="tit"> <el-form ref="dataForm" :model="temp" class="formadd" :rules="rules">
销售虚拟订单 <el-row class="rowStyle">
<div class="times"> <el-col :span="24" class="tleftb colStyle">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div> <span>金额单位: </span>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div> </el-col>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div> </el-row>
<div><span>金额单位</span><span></span></div> <el-row>
</div> <el-col :span="3" class="tleftb">
</div> <span>分公司</span>
<el-row class="bordertopline"> </el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>订单类型</span></el-form-item> <span>申请日期</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款人</span></el-form-item> <span><span class="icon">*</span>付款人</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.payName" class="addinputw" placeholder="" <el-input v-model="temp.payName" class="addinputw" placeholder="" clearable/>
clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>联系电话</span></el-form-item> <span><span class="icon">*</span>联系电话</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item prop="mobile"> <el-form-item prop="mobile">
<el-input v-model="temp.mobile" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.mobile" class="addinputw" placeholder="" clearable/>
</el-form-item> </el-form-item>
@ -49,18 +71,17 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>车辆台数</span></el-form-item> <span>车辆台数</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.carNumber" class="addinputw" placeholder="" <el-input v-model="temp.carNumber" class="addinputw" placeholder="" clearable/>
clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>订金金额</span></el-form-item> <span><span class="icon">*</span>订金金额</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="13">
<el-form-item> <el-form-item>
<el-input v-model="temp.deposit" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.deposit" class="addinputw" placeholder="" clearable/>
</el-form-item> </el-form-item>
@ -68,9 +89,9 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款日期</span></el-form-item> <span><span class="icon">*</span>付款日期</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-date-picker <el-date-picker
v-model="temp.payDate" v-model="temp.payDate"
@ -82,20 +103,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款方式</span></el-form-item> <span><span class="icon">*</span>付款方式</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-select v-model="temp.payTypeKey" class="addinputw" placeholder="" @change="changePaymentType"> <el-select v-model="temp.payType" class="addinputw" placeholder="" @change="changePaymentType">
<el-option v-for="(item, index) in paymentType_list" :key="index.dictKey" :label="item.dictValue" <el-option v-for="item in paymentType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
:value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款银行账号</span></el-form-item> <span><span class="icon">*</span>付款银行账号</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.payNumber" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.payNumber" class="addinputw" placeholder="" clearable/>
</el-form-item> </el-form-item>
@ -103,32 +123,29 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>收款银行账号</span></el-form-item> <span><span class="icon">*</span>收款银行</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="13">
<el-form-item> <el-select v-model="temp.collectionBank" class="addinputw" placeholder="" @change="changeproBank">
<el-select v-model="temp.collectionNumberKey" class="addinputw" placeholder="" <el-option v-for="item in proBank_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
@change="changeProBankAccValue"> </el-select>
<el-option v-for="(item, index) in ProBankAcc_list" :key="index.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>收款银行</span></el-form-item> <span><span class="icon">*</span>收款银行账号</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="5">
<el-select v-model="temp.collectionBankKey" class="addinputw" placeholder="" @change="changeproBank"> <el-form-item>
<el-option v-for="(item, index) in proBank_list" :key="index.dictKey" :label="item.dictValue" <el-select v-model="temp.collectionNumber" class="addinputw" placeholder="" @change="changeProBankAccValue">
:value="item.dictKey"/> <el-option v-for="item in ProBankAcc_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select> </el-select>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>备注</span></el-form-item> <span>备注</span>
</el-col> </el-col>
<el-col :span="21" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<el-input v-model="temp.remarks" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.remarks" class="addinputw" placeholder="" clearable/>
</el-form-item> </el-form-item>
@ -136,21 +153,20 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span><span class="icon">*</span>付款凭证</span></el-form-item> <span><span class="icon">*</span>付款凭证</span>
<div class="tips"><span>只可上传一张付款凭证</span></div> <div class="tips"><span>只可上传一张付款凭证</span></div>
</el-col> </el-col>
<el-col :span="21" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<Upload ref="uploadImg" v-model="list1" :limit="1" bucket="map" :upload-data="{type:'0001'}"/> <Upload ref="uploadImg" v-model="list1" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 客户信息--> <!--Start 客户信息-->
<div class="titcon"> <div class="title">
<div class="title">客户信息</div> <div>客户信息</div>
<div class="baocun"> <div>
<el-button type="primary" size="small" icon="el-icon-plus" class="btntopblueline" <el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="handleyudingcheliang()">选择
@click="handleyudingcheliang()">添加
</el-button> </el-button>
</div> </div>
</div> </div>
@ -180,22 +196,19 @@
</div> </div>
</div> </div>
<!-- 客户信息 --> <!-- 客户信息 -->
<xuanzekehu v-show="kehudanganAddShow" ref="addAndUpdate" @dingjinfanhui="noClickclose" <xuanzekehu v-show="viewState == 2" ref="divSelect" @doback="resetState" @handleCustomer="selectCustomer"/>
@handleCustomer="selectCustomer"></xuanzekehu>
</div> </div>
</template> </template>
<script> <script>
import {mapGetters} from 'vuex' import { depositDetail, saveDing, submitApprove, typeValues } from '@/api/jichuxinxi/busdeposit'
import {depositDetail, saveDing, submitApprove, typeValues} from '@/api/jichuxinxi/busdeposit' import { fetchBySid, getPathSidByUserSid } from '@/api/dictcommons/dictcommons'
import {fetchBySid, getPathSidByUserSid} from '@/api/dictcommons/dictcommons'
import Upload from '@/components/uploadFile/upload.vue' // import Upload from '@/components/uploadFile/upload.vue' //
import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu" import xuanzekehu from '@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu'
export default { export default {
name: "xunidingjinAdd", name: 'xunidingjinAdd',
components: {Upload, xuanzekehu}, components: { Upload, xuanzekehu },
data() { data() {
var checkSubmit = (rule, value, callback) => { var checkSubmit = (rule, value, callback) => {
const Submit = const Submit =
@ -209,27 +222,22 @@ export default {
// --- // ---
list1: [], list1: [],
viewTitle: '', viewTitle: '',
dialogStatus: '',
index: 0, index: 0,
disabled: false, // disabled: false, //
// dialogStatus: 'add',
// --------- // ---------
edit: true, viewState: 1,
visible: true,
stateId: '0',
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
list: [], list: [],
paymentType_list: [], paymentType_list: [],
customer_list: [],
proBank_list: [], proBank_list: [],
ProBankAcc_list: [], ProBankAcc_list: [],
temp: { temp: {
departmentName:'', departmentName: '',
staffName:'', staffName: '',
createDate:'', createDate: '',
payName: '', payName: '',
payImages: [], // payImages: [], //
collectionNumber: '', // collectionNumber: '', //
collectionNumberKey: '', // collectionNumberKey: '', //
payTypeKey: '', // payTypeKey: '', //
@ -247,42 +255,21 @@ export default {
userSid: window.sessionStorage.getItem('userSid'), // Sid userSid: window.sessionStorage.getItem('userSid'), // Sid
virtualOrderSid: '', // Sid virtualOrderSid: '', // Sid
taskId: '', // Id taskId: '', // Id
procInsId: '', // ID procInsId: '' // ID
}, // },
nodeState: '', //
sid_list: {},
xuniSid: '',
orgName: '',
staffName: '',
_userSid: '',
customerName: [], customerName: [],
tificateT: [],
dnumbDate: [],
yudingcheliangShow: false,
hetongdanganguanliAddShow: false,
hetongdanganguanliInfoShow: false,
kehudanganAddShow: false,
rules: { rules: {
mobile: [ mobile: [
{ {
required: true, required: true,
validator: checkSubmit, validator: checkSubmit,
trigger: 'blur', trigger: 'blur'
}, }
], ]
}, }
// ------------------------------------ // ------------------------------------
} }
}, },
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode',
]),
},
methods: { methods: {
getType() { getType() {
// //
@ -305,11 +292,9 @@ export default {
}) })
}, },
changePaymentType(value) { changePaymentType(value) {
console.log('触发下拉框按钮') let bb = null
let bb = {}
this.paymentType_list.forEach((e) => { this.paymentType_list.forEach((e) => {
// eslint-disable-next-line eqeqeq if (e.dictValue === value) {
if (e.dictKey == value) {
bb = { bb = {
type: e.dictType, type: e.dictType,
name: e.dictValue, name: e.dictValue,
@ -323,10 +308,9 @@ export default {
console.log('name', this.temp.payType, 'key', this.temp.payTypeKey) console.log('name', this.temp.payType, 'key', this.temp.payTypeKey)
}, },
changeproBank(value) { changeproBank(value) {
console.log('触发下拉框按钮')
let bb = null let bb = null
this.proBank_list.forEach((e) => { this.proBank_list.forEach((e) => {
if (e.dictKey == value) { if (e.dictValue === value) {
bb = { bb = {
type: e.dictType, type: e.dictType,
name: e.dictValue, name: e.dictValue,
@ -340,7 +324,7 @@ export default {
this.getProBankAcc(bb.sid) this.getProBankAcc(bb.sid)
}, },
getProBankAcc(sid) { getProBankAcc(sid) {
typeValues({psid: sid, type: 'receiptAccount'}).then((res) => { typeValues({ psid: sid, type: 'receiptAccount' }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
this.ProBankAcc_list = res.data this.ProBankAcc_list = res.data
console.log('下拉框请求111', res.data) console.log('下拉框请求111', res.data)
@ -348,10 +332,9 @@ export default {
}) })
}, },
changeProBankAccValue(value) { changeProBankAccValue(value) {
console.log('触发下拉框按钮')
let bb = null let bb = null
this.ProBankAcc_list.forEach((e) => { this.ProBankAcc_list.forEach((e) => {
if (e.dictKey == value) { if (e.dictValue === value) {
bb = { bb = {
type: e.dictType, type: e.dictType,
name: e.dictValue, name: e.dictValue,
@ -366,7 +349,7 @@ export default {
}, },
getPathSid() { getPathSid() {
const userSid = window.sessionStorage.getItem('userSid') const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({userSid: userSid}).then((res) => { getPathSidByUserSid({ userSid: userSid }).then((res) => {
if (res.success) { if (res.success) {
this.getCreateOrgName(res.data) this.getCreateOrgName(res.data)
} }
@ -381,52 +364,48 @@ export default {
}, },
// //
showAdd(depositBillType, depositBillTypeKey) { showAdd(depositBillType, depositBillTypeKey) {
this.stateId = '0'
this.$refs['uploadImg'].stateName = 'xunidingjinAdd' this.$refs['uploadImg'].stateName = 'xunidingjinAdd'
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
}) })
var nowDate = new Date(); var nowDate = new Date()
var date = { var date = {
year: nowDate.getFullYear(), year: nowDate.getFullYear(),
month: nowDate.getMonth() + 1, month: nowDate.getMonth() + 1,
day: nowDate.getDate(), day: nowDate.getDate()
} }
var dayDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) var dayDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day)
this.temp.createDate = dayDate // this.temp.createDate = dayDate //
this.temp.staffName = window.sessionStorage.getItem('name') // this.temp.staffName = window.sessionStorage.getItem('name') //
this.temp.depositBillType = depositBillType this.temp.depositBillType = depositBillType
this.temp.depositBillTypeKey = depositBillTypeKey this.temp.depositBillTypeKey = depositBillTypeKey
this.dialogStatus = 'add'
this.viewTitle = '【新增】销售简易订单' this.viewTitle = '【新增】销售简易订单'
this.getType() this.getType()
this.getPathSid() // this.getPathSid() //
}, },
// //
showEdit(sid,depositBillType) { showEdit(sid, depositBillType) {
this.stateId = '1'
console.log('上传图片组件', this.$refs['uploadImg'].stateName) console.log('上传图片组件', this.$refs['uploadImg'].stateName)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
}) })
this.temp.sid = sid
this.dialogStatus = 'edit'
this.viewTitle = '【编辑】销售简易订单' this.viewTitle = '【编辑】销售简易订单'
const data = { const data = {
virtualOrderSid:sid, virtualOrderSid: sid,
userSid:window.sessionStorage.getItem('userSid') userSid: window.sessionStorage.getItem('userSid')
} }
depositDetail(data).then((response) => { depositDetail(data).then((response) => {
if (response.code) { if (response.code) {
this.temp = response.data this.temp = response.data
this.temp.sid = response.data.virtualOrderSid
this.temp.depositBillType = depositBillType this.temp.depositBillType = depositBillType
this.list = response.data.customerList this.list = response.data.customerList
if (response.data.payImages.length > 0) { if (response.data.payImages.length > 0) {
const imgName = response.data.payImages[response.data.payImages.length - 1].split("/"); const imgName = response.data.payImages[response.data.payImages.length - 1].split('/')
this.list1.push({ this.list1.push({
name: imgName[imgName.length - 1], name: imgName[imgName.length - 1],
url: response.data.payImages[response.data.payImages.length - 1], url: response.data.payImages[response.data.payImages.length - 1]
}); })
this.$refs['uploadImg'].showImg(this.list1) this.$refs['uploadImg'].showImg(this.list1)
} }
this.temp.payImages = [] this.temp.payImages = []
@ -439,7 +418,7 @@ export default {
console.log('已有图片', this.list1) console.log('已有图片', this.list1)
if (this.list1.length !== 0) { if (this.list1.length !== 0) {
if (this.list1.length > 1) { if (this.list1.length > 1) {
this.list1.splice(0, 1); this.list1.splice(0, 1)
const img_list = [] const img_list = []
img_list.push(this.list1[this.list1.length - 1].url) img_list.push(this.list1[this.list1.length - 1].url)
this.temp.payImages = img_list this.temp.payImages = img_list
@ -451,23 +430,17 @@ export default {
} }
}, },
selectCustomer(row) { selectCustomer(row) {
this.viewState = 1
this.list.push({ this.list.push({
customerName: row.name, customerName: row.name,
mobile: row.mobile, mobile: row.mobile,
customerSid: row.sid, customerSid: row.sid
// headImage // headImage
}) })
}, },
handleDelete(row, index) { handleDelete(row, index) {
console.log('客户表中的row', row); console.log('客户表中的row', row)
this.list.splice(index, 1) this.list.splice(index, 1)
// if (row.sid !== '') {
// this.sid_list.customerSid = row.customerSid
// this.sid_list.sid = this.temp.sid
// console.log('', this.sid_list)
// } else {
// this.list.splice(index, 1)
// }
}, },
// //
handleCreate() { handleCreate() {
@ -476,21 +449,19 @@ export default {
this.temp.customerList = this.list this.temp.customerList = this.list
if (valid) { if (valid) {
this.FormLoading = true this.FormLoading = true
this.dialogStatus = 'create'
this.temp.staffSid = window.sessionStorage.getItem('staffSid') this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid') this.temp.orgSid = window.sessionStorage.getItem('orgSid')
this.temp.userSid = window.sessionStorage.getItem('userSid') this.temp.userSid = window.sessionStorage.getItem('userSid')
saveDing(this.temp).then((response) => { saveDing(this.temp).then((response) => {
this.FormLoading = false this.FormLoading = false
if (response.code === '200') { if (response.code === '200') {
this.xuniSid = response.data
this.handleReturn('true') this.handleReturn('true')
} else { } else {
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '添加失败', message: '添加失败',
type: 'error', type: 'error',
duration: 2000, duration: 2000
}) })
} }
}) })
@ -520,7 +491,7 @@ export default {
this.$notify({ this.$notify({
title: '提交失败', title: '提交失败',
message: response.msg, message: response.msg,
type: 'error', type: 'error'
}) })
} }
}) })
@ -534,11 +505,11 @@ export default {
if (isreload === 'true') this.$emit('reloadlist') if (isreload === 'true') this.$emit('reloadlist')
this.temp.sid = '' // SID this.temp.sid = '' // SID
this.temp = { this.temp = {
departmentName:'', departmentName: '',
staffName:'', staffName: '',
createDate:'', createDate: '',
payName: '', payName: '',
payImages: [], // payImages: [], //
collectionNumber: '', // collectionNumber: '', //
collectionNumberKey: '', // collectionNumberKey: '', //
payTypeKey: '', // payTypeKey: '', //
@ -568,48 +539,34 @@ export default {
// ---------------------------- // ----------------------------
// //
handleyudingcheliang() { handleyudingcheliang() {
this.visible = false this.viewState = 2
this.kehudanganAddShow = true this.$refs['divSelect'].init()
}, },
// //
noClickclose() { resetState() {
this.visible = true this.viewState = 1
this.yudingcheliangShow = false
this.hetongdanganguanliAddShow = false
this.hetongdanganguanliInfoShow = false
this.kehudanganAddShow = false
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.tit {
margin: 0 0 20px 0;
padding: 10px 0 0 0;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 30px 0 10px 0;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
}
.tips { .tips {
font-size: 12px; font-size: 12px;
color: #606266; color: #606266;
text-align: right; text-align: right;
} }
.title {
.formadd .el-row .el-col /deep/ .el-form-item .addinputw { padding: 7px;
width: 100%; display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.rowStyle {
border-left: 0px !important;
}
.colStyle {
border-right: 0px !important;
} }
</style> </style>

159
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingjininfo.vue

@ -2,61 +2,84 @@
<div class="app-container"> <div class="app-container">
<div> <div>
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>销售虚拟订单管理详细信息</div> <div>销售简易订单详情</div>
<div> <div>
<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">
<el-form ref="dataForm" :model="temp" label-position="right" label-width="100%" class="formadd"> <div class="titwu">销售简易订单</div>
<div class="tit"> <el-form ref="dataForm" :model="temp" class="formadd">
销售简易订单 <el-row class="rowStyle">
<div class="times"> <el-col :span="24" class="tleftb colStyle">
<div><span>分公司</span><span>{{ temp.departmentName }}</span></div> <span>金额单位: </span>
<div><span>申请人</span><span>{{ temp.staffName }}</span></div> </el-col>
<div><span>申请日期</span><span>{{ temp.createDate }}</span></div> </el-row>
<div><span>金额单位</span><span></span></div> <el-row>
</div>
</div>
<el-row class="bordertopline">
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>订单类型</span></el-form-item> <span>分公司</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item>
<span>{{ temp.departmentName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请人</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.staffName }}</span>
</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span>申请日期</span>
</el-col>
<el-col :span="5">
<el-form-item>
<span>{{ temp.createDate }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>订单类型</span>
</el-col>
<el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.depositBillType }}</span> <span>{{ temp.depositBillType }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款人</span></el-form-item> <span>付款人</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payName }}</span> <span>{{ temp.payName }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>联系电话</span></el-form-item> <span>联系电话</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.mobile }}</span> <span>{{ temp.phone }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>车辆台数</span></el-form-item> <span>车辆台数</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.carNumber }}</span> <span>{{ temp.carNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>订金金额</span></el-form-item> <span>订金金额</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="13">
<el-form-item> <el-form-item>
<span>{{ temp.deposit }}</span> <span>{{ temp.deposit }}</span>
</el-form-item> </el-form-item>
@ -64,43 +87,43 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款日期</span></el-form-item> <span>付款日期</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payDate }}</span> <span>{{ temp.payDate }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款方式</span></el-form-item> <span>付款方式</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.payType }}</span> <span>{{ temp.payTypeValue }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>付款银行账号</span></el-form-item> <span>付款银行账号</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<el-input v-model="temp.payNumber" class="addinputw" placeholder="" clearable/> <span>{{ temp.payNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>收款银行账号</span></el-form-item> <span>收款银行账号</span>
</el-col> </el-col>
<el-col :span="5" class="trightb"> <el-col :span="5">
<el-form-item> <el-form-item>
<span>{{ temp.collectionNumber }}</span> <span>{{ temp.collectionNumber }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>收款银行</span></el-form-item> <span>收款银行</span>
</el-col> </el-col>
<el-col :span="13" class="trightb"> <el-col :span="13">
<el-form-item> <el-form-item>
<span>{{ temp.collectionBank }}</span> <span>{{ temp.collectionBank }}</span>
</el-form-item> </el-form-item>
@ -108,27 +131,27 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span>备注</span></el-form-item> <span>备注</span>
</el-col> </el-col>
<el-col :span="21" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<span>{{ temp.remarks }}</span> <span>{{ temp.remarks }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span slot="label">付款凭证</span></el-form-item> <span>付款凭证</span>
</el-col> </el-col>
<el-col :span="20" class="trightb"> <el-col :span="21">
<el-form-item> <el-form-item>
<img :src="imgUrl"> <img style="width: 178px;height: 178px" :src="imgUrl" @click="handleLook(imgUrl)">
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!--Start 客户信息--> <!--Start 客户信息-->
<div class="titcon"> <div class="title">
<div class="title">客户信息</div> <div>客户信息</div>
</div> </div>
<el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index"> <el-table v-loading="listLoading" :data="list" border style="width: 100%" :index="index">
<el-table-column align="center" label="序号" type="index" width="60"/> <el-table-column align="center" label="序号" type="index" width="60"/>
@ -147,14 +170,17 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {fetchSid} from '@/api/jichuxinxi/busdeposit' import { fetchSid } from '@/api/jichuxinxi/busdeposit'
export default { export default {
name: "xunidingjininfo", name: 'xunidingjininfo',
data() { data() {
return { return {
disabled: '', disabled: '',
@ -162,20 +188,19 @@ export default {
index: 0, index: 0,
imgUrl: '', imgUrl: '',
// --------- // ---------
YongHuid: [],
edit: true,
visible: true, visible: true,
stateId: '0',
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
list: [], list: [],
temp: {}, temp: {},
dialogVisible: false,
dialogImageUrl: ''
} }
}, },
methods: { methods: {
showInfo(sid,depositBillType) { showInfo(sid, depositBillType) {
fetchSid(sid).then((response) => { fetchSid(sid).then((response) => {
if (response.code === '200') { if (response.success) {
this.temp = response.data this.temp = response.data
this.imgUrl = this.temp.payImages[this.temp.payImages.length - 1] this.imgUrl = this.temp.payImages[this.temp.payImages.length - 1]
this.list = response.data.customerList this.list = response.data.customerList
@ -185,39 +210,29 @@ export default {
title: '提示', title: '提示',
message: '查看失败', message: '查看失败',
type: 'error', type: 'error',
duration: 2000, duration: 2000
}) })
} }
}) })
}, },
handleReturn(isreload) { handleLook(value) {
if (isreload === 'true') this.$emit('reloadlist') this.dialogVisible = true
this.temp.sid = '' // SID this.dialogImageUrl = value
},
handleReturn() {
this.temp = {} // SID
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
this.$emit('doback') this.$emit('doback')
}, }
} }
} }
</script> </script>
<style scoped> <style scoped>
.tit { .rowStyle {
margin: 0 0 20px 0; border-left: 0px !important;
padding: 10px 0 0 0;
} }
.colStyle {
.times { border-right: 0px !important;
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 30px 0 10px 0;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
} }
</style> </style>

Loading…
Cancel
Save