Browse Source

完善交车办理

master
yunuo970428 2 years ago
parent
commit
6f864b7f65
  1. 9
      anrui-buscenter/anrui-buscenter-ui/src/api/dictcommons/dictcommons.js
  2. 169
      anrui-buscenter/anrui-buscenter-ui/src/api/jiaochebanli/cardelivery.js
  3. 40
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  4. 381
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiaochebanliFlow/deliveryconfirmationDaiBanInfo.vue
  5. 435
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiaochebanliFlow/deliveryconfirmationEdit.vue
  6. 254
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiaochebanliFlow/deliveryconfirmationYiBanInfo.vue
  7. 371
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/cardelivery.vue
  8. 285
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/cartobedelivered.vue
  9. 167
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/confirmdelivery.vue
  10. 433
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/deliveryconfirmation.vue
  11. 201
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/deliveryconfirmationInfo.vue
  12. 156
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/trailerconfirmeddelivery.vue
  13. 301
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/trailerdeliveryconfirmation.vue

9
anrui-buscenter/anrui-buscenter-ui/src/api/dictcommons/dictcommons.js

@ -135,3 +135,12 @@ export function getButtonPermissions(data) {
headers: { 'Content-Type': 'application/json' }
})
}
// 根据分公司全路径获取该分公司下的仓库(存放低调点)
export function selectWarehouseByUserSid(data) {
return request({
url: '/scm/v1/scmwarehouse/selectWarehouseByUserSid',
method: 'get',
params: data
})
}

169
anrui-buscenter/anrui-buscenter-ui/src/api/jiaochebanli/cardelivery.js

@ -0,0 +1,169 @@
import request from '@/utils/request'
// 待交车车辆列表
export function listPage(data) {
return request({
url: '/buscenter/v1/bushandoverwait/listPage',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 交车办理列表
export function pageList(data) {
return request({
url: '/buscenter/v1/bushandover/listPage',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 获取确认交付信息
export function deliveryByHandoverWaitSids(data) {
return request({
url: '/buscenter/v1/bushandover/deliveryByHandoverWaitSids',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 保存确认交付信息
export function saveOrUpdateBusHandover(data) {
return request({
url: '/buscenter/v1/bushandover/saveOrUpdateBusHandover',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 获取交车确认信息
export function fetchDetailsBySid(data) {
return request({
url: '/buscenter/v1/bushandover/fetchDetailsBySid/' + data,
method: 'get'
})
}
// 保存交车确认信息
export function saveDeliveryConfirmInfo(data) {
return request({
url: '/buscenter/v1/bushandover/saveDeliveryConfirmInfo',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 保存挂车确认交付信息
export function saveGcVinBill(data) {
return request({
url: '/buscenter/v1/bushandover/saveGcVinBill',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 获取挂车确认信息
export function getDeliveryConfirmGcInfo(data) {
return request({
url: '/buscenter/v1/bushandover/getDeliveryConfirmGcInfo',
method: 'get',
params: data
})
}
// 保存挂车确认信息
export function saveDeliveryConfirmGcInfo(data) {
return request({
url: '/buscenter/v1/bushandover/saveDeliveryConfirmGcInfo',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 提交交车确认信息
export function submit(data) {
return request({
url: '/buscenter/v1/bushandover/submit',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 流程审批(同意)
export function complete(params) {
return request({
url: '/buscenter/v1/bushandover/complete',
method: 'post',
data: params
})
}
// 流程审批(驳回)
export function reject(params) {
return request({
url: '/buscenter/v1/bushandover/reject',
method: 'post',
data: params
})
}
// 流程审批(终止)
export function breakProcess(params) {
return request({
url: '/buscenter/v1/bushandover/breakProcess',
method: 'post',
data: params
})
}
// 流程审批(撤回)
export function revokeProcess(params) {
return request({
url: '/buscenter/v1/bushandover/revokeProcess',
method: 'post',
data: params
})
}
// 审批流程(同意)获取下一环节
export function getNextNodesForSubmit(data) {
return request({
url: '/buscenter/v1/bushandover/getNextNodesForSubmit',
method: 'get',
params: data
})
}
// 审批流程(驳回)获取上一环节
export function getPreviousNodesForReject(data) {
return request({
url: '/buscenter/v1/bushandover/getPreviousNodesForReject',
method: 'get',
params: data
})
}

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

@ -382,6 +382,24 @@ export const constantRoutes = [
}
]
},
// 交车准备
{
path: '/xiaoshouguanli/jiaochebanli',
component: Layout,
redirect: '/xiaoshouguanli/jiaochebanli',
meta: {
title: '交车办理'
},
children: [
{
path: '/xiaoshouguanli/jiaochebanli',
component: () =>
import('@/views/xiaoshouguanli/jiaochebanli/cartobedelivered.vue'),
name: 'DaiJiaoChe',
meta: { title: '交车办理', noCache: true }
}
]
},
{
path: '/fapiaoneibujieshou',
component: Layout,
@ -665,6 +683,28 @@ export const constantRoutes = [
component: () =>
import('@/views/workflow/youhuibaoFlow/youhuibaoEdit.vue'),
name: 'YouHuiBaoEdit'
},
// 交车办理待办详情
{
path: '/jiaochebanliFlow/deliveryconfirmationDaiBanInfo',
component: () =>
import('@/views/workflow/jiaochebanliFlow/deliveryconfirmationDaiBanInfo.vue'),
name: 'DeliveryconfirmationDaiBanInfo'
},
// 交车办理已办详情
{
path: '/jiaochebanliFlow/deliveryconfirmationYiBanInfo',
component: () =>
import('@/views/workflow/jiaochebanliFlow/deliveryconfirmationYiBanInfo.vue'),
name: 'DeliveryconfirmationYiBanInfo'
},
// 交车办理驳回到发起人办理
{
path: '/jiaochebanliFlow/deliveryconfirmationEdit',
component: () =>
import('@/views/workflow/jiaochebanliFlow/deliveryconfirmationEdit.vue'),
name: 'DeliveryconfirmationEdit'
}
// 404 page must be placed at the end !!!

381
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiaochebanliFlow/deliveryconfirmationDaiBanInfo.vue

@ -0,0 +1,381 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" @click="openAgree('同意')"> </el-button>
<el-button type="danger" size="small" @click="openReject('驳回')"> </el-button>
<el-button type="danger" size="small" @click="openStop('终止')"> </el-button>
</div>
</div>
<div class="">
<div class="titwu">交车确认</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span>合同编号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>客户名称</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>接收人</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.recipient }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>身份证号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.idNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>交付地点</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>备注</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>车型</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">
交付车辆信息
</div>
<el-table :key="tableKey" :data="formobj.carList" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<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 class="bluezi" v-show="scope.row.deliveryImages.length > 0" @click="handleLook(scope.row.deliveryImages)">查看</span>
</template>
</el-table-column>
<el-table-column label="保单" align="center">
<template slot-scope="scope">
<span class="bluezi" v-show="scope.row.policyImages.length > 0" @click="handleLook(scope.row.policyImages)">查看</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>接收车辆确认书</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.receiveCarImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>委托提车授权书及委托人身份证</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.entrustImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>交车资料确认单</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.entrustConfirmImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>出门证照片</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.exitTicketImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 交车照片保单上传 -->
<el-dialog :visible.sync="dialogVisible">
<el-image v-for="(item, index) in image_list" :key="index" :src="item" :preview-src-list="image_list"/>
</el-dialog>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form class="formadd" >
<el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb">
<el-col :span="4" class="tleftb">
<span>当前环节:</span>
</el-col>
<el-col :span="20">
<el-form-item><span>{{ current.taskName }}->{{ nextNode.name }}</span></el-form-item>
</el-col>
</el-row>
<el-row :class="{rowClass:!currentLink}">
<el-col :span="4" class="tleftb">
<span>意见:</span>
</el-col>
<el-col :span="20">
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" type="textarea" :autosize="{ minRows: 1, maxRows: 10}" clearable ></el-input></el-form-item>
</el-col>
</el-row>
<div style="text-align:center;margin-top: 20px;">
<el-button type="primary" size="mini" @click="reject"> </el-button>
<el-button type="info " size="mini" @click="nodeDialogVisible = false"> </el-button>
</div>
</el-form>
</el-dialog>
</div>
</template>
<script>
import { fetchDetailsBySid, complete, reject, breakProcess, getNextNodesForSubmit, getPreviousNodesForReject } from '@/api/jiaochebanli/cardelivery'
export default {
name: 'DeliveryconfirmationDaiBanInfo',
data() {
return {
viewTitle: '',
dialogVisible: false,
tableKey: 0,
index: 0,
image_list: [],
formobj: {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
},
rules: {},
operation: '', //
dialogList: {
comment: ''
},
startTask: true,
current: {
taskDefKey: '',
taskName: '' //
},
nextNode: {}, //
nodeDialogVisible: false,
currentLink: true,
//
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('iframe页面获取的obj:', obj)
//
this.linkByParameter.businessSid = obj.businessSid
this.linkByParameter.instanceId = obj.instanceId
this.linkByParameter.taskId = obj.taskId
this.linkByParameter.taskDefKey = obj.taskDefKey
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 500 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
handleLook(row) {
this.dialogVisible = true
this.image_list = row
},
//
openAgree(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openReject(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = ''
getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openStop(val) {
this.operation = val
this.currentLink = false
this.dialogList.comment = ''
this.nodeDialogVisible = true
},
reject() {
if (this.operation === '同意') {
this.handleAgree()
} else if (this.operation === '驳回') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleReject()
}
} else if (this.operation === '终止') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleStop()
}
}
},
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 驳回任务 */
handleReject() {
this.linkByParameter.comment = this.dialogList.comment
reject(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 终止任务 */
handleStop() {
this.linkByParameter.comment = this.dialogList.comment
breakProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
}
}
</script>
<style scoped>
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
.rowClass{
border-top: 1px solid #E0E3EB;
}
.span-sty {
width: 150px !important;
}
.addinputInfo {
margin-left: 140px !important;
}
</style>

435
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiaochebanliFlow/deliveryconfirmationEdit.vue

@ -0,0 +1,435 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存
</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交
</el-button>
</div>
</div>
<div class="">
<div class="titwu">交车确认</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span>合同编号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>客户名称</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>接收人</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.recipient }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>身份证号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.idNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>交付地点</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>备注</span></div>
<el-form-item>
<el-input v-model="formobj.remarks" class="addinputInfo" style="width: 80%" clearable placeholder="" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>车型</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">
交付车辆信息
</div>
<el-table :key="tableKey" :data="formobj.carList" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<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">
<el-button type="primary" size="mini" @click="handleUpload(scope.row, scope.$index, '交车')">上传</el-button>
<el-button type="primary" size="mini" style="padding-left: 5px" v-show="scope.row.deliveryImages.length > 0" @click="handleLook(scope.row.deliveryImages)">查看</el-button>
</template>
</el-table-column>
<el-table-column label="保单" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="handleUpload(scope.row, scope.$index, '保单')">上传</el-button>
<el-button type="primary" size="mini" v-show="scope.row.policyImages.length > 0" @click="handleLook(scope.row.policyImages)">查看</el-button>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>接收车辆确认书</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>委托提车授权书及委托人身份证</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list2" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>交车资料确认单</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list3" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>出门证照片</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list4" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 交车照片保单上传 -->
<el-dialog center :visible.sync="uploadVisible" :show-close="false">
<el-form class="formadd" :model="accessory">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">
<span>{{ accessory.title }}</span>
</el-col>
<el-col :span="20">
<el-form-item>
<upload v-if="accessory.title == '保单'" ref="uploadImg" v-model="accessory.policyImages" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
<upload v-else ref="uploadImg" v-model="accessory.deliveryImages" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="handleConfirm">确定</el-button>
<el-button size="small" @click="handleColse">取消</el-button>
</span>
</el-dialog>
<!-- 交车照片保单上传 -->
<el-dialog :visible.sync="dialogVisible">
<el-image v-for="(item, index) in list" :key="index" :src="item" :preview-src-list="list"/>
</el-dialog>
</div>
</template>
<script>
import { fetchDetailsBySid, saveDeliveryConfirmInfo, submit } from '@/api/jiaochebanli/cardelivery'
import upload from '@/components/uploadFile/upload'
export default {
name: 'DeliveryconfirmationEdit',
components: {
upload
},
data() {
return {
viewTitle: '',
submitdisabled: false,
uploadVisible: false,
dialogVisible: false,
list: [],
tableKey: 0,
index: 0,
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
image_list5: [],
formobj: {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
},
accessory: {
title: '',
index: '',
policyImages: [],
deliveryImages: []
},
rules: {}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 500 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.instanceId = res.data.procInsId
this.formobj.userSid = window.sessionStorage.getItem('userSid')
if (this.formobj.receiveCarImages.length > 0) {
this.formobj.receiveCarImages.forEach((e) => {
this.image_list1.push({
name: '',
url: e
})
})
}
if (this.formobj.entrustImages.length > 0) {
this.formobj.entrustImages.forEach((e) => {
this.image_list2.push({
name: '',
url: e
})
})
}
if (this.formobj.entrustConfirmImages.length > 0) {
this.formobj.entrustConfirmImages.forEach((e) => {
this.image_list3.push({
name: '',
url: e
})
})
}
if (this.formobj.exitTicketImages.length > 0) {
this.formobj.exitTicketImages.forEach((e) => {
this.image_list4.push({
name: '',
url: e
})
})
}
}
})
},
//
handleUpload(row, index, title) {
this.uploadVisible = true
this.accessory.title = title
this.accessory.index = index
if (title === '保单') {
if (row.policyImages.length > 0) {
for (var i = 0; i < row.policyImages.length; i++) {
this.accessory.policyImages.push({
name: '',
url: row.policyImages[i]
})
}
}
} else {
if (row.deliveryImages.length > 0) {
for (var k = 0; k < row.deliveryImages.length; k++) {
this.accessory.deliveryImages.push({
name: '',
url: row.deliveryImages[i]
})
}
}
}
},
handleLook(row) {
this.dialogVisible = true
this.list = row
},
//
handleConfirm() {
if (this.accessory.title === '保单') {
if (this.accessory.policyImages.length > 0) {
const aa = []
for (var l = 0; l < this.accessory.policyImages.length; l++) {
aa.push(this.accessory.policyImages[l].url)
}
this.formobj.carList[this.accessory.index].policyImages = aa
}
} else {
if (this.accessory.deliveryImages.length > 0) {
const bb = []
for (var m = 0; m < this.accessory.deliveryImages.length; m++) {
bb.push(this.accessory.deliveryImages[m].url)
}
this.formobj.carList[this.accessory.index].deliveryImages = bb
}
}
this.handleColse()
},
//
handleColse() {
this.uploadVisible = false
this.accessory = {
title: '',
index: '',
policyImages: [],
deliveryImages: []
}
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
this.submitdisabled = true
saveDeliveryConfirmInfo(this.formobj).then((resp) => {
if (resp.success) {
this.submitdisabled = false
this.$message({ showClose: true, type: 'success', message: '保存成功' })
// ()
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleSubmit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
if (this.formobj.receiveCarImages.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传接受车辆确认书' })
return
}
if (this.formobj.entrustConfirmImages.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传交车资料确认单' })
return
}
if (this.formobj.exitTicketImages.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传出门证照片' })
return
}
this.submitdisabled = true
submit(this.formobj).then((respsone) => {
if (respsone.success) {
this.submitdisabled = false
this.$message({ showClose: true, type: 'success', message: '提交成功' })
// ()
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
getUrl() {
if (this.image_list1.length > 0) {
const aa = []
for (var i = 0; i < this.image_list1.length; i++) {
aa.push(this.image_list1[i].url)
}
this.formobj.receiveCarImages = aa
} else {
this.formobj.receiveCarImages = []
}
if (this.image_list2.length > 0) {
const bb = []
for (var k = 0; k < this.image_list2.length; k++) {
bb.push(this.image_list2[k].url)
}
this.formobj.entrustImages = bb
} else {
this.formobj.entrustImages = []
}
if (this.image_list3.length > 0) {
const cc = []
for (var m = 0; m < this.image_list3.length; m++) {
cc.push(this.image_list3[m].url)
}
this.formobj.entrustConfirmImages = cc
} else {
this.formobj.entrustConfirmImages = []
}
if (this.image_list4.length > 0) {
const dd = []
for (var n = 0; n < this.image_list4.length; n++) {
dd.push(this.image_list4[n].url)
}
this.formobj.exitTicketImages = dd
} else {
this.formobj.exitTicketImages = []
}
}
}
}
</script>
<style scoped>
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
.span-sty {
width: 150px !important;
}
.addinputInfo {
margin-left: 140px !important;
}
</style>

254
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/jiaochebanliFlow/deliveryconfirmationYiBanInfo.vue

@ -0,0 +1,254 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="danger" size="small" @click="openRevoke()">撤回</el-button>
</div>
</div>
<div class="">
<div class="titwu">交车确认</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span>合同编号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>客户名称</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>接收人</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.recipient }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>身份证号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.idNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>交付地点</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>备注</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>车型</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">
交付车辆信息
</div>
<el-table :key="tableKey" :data="formobj.carList" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<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 class="bluezi" v-show="scope.row.deliveryImages.length > 0" @click="handleLook(scope.row.deliveryImages)">查看</span>
</template>
</el-table-column>
<el-table-column label="保单" align="center">
<template slot-scope="scope">
<span class="bluezi" v-show="scope.row.policyImages.length > 0" @click="handleLook(scope.row.policyImages)">查看</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>接收车辆确认书</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.receiveCarImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>委托提车授权书及委托人身份证</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.entrustImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>交车资料确认单</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.entrustConfirmImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>出门证照片</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.exitTicketImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 交车照片保单上传 -->
<el-dialog :visible.sync="dialogVisible">
<el-image v-for="(item, index) in image_list" :key="index" :src="item" :preview-src-list="image_list"/>
</el-dialog>
</div>
</template>
<script>
import { fetchDetailsBySid, revokeProcess } from '@/api/jiaochebanli/cardelivery'
export default {
name: 'DeliveryconfirmationYiBanInfo',
data() {
return {
viewTitle: '',
dialogVisible: false,
tableKey: 0,
index: 0,
image_list: [],
formobj: {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
},
rules: {},
//
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('iframe页面获取的obj:', obj)
//
this.linkByParameter.businessSid = obj.businessSid
this.linkByParameter.instanceId = obj.instanceId
this.linkByParameter.taskId = obj.taskId
this.linkByParameter.taskDefKey = obj.taskDefKey
this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 500 + 'px'
}
}, '*')
},
methods: {
showInfo(sid) {
fetchDetailsBySid(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
handleLook(row) {
this.dialogVisible = true
this.image_list = row
},
/** 确认撤回任务 */
openRevoke() {
this.$confirm('是否确认执行撤回操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleRevoke()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消撤回'
})
})
},
/** 撤回任务 */
handleRevoke() {
revokeProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
}
}
</script>
<style scoped>
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
.span-sty {
width: 150px !important;
}
.addinputInfo {
margin-left: 140px !important;
}
</style>

371
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/cardelivery.vue

@ -0,0 +1,371 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div v-show="viewState == 1">
<button-bar view-title="交车办理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="switch_btn">
<el-button class="" @click="handleClick">待交车车辆列表</el-button>
<el-button :class="{btn_style:viewState === 1}">交车办理列表</el-button>
</div>
<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" class="tab-header">
<el-form-item label="合同编号">
<el-input v-model="listQuery.params.contractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="客户名称">
<el-input v-model="listQuery.params.customerName" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="销售类型">
<el-select v-model="listQuery.params.payTypeKey" class="filter-item" clearable placeholder="请选择">
<el-option v-for="item in payType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">交车列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column width="50" type="selection" align="center"/>
<el-table-column width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="操作" min-width="500" align="center">
<template slot-scope="scope">
<el-button type="primary" v-if="scope.row.showUpdate" size="mini" @click="toEdit(scope.row)">办理</el-button>
<el-button type="primary" v-if="scope.row.showGcBtn" size="mini" @click="toTrailerDelivery(scope.row)">挂车交付</el-button>
<el-button type="primary" v-if="scope.row.showGcBtn2" size="mini" @click="toTrailerEdit(scope.row)">挂车确认</el-button>
<el-button type="primary" size="mini" @click="toMasterCar(scope.row)">主车清单下载</el-button>
<el-button type="primary" v-if="scope.row.showGcDownload" size="mini" @click="toTrailer(scope.row)">挂车清单下载</el-button>
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column label="流程状态" align="center" width="180">
<template slot-scope="scope">
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column label="状态" align="center" width="80">
<template slot-scope="scope">
<span>{{ scope.row.handoverStateValue }}</span>
</template>
</el-table-column>
<el-table-column label="合同编号" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center" width="180">
<template slot-scope="scope">
<span>{{ scope.row.customerName }}</span>
</template>
</el-table-column>
<el-table-column label="车型" align="center" width="180">
<template slot-scope="scope">
<span>{{ scope.row.modelName }}</span>
</template>
</el-table-column>
<el-table-column label="交车数量" align="center" width="100">
<template slot-scope="scope">
<span>{{ scope.row.carNum }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- End 列表页面 -->
<!--主车交车确认 -->
<deliveryconfirmation v-show="viewState == 2" ref="divQueRen" @doback="resetState" @reloadlist="getList"/>
<!-- 挂车交付 -->
<trailerconfirmeddelivery v-show="viewState == 3" ref="divGCJF" @doback="resetState" @reloadlist="getList"/>
<!-- 详情 -->
<deliveryconfirmationInfo v-show="viewState == 4" ref="divInfo" @doback="resetState"/>
<!-- 挂车确认 -->
<trailerdeliveryconfirmation v-show="viewState == 5" ref="divGCQR" @doback="resetState" @reloadlist="getList"/>
<!-- 查看流程审批记录 -->
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog>
</div>
</template>
<script>
import { pageList } from '@/api/jiaochebanli/cardelivery'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import { typeValues } from '@/api/dictcommons/dictcommons'
import { getStorage } from '@/utils/auth'
import deliveryconfirmation from './deliveryconfirmation'
import trailerconfirmeddelivery from './trailerconfirmeddelivery'
import deliveryconfirmationInfo from './deliveryconfirmationInfo'
import trailerdeliveryconfirmation from './trailerdeliveryconfirmation'
export default {
name: 'YiJiaoCheZhunBei',
components: {
Pagination,
pageye,
ButtonBar,
deliveryconfirmation,
trailerconfirmeddelivery,
deliveryconfirmationInfo,
trailerdeliveryconfirmation
},
data() {
return {
url: '',
dialogHeight: '80%',
centerDialogVisible: false,
viewState: 1,
btndisabled: false,
btnList: [
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
// -----------
tableKey: 0,
list: [],
sids: [],
payType_list: [],
FormLoading: false,
listLoading: false,
listQuery: {
params: {
contractNo: '',
customerName: '',
vinNo: '',
useOrgSid: '',
userSid: '',
orgPath: '',
menuUrl: '',
payTypeKey: ''
},
current: 1,
size: 10,
total: 0
}
}
},
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.init()
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.procInstId,
token: getStorage()
}
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doClose':
this.doClose()
break
default:
break
}
},
init() {
typeValues({ type: 'purchaseType' }).then((res) => {
if (res.success) {
this.payType_list = res.data
}
})
this.getList()
},
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
console.log('sids', this.sids)
},
//
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')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
pageList(this.listQuery).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
handleClick() {
this.$parent.resetState()
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
contractNo: '',
customerName: '',
vinNo: '',
useOrgSid: '',
userSid: '',
orgPath: '',
menuUrl: '',
payTypeKey: ''
},
current: 1,
size: 10,
total: 0
}
this.getList()
},
//
toEdit(row) {
this.viewState = 2
this.$refs['divQueRen'].showInfo(row)
},
//
toTrailerDelivery(row) {
this.viewState = 3
this.$refs['divGCJF'].showInfo(row)
},
toTrailerEdit(row) {
this.viewState = 5
this.$refs['divGCQR'].showInfo(row)
},
//
toMasterCar(row) {
var xhr = new XMLHttpRequest()
xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + row.filePath + '&outFileName=' + '主车清单', true)
xhr.setRequestHeader('token', getStorage())
xhr.responseType = 'blob'
xhr.onload = function(e) {
//
var blob = this.response
var filename = '主车清单.pdf'
var a = document.createElement('a')
// blob.type="application/octet-stream";
// url
var url = URL.createObjectURL(blob)
a.href = url
a.download = filename
a.click()
// URL
window.URL.revokeObjectURL(url)
}
//
xhr.send()
},
//
toTrailer(row) {
var xhr = new XMLHttpRequest()
xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + row.trailerFilePath + '&outFileName=' + '挂车清单', true)
xhr.setRequestHeader('token', getStorage())
xhr.responseType = 'blob'
xhr.onload = function(e) {
//
var blob = this.response
var filename = '挂车清单.pdf'
var a = document.createElement('a')
// blob.type="application/octet-stream";
// url
var url = URL.createObjectURL(blob)
a.href = url
a.download = filename
a.click()
// URL
window.URL.revokeObjectURL(url)
}
//
xhr.send()
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showInfo(row)
},
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
</style>

285
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/cartobedelivered.vue

@ -0,0 +1,285 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div v-show="viewState == 1">
<button-bar view-title="交车办理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="switch_btn">
<el-button :class="{btn_style:viewState === 1}">待交车车辆列表</el-button>
<el-button class="" @click="handleClick">交车办理列表</el-button>
</div>
<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" class="tab-header">
<el-form-item label="合同编号">
<el-input v-model="listQuery.params.contractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="客户名称">
<el-input v-model="listQuery.params.customerName" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">待交车车辆列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column fixed width="50" type="selection" align="center"/>
<el-table-column fixed label="序号" width="60" type="index" :index="indexMethod" align="center"/>
<el-table-column label="销售类型" align="center" width="180">
<template slot-scope="scope">
<span>{{ scope.row.payTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="业务状态" align="center" width="180">
<template slot-scope="scope">
<span>{{ scope.row.payStateValue }}</span>
</template>
</el-table-column>
<el-table-column label="合同编号" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center" width="180">
<template slot-scope="scope">
<span>{{ scope.row.customerName }}</span>
</template>
</el-table-column>
<el-table-column label="车架号" align="center" width="180">
<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.modelName }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- End 列表页面 -->
<!-- 已交车列表 -->
<cardelivery v-show="viewState == 2" ref="divJiao"/>
<!-- 交车编辑 -->
<confirmdelivery v-show="viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="resetList"/>
</div>
</template>
<script>
import { listPage } from '@/api/jiaochebanli/cardelivery'
import { typeValues, getOrgSidByPath } from '@/api/dictcommons/dictcommons'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import confirmdelivery from './confirmdelivery'
import cardelivery from './cardelivery'
export default {
name: 'DaiJiaoChe',
components: {
Pagination,
pageye,
ButtonBar,
confirmdelivery,
cardelivery
},
data() {
return {
viewState: 1,
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'doTransact',
btnLabel: '交车办理'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
// -----------
tableKey: 0,
list: [],
sids: [],
multipleSelection: [],
payType_list: [],
FormLoading: false,
listLoading: false,
listQuery: {
params: {
contractNo: '',
customerName: '',
vinNo: '',
useOrgSid: '',
userSid: '',
orgPath: '',
menuUrl: ''
},
current: 1,
size: 10,
total: 0
}
}
},
created() {
//
this.init()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doTransact':
this.doTransact()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
init() {
typeValues({ type: 'purchaseType' }).then((res) => {
if (res.success) {
this.payType_list = res.data
}
})
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.listQuery.params.useOrgSid = resp.data
this.getList()
}
})
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
// sid
handleSelectionChange(row) {
const aa = []
this.multipleSelection = row
row.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
console.log('获取sids数组', this.sids)
},
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
listPage(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
handleClick() {
this.viewState = 2
this.$refs['divJiao'].init()
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
contractNo: '',
customerName: '',
vinNo: '',
useOrgSid: '',
userSid: '',
orgPath: '',
menuUrl: ''
},
current: 1,
size: 10,
total: 0
}
this.init()
},
resetList() {
this.getList()
this.handleClick()
},
resetState() {
this.viewState = 1
},
doTransact() {
if (this.multipleSelection.length > 0) {
for (var i = 0; i < this.multipleSelection.length; i++) {
if (this.multipleSelection[i].contractNo !== this.multipleSelection[this.multipleSelection.length - 1].contractNo) {
this.$message({ showClose: true, type: 'error', message: '请选择相同编号的记录进行交车办理操作' })
return
}
}
this.viewState = 3
this.$refs['divAdd'].showInfo(this.sids)
} else {
this.$message({ showClose: true, type: 'error', message: '请至少选择一条记录进行交车办理操作' })
}
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
</style>

167
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/confirmdelivery.vue

@ -0,0 +1,167 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleConfirm()">确认
</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">确认交付信息</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span><span class="icon">*</span>接收人</span></div>
<el-form-item prop="recipient"><el-input v-model="formobj.recipient" clearable placeholder="" class="addinputInfo" style="width: 50%"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span><span class="icon">*</span>身份证号</span></div>
<el-form-item prop="idNo"><el-input v-model="formobj.idNo" clearable placeholder="" class="addinputInfo addinputw" style="width: 50%"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span><span class="icon">*</span>联系电话</span></div>
<el-form-item prop="mobile"><el-input v-model="formobj.mobile" clearable placeholder="" class="addinputInfo addinputw" style="width: 50%"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>车辆交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span><span class="icon">*</span>车辆交付地点</span></div>
<el-form-item prop="deliverAddress">
<el-select class="addinputInfo" v-model="formobj.deliverAddress" placeholder="请选择" @change="changeAddress" filterable clearable>
<el-option v-for="item in warehouwarehouse_list" :key="item.sid" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<div class="title">车辆交付资料清单</div>
<el-table :key="tableKey" :data="formobj.busItemvos" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<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.itemValue }}</span>
</template>
</el-table-column>
</el-table>
</el-form>
</div>
</div>
</template>
<script>
import { deliveryByHandoverWaitSids, saveOrUpdateBusHandover } from '@/api/jiaochebanli/cardelivery'
import { selectWarehouseByUserSid } from '@/api/dictcommons/dictcommons'
export default {
name: 'JiaoFuQueRen',
data() {
return {
viewTitle: '',
submitdisabled: false,
tableKey: 0,
index: 0,
warehouwarehouse_list: [],
formobj: {
userSid: '',
orgSidPath: '',
recipient: '',
idNo: '',
mobile: '',
deliverDate: '',
deliverAddress: '',
deliverAddressKey: '',
busItemvos: []
},
rules: {
recipient: [{ required: true, message: '接收人不能为空', trigger: 'blur' }],
idNo: [{ required: true, message: '身份证号不能为空', trigger: 'blur' }],
mobile: [{ required: true, message: '联系电话不能为空', trigger: 'blur' }],
deliverAddress: [{ required: true, message: '车辆交付地点不能为空', trigger: 'change' }]
}
}
},
methods: {
showInfo(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
selectWarehouseByUserSid({ userSid: window.sessionStorage.getItem('userSid'), orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.warehouwarehouse_list = res.data
}
})
this.viewTitle = '确认交付'
deliveryByHandoverWaitSids({ userSid: window.sessionStorage.getItem('userSid'), orgSidPath: window.sessionStorage.getItem('defaultOrgPath'), list: row }).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
changeAddress(value) {
const choose = this.warehouwarehouse_list.filter((item) => item.dictValue === value)
this.formobj.deliverAddressKey = choose[0].sid
},
handleConfirm() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
const loading = this.$loading({
lock: true,
text: '交付信息正在生成中,请稍等',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
saveOrUpdateBusHandover(this.formobj).then((res) => {
if (res.success) {
loading.close()
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')
}
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
userSid: '',
orgSidPath: '',
recipient: '',
idNo: '',
mobile: '',
deliverDate: '',
deliverAddress: '',
deliverAddressKey: '',
busItemvos: []
}
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
/deep/ .el-form-item__error {
margin-left: 120px;
}
</style>

433
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/deliveryconfirmation.vue

@ -0,0 +1,433 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存
</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交
</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">交车确认</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span>合同编号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>客户名称</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>接收人</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.recipient }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>身份证号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.idNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>交付地点</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>备注</span></div>
<el-form-item>
<el-input v-model="formobj.remarks" class="addinputInfo" style="width: 80%" clearable placeholder="" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>车型</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">
交付车辆信息
</div>
<el-table :key="tableKey" :data="formobj.carList" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<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">
<el-button type="primary" size="mini" @click="handleUpload(scope.row, scope.$index, '交车')">上传</el-button>
<el-button type="primary" size="mini" style="padding-left: 5px" v-show="scope.row.deliveryImages.length > 0" @click="handleLook(scope.row.deliveryImages)">查看</el-button>
</template>
</el-table-column>
<el-table-column label="保单" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="handleUpload(scope.row, scope.$index, '保单')">上传</el-button>
<el-button type="primary" size="mini" v-show="scope.row.policyImages.length > 0" @click="handleLook(scope.row.policyImages)">查看</el-button>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>接收车辆确认书</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>委托提车授权书及委托人身份证</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list2" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>交车资料确认单</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list3" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>出门证照片</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list4" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 交车照片保单上传 -->
<el-dialog center :visible.sync="uploadVisible" :show-close="false">
<el-form class="formadd" :model="accessory">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">
<span>{{ accessory.title }}</span>
</el-col>
<el-col :span="20">
<el-form-item>
<upload v-if="accessory.title == '保单'" ref="uploadImg" v-model="accessory.policyImages" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
<upload v-else ref="uploadImg" v-model="accessory.deliveryImages" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="handleConfirm">确定</el-button>
<el-button size="small" @click="handleColse">取消</el-button>
</span>
</el-dialog>
<!-- 交车照片保单上传 -->
<el-dialog :visible.sync="dialogVisible">
<el-image v-for="(item, index) in list" :key="index" :src="item" :preview-src-list="list"/>
</el-dialog>
</div>
</template>
<script>
import { fetchDetailsBySid, saveDeliveryConfirmInfo, submit } from '@/api/jiaochebanli/cardelivery'
import upload from '@/components/uploadFile/upload'
export default {
name: 'JiaoCheQueRen',
components: {
upload
},
data() {
return {
viewTitle: '',
submitdisabled: false,
uploadVisible: false,
dialogVisible: false,
list: [],
tableKey: 0,
index: 0,
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
image_list5: [],
formobj: {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
},
accessory: {
title: '',
index: '',
policyImages: [],
deliveryImages: []
},
rules: {}
}
},
methods: {
showInfo(row) {
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.instanceId = res.data.procInsId
this.formobj.userSid = window.sessionStorage.getItem('userSid')
if (this.formobj.receiveCarImages.length > 0) {
this.formobj.receiveCarImages.forEach((e) => {
this.image_list1.push({
name: '',
url: e
})
})
}
if (this.formobj.entrustImages.length > 0) {
this.formobj.entrustImages.forEach((e) => {
this.image_list2.push({
name: '',
url: e
})
})
}
if (this.formobj.entrustConfirmImages.length > 0) {
this.formobj.entrustConfirmImages.forEach((e) => {
this.image_list3.push({
name: '',
url: e
})
})
}
if (this.formobj.exitTicketImages.length > 0) {
this.formobj.exitTicketImages.forEach((e) => {
this.image_list4.push({
name: '',
url: e
})
})
}
}
})
},
//
handleUpload(row, index, title) {
this.uploadVisible = true
this.accessory.title = title
this.accessory.index = index
if (title === '保单') {
if (row.policyImages.length > 0) {
for (var i = 0; i < row.policyImages.length; i++) {
this.accessory.policyImages.push({
name: '',
url: row.policyImages[i]
})
}
}
} else {
if (row.deliveryImages.length > 0) {
for (var k = 0; k < row.deliveryImages.length; k++) {
this.accessory.deliveryImages.push({
name: '',
url: row.deliveryImages[i]
})
}
}
}
},
handleLook(row) {
this.dialogVisible = true
this.list = row
},
//
handleConfirm() {
if (this.accessory.title === '保单') {
if (this.accessory.policyImages.length > 0) {
const aa = []
for (var l = 0; l < this.accessory.policyImages.length; l++) {
aa.push(this.accessory.policyImages[l].url)
}
this.formobj.carList[this.accessory.index].policyImages = aa
}
} else {
if (this.accessory.deliveryImages.length > 0) {
const bb = []
for (var m = 0; m < this.accessory.deliveryImages.length; m++) {
bb.push(this.accessory.deliveryImages[m].url)
}
this.formobj.carList[this.accessory.index].deliveryImages = bb
}
}
this.handleColse()
},
//
handleColse() {
this.uploadVisible = false
this.accessory = {
title: '',
index: '',
policyImages: [],
deliveryImages: []
}
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
this.submitdisabled = true
saveDeliveryConfirmInfo(this.formobj).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleSubmit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
if (this.formobj.receiveCarImages.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传接受车辆确认书' })
return
}
if (this.formobj.entrustConfirmImages.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传交车资料确认单' })
return
}
if (this.formobj.exitTicketImages.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传出门证照片' })
return
}
this.submitdisabled = true
submit(this.formobj).then((respsone) => {
if (respsone.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
getUrl() {
if (this.image_list1.length > 0) {
const aa = []
for (var i = 0; i < this.image_list1.length; i++) {
aa.push(this.image_list1[i].url)
}
this.formobj.receiveCarImages = aa
} else {
this.formobj.receiveCarImages = []
}
if (this.image_list2.length > 0) {
const bb = []
for (var k = 0; k < this.image_list2.length; k++) {
bb.push(this.image_list2[k].url)
}
this.formobj.entrustImages = bb
} else {
this.formobj.entrustImages = []
}
if (this.image_list3.length > 0) {
const cc = []
for (var m = 0; m < this.image_list3.length; m++) {
cc.push(this.image_list3[m].url)
}
this.formobj.entrustConfirmImages = cc
} else {
this.formobj.entrustConfirmImages = []
}
if (this.image_list4.length > 0) {
const dd = []
for (var n = 0; n < this.image_list4.length; n++) {
dd.push(this.image_list4[n].url)
}
this.formobj.exitTicketImages = dd
} else {
this.formobj.exitTicketImages = []
}
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
}
this.accessory = {
title: '',
index: '',
policyImages: [],
deliveryImages: []
}
this.image_list1 = []
this.image_list2 = []
this.image_list3 = []
this.image_list4 = []
this.submitdisabled = false
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 150px !important;
}
.addinputInfo {
margin-left: 140px !important;
}
</style>

201
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/deliveryconfirmationInfo.vue

@ -0,0 +1,201 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">交车确认</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span>合同编号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>客户名称</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>接收人</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.recipient }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>身份证号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.idNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>交付地点</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>备注</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>车型</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">
交付车辆信息
</div>
<el-table :key="tableKey" :data="formobj.carList" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<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 class="bluezi" v-show="scope.row.deliveryImages.length > 0" @click="handleLook(scope.row.deliveryImages)">查看</span>
</template>
</el-table-column>
<el-table-column label="保单" align="center">
<template slot-scope="scope">
<span class="bluezi" v-show="scope.row.policyImages.length > 0" @click="handleLook(scope.row.policyImages)">查看</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>接收车辆确认书</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.receiveCarImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>委托提车授权书及委托人身份证</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.entrustImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>交车资料确认单</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.entrustConfirmImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>出门证照片</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.exitTicketImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 交车照片保单上传 -->
<el-dialog :visible.sync="dialogVisible">
<el-image v-for="(item, index) in image_list" :key="index" :src="item" :preview-src-list="image_list"/>
</el-dialog>
</div>
</template>
<script>
import { fetchDetailsBySid } from '@/api/jiaochebanli/cardelivery'
export default {
name: 'JiaoCheQueRen',
data() {
return {
viewTitle: '',
dialogVisible: false,
tableKey: 0,
index: 0,
image_list: [],
formobj: {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
},
rules: {}
}
},
methods: {
showInfo(row) {
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
handleLook(row) {
this.dialogVisible = true
this.image_list = row
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
}
this.image_list = []
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 150px !important;
}
.addinputInfo {
margin-left: 140px !important;
}
</style>

156
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/trailerconfirmeddelivery.vue

@ -0,0 +1,156 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleConfirm()">确认
</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">确认交付信息</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span><span class="icon">*</span>接收人</span></div>
<el-form-item prop="recipient"><el-input v-model="formobj.recipient" clearable placeholder="" class="addinputInfo" style="width: 50%"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span><span class="icon">*</span>身份证号</span></div>
<el-form-item prop="idNo"><el-input v-model="formobj.idNo" clearable placeholder="" class="addinputInfo addinputw" style="width: 50%"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span><span class="icon">*</span>联系电话</span></div>
<el-form-item prop="mobile"><el-input v-model="formobj.mobile" clearable placeholder="" class="addinputInfo addinputw" style="width: 50%"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>车辆交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span><span class="icon">*</span>车辆交付地点</span></div>
<el-form-item prop="deliverAddress">
<el-select class="addinputInfo" v-model="formobj.deliverAddress" placeholder="请选择" @change="changeAddress" filterable clearable>
<el-option v-for="item in warehouwarehouse_list" :key="item.sid" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import { saveGcVinBill } from '@/api/jiaochebanli/cardelivery'
import { selectWarehouseByUserSid } from '@/api/dictcommons/dictcommons'
export default {
name: 'GuaCheJiaoFuQueRen',
data() {
return {
viewTitle: '',
submitdisabled: false,
warehouwarehouse_list: [],
formobj: {
sid: '',
userSid: '',
orgSidPath: '',
recipient: '',
idNo: '',
mobile: '',
deliverDate: '',
deliverAddress: '',
deliverAddressKey: ''
},
rules: {
recipient: [{ required: true, message: '接收人不能为空', trigger: 'blur' }],
idNo: [{ required: true, message: '身份证号不能为空', trigger: 'blur' }],
mobile: [{ required: true, message: '联系电话不能为空', trigger: 'blur' }],
deliverAddress: [{ required: true, message: '车辆交付地点不能为空', trigger: 'change' }]
}
}
},
methods: {
showInfo(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.viewTitle = '确认交付'
this.formobj.sid = row.sid
this.formobj.userSid = window.sessionStorage.getItem('userSid')
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
var nowDate = new Date()
var date = {
year: nowDate.getFullYear(),
month: nowDate.getMonth() + 1,
day: nowDate.getDate()
}
this.formobj.deliverDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day)
selectWarehouseByUserSid({ userSid: window.sessionStorage.getItem('userSid'), orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.warehouwarehouse_list = res.data
}
})
},
changeAddress(value) {
const choose = this.warehouwarehouse_list.filter((item) => item.dictValue === value)
this.formobj.deliverAddressKey = choose[0].sid
},
handleConfirm() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
const loading = this.$loading({
lock: true,
text: '交付信息正在生成中,请稍等',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
saveGcVinBill(this.formobj).then((res) => {
if (res.success) {
loading.close()
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')
}
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
sid: '',
userSid: '',
orgSidPath: '',
recipient: '',
idNo: '',
mobile: '',
deliverDate: '',
deliverAddress: '',
deliverAddressKey: ''
}
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
/deep/ .el-form-item__error {
margin-left: 120px;
}
</style>

301
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochebanli/trailerdeliveryconfirmation.vue

@ -0,0 +1,301 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存
</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">挂车确认</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span>合同编号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>客户名称</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>接收人</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.recipient }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>身份证号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.idNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>交付地点</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>备注</span></div>
<el-form-item>
<el-input v-model="formobj.remarks" class="addinputInfo" style="width: 80%" clearable placeholder="" />
</el-form-item>
</el-col>
</el-row>
<div class="title">
交付车辆信息
</div>
<el-table :key="tableKey" :data="formobj.carList" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<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">
<el-button type="primary" size="mini" @click="handleUpload(scope.row, scope.$index, '交车')">上传</el-button>
<el-button type="primary" size="mini" style="padding-left: 5px" v-show="scope.row.deliveryImages.length > 0" @click="handleLook(scope.row.deliveryImages)">查看</el-button>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>接收车辆确认书及其他资料</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list1" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>委托提车授权书及委托人身份证</span></div>
<el-form-item>
<upload ref="uploadImg" class="addinputInfo" v-model="image_list2" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 交车照片保单上传 -->
<el-dialog center :visible.sync="uploadVisible" :show-close="false">
<el-form class="formadd" :model="accessory">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">
<span>{{ accessory.title }}</span>
</el-col>
<el-col :span="20">
<el-form-item>
<upload ref="uploadImg" v-model="accessory.deliveryImages" :accept="accept" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="handleConfirm">确定</el-button>
<el-button size="small" @click="handleColse">取消</el-button>
</span>
</el-dialog>
<!-- 交车照片保单上传 -->
<el-dialog :visible.sync="dialogVisible">
<el-image v-for="(item, index) in list" :key="index" :src="item" :preview-src-list="list"/>
</el-dialog>
</div>
</template>
<script>
import { getDeliveryConfirmGcInfo, saveDeliveryConfirmGcInfo } from '@/api/jiaochebanli/cardelivery'
import upload from '@/components/uploadFile/upload'
export default {
name: 'JiaoCheQueRen',
components: {
upload
},
data() {
return {
viewTitle: '',
submitdisabled: false,
uploadVisible: false,
dialogVisible: false,
list: [],
tableKey: 0,
index: 0,
accept: '.jpg,.jpeg,.png,.JPG,.JPEG',
image_list1: [],
image_list2: [],
formobj: {
sid: '',
contractNo: '',
deliverDate: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
userSid: '',
orgSidPath: ''
},
accessory: {
title: '',
index: '',
deliveryImages: []
},
rules: {}
}
},
methods: {
showInfo(row) {
getDeliveryConfirmGcInfo({ sid: row.sid }).then((res) => {
if (res.success) {
this.formobj = res.data
if (this.formobj.receiveCarImages.length > 0) {
this.formobj.receiveCarImages.forEach((e) => {
this.image_list1.push({
name: '',
url: e
})
})
}
if (this.formobj.entrustImages.length > 0) {
this.formobj.entrustImages.forEach((e) => {
this.image_list2.push({
name: '',
url: e
})
})
}
}
})
},
//
handleUpload(row, index, title) {
this.uploadVisible = true
this.accessory.title = title
this.accessory.index = index
if (row.deliveryImages.length > 0) {
for (var i = 0; i < row.deliveryImages.length; i++) {
this.accessory.deliveryImages.push({
name: '',
url: row.deliveryImages[i]
})
}
}
},
handleLook(row) {
this.dialogVisible = true
this.list = row
},
//
handleConfirm() {
if (this.accessory.deliveryImages.length > 0) {
const aa = []
for (var l = 0; l < this.accessory.deliveryImages.length; l++) {
aa.push(this.accessory.deliveryImages[l].url)
}
this.formobj.carList[this.accessory.index].deliveryImages = aa
}
this.handleColse()
},
//
handleColse() {
this.uploadVisible = false
this.accessory = {
title: '',
index: '',
deliveryImages: []
}
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.getUrl()
if (this.formobj.receiveCarImages.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传接受车辆确认书' })
return
}
this.submitdisabled = true
saveDeliveryConfirmGcInfo(this.formobj).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
getUrl() {
if (this.image_list1.length > 0) {
const aa = []
for (var i = 0; i < this.image_list1.length; i++) {
aa.push(this.image_list1[i].url)
}
this.formobj.receiveCarImages = aa
} else {
this.formobj.receiveCarImages = []
}
if (this.image_list2.length > 0) {
const bb = []
for (var k = 0; k < this.image_list2.length; k++) {
bb.push(this.image_list2[k].url)
}
this.formobj.entrustImages = bb
} else {
this.formobj.entrustImages = []
}
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
sid: '',
contractNo: '',
deliverDate: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
userSid: '',
orgSidPath: ''
}
this.accessory = {
title: '',
index: '',
deliveryImages: []
}
this.image_list1 = []
this.image_list2 = []
this.submitdisabled = false
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 150px !important;
}
.addinputInfo {
margin-left: 140px !important;
}
</style>
Loading…
Cancel
Save