43 changed files with 2062 additions and 1261 deletions
@ -0,0 +1,36 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 中介人员条件查询
|
|||
export function listPage(data) { |
|||
return request({ |
|||
url: '/base/v1/basemiddleman/listPage', |
|||
data, |
|||
method: 'post', |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
// 添加
|
|||
export function save(data) { |
|||
return request({ |
|||
url: '/base/v1/basemiddleman/save', |
|||
data, |
|||
method: 'post', |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
// 删除
|
|||
export function deleteBySids(data) { |
|||
return request({ |
|||
url: '/base/v1/basemiddleman/delBySids', |
|||
method: 'DELETE', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
// 详情及修改回显
|
|||
export function details(data) { |
|||
return request({ |
|||
url: '/base/v1/basemiddleman/fetchDetailsBySid/' + data, |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,14 @@ |
|||
.el-button--medium { |
|||
padding: 10px 14px; |
|||
font-size: 16px; |
|||
} |
|||
|
|||
.el-button--small { |
|||
padding: 7px 12px; |
|||
font-size: 14px; |
|||
} |
|||
|
|||
.el-button--mini { |
|||
padding: 5px 10px; |
|||
font-size: 12px; |
|||
} |
@ -1,194 +0,0 @@ |
|||
<template> |
|||
<div> |
|||
<el-upload class="upload-demo" :data="datas" :accept="accept" :on-success="uploadImgSuccess" :on-change="handleChange" :on-remove="handleRemove" :file-list="fileList_FuJian" :http-request="uploadSectionFile"> |
|||
<el-button size="small" type="primary">点击上传</el-button> |
|||
<div slot="tip" class="el-upload__tip">单个文件大小不允许超过100M,支持上传文件类型:{{ accept }}</div> |
|||
</el-upload> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { imgUploadz } from '@/api/jichuxinxi/baseaffiliatcompany' |
|||
import { mapGetters } from 'vuex' |
|||
export default { |
|||
props: { |
|||
placeholder: { |
|||
type: String, |
|||
default: '', |
|||
}, |
|||
// 长度 |
|||
width: { |
|||
type: String, |
|||
default: '270px', |
|||
}, |
|||
accept: { |
|||
type: String, |
|||
default: |
|||
'.jpg,.jpeg,.png,.bmp,.pdf,.JPG,.JPEG,.BMP,.PDF,.xls,.docx,.xlsx,.ppt,.pptx', |
|||
}, |
|||
// 文件列表 |
|||
files: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
// 文件名称 |
|||
name: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
types:{ |
|||
type:String, |
|||
required: true, |
|||
}, |
|||
linkChange: { |
|||
type: String, |
|||
default: '', |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
datas: null, |
|||
types:types, |
|||
accessToken: {}, |
|||
fileList_FuJian: [], |
|||
enclosure: '', |
|||
file_add: '', |
|||
idsz: '', |
|||
file_catch: '', |
|||
files_list: [], |
|||
} |
|||
}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'id', |
|||
'departmentCode', |
|||
'departmentLevel', |
|||
'departmentType', |
|||
'token', |
|||
]), |
|||
}, |
|||
watch: { |
|||
files: { |
|||
deep: true, |
|||
handler(val) { |
|||
this.pageLoad(val, '') |
|||
}, |
|||
}, |
|||
}, |
|||
creatd() { |
|||
this.datas = { type: this.types } |
|||
// console.log(this.datas,7777777) |
|||
console.log(this.type, '船只被') |
|||
}, |
|||
mounted() { |
|||
this.$nextTick(() => { |
|||
// this.Init() |
|||
}) |
|||
}, |
|||
methods: { |
|||
// 页面第一次加载 |
|||
Init() { |
|||
// 1. 文件上传用token |
|||
// this.accessToken = { |
|||
// token: this.token, |
|||
// } |
|||
this.pageLoad(this.files) |
|||
}, |
|||
handleChange(file, fileList) { |
|||
}, |
|||
// 传入数据并绑定 |
|||
pageLoad(files) { |
|||
// console.log('传入:' + files) |
|||
if (files !== null && files !== '') { |
|||
this.files_list = JSON.parse(files) |
|||
var ids = '' |
|||
this.fileList_FuJian = [] |
|||
// 1. 回显页面 |
|||
for (var i = 0; i < this.files_list.length; i++) { |
|||
var body = { |
|||
name: this.files_list[i].name, |
|||
url: '', |
|||
status: 'finished', |
|||
} |
|||
this.fileList_FuJian.push(body) |
|||
ids = ids + this.files_list[i].id + ',' |
|||
} |
|||
// 2. 回存文件id |
|||
if (ids !== '') { |
|||
ids = ids.substring(0, ids.length - 1) |
|||
} |
|||
this.enclosure = ids |
|||
this.file_catch = ids |
|||
} else { |
|||
this.file_add = '' |
|||
this.file_catch = '' |
|||
this.enclosure = '' |
|||
this.files_list = [] |
|||
this.fileList_FuJian = [] |
|||
} |
|||
}, |
|||
// 上传方案--成功后执行 |
|||
uploadImgSuccess(response, file, fileList) { |
|||
// console.log('fileList:' + JSON.stringify(fileList)) |
|||
|
|||
// this.enclosure = '' |
|||
// 1. 保存新增文件id(this.file_add) |
|||
// this.getNewFileId(fileList) |
|||
// 2. 保存并拼接id |
|||
// this.getFileId() |
|||
// console.log('4. 返回拼接:' + this.enclosure) |
|||
// 3. 返回拼接id |
|||
this.$emit('change', this.enclosure) |
|||
}, |
|||
handleRemove(file, fileList) { |
|||
// console.log('file:' + JSON.stringify(file)) |
|||
// console.log('fileList:' + JSON.stringify(fileList)) |
|||
// this.enclosure = '' |
|||
// 1. 保存新增文件id(this.file_add) |
|||
// this.getNewFileId(fileList) |
|||
// 2. 保存数据库读取的已有文件id(this.file_catch) |
|||
// this.getCatchFileId(file) |
|||
// 3. 保存并拼接id |
|||
// this.getFileId() |
|||
// 4. 返回拼接id |
|||
if (this.idsz != '') { |
|||
this.$emit('handleRemove', this.idsz) |
|||
} |
|||
}, |
|||
// 上传文件 FrontPhoto |
|||
uploadSectionFile(params) { |
|||
const file = params.file |
|||
// 根据后台需求数据格式 |
|||
const form = new FormData() |
|||
console.log('77777777777777',form) |
|||
// 文件对象 |
|||
form.append('file', file) |
|||
// 项目封装的请求方法,下面做简单介绍 |
|||
console.log('988888',form.append) |
|||
imgUploadz(form).then((res) => { |
|||
// 自行处理各种情况 |
|||
if (res.code === '200') { |
|||
res.data.attachType = this.types |
|||
let a = '' |
|||
a = res.data.filePath |
|||
this.idsz = a |
|||
this.$emit('handleSuccess', res) |
|||
} |
|||
// this.FrontPhoto = res.fullUrl |
|||
if (res.msg == '操作成功') { |
|||
this.$message({ |
|||
message: '上传成功!', |
|||
type: 'success', |
|||
}) |
|||
} |
|||
}) |
|||
.catch((err) => { |
|||
console.log(err) |
|||
// 如果等于备案,就调备案图片上传接口 |
|||
}) |
|||
}, |
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped></style> |
@ -0,0 +1,13 @@ |
|||
<template> |
|||
|
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'yanchejiancha' |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
@ -0,0 +1,13 @@ |
|||
<template> |
|||
|
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'yanchejianchaAdd' |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
@ -0,0 +1,13 @@ |
|||
<template> |
|||
|
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'yanchejianchaInfo' |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
@ -0,0 +1,334 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>分公司间调车申请详情</div> |
|||
<!--start 添加修改按钮--> |
|||
<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> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class=""> |
|||
<div class="wlInfo"><span>分公司间调车申请详情</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|||
<el-row> |
|||
<el-col :span="8"> |
|||
<div class="span-sty spanOneWidth"><span>调车类型</span></div> |
|||
<el-form-item> |
|||
<span class="addinputInfo addinputwOne">{{ formobj.shuntingTypeValue }}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<div class="span-sty spanOneWidth"><span>调出分公司</span></div> |
|||
<el-form-item> |
|||
<span class="addinputInfo addinputwOne">{{ formobj.sellerOrgName }}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<div class="span-sty spanOneWidth"><span>调入分公司</span></div> |
|||
<el-form-item> |
|||
<span class="addinputInfo addinputwOne">{{ formobj.buyerOrgName }}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
<div class="tableStyle"> |
|||
<div style="margin-left: 5px;font-weight: bold">申请车辆列表</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.baseInternalPurchaseVehicles" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="车型" align="center" header-align="center" width="200"> |
|||
<template slot-scope="scope" prop="vehicleName"> |
|||
<span>{{ scope.row.vehicleAlias }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="常用配置" align="left" header-align="center" width="400"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.configName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="库存地点" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.inventoryLocationName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="内销价格" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.witPinMoney }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="发票类型" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.invoiceTypeValue }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="运费" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.freight }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="运费承担方" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.freightUndertakerType }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.remarks }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
<!--End 添加修改部分--> |
|||
<!-- 选择待办人 的弹出框--> |
|||
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%"> |
|||
<el-form label-position="right" class="formadd" > |
|||
<el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb"> |
|||
<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 req from '@/api/supplychain/cheliangneigou' |
|||
|
|||
export default { |
|||
name: 'neigouDaiBanByShunTingTypeValueInfo', |
|||
data() { |
|||
return { |
|||
index: 0, |
|||
tableKey: 0, |
|||
// 表单数据 |
|||
formobj: {}, |
|||
operation: '', // 点击操作按钮 |
|||
dialogList: { |
|||
comment: '' |
|||
}, |
|||
startTask: true, |
|||
current: { |
|||
taskDefKey: '', |
|||
taskName: '' // 当前环节名称 |
|||
}, |
|||
nextNode: {}, // 下一环节 |
|||
nodeDialogVisible: false, |
|||
currentLink: true, |
|||
// 环节所需参数 |
|||
linkByParameter: { |
|||
businessSid: '', |
|||
comment: '', |
|||
instanceId: '', |
|||
taskId: '', |
|||
orgSidPath: '', |
|||
taskDefKey: '', |
|||
userSid: '' |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
console.log('url:' + window.location.href) |
|||
var one = window.location.href.indexOf('&data') + 6 |
|||
const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用 |
|||
const obj = JSON.parse(decodeURIComponent(data)) |
|||
console.log('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.current.taskDefKey = obj.taskDefKey |
|||
this.current.taskName = obj.taskName |
|||
// 加载表单数据 |
|||
this.showInfo(obj.businessSid) |
|||
}, |
|||
mounted() { |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 告诉父级页面,子页面的弹框高度。 |
|||
code: 2, |
|||
data: document.body.scrollHeight + 100 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
methods: { |
|||
showInfo(sid) { |
|||
req.fetchBySid(sid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj = res.data |
|||
} |
|||
}) |
|||
}, |
|||
// 同意 |
|||
openAgree(val) { |
|||
this.operation = val |
|||
this.currentLink = true |
|||
this.dialogList.comment = '同意' |
|||
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => { |
|||
if (resp.success) { |
|||
var arr = resp.data |
|||
this.nextNode = arr[0] |
|||
this.nodeDialogVisible = true |
|||
} |
|||
this.submitdisabled = false |
|||
}) |
|||
}, |
|||
// 驳回 |
|||
openReject(val) { |
|||
this.operation = val |
|||
this.currentLink = true |
|||
this.dialogList.comment = '' |
|||
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => { |
|||
if (resp.success) { |
|||
var arr = resp.data |
|||
this.nextNode = arr[0] |
|||
this.nodeDialogVisible = true |
|||
} |
|||
this.submitdisabled = false |
|||
}) |
|||
}, |
|||
// 终止 |
|||
openStop(val) { |
|||
this.operation = val |
|||
this.currentLink = false |
|||
this.dialogList.comment = '' |
|||
this.nodeDialogVisible = true |
|||
}, |
|||
reject() { |
|||
if (this.operation === '同意') { |
|||
this.handleAgree() |
|||
} else if (this.operation === '驳回') { |
|||
this.handleReject() |
|||
} else if (this.operation === '终止') { |
|||
this.handleStop() |
|||
} |
|||
}, |
|||
/** 同意任务 */ |
|||
handleAgree() { |
|||
this.linkByParameter.comment = this.dialogList.comment |
|||
req.InitiatorToAnswer(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 |
|||
req.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 |
|||
req.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> |
|||
.formaddcopy02 { |
|||
padding: 0px !important; |
|||
} |
|||
.wlInfo { |
|||
text-align: center; |
|||
font-size: 28px; |
|||
line-height: 90px; |
|||
border-bottom: 1px solid #e0e3eb; |
|||
} |
|||
.tableStyle { |
|||
background-color: #FFFFFF; |
|||
display: flex; |
|||
justify-content: flex-start; |
|||
align-items: center; |
|||
border: 1px solid #dfe4ed; |
|||
height: 40px; |
|||
} |
|||
.spanOneWidth { |
|||
width: 100px !important; |
|||
} |
|||
.addinputwOne { |
|||
margin-left: 110px !important; |
|||
} |
|||
</style> |
|||
|
@ -0,0 +1,397 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>分公司间调账申请详情</div> |
|||
<!--start 添加修改按钮--> |
|||
<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> |
|||
<!--end 添加修改按钮--> |
|||
<!--end 详情按钮--> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class=""><!-- --> |
|||
<div class="title">分公司间调账申请</div> <!--:rules="rules"--> |
|||
<el-form ref="dataForm" :model="temp" :rules="rules" :inline="true" label-width="120px"> |
|||
<div class="invoiceadd" style="margin-top: 5px;"> |
|||
<el-row> |
|||
<el-col :span="8"> |
|||
<el-form-item prop="accadjTypeValue" label="调账类型"> |
|||
<span>{{temp.accadjTypeValue}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"><!-- :readonly="depositVehicleList[scope.$index].inboundDate" --> |
|||
<el-form-item prop="callOutOrgName" label="调出分公司"> |
|||
<span>{{temp.callOutOrgName}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item prop="callInOrgName" label="调入分公司"> |
|||
<span>{{temp.callInOrgName}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</div> |
|||
<div class="addtable"> |
|||
<div class="tabletitle"> |
|||
<div class="titlename"> |
|||
申请车辆列表 |
|||
</div> |
|||
</div> |
|||
<template class="tablelist"> |
|||
<el-table :data="list" border style="width: 100%" :index="index"> |
|||
<el-table-column align="center" fixed label="序号" type="index" width="50"/> |
|||
<el-table-column label="车型名称" align="center" width="190px"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vehicleAlias }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="常用配置" align="center" width="360"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.configName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center" width="120"> |
|||
<template slot-scope="scope" @click=""> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="库存地点" align="center" width="200"> |
|||
<template slot-scope="scope" @click=""> |
|||
<span>{{ scope.row.inventoryLocationName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="内销价格" align="center" width="90"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.witPinMoney }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="发票类型" align="center" width="140"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.invoiceTypeValue }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="运费" align="center" width="90"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.freight }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="运费承担方" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.freightUndertakerName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="left" header-align="center" width="300"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.remarks }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</template> |
|||
</div> |
|||
</el-form> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
</div> |
|||
<!-- 选择待办人 的弹出框--> |
|||
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%"> |
|||
<el-form label-position="right" class="formadd"> |
|||
<el-row v-show="currentLink"> |
|||
<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 style="border-bottom: 1px solid #e0e3eb;"> |
|||
<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="confirm">确 定</el-button> |
|||
<el-button type="info " size="mini" @click="nodeDialogVisible = false">取 消</el-button> |
|||
</div> |
|||
</el-form> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { fetchDetailsBySid } from '@/api/supplychain/tiaozhangshenqing.js' |
|||
import req from '@/api/flow/tiaozhangshenqing' |
|||
|
|||
export default { |
|||
name: 'tiaozhangshenqing', |
|||
data() { |
|||
return { |
|||
isXuanche: false, |
|||
viewTitle: '', |
|||
dialogStatus: '', |
|||
index: 0, |
|||
list: [], |
|||
depositVehicleList: [], |
|||
accadjTypeValue_list: [], |
|||
// 表单数据 |
|||
temp: { |
|||
sid:'', |
|||
applyDate:'', // 申请日期 |
|||
accadjTypeKey:'', // 调账类型key |
|||
accadjTypeValue:'', // 调账类型value |
|||
callOutOrgSid:'', // 调出分公司sid |
|||
callOutOrgName:'', // 调出分公司名称 |
|||
callInOrgSid:'', // 调入分公司sid |
|||
callInOrgName:'', // 调入分公司名称 |
|||
baseInternalPurchaseVehicles:[], // 调账车辆列表 |
|||
}, |
|||
rules: { |
|||
}, |
|||
submitdisabled: false, // 保存按钮 |
|||
disabled: false ,// 提交按钮 |
|||
// ------流程所需------------------------------ |
|||
currentLink:true, // 控制当前环节一行的显示隐藏 |
|||
dialogList: { |
|||
comment: '' |
|||
}, |
|||
xmlData: '', // 模型xml数据 |
|||
taskList: [], |
|||
startTask: true, |
|||
current: { |
|||
taskDefKey: '', |
|||
taskName: '' // 当前环节名称 |
|||
}, |
|||
nextNode: {}, // 下一环节 |
|||
nodeDialogVisible: false, |
|||
// 同意办理列表 |
|||
agreeList: { |
|||
businessSid: '', |
|||
comment: '', |
|||
instanceId: '', |
|||
taskId: '', |
|||
orgSidPath: '', |
|||
taskDefKey: '', |
|||
userSid:'' |
|||
}, |
|||
// 驳回列表 |
|||
regectList: { |
|||
businessSid: '', |
|||
comment: '', |
|||
instanceId: '', |
|||
taskId: '', |
|||
userSid: '' |
|||
}, |
|||
// 终止列表 |
|||
stopList: { |
|||
businessSid: '', |
|||
comment: '', |
|||
instanceId: '', |
|||
taskId: '', |
|||
userSid: '' |
|||
} |
|||
} |
|||
}, |
|||
mounted() { |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 告诉父级页面,子页面的弹框高度。 |
|||
code: 2, |
|||
data: document.body.scrollHeight + 120 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
created() { |
|||
// ===获取参数 |
|||
var one = window.location.href.indexOf('&data') + 6 |
|||
const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用 |
|||
const obj = JSON.parse(decodeURIComponent(data)) |
|||
console.log('获取到的obj',obj) |
|||
// 同意列表 |
|||
this.agreeList.businessSid = obj.businessSid |
|||
this.agreeList.instanceId = obj.instanceId |
|||
this.agreeList.taskId = obj.taskId |
|||
this.agreeList.taskDefKey = obj.taskDefKey |
|||
this.agreeList.userSid = window.sessionStorage.getItem('userSid') |
|||
this.agreeList.orgSidPath = window.sessionStorage.getItem('orgSidPath') |
|||
this.current.taskDefKey = obj.taskDefKey |
|||
this.current.taskName = obj.taskName |
|||
// 驳回列表 |
|||
this.regectList.businessSid = obj.businessSid |
|||
this.regectList.instanceId = obj.instanceId |
|||
this.regectList.taskId = obj.taskId |
|||
this.regectList.userSid = window.sessionStorage.getItem('userSid') |
|||
// 终止列表 |
|||
this.stopList.businessSid = obj.businessSid |
|||
this.stopList.instanceId = obj.instanceId |
|||
this.stopList.taskId = obj.taskId |
|||
this.stopList.userSid = window.sessionStorage.getItem('userSid') |
|||
// 办理状态 |
|||
this.transactState = obj.transactState |
|||
// 加载流程图相关的数据 |
|||
this.showInfo(obj.businessSid) |
|||
this.getModelDetail(obj.deployId) |
|||
this.getFlowViewer(obj.instanceId) |
|||
}, |
|||
methods: { |
|||
showInfo(sid) { |
|||
this.$nextTick(() => { |
|||
this.$refs['dataForm'].clearValidate() |
|||
}) |
|||
fetchDetailsBySid(sid).then(resp => { |
|||
if (resp.success) { |
|||
const data = resp.data |
|||
this.temp = data |
|||
this.list = data.baseInternalPurchaseVehicles |
|||
console.log('编辑初始化', this.temp) |
|||
} |
|||
}).catch(e => { |
|||
this.submitdisabled = false |
|||
}) |
|||
}, |
|||
// ---------- 流程开始 ------------------------------ |
|||
/** xml 文件 */ |
|||
getModelDetail(deployId) { |
|||
// 发送请求,获取xml |
|||
req.readXml(deployId).then((res) => { |
|||
this.xmlData = res.data |
|||
}) |
|||
}, |
|||
// 已办环节的节点 |
|||
getFlowViewer(procInsId) { |
|||
req.getFlowViewer(procInsId).then((res) => { |
|||
this.taskList = res.data |
|||
}) |
|||
}, |
|||
// 点击同意 |
|||
openAgree(val) { |
|||
this.operation = val |
|||
this.currentLink = true // 控制当前环节一行的显示隐藏 |
|||
// const formVariables = { |
|||
// businessSid: this.agreeList.businessSid |
|||
// } |
|||
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => { |
|||
if (resp.success) { |
|||
var arr = resp.data |
|||
this.nextNode = arr[0] |
|||
this.nodeDialogVisible = true |
|||
} |
|||
this.submitdisabled = false |
|||
}) |
|||
}, |
|||
// 点击驳回 |
|||
openReject(val) { |
|||
this.operation = val |
|||
this.currentLink = true // 控制当前环节一行的显示隐藏 |
|||
// const formVariables = { |
|||
// businessSid: this.regectList.businessSid |
|||
// } |
|||
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => { |
|||
if (resp.success) { |
|||
var arr = resp.data |
|||
this.nextNode = arr[0] |
|||
this.nodeDialogVisible = true |
|||
} |
|||
this.submitdisabled = false |
|||
}) |
|||
}, |
|||
// 点击终止 |
|||
openStop(val) { |
|||
this.operation = val |
|||
this.currentLink = false // 控制当前环节一行的显示隐藏 |
|||
this.nodeDialogVisible = true |
|||
}, |
|||
/** 选择代办人确认 */ |
|||
confirm() { |
|||
if (this.operation === '同意') { |
|||
this.handleAgree() |
|||
} else if (this.operation === '驳回') { |
|||
this.handleReject() |
|||
} else if (this.operation === '终止') { |
|||
this.handleStop() |
|||
} |
|||
}, |
|||
/** 同意任务 */ |
|||
handleAgree() { |
|||
this.agreeList.comment = this.dialogList.comment |
|||
req.agreeTaskOrgChange(this.agreeList).then((response) => { |
|||
if (response.success) { |
|||
this.$message({ |
|||
showClose: true, |
|||
message: '执行成功', |
|||
type: 'success' |
|||
}) |
|||
this.nodeDialogVisible = false |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
}, |
|||
/** 驳回任务 */ |
|||
handleReject() { |
|||
this.regectList.comment = this.dialogList.comment |
|||
req.rejectTask(this.regectList).then((response) => { |
|||
if (response.success) { |
|||
this.$message({ |
|||
showClose: true, |
|||
message: '执行成功', |
|||
type: 'success' |
|||
}) |
|||
this.nodeDialogVisible = false |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
}, |
|||
/** 终止任务 */ |
|||
handleStop() { |
|||
this.stopList.comment = this.dialogList.comment |
|||
req.breakTask(this.stopList).then((response) => { |
|||
if (response.success) { |
|||
this.$message({ |
|||
showClose: true, |
|||
message: '执行成功', |
|||
type: 'success' |
|||
}) |
|||
this.nodeDialogVisible = false |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
}, |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.title { |
|||
padding: 28px 0; |
|||
text-align: center; |
|||
} |
|||
</style> |
Loading…
Reference in new issue