Browse Source

存放地点变更

zhanglei
Zhao Qiqi 3 years ago
parent
commit
febd8ead59
  1. 22
      anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
  2. 23
      anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue
  3. 41
      anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangengAdd.vue
  4. 347
      anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangeng.vue
  5. 416
      anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengEdit.vue
  6. 231
      anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengInfo.vue

22
anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js

@ -561,6 +561,28 @@ const codemenu = [
component: () =>
import('@/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication'),
name: 'baseoutsouapplFlowInfoHandle'
},
// 流程审批
// 存放地点变更申请驳回到发起人办理编辑页面
{
path: '/cunfangdidianbiangengFlow/cunfangdidianbiangengEdit',
component: () =>
import('@/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengEdit.vue'),
name: 'cunfangdidianbiangengEdit'
},
// 存放地点变更申请详情页面
{
path: '/cunfangdidianbiangengFlow/cunfangdidianbiangengInfo',
component: () =>
import('@/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengInfo.vue'),
name: 'cunfangdidianbiangengInfo'
},
// 存放地点变更申请审批环节办理页面
{
path: '/cunfangdidianbiangengFlow/cunfangdidianbiangeng',
component: () =>
import('@/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangeng.vue'),
name: 'cunfangdidianbiangeng'
}
]
export default codemenu

23
anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue

@ -49,7 +49,8 @@
<el-table-column width="80px" fixed label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="操作" fixed align="center" width="160px" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-button size="mini" type="primary" @click="handleEdit(row)">办理</el-button>
<el-button size="mini" type="primary" :disabled="!row.showUpdateBtn" @click="handleEdit(row)">办理
</el-button>
<el-button size="mini" type="primary" @click="handleCheck(row)">查看</el-button>
</template>
</el-table-column>
@ -64,7 +65,7 @@
<el-table-column width="160px" prop="applyPrice" label="申请费用" align="center"/>
<el-table-column width="180px" label="现场照片" align="center">
<template slot-scope="{row}">
<div class="upload_img">
<div class="upload_img" v-show="row.showUploadBtn">
<upload ref="uploadMoreImg" v-model="imgList" bucket="map" @eett="getList"
:upload-data="{type:'0001',sid: row.sid}"/>
</div>
@ -90,10 +91,20 @@
</div>
</div>
<!-- 照片弹窗 -->
<el-dialog title="查看" :visible.sync="dialogImgVisible">
<el-image v-for="item in srcList" :key="item" style="width: 100px; height: 100px" :src="item"
:preview-src-list="srcList"/>
<el-dialog :visible.sync="dialogImgVisible" width="1000px"
:close-on-click-modal="false">
<div class="result-cont">
<el-carousel indicator-position="outside" style="height: 500px;">
<el-carousel-item v-for="item in srcList" :key="item" style="height: 500px;">
<img style="width: 100%; height: 500px;" :src="item">
</el-carousel-item>
</el-carousel>
</div>
</el-dialog>
<!-- <el-dialog title="查看" :visible.sync="dialogImgVisible">-->
<!-- <el-image v-for="item in srcList" :key="item" style="width: 100px; height: 100px" :src="item"-->
<!-- :preview-src-list="srcList"/>-->
<!-- </el-dialog>-->
<cunfangdidianbiangeng-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState"
@reloadlist="getList"/>
<cunfangdidianbiangeng-info v-show="viewState == 4" ref="divinfo" @doback="resetState"/>
@ -323,7 +334,7 @@ export default {
},
handleCheckImg(row){
this.dialogImgVisible = true
// this.srcList = row.image
this.srcList = row.images
},
//
getModelName() {

41
anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangengAdd.vue

@ -4,6 +4,7 @@
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" @click="handleSubmit()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
</div>
@ -253,14 +254,9 @@ export default {
this.temp.InsuranceState = res.data.insuranceState
if (this.temp.policyImage.length > 0) {
for (var i = 0; i < this.temp.policyImage.length; i++) {
const imgName01 = this.temp.policyImage[i].split('/')
// const imgName02 = imgName01[imgName01.length - 1]
// const a = imgName02.lastIndexOf('_')
// const b = imgName02.lastIndexOf('.')
// const imgName03 = imgName02.slice(a, b)
// var imgName = imgName02.replace(imgName03, '')
const imgName = this.temp.policyImage[i].split('/')
this.imgList.push({
name: imgName01[imgName01.length - 1],
name: imgName[imgName.length - 1],
url: this.temp.policyImage[i]
})
}
@ -272,9 +268,12 @@ export default {
getUrl() {
if (this.temp.InsuranceStateKey == '1') {
if (this.imgList.length > 0) {
console.log('imgList', this.imgList)
console.log('保存imgList', this.imgList)
for (var i = 0; i < this.imgList.length; i++) {
this.temp.policyImage.push(this.imgList[i].url)
const img_list = []
img_list.push(this.imgList[i].url)
this.temp.policyImage = img_list
console.log('保存img_list', img_list)
}
} else {
this.temp.policyImage = []
@ -336,6 +335,30 @@ export default {
})
}
})
},
handleSubmit() {
const _this = this
this.$refs['form_obj'].validate(valid => {
if (valid) {
// this.submitdisabled = true
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
// req.submitVehicleReturn(this.formobj).then(resp => {
// this.submitdisabled = false
// if (resp.success) {
// _this.handleReturn('true')
// }
// }).catch(() => {
// this.submitdisabled = false
// })
})
} else {
return false
}
})
}
}
}

347
anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangeng.vue

@ -0,0 +1,347 @@
<template>
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<!-- <el-button type="primary" @click="openAgree('同意')"> </el-button>-->
<!-- <el-button type="danger" @click="openReject('驳回')"> </el-button>-->
<!-- <el-button type="danger" @click="openStop('终止')"> </el-button>-->
</div>
</div>
<div class="">
<div class="title">车辆存放地点变更申请</div>
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<div class="tit">
<div class="times">
<div>
<span>申请日期</span>
<span>{{ temp.applicantDate }}</span>
</div>
<div>
<span>申请人</span>
<span>{{ temp.applicantName }}</span>
</div>
</div>
</div>
<el-row style="border-top: 1px solid #e0e3eb;">
<el-col :span="3">
<span>现存放地点</span>
</el-col>
<el-col :span="9">
<el-form-item>
<span>{{ temp.location }}</span>
</el-form-item>
</el-col>
<el-col :span="3">
<span>目标存放地点</span>
</el-col>
<el-col :span="9">
<el-form-item>
<span>{{ temp.targetLocation }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>车架号</span>
</el-col>
<el-col :span="21">
<el-form-item>
<span>{{ temp.vinNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>变更原因</span>
</el-col>
<el-col :span="21">
<el-form-item>
<span>{{ temp.changeReason }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>申请费用</span>
</el-col>
<el-col :span="21">
<el-form-item>
<span>{{ temp.applicantFunds }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>经办人</span>
</el-col>
<el-col :span="9">
<el-form-item>
<span>{{ temp.operator }}</span>
</el-form-item>
</el-col>
<el-col :span="3">
<span>保险状态</span>
</el-col>
<el-col :span="9">
<el-form-item>
<span>{{ temp.insuranceState }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="temp.insuranceStateKey == '1'">
<el-col :span="3">
<span>保单</span>
</el-col>
<el-col :span="21">
<img v-for="item in temp.policyImage"
style="cursor:pointer;width: 178px;height: 178px;"
:src="item" @click="open(temp.policyImage)">
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>临牌</span>
</el-col>
<el-col :span="21">
<el-form-item>
<el-form-item>
<span>{{ temp.temporaryCard }}</span>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<el-dialog :visible.sync="dialogVisible" width="1000px"
:close-on-click-modal="false">
<div class="result-cont">
<el-carousel indicator-position="outside" style="height: 500px;">
<el-carousel-item v-for="item in dialogUrl" :key="item" style="height: 500px;">
<img style="width: 100%; height: 500px;" :src="item">
</el-carousel-item>
</el-carousel>
</div>
</el-dialog>
</div>
<span class="el-icon-picture-outline">流程图</span>
<flow :xmlData="xmlData" :taskData="taskList"></flow>
<!--End 添加修改部分-->
<!-- 选择待办人 的弹出框-->
<el-dialog title="选择待办人" :visible.sync="nodeDialogVisible" width="80%">
<el-form label-position="right" class="formadd">
<el-row>
<el-col :span="4" class="tleftb">当前环节</el-col>
<el-col :span="20" class="trightb">
<el-form-item prop="purchasingUnitName"><span>{{ current.taskName }}->{{ nextNode.name }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">意见</el-col>
<el-col :span="20" class="trightb">
<el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw"
clearable></el-input>
</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 { getCarTransfer } from '@/api/supplychain/cunfangdidianbiangeng'
export default {
name: 'cunfangdidianbiangeng',
data() {
return {
viewTitle: '',
dialogVisible: false,
dialogUrl: [],
// ---------
sid: '',
datas: null,
stateId: 0,
FormLoading: false,
listLoading: false,
temp: {}, //
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
vehiclePhoto: [],
rules: {},
// ------------------------------------
dialogList: {
comment: ''
},
xmlData: '', // xml
taskList: [],
startTask: true,
current: {
taskDefKey: '',
taskName: '' //
},
nextNode: {}, //
nodeDialogVisible: false,
//
agreeList: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: window.sessionStorage.getItem('userSid')
},
//
regectList: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
userSid: window.sessionStorage.getItem('userSid')
},
//
stopList: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
userSid: window.sessionStorage.getItem('userSid')
}
}
},
created() {
console.log('url:' + window.location.href)
var a = window.location.href.indexOf('?') + 1 // ?
var b = window.location.href.indexOf('#data') // #data
const info = window.location.href.slice(a, b)
var sid = info.substr(info.indexOf('=') + 1)
this.showInfo(sid)
// ===
var one = window.location.href.lastIndexOf('#') + 1
var two = window.location.href.lastIndexOf('}') + 1
const data = decodeURI(window.location.href.slice(one, two)) // urlunescape()web,使
var tar = data.substr(data.indexOf('=') + 1)
const obj = JSON.parse(tar)
console.log('iframe页面获取的obj:', obj)
//
this.agreeList.businessSid = sid
this.agreeList.instanceId = obj.instanceId
this.agreeList.taskId = obj.taskId
this.agreeList.taskDefKey = obj.taskDefKey
this.agreeList.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.regectList.businessSid = sid
this.regectList.instanceId = obj.instanceId
this.regectList.taskId = obj.taskId
//
this.stopList.businessSid = sid
this.stopList.instanceId = obj.instanceId
this.stopList.taskId = obj.taskId
//
this.transactState = obj.transactState
//
this.getModelDetail(obj.deployId)
this.getFlowViewer(obj.instanceId)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: document.body.scrollHeight + 'px'
}
}, '*')
},
methods: {
handleReturn() {
this.temp = {}
this.$emit('doback')
},
showInfo(row) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.viewTitle = '存放地点变更申请详情'
getCarTransfer(row.sid).then((resp) => {
if (resp.success) {
const data = resp.data
this.temp = data
}
}).catch((e) => {
this.$message({
showClose: true,
message: '操作失败!',
type: 'error'
})
})
},
open(val) {
this.dialogVisible = true
this.dialogUrl = val
}
}
}
</script>
<style scoped>
/deep/ .el-autocomplete {
width: 80%;
}
.listconadd {
width: 100%;
padding: 0 240px !important;
}
.title {
padding-top: 28px;
}
.formadd .title {
padding: 10px !important;
}
.yancheAdd .el-row {
border: 0 !important;
}
.yancheAdd .el-col {
border: 0 !important;
}
/deep/ .el-col-3 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
}
.tit {
margin-bottom: 30px;
border-bottom: 1px solid #e0e3eb;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 30px 0 10px 0;
margin: 0 auto 0 auto;
width: 75%;
font-size: 14px;
text-align: center;
}
</style>

416
anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengEdit.vue

@ -0,0 +1,416 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="disabled" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button>
</div>
</div>
<div class="">
<div class="title">车辆存放地点变更申请</div>
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<div class="tit">
<div class="times">
<div>
<span>申请日期</span>
<span>{{ temp.applicantDate }}</span>
</div>
<div>
<span>申请人</span>
<span>{{ temp.applicantName }}</span>
</div>
</div>
</div>
<el-row style="border-top: 1px solid #e0e3eb;">
<el-col :span="3">
<span>现存放地点</span>
</el-col>
<el-col :span="9">
<el-select v-model="temp.location" placeholder="请选择" clearable class="addinputw"
@change="locationChange">
<el-option v-for="item in warehouwarehouse_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictValue"/>
</el-select>
</el-col>
<el-col :span="3">
<span>目标存放地点</span>
</el-col>
<el-col :span="9">
<el-select v-model="temp.targetLocation" placeholder="请选择" clearable class="addinputw"
@change="targetLocationChange">
<el-option v-for="item in warehouwarehouse_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictValue"/>
</el-select>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>车架号</span>
</el-col>
<el-col :span="21">
<el-select v-model="temp.vinNo" placeholder="请选择" filterable clearable class="addinputw">
<el-option v-for="item in vinNo_list" :key="item.vin" :label="item.vin" :value="item.vin"/>
</el-select>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>变更原因</span>
</el-col>
<el-col :span="21">
<el-input v-model="temp.changeReason" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>申请费用</span>
</el-col>
<el-col :span="21">
<el-input v-model="temp.applicantFunds" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-col>
</el-row>
<el-row>
<el-col :span="3"> <!--<span class="icon">*</span>-->
<span>经办人</span>
</el-col>
<el-col :span="9">
<el-input v-model="temp.operator" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-col>
<el-col :span="3">
<span>保险状态</span>
</el-col>
<el-col :span="9">
<el-form-item>
<el-radio-group v-model="temp.InsuranceStateKey">
<el-radio v-for="item in InsuranceState_list" :key="item.key" :label="item.key"
@change="InsuranceStateChange(item.key)">{{ item.value }}
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row v-show="temp.InsuranceStateKey == '1'">
<el-col :span="3">
<span>保单</span>
</el-col>
<el-col :span="21">
<upload ref="uploadImg" v-model="imgList" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>临牌</span>
</el-col>
<el-col :span="21">
<el-input v-model="temp.temporaryCard" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import {
getCarTransferInfo,
getVinByWarehouseSid,
saveCarTransferInfo,
selectWarehouseByUserSid
} from '@/api/supplychain/cunfangdidianbiangeng'
import Upload from '@/components/uploadFile/uploadImg.vue'
export default {
name: 'cunfangdidianbiangengEdit',
components: {
Upload
},
data() {
return {
viewTitle: '',
// ---------
sid: '',
datas: null,
stateId: 0,
FormLoading: false,
listLoading: false,
disabled: false,
location_list: [],
targetLocation_list: [],
imgList: [], //
vinNo_list: [], //
InsuranceState_list: [{
key: '0',
value: '否'
}, {
key: '1',
value: '是'
}],
warehouwarehouse_list: [], //
temp: {
sid: '',
// taskId: '',
// procInsId: '',
userSid: window.sessionStorage.getItem('userSid'),
// applyId: '',
applicantName: '',
applicantDate: '',
location: '',
locationKey: '',
locationSid: '',
vinNo: '',
targetLocation: '',
targetLocationKey: '',
targetLocationSid: '',
changeReason: '',
applicantFunds: '',
operator: '',
InsuranceState: '',
InsuranceStateKey: '',
temporaryCard: '',
policyImage: []
}, //
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
vehiclePhoto: [],
rules: {}
// ------------------------------------
}
},
methods: {
getType() {
//
const userSid = window.sessionStorage.getItem('userSid')
selectWarehouseByUserSid(userSid).then((res) => {
if (res.code === '200') {
this.warehouwarehouse_list = res.data
console.log('存放地点', this.warehouwarehouse_list)
}
})
},
getVin(sid) {
const data = {
warehouseSid: sid,
userSid: window.sessionStorage.getItem('userSid')
}
getVinByWarehouseSid(data).then((res) => {
if (res.code === '200') {
this.vinNo_list = res.data
console.log('车架号', this.vinNo_list)
}
})
},
locationChange(val) {
const choosetItem = this.warehouwarehouse_list.filter((item) => item.dictValue == val)
this.temp.locationKey = choosetItem[0].dictKey
this.temp.locationSid = choosetItem[0].sid
this.getVin(this.temp.locationSid)
console.log('name:', this.temp.location, 'key:', this.temp.locationKey, 'sid:', this.temp.locationSid)
},
targetLocationChange(val) {
const choosetItem = this.warehouwarehouse_list.filter((item) => item.dictValue == val)
this.temp.targetLocationKey = choosetItem[0].dictKey
this.temp.targetLocationSid = choosetItem[0].sid
console.log('name:', this.temp.targetLocation, 'key:', this.temp.targetLocationKey, 'sid:', this.temp.targetLocationSid)
},
InsuranceStateChange(val) {
const choosetItem = this.InsuranceState_list.filter((item) => item.key == val)
this.temp.InsuranceState = choosetItem[0].value
console.log('name:', this.temp.InsuranceState, 'key:', this.temp.InsuranceStateKey)
},
showAdd() {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.dialogStatus = 'add'
this.viewTitle = '【新增】车辆存放地点变更申请'
this.temp.applicantName = window.sessionStorage.getItem('name')
var nowDate = new Date()
var date = {
year: nowDate.getFullYear(),
month: nowDate.getMonth() + 1,
day: nowDate.getDate()
}
var dayDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day)
this.temp.applicantDate = dayDate
this.getType()
},
showEdit(sid) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.dialogStatus = 'update'
this.viewTitle = '【修改】车辆存放地点变更申请'
this.temp.sid = sid
const data = {
userSid: window.sessionStorage.getItem('userSid'),
sid: sid
}
getCarTransferInfo(data).then((res) => {
if (res.success) {
this.temp = res.data
this.temp.InsuranceStateKey = res.data.insuranceStateKey
this.temp.InsuranceState = res.data.insuranceState
if (this.temp.policyImage.length > 0) {
for (var i = 0; i < this.temp.policyImage.length; i++) {
const imgName = this.temp.policyImage[i].split('/')
this.imgList.push({
name: imgName[imgName.length - 1],
url: this.temp.policyImage[i]
})
}
}
}
})
this.getType()
},
getUrl() {
if (this.temp.InsuranceStateKey == '1') {
if (this.imgList.length > 0) {
console.log('保存imgList', this.imgList)
for (var i = 0; i < this.imgList.length; i++) {
const img_list = []
img_list.push(this.imgList[i].url)
this.temp.policyImage = img_list
console.log('保存img_list', img_list)
}
} else {
this.temp.policyImage = []
}
} else {
this.temp.policyImage = []
}
},
// ------------------------------------------------------
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {
sid: '',
// taskId: '',
// procInsId: '',
userSid: window.sessionStorage.getItem('userSid'),
// applyId: '',
applicantName: '',
applicantDate: '',
location: '',
locationKey: '',
locationSid: '',
vinNo: '',
targetLocation: '',
targetLocationKey: '',
targetLocationSid: '',
changeReason: '',
applicantFunds: '',
operator: '',
InsuranceState: '',
InsuranceStateKey: '',
temporaryCard: '',
policyImage: []
}
this.imgList = []
this.vinNo_list = []
this.$emit('doback')
},
//
handleCreate() {
this.getUrl()
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.FormLoading = true
//
saveCarTransferInfo(this.temp).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.dialogFormVisible = false
this.handleReturn('true')
} else {
this.$message({
showClose: true,
message: '保存失败!',
type: 'error'
})
}
})
}
})
},
handleSubmit() {
this.$refs['form_obj'].validate(valid => {
if (valid) {
this.disabled = true
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
// req.submitVehicleReturn(this.formobj).then(resp => {
// this.disabled = false
// if (resp.success) {
// }
// }).catch(() => {
// this.disabled = false
// })
})
} else {
return false
}
})
}
}
}
</script>
<style scoped>
/deep/ .el-autocomplete {
width: 80%;
}
.listconadd {
width: 100%;
padding: 0 240px !important;
}
.title {
padding-top: 28px;
}
.formadd .title {
padding: 10px !important;
}
.yancheAdd .el-row {
border: 0 !important;
}
.yancheAdd .el-col {
border: 0 !important;
}
/deep/ .el-col-3 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
}
.tit {
margin-bottom: 30px;
border-bottom: 1px solid #e0e3eb;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 30px 0 10px 0;
margin: 0 auto 0 auto;
width: 75%;
font-size: 14px;
text-align: center;
}
</style>

231
anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengInfo.vue

@ -0,0 +1,231 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
</div>
<div class="">
<div class="title">车辆存放地点变更申请</div>
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<div class="tit">
<div class="times">
<div>
<span>申请日期</span>
<span>{{ temp.applicantDate }}</span>
</div>
<div>
<span>申请人</span>
<span>{{ temp.applicantName }}</span>
</div>
</div>
</div>
<el-row style="border-top: 1px solid #e0e3eb;">
<el-col :span="3">
<span>现存放地点</span>
</el-col>
<el-col :span="9">
<el-form-item>
<span>{{ temp.location }}</span>
</el-form-item>
</el-col>
<el-col :span="3">
<span>目标存放地点</span>
</el-col>
<el-col :span="9">
<el-form-item>
<span>{{ temp.targetLocation }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>车架号</span>
</el-col>
<el-col :span="21">
<el-form-item>
<span>{{ temp.vinNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>变更原因</span>
</el-col>
<el-col :span="21">
<el-form-item>
<span>{{ temp.changeReason }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>申请费用</span>
</el-col>
<el-col :span="21">
<el-form-item>
<span>{{ temp.applicantFunds }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>经办人</span>
</el-col>
<el-col :span="9">
<el-form-item>
<span>{{ temp.operator }}</span>
</el-form-item>
</el-col>
<el-col :span="3">
<span>保险状态</span>
</el-col>
<el-col :span="9">
<el-form-item>
<span>{{ temp.insuranceState }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="temp.insuranceStateKey == '1'">
<el-col :span="3">
<span>保单</span>
</el-col>
<el-col :span="21">
<img v-for="item in temp.policyImage"
style="cursor:pointer;width: 178px;height: 178px;"
:src="item" @click="open(temp.policyImage)">
</el-col>
</el-row>
<el-row>
<el-col :span="3">
<span>临牌</span>
</el-col>
<el-col :span="21">
<el-form-item>
<el-form-item>
<span>{{ temp.temporaryCard }}</span>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<el-dialog :visible.sync="dialogVisible" width="1000px"
:close-on-click-modal="false">
<div class="result-cont">
<el-carousel indicator-position="outside" style="height: 500px;">
<el-carousel-item v-for="item in dialogUrl" :key="item" style="height: 500px;">
<img style="width: 100%; height: 500px;" :src="item">
</el-carousel-item>
</el-carousel>
</div>
</el-dialog>
</div>
</template>
<script>
import { getCarTransfer } from '@/api/supplychain/cunfangdidianbiangeng'
export default {
name: 'cunfangdidianbiangengInfo',
data() {
return {
viewTitle: '',
dialogVisible:false,
dialogUrl:[],
// ---------
sid: '',
datas: null,
stateId: 0,
FormLoading: false,
listLoading: false,
temp: {}, //
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
vehiclePhoto: [],
rules: {}
// ------------------------------------
}
},
methods: {
handleReturn() {
this.temp = {}
this.$emit('doback')
},
showInfo(row) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.viewTitle = '存放地点变更申请详情'
getCarTransfer(row.sid).then((resp) => {
if (resp.success) {
const data = resp.data
this.temp = data
}
}).catch((e) => {
this.$message({
showClose: true,
message: '操作失败!',
type: 'error'
})
})
},
open(val) {
this.dialogVisible = true
this.dialogUrl = val
}
}
}
</script>
<style scoped>
/deep/ .el-autocomplete {
width: 80%;
}
.listconadd {
width: 100%;
padding: 0 240px !important;
}
.title {
padding-top: 28px;
}
.formadd .title {
padding: 10px !important;
}
.yancheAdd .el-row {
border: 0 !important;
}
.yancheAdd .el-col {
border: 0 !important;
}
/deep/ .el-col-3 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
}
.tit {
margin-bottom: 30px;
border-bottom: 1px solid #e0e3eb;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 30px 0 10px 0;
margin: 0 auto 0 auto;
width: 75%;
font-size: 14px;
text-align: center;
}
</style>
Loading…
Cancel
Save