Browse Source

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

master
yunuo970428 3 years ago
parent
commit
430d55c2e9
  1. 59
      anrui-buscenter/anrui-buscenter-ui/src/api/flow/jianyidingdan.js
  2. 12
      anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/busdeposit.js
  3. 1
      anrui-buscenter/anrui-buscenter-ui/src/components/uploadFile/upload.vue
  4. 224
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyuding.vue
  5. 251
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingEdit.vue
  6. 190
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingInfo.vue
  7. 189
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouqu.vue
  8. 344
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquEdit.vue
  9. 164
      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. 52
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzecheliang.vue
  14. 221
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzekehu.vue
  15. 632
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzekehuAdd.vue
  16. 245
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdanAdd.vue
  17. 109
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdanguanli.vue
  18. 214
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdaninfo.vue
  19. 273
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingjinAdd.vue
  20. 155
      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文件

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

@ -1,5 +1,4 @@
import request from '@/utils/request' import request from '@/utils/request'
import qs from 'qs'
// 简易订单页面接口 // 简易订单页面接口
// 条件分页查询数据的列表 (8.12测试) // 条件分页查询数据的列表 (8.12测试)
@ -26,7 +25,6 @@ export function deleteBySids(data) {
}) })
} }
// ==========订金收取 // ==========订金收取
// 保存虚拟订单(订金)(8.12已改) // 保存虚拟订单(订金)(8.12已改)
export function saveDing(data) { export function saveDing(data) {
@ -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,11 +62,10 @@ 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) {
@ -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({

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
}, },
// //

224
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 class="listconadd">
<el-form
ref="dataForm"
:model="temp"
label-position="right"
class="formadd"
>
<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>
</div> </div>
<el-row class="bordertopline"> <div class="">
<el-col :span="2" class="tleftb"> <div class="titwu">销售简易订单</div>
<el-form-item>订单类型</el-form-item> <el-form ref="dataForm" :model="temp" label-position="right" class="formadd">
<el-row class="rowStyle">
<el-col :span="24" class="tleftb colStyle">
<span>金额单位: </span>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span>分公司</span>
</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 }}
</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,45 +145,20 @@
</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,
// --------- // ---------
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: '', //
// ------------------------------------ // ------------------------------------
currentLink: true, // currentLink: true, //
dialogList: { dialogList: {
@ -218,16 +199,7 @@ import req from '@/api/flow/jianyidingdan.js'
taskId: '', taskId: '',
userSid: '' userSid: ''
} }
}; }
},
computed: {
...mapGetters([
"id",
"roles",
"rolesIds",
"departmentId",
"departmentCode",
]),
}, },
mounted() { mounted() {
window.parent.postMessage({ window.parent.postMessage({
@ -235,7 +207,7 @@ import req from '@/api/flow/jianyidingdan.js'
params: { params: {
// //
code: 2, code: 2,
data: document.body.scrollHeight + 220 + 'px' data: 350 + 'px'
} }
}, '*') }, '*')
}, },
@ -264,49 +236,23 @@ import req from '@/api/flow/jianyidingdan.js'
this.stopList.instanceId = obj.instanceId this.stopList.instanceId = obj.instanceId
this.stopList.taskId = obj.taskId this.stopList.taskId = obj.taskId
this.stopList.userSid = window.sessionStorage.getItem('userSid') this.stopList.userSid = window.sessionStorage.getItem('userSid')
//
this.transactState = obj.transactState
// //
this.showInfo(obj.businessSid) this.showInfo(obj.businessSid)
this.getModelDetail(obj.deployId)
this.getFlowViewer(obj.instanceId)
}, },
methods: { methods: {
// ------------------ // ------------------
showInfo(sid) { showInfo(sid) {
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.code) {
this.temp = response.data this.temp = response.data
this.list = response.data.vehicleList this.list = response.data.vehicleList
} else {
this.$notify({
title: "提示",
message: "查看失败",
type: "error",
duration: 2000,
});
} }
});
},
// ---------- ------------------------------
/** 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) { openAgree(val) {
this.operation = val this.operation = val
@ -361,7 +307,7 @@ import req from '@/api/flow/jianyidingdan.js'
/** 同意任务 */ /** 同意任务 */
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: '请填写同意意见!',
@ -391,7 +337,7 @@ import req from '@/api/flow/jianyidingdan.js'
/** 驳回任务 */ /** 驳回任务 */
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: '请填写驳回意见!',
@ -421,7 +367,7 @@ import req from '@/api/flow/jianyidingdan.js'
/** 终止任务 */ /** 终止任务 */
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: '请填写终止意见!',
@ -447,28 +393,24 @@ import req from '@/api/flow/jianyidingdan.js'
}, '*') }, '*')
} }
}) })
}, }
}, }
} }
</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>

251
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 :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>
<el-col :span="6" class="trightb"> <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,33 +130,21 @@
</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'
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: "cheliangyudingEdit", name: 'cheliangyudingEdit',
components: { components: {
yudingcheliang,
hetongdanganguanliAdd,
hetongdanganguanliInfo,
kehudanganAdd,
xuanzecheliang, xuanzecheliang,
xuanzekehu xuanzekehu
}, },
@ -146,19 +153,15 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
// //
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: [],
@ -176,21 +179,9 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
taskId: '', // Id taskId: '', // Id
procInsId: '', // ID procInsId: '', // ID
userSid: window.sessionStorage.getItem('userSid') userSid: window.sessionStorage.getItem('userSid')
}, // },
xuniSid: '',
mobile: '',
orgName: '',
staffName: '',
_userSid: '',
deposit_list: [], deposit_list: [],
customerName: [], rules: {}
tificateT: [],
dnumbDate: [],
dialogStatus: '', //
yudingcheliangShow: false,
xuanzecheliangShow: false, //
xuanzekehuShow: false, //
rules: {},
// ------------------------------------ // ------------------------------------
} }
}, },
@ -200,7 +191,7 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
params: { params: {
// //
code: 2, code: 2,
data: document.body.scrollHeight + 220 + 'px' data: 350 + 'px'
} }
}, '*') }, '*')
}, },
@ -249,10 +240,8 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
showEdit(businessSid, instanceId, taskId) { showEdit(businessSid, instanceId, taskId) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
}); })
this.stateId = '1' this.viewTitle = '【编辑】销售简易订单'
this.dialogStatus = 'edit';
this.viewTitle = '【编辑】销售简易订单';
const data = { const data = {
customerSid: '', customerSid: '',
virtualOrderSid: businessSid, virtualOrderSid: businessSid,
@ -266,38 +255,42 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
this.temp.instanceId = instanceId this.temp.instanceId = instanceId
this.temp.taskId = taskId this.temp.taskId = taskId
} }
}); })
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.$message({ showClose: true, type: 'success', message: '提交成功' })
// this.$emit('doback') //
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else { } else {
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '添加失败', message: '添加失败',
type: 'error', type: 'error',
duration: 2000, duration: 2000
}) })
} }
}) })
} }
}) })
}, },
// //
handleSubmit() { handleSubmit() {
this.$confirm('是否确定提交该业务', '提示', { this.$confirm('是否确定提交该业务', '提示', {
@ -307,9 +300,8 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
}).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)
@ -320,13 +312,21 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
title: '提示', title: '提示',
message: '提交成功', message: '提交成功',
type: 'success', type: 'success',
duration: 2000, duration: 2000
}) })
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else { } else {
this.$notify({ this.$notify({
title: '提交失败', title: '提交失败',
message: response.msg, message: response.msg,
type: 'error', type: 'error'
}) })
} }
}) })
@ -336,12 +336,14 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
}, },
// //
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,
@ -359,62 +361,45 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
// //
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 { .titwu {
margin: 0 0 20px 0; font-size: 28px;
padding: 10px 0 0 0; text-align: center;
padding: 30px 0 20px 0;
} }
.title {
.times { padding: 7px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-around; justify-content: space-between;
padding: 30px 0 10px 0; align-items: center;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
} }
.rowStyle {
/deep/ .el-form-item__content { border-left: 0px !important;
margin-left: 0 !important; }
.colStyle {
border-right: 0px !important;
} }
.changeIt { .changeIt {
line-height: 40px; line-height: 40px;
font-size: 17px; font-size: 17px;

190
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 class="listconadd">
<el-form
ref="dataForm"
:model="temp"
label-position="right"
class="formadd"
>
<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>
</div> </div>
<el-row class="bordertopline"> <div class="">
<el-col :span="2" class="tleftb"> <div class="titwu">销售简易订单</div>
<el-form-item>订单类型</el-form-item> <el-form ref="dataForm" :model="temp" label-position="right" class="formadd">
<el-row class="rowStyle">
<el-col :span="24" class="tleftb colStyle">
<span>金额单位: </span>
</el-col>
</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>
<el-col :span="6" class="trightb"> <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,45 +119,20 @@
</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,
// --------- // ---------
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: '', //
// ------------------------------------ // ------------------------------------
// //
revokeList: { revokeList: {
@ -161,17 +140,8 @@ import req from '@/api/flow/jianyidingdan.js'
instanceId: '', instanceId: '',
taskId: '', taskId: '',
userSid: '' userSid: ''
}, }
}; }
},
computed: {
...mapGetters([
"id",
"roles",
"rolesIds",
"departmentId",
"departmentCode",
]),
}, },
mounted() { mounted() {
window.parent.postMessage({ window.parent.postMessage({
@ -179,7 +149,7 @@ import req from '@/api/flow/jianyidingdan.js'
params: { params: {
// //
code: 2, code: 2,
data: document.body.scrollHeight + 220 + 'px' data: 380 + 'px'
} }
}, '*') }, '*')
}, },
@ -197,33 +167,19 @@ import req from '@/api/flow/jianyidingdan.js'
this.revokeList.taskId = obj.taskId this.revokeList.taskId = obj.taskId
this.revokeList.taskDefKey = obj.taskDefKey this.revokeList.taskDefKey = obj.taskDefKey
this.revokeList.userSid = window.sessionStorage.getItem('userSid') this.revokeList.userSid = window.sessionStorage.getItem('userSid')
//
this.transactState = obj.transactState
//
// this.getModelDetail(obj.deployId)
// this.getFlowViewer(obj.instanceId)
}, },
methods: { methods: {
// ------------------ // ------------------
showInfo(sid) { showInfo(sid) {
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.code) {
this.temp = response.data this.temp = response.data
this.list = response.data.vehicleList this.list = response.data.vehicleList
} else {
this.$notify({
title: "提示",
message: "查看失败",
type: "error",
duration: 2000,
});
} }
}); })
}, },
openRevoke() { openRevoke() {
this.$confirm('是否确认执行撤回操作', '提示', { this.$confirm('是否确认执行撤回操作', '提示', {
@ -241,14 +197,13 @@ import req from '@/api/flow/jianyidingdan.js'
}, },
/** 撤回任务 */ /** 撤回任务 */
handleRevoke() { handleRevoke() {
// this.revokeList.comment = this.dialogList.comment
req.revokeTask(this.revokeList).then((response) => { req.revokeTask(this.revokeList).then((response) => {
if (response.success) { if (response.success) {
this.$message({ this.$message({
showClose: true, showClose: true,
message: '执行成功', message: '执行成功',
type: 'success' type: 'success'
}); })
// //
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
@ -260,27 +215,20 @@ import req from '@/api/flow/jianyidingdan.js'
} }
}) })
} }
}, }
} }
</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;
} }
</style> </style>

189
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> <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></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>
@ -179,16 +206,16 @@ 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
}) })
} }
}) })
@ -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>

344
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> <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">
<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"> <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.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-option v-for="(item, index) in ProBankAcc_list" :key="index.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select> </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,22 +189,18 @@
</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) => {
@ -210,19 +215,14 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
// --- // ---
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: {
@ -248,49 +248,28 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
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',
]),
},
mounted() { mounted() {
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
params: { params: {
// //
code: 2, code: 2,
data: document.body.scrollHeight + 220 + 'px' data: 500 + 'px'
} }
}, '*') }, '*')
}, },
@ -324,10 +303,10 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
}, },
changePaymentType(value) { changePaymentType(value) {
console.log('触发下拉框按钮') console.log('触发下拉框按钮')
let bb = {} let bb = null
this.paymentType_list.forEach((e) => { this.paymentType_list.forEach((e) => {
// eslint-disable-next-line eqeqeq // eslint-disable-next-line eqeqeq
if (e.dictKey == value) { if (e.dictValue === value) {
bb = { bb = {
type: e.dictType, type: e.dictType,
name: e.dictValue, name: e.dictValue,
@ -344,7 +323,7 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
console.log('触发下拉框按钮') 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,
@ -369,7 +348,7 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
console.log('触发下拉框按钮') 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,
@ -399,13 +378,9 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
}, },
// //
showEdit(businessSid, instanceId, taskId) { showEdit(businessSid, instanceId, taskId) {
this.stateId = '1'
console.log('上传图片组件', this.$refs['uploadImg'].stateName)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
}) })
this.temp.sid = businessSid
this.dialogStatus = 'edit'
this.viewTitle = '【编辑】销售简易订单' this.viewTitle = '【编辑】销售简易订单'
const data = { const data = {
virtualOrderSid: businessSid, virtualOrderSid: businessSid,
@ -414,20 +389,20 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
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.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.instanceId = instanceId this.temp.instanceId = instanceId
this.temp.taskId = taskId this.temp.taskId = taskId
this.temp.payImages = [] this.temp.payImages = []
this.getType() this.getType()
// this.getPathSid()
} }
}) })
}, },
@ -435,7 +410,7 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
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
@ -446,24 +421,17 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
} }
} }
}, },
selectCustomer(row) { backData(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
}) })
}, },
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() {
@ -472,22 +440,21 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
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.success) {
this.xuniSid = response.data this.$message({ showClose: true, type: 'success', message: '修改成功' })
this.handleReturn('true') //
} else { window.parent.postMessage({
this.$notify({ cmd: 'returnHeight',
title: '提示', params: {
message: '添加失败', //
type: 'error', code: 1
duration: 2000, }
}) }, '*')
} }
}) })
} }
@ -510,13 +477,21 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
this.temp.userSid = window.sessionStorage.getItem('userSid') this.temp.userSid = window.sessionStorage.getItem('userSid')
// //
submitApprove(this.temp).then((response) => { submitApprove(this.temp).then((response) => {
if (response.code === '200') { if (response.success) {
this.handleReturn('true') this.$message({ showClose: true, type: 'success', message: '提交成功' })
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else { } else {
this.$notify({ this.$notify({
title: '提交失败', title: '提交失败',
message: response.msg, message: response.msg,
type: 'error', type: 'error'
}) })
} }
}) })
@ -525,87 +500,42 @@ import xuanzekehu from "@/views/xiaoshouguanli/xunidingdan/com/xuanzekehu"
} }
) )
}, },
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp.sid = '' // SID
this.temp = {
departmentName:'',
staffName:'',
createDate:'',
payName: '',
payImages: [], //
collectionNumber: '', //
collectionNumberKey: '', //
payTypeKey: '', //
payType: '', //
payDate: '', //
collectionBankKey: '', //
collectionBank: '', //
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() { 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 { .titwu {
margin: 0 0 20px 0; font-size: 28px;
padding: 10px 0 0 0; text-align: center;
padding: 30px 0 20px 0;
} }
.title {
.times { padding: 7px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-around; justify-content: space-between;
padding: 30px 0 10px 0; align-items: center;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
} }
.rowStyle {
/deep/ .el-form-item__content { border-left: 0px !important;
margin-left: 0 !important; }
.colStyle {
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>

164
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">
<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></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,6 +170,9 @@
</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>
@ -155,16 +181,16 @@ 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 {
dialogVisible: false,
dialogImageUrl: '',
disabled: '', disabled: '',
viewTitle: '', viewTitle: '',
index: 0, index: 0,
imgUrl: '', imgUrl: '',
// --------- // ---------
YongHuid: [],
edit: true,
visible: true, visible: true,
stateId: '0', stateId: '0',
FormLoading: false, FormLoading: false,
@ -178,7 +204,7 @@ import req from '@/api/flow/jianyidingdan.js'
instanceId: '', instanceId: '',
taskId: '', taskId: '',
userSid: '' userSid: ''
}, }
} }
}, },
mounted() { mounted() {
@ -187,7 +213,7 @@ import req from '@/api/flow/jianyidingdan.js'
params: { params: {
// //
code: 2, code: 2,
data: document.body.scrollHeight + 220 + 'px' data: 500 + 'px'
} }
}, '*') }, '*')
}, },
@ -205,16 +231,11 @@ import req from '@/api/flow/jianyidingdan.js'
this.revokeList.taskId = obj.taskId this.revokeList.taskId = obj.taskId
this.revokeList.taskDefKey = obj.taskDefKey this.revokeList.taskDefKey = obj.taskDefKey
this.revokeList.userSid = window.sessionStorage.getItem('userSid') this.revokeList.userSid = window.sessionStorage.getItem('userSid')
//
this.transactState = obj.transactState
//
// this.getModelDetail(obj.deployId)
// this.getFlowViewer(obj.instanceId)
}, },
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
@ -223,7 +244,7 @@ import req from '@/api/flow/jianyidingdan.js'
title: '提示', title: '提示',
message: '查看失败', message: '查看失败',
type: 'error', type: 'error',
duration: 2000, duration: 2000
}) })
} }
}) })
@ -251,7 +272,7 @@ import req from '@/api/flow/jianyidingdan.js'
showClose: true, showClose: true,
message: '执行成功', message: '执行成功',
type: 'success' type: 'success'
}); })
// //
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
@ -263,27 +284,24 @@ import req from '@/api/flow/jianyidingdan.js'
} }
}) })
}, },
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;
} }
</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>

52
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,10 +100,9 @@
</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, selectBrand} from '@/api/jichuxinxi/busdepositvehicle' import { getList } from '@/api/jichuxinxi/busdepositvehicle'
export default { export default {
name: "xuanzecheliang", name: "xuanzecheliang",
@ -134,7 +128,7 @@
listLoading: false, listLoading: false,
listQuery: { listQuery: {
current: 1, current: 1,
size: 20, size: 5,
params: { params: {
carbrand: '', carbrand: '',
driveForm: '', driveForm: '',
@ -147,33 +141,20 @@
vehicleState: '', vehicleState: '',
vehicleType: '', vehicleType: '',
vehicleVersion: '' vehicleVersion: ''
}, }
}, },
selectDate: undefined, selectDate: undefined,
temp: {}, // temp: {}, //
depositVehicleList: [], depositVehicleList: [],
visible: true, visible: true,
hetongdanganguanliInfoShow: false, hetongdanganguanliInfoShow: false
// ------------------------------------ // ------------------------------------
} }
}, },
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode',
]),
},
created() {
//
this.init()
},
methods: { methods: {
// //
init() { init() {
this.handleFilter(); this.handleFilter()
this.getcarbrand() this.getcarbrand()
}, },
// //
@ -189,7 +170,7 @@
handleReset() { handleReset() {
this.listQuery = { this.listQuery = {
current: 1, current: 1,
size: 20, size: 5,
params: { params: {
carbrand: '', carbrand: '',
driveForm: '', driveForm: '',
@ -202,7 +183,7 @@
vehicleState: '', vehicleState: '',
vehicleType: '', vehicleType: '',
vehicleVersion: '' vehicleVersion: ''
}, }
} }
}, },
// //
@ -244,14 +225,13 @@
handleConfirm() { handleConfirm() {
if (this.sids.length > 0) { if (this.sids.length > 0) {
this.$emit('handleVehicle', this.depositVehicleList) this.$emit('handleVehicle', this.depositVehicleList)
this.handleReturn()
} else { } else {
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '没有选择车辆!', message: '没有选择车辆!',
type: 'error', type: 'error',
duration: 2000 duration: 2000
}); })
return return
} }
}, },
@ -296,8 +276,8 @@
handleFilter() { handleFilter() {
this.listQuery.current = 1 this.listQuery.current = 1
this.getList() this.getList()
}, }
}, }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

221
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">
<span>{{ scope.row.customerType }}</span>
</template>
</el-table-column>
<el-table-column label="客户级别" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.follow_state }}</span> <span>{{ scope.row.level }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -67,26 +68,22 @@
<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"
width="28%"
top="13%">
<el-form :model="customerTypeList"> <el-form :model="customerTypeList">
<el-form-item label="联络方式" :label-width="formLabelWidth" class="diaForm"> <el-form-item label="联络方式" :label-width="formLabelWidth" class="diaForm">
<el-select v-model="customerTypeList.visitWay" placeholder="请选择联络方式" @change="getVisitWay"> <el-select v-model="customerTypeList.visitWay" placeholder="请选择" @change="getVisitWay">
<el-option v-for="(item) in visitWay_list" :key="item.dictKey" :label="item.dictValue" <el-option v-for="(item) in visitWay_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
:value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户类型" :label-width="formLabelWidth" class="diaForm"> <el-form-item label="客户类型" :label-width="formLabelWidth" class="diaForm">
<el-radio v-model="customerTypeList.customerType" label="个人">个人</el-radio> <el-select v-model="customerTypeList.customerType" placeholder="请选择" @change="getCustomerType">
<el-radio v-model="customerTypeList.customerType" label="企业">企业</el-radio> <el-option v-for="(item) in customertype_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
@ -94,158 +91,130 @@
<el-button @click="dialogVisible = false"> </el-button> <el-button @click="dialogVisible = false"> </el-button>
</span> </span>
</el-dialog> </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"; import xuanzekehuAdd from './xuanzekehuAdd.vue'
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() { data() {
return { return {
createPage: '',
kehu_xuanze: true, //
kehu_add: false, //
dialogVisible: false, // dialogVisible: false, //
formLabelWidth: '110px', formLabelWidth: '110px',
isSearchShow: true, isSearchShow: true,
// searchxianshitit: '',
btndisabled: false,
viewState: 1, // 1 2- 3 4 5- viewState: 1, // 1 2- 3 4 5-
// ----------- // -----------
depositType: [], //
tableKey: 0, tableKey: 0,
list: [], list: [],
sids: [], sids: [],
total: 1,
customerTypeList: { customerTypeList: {
visitWay: '', // visitWay: '', //
visitWayKey: '', visitWayKey: '', // --Key
customerType: ''// customerType: '', //
customerTypeKey: '', // --Key
psid: ''
}, },
visitWay_list: [], visitWay_list: [],
FormLoading: false, customertype_list: [],
listLoading: false, listLoading: false,
listQuery: { listQuery: {
current: 1, current: 1,
size: 20, size: 10,
total: 0,
params: { params: {
orgName: '', name: '',
staffName: '', userSid: ''
customerName: '', }
virtualDepositType: '', }
createDateStart: '',
createDateEnd: '',
},
},
selectDate: undefined,
temp: {}, //
visible: true,
// ------------------------------------
} }
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode',
]),
},
created() {
//
this.init()
this.getShuJUZiDian()
}, },
methods: { methods: {
init() { init() {
this.getList() this.getList()
// this.getType() this.getShuJUZiDian()
}, },
getShuJUZiDian() { getShuJUZiDian() {
typeValues({ typeValues({ type: 'visitWay' }).then((res) => {
type: 'visitWay',
}).then((res) => {
if (res.code === '200') { if (res.code === '200') {
this.visitWay_list = res.data this.visitWay_list = res.data
} }
}) })
typeValues({ type: 'customertype' }).then((res) => {
if (res.code === '200') {
this.customertype_list = res.data
}
})
}, },
handleOpen() { handleOpen() {
this.viewState = 2
if (this.customerTypeList.visitWay !== '' && this.customerTypeList.customerType !== '') { if (this.customerTypeList.visitWay !== '' && this.customerTypeList.customerType !== '') {
this.dialogVisible = false this.dialogVisible = false
const customerTypeList = this.customerTypeList const customerTypeList = this.customerTypeList
this.$refs.addAndUpdate.openCreate(customerTypeList, () => { this.$refs['addAndUpdate'].openCreate(customerTypeList)
// this.visible = false
this.customerTypeList = { this.customerTypeList = {
visitWay: '', visitWay: '', //
visitWayKey: '', visitWayKey: '', // --Key
customerType: '' customerType: '', //
customerTypeKey: '', // --Key
psid: ''
} }
})
} else { } else {
this.$message({ this.$message({
message: '请填写联络方式和客户类型', message: '请填写联络方式和客户类型',
type: 'warning' type: 'warning'
}); })
} }
}, },
getVisitWay(value) { getVisitWay(value) {
let bb = null let bb = null
this.visitWay_list.forEach((e) => { this.visitWay_list.forEach((e) => {
if (e.dictKey == value) { if (e.dictValue === value) {
bb = { bb = {
type: 'visitWay', value: e.dictValue,
name: e.dictValue, key: e.dictKey
vaule: e.dictKey,
sid: e.sid,
} }
} }
}) })
this.customerTypeList.visitWay = bb.name this.customerTypeList.visitWay = bb.value
this.customerTypeList.visitWayKey = bb.vaule 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
}, },
//
// clicksearchShow() {
// this.isSearchShow = !this.isSearchShow
// if (this.isSearchShow) {
// this.searchxianshitit = ''
// } else {
// this.searchxianshitit = ''
// }
// },
// ------------------ // ------------------
handleCreate() { handleCreate() {
this.kehu_xuanze = false
this.dialogVisible = true this.dialogVisible = true
// this.kehu_add = true
}, },
resetState() { resetState() {
this.kehu_xuanze = true this.viewState = 1
this.kehu_add = false
this.getList() this.getList()
}, },
// //
handleReturn() { handleReturn() {
this.$emit('dingjinfanhui') // this.$emit('doback')
this.$emit('yudingcheliangfanhui') //
}, },
// //
indexMethod(index) { indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size var pagestart = (this.listQuery.current - 1) * this.listQuery.size
@ -255,24 +224,15 @@
// //
getList() { getList() {
this.listLoading = true this.listLoading = true
pagerList({ this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
current: this.listQuery.current, pagerList(this.listQuery).then((response) => {
size: this.listQuery.size,
params: {
userSid: window.sessionStorage.getItem('userSid')
},
}).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
this.total = response.data.total this.listQuery.total = response.data.total
} else { } else {
this.list = [] this.list = []
this.total = 0 this.listQuery.total = 0
} }
}) })
}, },
@ -292,21 +252,18 @@
}, },
// //
handleConfirm(row) { handleConfirm(row) {
console.log('选择客户row', row)
this.$emit('handleCustomer', row) this.$emit('handleCustomer', row)
this.handleReturn()
}, },
handleUpdate(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>

632
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzekehuAdd.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> <div>
@ -9,9 +9,8 @@
</div> </div>
</div> </div>
<div class="listconadd"> <div class="listconadd">
<el-form ref="dataForm" :model="temp" label-position="top" label-width="190px" class="formadd "
:rules="rules">
<div class="titwu">客户信息</div> <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 class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px">
<div>基础信息</div> <div>基础信息</div>
</div> </div>
@ -174,9 +173,6 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item> <el-form-item>
<!-- <el-select v-model="temp.certificateType" class="addinputw" placeholder="请选择证件类型" @change="getZhengJian">
<el-option v-for="(item, index) in cateType" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select> -->
<el-input v-model="temp.certificateType" style="width:50%" maxlength="20" :readonly="true" class="addinputw" clearable/> <el-input v-model="temp.certificateType" style="width:50%" maxlength="20" :readonly="true" class="addinputw" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -280,7 +276,6 @@
<el-collapse v-model="activeNames"> <el-collapse v-model="activeNames">
<el-collapse-item title="运营情况" name="3"> <el-collapse-item title="运营情况" name="3">
<el-form ref="datufrom" :model="templooke" label-position="top" label-width="190px" class="formadd03"> <el-form ref="datufrom" :model="templooke" label-position="top" label-width="190px" class="formadd03">
<!-- <div class="titleleft">运营情况</div>-->
<el-row> <el-row>
<el-col :span="4" class="trightb"> <el-col :span="4" class="trightb">
<el-form-item> <el-form-item>
@ -301,10 +296,8 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item> <el-form-item>
<el-select v-model="templooke.consignment" style="width:50%" class="addinputw" placeholder="请选择承运货物" <el-select v-model="templooke.consignment" style="width:50%" class="addinputw" placeholder="请选择承运货物" @change="getHuoWu">
@change="getHuoWu"> <el-option v-for="(item, index) in consign" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-option v-for="(item, index) in consign" :key="index.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -333,10 +326,7 @@
{{ item.dictValue }} {{ item.dictValue }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div class="mw"> <div class="mw"><el-input v-model="templooke.purchase_num" :disabled="templooke.purchase_num == '0'" maxlength="10" class="addinputwduan" clearable/></div>
<el-input v-model="templooke.purchase_num" maxlength="10" class="addinputwduan" clearable/>
</div>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -349,9 +339,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item> <el-form-item>
<el-input style="width:50%" v-model="templooke.existing_vehicles" maxlength="20" placeholder="请输入现有车辆" <el-input style="width:50%" v-model="templooke.existing_vehicles" maxlength="20" placeholder="请输入现有车辆" class="addinputw" clearable/>
class="addinputw"
clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" class="trightb"> <el-col :span="4" class="trightb">
@ -361,8 +349,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item> <el-form-item>
<el-input style="width:50%" v-model="templooke.existing_vehiclesBrand" maxlength="20" placeholder="请输入现有车辆品牌" <el-input style="width:50%" v-model="templooke.existing_vehiclesBrand" maxlength="20" placeholder="请输入现有车辆品牌" class="addinputw" clearable/>
class="addinputw" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -374,8 +361,7 @@
</el-col> </el-col>
<el-col :span="20"> <el-col :span="20">
<el-form-item> <el-form-item>
<el-input style="width:81%" v-model="templooke.remarks" maxlength="20" placeholder="请输入备注" class="addinputw" <el-input style="width:81%" v-model="templooke.remarks" maxlength="20" placeholder="请输入备注" class="addinputw" clearable/>
clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -396,12 +382,8 @@
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
</el-form> </el-form>
</div> </div>
</div> </div>
<cheliangxuqiu-add ref="addAndUpdate" @handleReturn="visible=true" @created="dataCreated" @updated="dataUpdated"
@doback="dataDengJi" @modify="dataModify"/>
<cheliangxuqiuinfo ref="Info" @handleReturn="visible=true"/>
<!-- 弹框提示 --> <!-- 弹框提示 -->
<el-dialog :visible.sync="dialogFormVisible" width="300px" :close-on-click-modal="false"> <el-dialog :visible.sync="dialogFormVisible" width="300px" :close-on-click-modal="false">
<div class="result-cont"> <div class="result-cont">
@ -416,35 +398,15 @@
</template> </template>
<script> <script>
import {mapGetters} from 'vuex' import { savePcCustomerInfo, getPcCustomerInfoBySid, updatePcCustomerInfo } from '@/api/jichuxinxi/crmcustomer'
import { import { getProvince, getCity, getCounty } from '@/api/portal/areaPicker' //
savePcCustomerInfo,
namesDown,
getPcCustomerInfoBySid,
getPcDistributorList,
updatePcCustomerInfo,
getPcCustomerMobileAndName,
} from '@/api/jichuxinxi/crmcustomer'
import {
getProvince,
getCity,
getCounty
} from '@/api/portal/areaPicker' //
import { typeValues } from '@/api/dictcommons/shujuzidian' import { typeValues } from '@/api/dictcommons/shujuzidian'
import {loginDetails} from '@/api/dictcommons/basemanufacturer'
import {getStorage} from '@/utils/auth'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import cheliangxuqiuAdd from '@/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue'
import cheliangxuqiuinfo from '@/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue'
import {pagerList, delBySids} from '@/api/jichuxinxi/crmvehicle'
import { getPcBusinessInfoBySid } from '@/api/jichuxinxi/crmbusiness' import { getPcBusinessInfoBySid } from '@/api/jichuxinxi/crmbusiness'
import Upload from '@/components/uploadFile/upload.vue' // import Upload from '@/components/uploadFile/upload.vue' //
import rules from '@/utils/roles'
export default { export default {
name: "xuanzekehuAdd", name: 'xuanzekehuAdd',
components: {Pagination, pageye, cheliangxuqiuAdd, cheliangxuqiuinfo, Upload}, components: { Upload },
data() { data() {
var checkSubmit = (rule, value, callback) => { var checkSubmit = (rule, value, callback) => {
const Submit = const Submit =
@ -465,8 +427,6 @@ import {mapGetters} from 'vuex'
return { return {
// --- // ---
list1: [], list1: [],
list2: [],
list3: [],
province: [], province: [],
city: [], city: [],
county: [], county: [],
@ -486,10 +446,6 @@ import {mapGetters} from 'vuex'
industway: [], industway: [],
documenttype: 'documenttype', documenttype: 'documenttype',
cateType: [], cateType: [],
customerType: 'customerType',
merType: [],
ncySid: [],
edOrgSid: [],
consignmentType: 'consignmentType', consignmentType: 'consignmentType',
signmentT: [], signmentT: [],
consignment: 'consignment', consignment: 'consignment',
@ -502,22 +458,16 @@ import {mapGetters} from 'vuex'
aseType: [ aseType: [
{ {
dictValue: '首次购车', dictValue: '首次购车',
divtkey: 0, divtkey: 0
}, },
{ {
dictValue: '续购', dictValue: '续购',
divtkey: 1, divtkey: 1
}, }
], ],
Customeryou: '',
checkin: '', //
kehusid: '',
YongHuid: [],
visible: false,
stateId: 0, stateId: 0,
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
tempdaat: {},
crmVisitAppendixDtoList: [], crmVisitAppendixDtoList: [],
temp: { temp: {
crmBusinessDto: {}, crmBusinessDto: {},
@ -525,95 +475,27 @@ import {mapGetters} from 'vuex'
customerType: '', // customerType: '', //
visitWay: '', // visitWay: '', //
visitWayKey: '', visitWayKey: '',
userSid: '', userSid: ''
orgSid:''
}, // }, //
templooke: {}, templooke: {},
tempmore: {},
textMap: {
update: '修改',
create: '创建',
},
dialogFormVisible: false, dialogFormVisible: false,
client: '',
clientphone: '',
sids: [],
listQuery: {
current: 1,
size: 20,
params: {
distributorName: '',
},
},
clientSid: '',
rules: { rules: {
name: [ name: [{ required: true, message: '请填写客户名称', trigger: 'blur' }],
{ address: [{ required: true, message: '请填写客户地址', trigger: 'blur' }]
required: true, }
message: '请填写客户名称',
trigger: 'blur',
},
],
address: [
{
required: true,
message: '请填写客户地址',
trigger: 'blur',
},
],
// mobile: [
// {
// required: true,
// validator: checkSubmit,
// trigger: 'blur',
// },
// ],
// idnumber: [
// {
// required: true,
// validator: identitycard,
// trigger: 'blur',
// },
// ],
},
} }
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode',
]),
},
created() {
//
this.init()
this.huoquSheng() //
}, },
methods: { methods: {
// //
init() { init() {
this.getShuJUZiDian() this.getShuJUZiDian()
this.getGuaKao() this.huoquSheng()
this.postHuoquyonghu()
this.getZhongJie()
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
}, },
// //
openUpdate(sid, showed) { openUpdate(sid) {
this.clientSid = sid
this.stateId = sid this.stateId = sid
console.log('888888888888', this.stateId)
this.isOnRemind = '否' this.isOnRemind = '否'
// this.client = customer.name this.init()
// this.clientphone = customer.mobile
if (this.stateId !== '0') { if (this.stateId !== '0') {
getPcCustomerInfoBySid(this.stateId).then((response) => { getPcCustomerInfoBySid(this.stateId).then((response) => {
console.log(response.data) console.log(response.data)
@ -621,22 +503,19 @@ import {mapGetters} from 'vuex'
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
this.temp = response.data this.temp = response.data
this.temp.birthday = this.getDates(this.temp.birthday) this.temp.birthday = this.getDates(this.temp.birthday)
// this.temp.address=this.temp.province+this.temp.city+this.temp.county
this.visible = true
if (this.temp.customerType !== '') { if (this.temp.customerType !== '') {
typeValues({ type: 'customerType' }).then((res) => { typeValues({ type: 'customerType' }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
if(this.temp.customerType=='个人'){ if (this.temp.customerType === '个人') {
this.temp.certificateType = '身份证' this.temp.certificateType = '身份证'
this.temp.certificateTypeKey = '01' this.temp.certificateTypeKey = '01'
} } else {
else{
this.temp.certificateType = '营业执照' this.temp.certificateType = '营业执照'
this.temp.certificateTypeKey = '02' this.temp.certificateTypeKey = '02'
} }
this.customerType_list = res.data this.customerType_list = res.data
this.customerType_list.forEach((e) => { this.customerType_list.forEach((e) => {
if (e.dictValue == this.temp.customerType) { if (e.dictValue === this.temp.customerType) {
typeValues({ psid: e.sid, type: this.customerClass }).then((res) => { typeValues({ psid: e.sid, type: this.customerClass }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
this.merClass = res.data this.merClass = res.data
@ -647,9 +526,6 @@ import {mapGetters} from 'vuex'
} }
}) })
} }
if (showed && typeof showed === 'function') {
showed()
}
} }
}) })
getPcBusinessInfoBySid(this.stateId).then((response) => { getPcBusinessInfoBySid(this.stateId).then((response) => {
@ -662,44 +538,30 @@ import {mapGetters} from 'vuex'
} }
}) })
} }
// this.getChelianglsit()
}, },
// //
openCreate(customerTypeList, showed) { openCreate(customerTypeList) {
this.resetTemp()
this.temp.customerType = customerTypeList.customerType this.temp.customerType = customerTypeList.customerType
this.temp.customerTypeKey = customerTypeList.customerTypeKey
this.temp.visitWay = customerTypeList.visitWay this.temp.visitWay = customerTypeList.visitWay
this.temp.visitWayKey = customerTypeList.visitWayKey this.temp.visitWayKey = customerTypeList.visitWayKey
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
this.stateId = '0' this.stateId = '0'
this.visible = true this.init()
if (this.temp.customerType !== '') { if (this.temp.customerType !== '') {
if(this.temp.customerType=='个人'){ if (this.temp.customerType === '个人') {
this.temp.certificateType = '身份证' this.temp.certificateType = '身份证'
this.temp.certificateTypeKey = '01' this.temp.certificateTypeKey = '01'
} } else {
else{
this.temp.certificateType = '营业执照' this.temp.certificateType = '营业执照'
this.temp.certificateTypeKey = '02' this.temp.certificateTypeKey = '02'
} }
typeValues({type: 'customerType'}).then((res) => { typeValues({ psid: customerTypeList.psid, type: this.customerClass }).then((res) => {
if (res.code === '200') {
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') { if (res.code === '200') {
this.merClass = res.data this.merClass = res.data
} }
}) })
} }
})
}
})
}
if (showed && typeof showed === 'function') {
showed()
}
}, },
// --------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------
// --------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------
@ -711,11 +573,6 @@ import {mapGetters} from 'vuex'
this.cateType = res.data this.cateType = res.data
} }
}) })
typeValues({type: this.customerType}).then((res) => {
if (res.code === '200') {
this.merType = res.data
}
})
// //
typeValues({ type: this.customerSource }).then((res) => { typeValues({ type: this.customerSource }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
@ -759,37 +616,18 @@ import {mapGetters} from 'vuex'
} }
}) })
}, },
// //
// getKeHufenlei(kehusid) {
// typeValues({psid: kehusid, type: this.customerClass}).then((res) => {
// console.log('9988888', res)
// if (res.code === '200') {
// this.merClass = res.data
// }
// })
// },
//
getGuaKao() {
// namesDown({name: this.temp.affiliatedOrgSid}).then((response) => {
// if (response.code === '200') {
// this.edOrgSid = response.data
// }
// })
},
// -------------------------------------------------- // --------------------------------------------------
huoquSheng() { huoquSheng() {
getProvince().then((res) => { getProvince().then((res) => {
// console.log('11111', res)
if (res.code === '200') { if (res.code === '200') {
this.inputProvinceList = res.data this.inputProvinceList = res.data
} }
}) })
}, },
getShen(value) { getShen(value) {
let bb = '' let bb = ''
this.inputProvinceList.forEach((e) => { this.inputProvinceList.forEach((e) => {
if (e.sid == value) { if (e.sid === value) {
bb = { bb = {
name: e.name, name: e.name,
districtCode: e.districtCode, districtCode: e.districtCode,
@ -815,7 +653,7 @@ import {mapGetters} from 'vuex'
getShi(value) { getShi(value) {
let bb = '' let bb = ''
this.inputCityList.forEach((e) => { this.inputCityList.forEach((e) => {
if (e.sid == value) { if (e.sid === value) {
bb = { bb = {
name: e.name, name: e.name,
districtCode: e.districtCode, districtCode: e.districtCode,
@ -840,7 +678,7 @@ import {mapGetters} from 'vuex'
getQu(value) { getQu(value) {
let bb = '' let bb = ''
this.inputCountyList.forEach((e) => { this.inputCountyList.forEach((e) => {
if (e.sid == value) { if (e.sid === value) {
bb = { bb = {
name: e.name, name: e.name,
districtCode: e.districtCode, districtCode: e.districtCode,
@ -849,34 +687,17 @@ import {mapGetters} from 'vuex'
} }
}) })
this.temp.county = bb.name this.temp.county = bb.name
// this.temp.address=this.temp.province+this.temp.city+this.temp.county
// this.deCode.push(bb.districtCode)
console.log('6666677777777', this.deCode)
}, },
// ------------------------------------------------------ // ------------------------------------------------------
// //
handleReturn() { handleReturn(isreload) {
this.visible=false if (isreload === 'true') this.$emit('reloadlist')
this.activeNames = ['1'] this.activeNames = ['1']
this.$emit('handleReturn')
},
//
resetTemp() {
this.temp = {}
this.templooke = {} this.templooke = {}
this.temp = {}
this.aseTypeBox = [] this.aseTypeBox = []
this.list1=[] this.$emit('doback')
},
//
postHuoquyonghu() {
var token = getStorage()
loginDetails(token).then((response) => {
if (response.code === '200') {
this.YongHuid = response.data
}
})
}, },
// //
getDates(v) { getDates(v) {
var now = new Date(v) var now = new Date(v)
@ -903,7 +724,7 @@ import {mapGetters} from 'vuex'
findselect(list, value) { findselect(list, value) {
var item = null var item = null
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
if (list[i].divtkey == value) { if (list[i].divtkey === value) {
item = list[i] item = list[i]
break break
} }
@ -913,7 +734,7 @@ import {mapGetters} from 'vuex'
// //
changexuanze() { changexuanze() {
this.aseTypeBox = [this.aseTypeBox[this.aseTypeBox.length - 1]] this.aseTypeBox = [this.aseTypeBox[this.aseTypeBox.length - 1]]
var item = this.findselect(this.aseType, this.aseTypeBox[0]) const item = this.findselect(this.aseType, this.aseTypeBox[0])
this.templooke.purchase_time = item.divtkey this.templooke.purchase_time = item.divtkey
}, },
// //
@ -923,202 +744,92 @@ import {mapGetters} from 'vuex'
this.FormLoading = true this.FormLoading = true
if (this.temp.sex !== '') { if (this.temp.sex !== '') {
this.sex_list.forEach((e) => { this.sex_list.forEach((e) => {
if(e.dictValue==this.temp.sex){ if (e.dictValue === this.temp.sex) {
this.temp.sexKey = e.dictKey this.temp.sexKey = e.dictKey
} }
}) })
} }
if(this.temp.isOnRemind!=='' && this.temp.isOnRemind=='是'){ if (this.temp.isOnRemind !== '' && this.temp.isOnRemind === '是') {
this.temp.isOnRemindkey = 1 this.temp.isOnRemindkey = 1
} } else {
else{
this.temp.isOnRemindkey = 0 this.temp.isOnRemindkey = 0
} }
if(this.temp.customerType!==''){ if (!this.temp.birthday) {
let bb='' this.temp.birthday = ''
this.merType.forEach((e) => {
if (e.dictValue == this.temp.customerType) {
bb = {
type: 'customerType',
name: e.dictValue,
value: e.dictKey,
sid: e.sid,
}
}
})
this.temp.customerTypeKey=bb.value
} }
if (this.stateId === '0') {
this.temp.dto1 = this.templooke // this.templooke this.temp.userSid = window.sessionStorage.getItem('userSid')
this.temp.userSid = this.YongHuid.sid
this.temp.staffSid = this.YongHuid.staffSid
this.temp.orgSid = this.YongHuid.organizationSid
this.temp.crmBusinessDto = this.templooke this.temp.crmBusinessDto = this.templooke
this.getUrl() this.getUrl()
this.temp.crmVisitAppendixDtoList = this.crmVisitAppendixDtoList this.temp.crmVisitAppendixDtoList = this.crmVisitAppendixDtoList
savePcCustomerInfo(this.temp).then((response) => { savePcCustomerInfo(this.temp).then((response) => {
this.FormLoading = false this.FormLoading = false
if (response.code === '200') { if (response.code === '200') {
// this.clientSid = response.data
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '添加成功', message: '添加成功',
type: 'success', type: 'success',
duration: 2000, duration: 2000
}) })
this.templooke = {}
this.visible = false
this.activeNames=['1']
this.list1 = [] this.list1 = []
this.$emit('handleReturn') this.handleReturn('true')
} else if ('511' === response.code || '513' === response.code) { } else if ('511' === response.code || '513' === response.code) {
this.FormLoading = false this.FormLoading = false
this.dialogFormVisible = true this.dialogFormVisible = true
this.stateId = response.data this.stateId = response.data
} else { } else {
alert(200); alert(200)
} }
}).catch(function(reson,data){ }).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() { dialogStatus() {
this.dialogFormVisible = false this.dialogFormVisible = false
this.openUpdate(this.stateId) this.openUpdate(this.stateId)
// this.$refs['dataForm'].validate((valid) => {
// if (valid) {
// this.FormLoading = true
// console.log('77777777777777777777777777777777')
// this.temp.dto1 = this.templooke // this.templooke
// this.temp.userSid = this.YongHuid.sid
// this.temp.staffSid = this.YongHuid.staffSid
// this.temp.orgSid = this.YongHuid.organizationSid
// this.temp.userSid = this.YongHuid.sid
// this.temp.crmBusinessDto = this.templooke
// 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
// }
// this.getUrl()
// savePcCustomerInfo(this.temp).then((response) => {
// this.FormLoading = false
// if (response.code === '200') {
// this.clientSid = response.data
// this.$notify({
// title: '',
// message: '',
// type: 'success',
// duration: 2000,
// })
// this.templooke = []
// this.dialogFormVisible = false
// this.visible = false
// this.$emit('handleReturn')
// } else {
// this.$notify({
// title: '',
// message: '',
// type: 'error',
// duration: 2000,
// })
// }
// })
// }
// })
}, },
dialogFormVisibl() { dialogFormVisibl() {
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '用户名手机号重复', message: '用户名手机号重复',
type: 'error', type: 'error',
duration: 2000, duration: 2000
}) })
this.dialogFormVisible = false this.dialogFormVisible = false
return return
}, },
// ----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------
//
getZhongJie() {
// getPcDistributorList().then((response) => {
// if (response.code === '200') {
// this.ncySid = response.data
// }
// })
},
//
getZongjieDanwei(value) {
let bb = null
this.ncySid.forEach((e) => {
if (e.sid == value) {
bb = {
name: e.distributorName,
}
}
})
this.temp.agencyName = bb.name
},
// ---------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------
//
getZhengJian(value) {
let bb = null
this.cateType.forEach((e) => {
if (e.dictKey == value) {
bb = {
type: 'documenttype',
name: e.dictValue,
vaule: e.dictKey,
}
}
})
this.temp.certificateType = bb.name
this.temp.certificateTypeKey = bb.vaule
},
//
// getKeHu(value) {
// let bb = null
// this.merType.forEach((e) => {
// if (e.dictKey == value) {
// bb = {
// type: 'customerType',
// name: e.dictValue,
// vaule: e.dictKey,
// sid: e.sid,
// }
// }
// })
// this.temp.customerType = bb.name
// console.log('value', this.temp.customerType)
// this.temp.customerTypeKey = bb.vaule
// console.log('key', this.temp.customerTypeKey)
// this.kehusid = bb.sid
// console.log('sid', this.kehusid)
// this.getKeHufenlei(this.kehusid)
// },
// //
getFenLei(value) { getFenLei(value) {
let bb = null let bb = null
this.merClass.forEach((e) => { this.merClass.forEach((e) => {
if (e.dictKey == value) { if (e.dictKey === value) {
bb = { bb = {
type: 'customerClass', type: 'customerClass',
name: e.dictValue, name: e.dictValue,
vaule: e.dictKey, vaule: e.dictKey
} }
} }
}) })
@ -1129,11 +840,11 @@ import {mapGetters} from 'vuex'
getKeHuLaiYUan(value) { getKeHuLaiYUan(value) {
let bb = null let bb = null
this.sourceLisst.forEach((e) => { this.sourceLisst.forEach((e) => {
if (e.dictKey == value) { if (e.dictKey === value) {
bb = { bb = {
type: 'customerSource', type: 'customerSource',
name: e.dictValue, name: e.dictValue,
vaule: e.dictKey, vaule: e.dictKey
} }
} }
}) })
@ -1144,56 +855,26 @@ import {mapGetters} from 'vuex'
getJiBie(value) { getJiBie(value) {
let bb = null let bb = null
this.induslevel.forEach((e) => { this.induslevel.forEach((e) => {
if (e.dictKey == value) { if (e.dictKey === value) {
bb = { bb = {
type: 'customerLevel', type: 'customerLevel',
name: e.dictValue, name: e.dictValue,
vaule: e.dictKey, vaule: e.dictKey
} }
} }
}) })
this.temp.level = bb.name this.temp.level = bb.name
this.temp.levelKey = bb.vaule this.temp.levelKey = bb.vaule
}, },
// 访
getLaiFang(value) {
let bb = null
this.industway.forEach((e) => {
if (e.dictKey == value) {
bb = {
type: 'visitWay',
name: e.dictValue,
vaule: e.dictKey,
}
}
})
this.temp.visit_way = bb.name
this.temp.visit_way_key = bb.vaule
},
//
getHangYe(value) {
let bb = null
this.industry_type.forEach((e) => {
if (e.dictKey == value) {
bb = {
type: 'industrytype',
name: e.dictValue,
vaule: e.dictKey,
}
}
})
this.templooke.customer_industry_type = bb.name
this.templooke.customer_industry_type_key = bb.vaule
},
// //
getHuoWuLeiXing(value) { getHuoWuLeiXing(value) {
let bb = null let bb = null
this.signmentT.forEach((e) => { this.signmentT.forEach((e) => {
if (e.dictKey == value) { if (e.dictKey === value) {
bb = { bb = {
type: 'consignmentType', type: 'consignmentType',
name: e.dictValue, name: e.dictValue,
vaule: e.dictKey, vaule: e.dictKey
} }
} }
}) })
@ -1204,84 +885,17 @@ import {mapGetters} from 'vuex'
getHuoWu(value) { getHuoWu(value) {
let bb = null let bb = null
this.consign.forEach((e) => { this.consign.forEach((e) => {
if (e.dictKey == value) { if (e.dictKey === value) {
bb = { bb = {
type: 'consignment', type: 'consignment',
name: e.dictValue, name: e.dictValue,
vaule: e.dictKey, vaule: e.dictKey
} }
} }
}) })
this.templooke.consignment = bb.name this.templooke.consignment = bb.name
this.templooke.consignmentKey = bb.vaule this.templooke.consignmentKey = bb.vaule
}, },
// ---------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------
//
getChelianglsit() {
var query = {
customerSid: this.stateId,
staffSid: this.YongHuid.staffSid,
}
pagerList(query).then((response) => {
if (response.code === '200') {
this.list = response.data
}
})
},
//
dataCreated() {
this.visible = true
this.$refs['dataForm'].resetFields() //
this.temp = []
this.$refs['datufrom'].resetFields() //
this.templooke = []
this.$emit('created')
},
//
dataUpdated() {
this.visible = true
this.getList()
},
//
handlelooke(row) {
this.$refs.Info.openinfo(row.sid, this.stateId, () => {
debugger
this.visible = false
})
},
//
handleUpdate(row) {
this.$refs.addAndUpdate.openUpdate(
row.sid,
this.stateId,
this.checkin,
() => {
this.visible = false
}
)
},
// ID
handleDelete(row) {
delBySids(row.sid).then((response) => {
if (response.code === '200') {
this.$notify({
title: '提示',
message: '删除成功',
type: 'success',
duration: 2000,
})
this.getChelianglsit()
} else {
this.$notify({
title: '删除失败',
message: response.msg,
type: 'error',
})
}
})
},
// -------------------------------------------------------------- // --------------------------------------------------------------
getUrl() { getUrl() {
for (var i = 0; i < this.list1.length; i++) { for (var i = 0; i < this.list1.length; i++) {
@ -1293,97 +907,26 @@ import {mapGetters} from 'vuex'
filePath: this.list1[i].url, filePath: this.list1[i].url,
fileSize: this.list1[i].size, fileSize: this.list1[i].size,
// linkSid: this.temp.customerSid, // linkSid: this.temp.customerSid,
createBySid: this.YongHuid.sid, createBySid: window.sessionStorage.getItem('userSid'),
fileType: nameArr[nameArr.length - 1], fileType: nameArr[nameArr.length - 1]
}) })
console.log('11223344', this.crmVisitAppendixDtoList) console.log('11223344', this.crmVisitAppendixDtoList)
} }
},
//--------------------------------------------------------------
//
showAdd(register, showed) {
this.checkin = register
console.log('852', this.checkin)
this.$refs['dataForm'].clearValidate()
this.stateId = '0'
// this.resetTemp()
this.visible = true
if (showed && typeof showed === 'function') {
showed()
} }
},
showEdit(sid, register, showed) {
this.clientSid = sid
this.stateId = sid
this.checkin = register
if (this.stateId !== '0') {
getPcCustomerInfoBySid(this.stateId).then((response) => {
if (response.code === '200') {
this.$refs['dataForm'].clearValidate()
this.temp = response.data
this.temp.birthday = this.getDates(this.temp.birthday)
this.visible = true
if (showed && typeof showed === 'function') {
showed()
} }
} }
})
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
}
})
}
this.getChelianglsit()
},
//
dataDengJi() {
this.visible = true
this.$emit('doback')
},
dataModify() {
this.visible = true
// this.$emit('doback')
},
},
}
</script> </script>
<style scoped> <style scoped>
.yulan {
text-align: right;
margin-top: 15px;
}
.tleftb{
text-align: left;
}
.trightb { .trightb {
text-align: right; text-align: right;
} }
.hang {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 20px 10px;
}
.addinputwduan { .addinputwduan {
width: 80px; width: 80px;
margin: 0 5px; margin: 0 5px;
} }
/*.formadd02 {*/
/* padding-top: 20px;*/
/*}*/
/*.formadd03 {*/
/* padding-top: 20px;*/
/*}*/
/deep/ .el-collapse-item__header { /deep/ .el-collapse-item__header {
height: 40px; height: 40px;
padding: 10px; padding: 10px;
@ -1393,6 +936,7 @@ import {mapGetters} from 'vuex'
color: #ffffff; color: #ffffff;
background-color: #0294d7; background-color: #0294d7;
} }
/deep/ .el-collapse-item__content { /deep/ .el-collapse-item__content {
padding-bottom: 0; padding-bottom: 0;
} }

245
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>
<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 :span="3" class="tleftb">
<span>申请日期</span>
</el-col> </el-col>
<el-col :span="6" 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="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,19 +155,15 @@ 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: [],
@ -177,21 +181,11 @@ export default {
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: {},
// ------------------------------------ // ------------------------------------
} }
}, },
@ -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,8 +327,8 @@ 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
@ -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;
} }
.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;
}
.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>

109
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,22 +99,18 @@
<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>
<!-- 车辆预订 新增编辑页面 --> <!-- 车辆预订 新增编辑页面 -->
@ -158,7 +127,6 @@
</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'
@ -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)
@ -424,11 +377,11 @@ 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)
@ -436,7 +389,7 @@ export default {
}, },
// //
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 {
@ -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: ''

214
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>
> </el-col>
<div class="tit"> </el-row>
销售虚拟订车单 <el-row>
<div class="times"> <el-col :span="3" class="tleftb">
<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-col :span="5">
<div><span>金额单位</span><span></span></div> <el-form-item>
</div> <span>{{ temp.departmentName }}</span>
</div> </el-form-item>
<el-row class="bordertopline"> </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 :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>
<el-col :span="6" class="trightb"> <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;
} }
.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>

273
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-option v-for="(item, index) in ProBankAcc_list" :key="index.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select> </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,21 +196,18 @@
</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) => {
@ -209,19 +222,14 @@ 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: {
@ -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,
@ -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,
@ -381,36 +364,31 @@ 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,
@ -419,14 +397,15 @@ export default {
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'
}) })
} }
}) })
@ -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>

155
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> <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></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,6 +170,9 @@
</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>
@ -154,7 +180,7 @@
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