
17 changed files with 2067 additions and 53 deletions
@ -0,0 +1,32 @@ |
|||
<template> |
|||
<div> |
|||
<bpmn-modeler |
|||
ref="refNode" |
|||
:xml="xmlData" |
|||
:is-view="true" |
|||
:taskList="taskData" |
|||
/> |
|||
</div> |
|||
</template> |
|||
<script> |
|||
import bpmnModeler from '@/views/Process/index' |
|||
export default { |
|||
name: "Flow", |
|||
components: { |
|||
bpmnModeler |
|||
}, |
|||
props: { |
|||
xmlData: { |
|||
type: String, |
|||
default: '' |
|||
}, |
|||
taskData: { |
|||
type: Array, |
|||
default: () => [] |
|||
} |
|||
}, |
|||
data() { |
|||
return {}; |
|||
} |
|||
}; |
|||
</script> |
@ -0,0 +1,101 @@ |
|||
<template> |
|||
<div> |
|||
<!--流程流转记录--> |
|||
<el-card style="overflow: auto;height: 600px"> |
|||
<el-col :span="24"> |
|||
<div> |
|||
<div style="width:50%;float:left;"> |
|||
<span class="el-icon-picture-outline">流程图</span> |
|||
<flow :xmlData="xmlData" :taskData="taskData"></flow> |
|||
</div> |
|||
<div style="width:50%;;float:left;border-left: 1px solid blue"> |
|||
<el-timeline> |
|||
<el-timeline-item v-for="(item,index ) in flowRecordList" :key="index" :icon="setIcon(item.finishTime)" :color="setColor(item.finishTime)"> |
|||
<p style="font-weight: 700">{{ item.taskName }}</p> |
|||
<el-card :body-style="{ padding: '10px' }"> |
|||
<div style="display: flex;flex-direction: row;justify-content: space-between;align-items: flex-start"> |
|||
<div> |
|||
<label v-if="item.taskUserInfos" style="font-weight: normal;margin-right: 30px;">实际办理: |
|||
<span v-for="(items, index ) in item.taskUserInfos" :key="index">{{ items.assigneeName }},</span> |
|||
<!-- <el-tag type="info" size="mini">{{item.deptName}}</el-tag>--> |
|||
</label> |
|||
<label v-if="item.candidate" style="font-weight: normal;margin-right: 30px;">候选办理:{{ item.candidate }}</label><br> |
|||
<label style="font-weight: normal">接收时间: </label><label style="color:#8a909c;font-weight: normal">{{ item.createTime }}</label><br> |
|||
<label v-if="item.finishTime" style="font-weight: normal">办理时间: </label> |
|||
<label style="color:#8a909c;font-weight: normal">{{ item.finishTime }}</label><br> |
|||
</div> |
|||
<div> |
|||
<label v-if="item.duration" style="font-weight: normal">耗时:</label> |
|||
<label style="color:red;font-weight: normal">{{ item.duration }}</label> |
|||
</div> |
|||
</div> |
|||
<div> |
|||
<p v-if="item.comment"> |
|||
<el-tag type="success" v-if="item.comment.type === '1'"> {{ item.comment.comment }}</el-tag> |
|||
<el-tag type="warning" v-if="item.comment.type === '2'"> {{ item.comment.comment }}</el-tag> |
|||
<el-tag type="danger" v-if="item.comment.type === '3'"> {{ item.comment.comment }}</el-tag> |
|||
<el-tag type="danger" v-if="item.comment.type === '7'"> {{ item.comment.comment }}</el-tag> |
|||
<el-tag type="danger" v-if="item.comment.type === '6'"> {{ item.comment.comment }}</el-tag> |
|||
</p> |
|||
</div> |
|||
</el-card> |
|||
</el-timeline-item> |
|||
</el-timeline> |
|||
</div> |
|||
</div> |
|||
</el-col> |
|||
</el-card> |
|||
</div> |
|||
</template> |
|||
<script> |
|||
import flow from '@C/flow/flow' |
|||
|
|||
export default { |
|||
name: 'flowRecords', |
|||
components: { |
|||
flow |
|||
}, |
|||
props: { |
|||
xmlData: { |
|||
type: String, |
|||
default: '' |
|||
}, |
|||
taskData: { |
|||
type: Array, |
|||
default: () => [] |
|||
}, |
|||
flowRecordList: { |
|||
type: Array, |
|||
default: () => [] |
|||
} |
|||
}, |
|||
data() { |
|||
return {} |
|||
}, |
|||
created() { |
|||
}, |
|||
methods: { |
|||
setIcon(val) { |
|||
if (val) { |
|||
return 'el-icon-check' |
|||
} else { |
|||
return 'el-icon-time' |
|||
} |
|||
}, |
|||
setColor(val) { |
|||
if (val) { |
|||
return '#2bc418' |
|||
} else { |
|||
return '#b3bdbb' |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.el-tag { |
|||
white-space: normal; |
|||
height: auto; |
|||
line-height: 20px; |
|||
} |
|||
</style> |
@ -0,0 +1,79 @@ |
|||
<template> |
|||
<div> |
|||
<flow-records :xmlData="xmlData" :taskData="taskList" :flowRecordList="flowRecordList"></flow-records> |
|||
</div> |
|||
</template> |
|||
<script> |
|||
import flowRecords from '@/components/flow/flowRecord.vue' |
|||
import { setStorage } from '@/utils/auth' |
|||
import { getFlowViewer, readXml } from '@/api/flow/todo' |
|||
import req from '@/api/Yjsq/index' |
|||
|
|||
export default { |
|||
name: 'flowRecordForBusiness', |
|||
components: { |
|||
flowRecords |
|||
}, |
|||
props: { |
|||
uploadData: { |
|||
type: Object, |
|||
default: {} |
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
taskList: [], |
|||
xmlData: '', |
|||
flowRecordList: [] |
|||
} |
|||
}, |
|||
created() { |
|||
const obj = this.uploadData |
|||
// this.obj = obj |
|||
var token = obj.token |
|||
setStorage(token) |
|||
console.log(obj) |
|||
this.getFlowViewer(obj.procInsId) |
|||
this.getModelDetail(obj.deployId) |
|||
this.getFlowRecordList(obj.procInsId, obj.deployId) |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 告诉父级页面,子页面的弹框高度。 |
|||
code: 2, |
|||
data: 600 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
methods: { |
|||
/** xml 文件 */ |
|||
getModelDetail(deployId) { |
|||
// 发送请求,获取xml |
|||
readXml(deployId).then(res => { |
|||
this.xmlData = res.data |
|||
}) |
|||
}, |
|||
// 已办环节的节点 |
|||
getFlowViewer(procInsId) { |
|||
getFlowViewer(procInsId).then(res => { |
|||
this.taskList = res.data |
|||
}) |
|||
}, |
|||
/** 流程流转记录 */ |
|||
getFlowRecordList(procInsId, deployId) { |
|||
// const params = { procInsId: procInsId, deployId: deployId } |
|||
req.flowRecord(procInsId,deployId).then(res => { |
|||
this.flowRecordList = res.data.flowList |
|||
// 流程过程中不存在初始化表单 直接读取的流程变量中存储的表单值 |
|||
// if (res.data.formData) { |
|||
// this.formConf = res.data.formData |
|||
// this.formConfOpen = true |
|||
// } |
|||
}).catch(res => { |
|||
this.getList() |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
@ -0,0 +1,390 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="danger" size="small" @click="openRevoke()">撤 回 </el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class=""> |
|||
<div class="titwu"><span>厂家采购</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|||
<el-row class="rowStyle"> |
|||
<el-col :span="24" class="tleftb" style="border-bottom: 0px;border-right: 0px"> |
|||
<div><span style="font-size: 16px">金额单位:元</span></div> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row class="rowStyle"> |
|||
<el-col :span="6" class="colOneStyle"> |
|||
<div class="span-sty spanOneWidth"><span>分公司:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.createOrgName }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="6" class="colOneStyle"> |
|||
<div class="span-sty spanOneWidth"><span>采购系统:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.orgDeptName }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="6" class="colOneStyle"> |
|||
<div class="span-sty spanOneWidth"><span>申请人:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.createByName }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="6" class="colOneStyle"> |
|||
<div class="span-sty spanOneWidth"><span>申请日期:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.applicationDate }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row class="rowStyle"> |
|||
<el-col :span="8" class="colStyle"> |
|||
<div class="span-sty spanOneWidth"><span>采购类型:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.applyType }}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8" class="colStyle"> |
|||
<div class="span-sty spanOneWidth"><span>采购原因:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.schedulingType }}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8" class="colStyle"> |
|||
<div class="span-sty spanOneWidth"><span>品牌:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.carBrandName }}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row class="rowStyle"> |
|||
<el-col :span="8" class="colStyle"> |
|||
<div class="span-sty spanOneWidth"><span>订金付款备注:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.payRemarks }}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8" class="colStyle"> |
|||
<div class="span-sty spanOneWidth"><span>备注:</span></div> |
|||
<el-form-item class="addinputOne"><span class="">{{ formobj.remarks }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="8" class="colStyle"> |
|||
<div class="span-sty spanOneWidth" v-show="formobj.schedulingType === '储备'"><span>销售经理:</span></div> |
|||
<el-form-item v-show="formobj.schedulingType === '储备'" class="addinputOne"><span class="">{{ formobj.userNames }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row class="rowStyle"> |
|||
<el-col :span="24" class="colStyle"> |
|||
<div class="span-sty spanOneWidth" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center;"><span>相关附件:</span></div> |
|||
<el-form-item> |
|||
<el-image class="addinputOne" style="width: 178px;height: 178px;" v-for="(item,index) in imgList" :key="index" :src="item" :preview-src-list="imgList"></el-image> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>采购车型列表</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries"> |
|||
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="车型" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span class="bluezi" @click="handleView(scope.row)">{{ scope.row.vehicleName }}</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.insideCode }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车辆型号" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vehicleNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="排产数量" align="center" width="130"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.quantity }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column prop="applyForDeposit" label="申请订金" align="center" width="150"> |
|||
<template slot-scope="scope" prop="applyForDeposit"> |
|||
<span>{{ scope.row.applyForDeposit }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家合同价" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.contractPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="销售指导价" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.saleGuPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家回款通路" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.actualPay }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" header-align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.remarks }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上装信息" header-align="center" width="100" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button v-show="scope.row.busVehicleApplySz !== null" type="primary" size="small" @click="handleLook(scope.row.busVehicleApplySz)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上装销售指导价" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.guidePrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<shangzhuangpeizhiInfo v-show="viewState == 2" ref="divInfo" @doback="closePage"/> |
|||
<vehicleconfiguration v-show="viewState == 5" ref="divVehicleconfiguration" @doback="closePage"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/supplychain/busvehicleapply' |
|||
import shangzhuangpeizhiInfo from '../../../workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shangzhuangpeizhiInfo' |
|||
import vehicleconfiguration from '@/views/cheliang/cheliangcaigou/relation/vehicleconfiguration' |
|||
|
|||
export default { |
|||
name: 'cheliangpaichanYiBanInfo', |
|||
components: { |
|||
shangzhuangpeizhiInfo, |
|||
vehicleconfiguration |
|||
}, |
|||
data() { |
|||
return { |
|||
viewState: 1, |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
imgList: [], |
|||
// 表单数据 |
|||
formobj: { |
|||
sid: '', // 一条数据的sid |
|||
createBySid: '', // 用户人sid |
|||
createByName: '', // 制单人 |
|||
applicationCode: '', // 申请编号 |
|||
applicationDate: '', // 申请日期 |
|||
schedulingType: '', // 排产类型 |
|||
schedulingTypeKey: '', |
|||
remarks: '', // 备注 |
|||
currentAmount: '', // 当前订金金额 |
|||
busVehicleApplyDetailList: [] |
|||
}, |
|||
// 环节所需参数 |
|||
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)) |
|||
// 点击(同意、终止、驳回、驳回)操作时所需的参数 |
|||
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: 475 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
methods: { |
|||
showInfo(sid) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '厂家采购详情' |
|||
req.fetchBySid(sid).then((resp) => { |
|||
const data = resp.data |
|||
this.formobj = data |
|||
const aa = [] |
|||
if (this.formobj.commonAppendixs.length > 0) { |
|||
this.formobj.commonAppendixs.forEach((e) => { |
|||
aa.push(e.filePath) |
|||
}) |
|||
} |
|||
this.imgList = aa |
|||
}).catch((e) => { |
|||
this.formobj = {} |
|||
}) |
|||
}, |
|||
handleView(row) { |
|||
this.viewState = 5 |
|||
const aa = { |
|||
modelSid: row.vehicleSid, |
|||
configSid: row.configSid, |
|||
vehModelConfigSid: row.modelConfigSid, |
|||
guidedPrice: row.saleGuPrice |
|||
} |
|||
this.$refs['divVehicleconfiguration'].showInfo(aa) |
|||
}, |
|||
handleLook(row) { |
|||
this.viewState = 2 |
|||
this.$refs['divInfo'].showInfo(row) |
|||
}, |
|||
/** 确认撤回任务 */ |
|||
openRevoke() { |
|||
this.$confirm('是否确认执行撤回操作', '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
this.handleRevoke() |
|||
}).catch(() => { |
|||
this.$message({ |
|||
type: 'info', |
|||
message: '已取消撤回' |
|||
}) |
|||
}) |
|||
}, |
|||
/** 撤回任务 */ |
|||
handleRevoke() { |
|||
req.revokeProcess(this.linkByParameter).then((response) => { |
|||
if (response.success) { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行成功', |
|||
type: 'success', |
|||
duration: 2000 |
|||
}) |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
}, |
|||
// 合计 |
|||
getSummaries(param) { |
|||
const { columns, data } = param |
|||
const sums = [] |
|||
columns.forEach((column, index) => { |
|||
if (index === 1) { |
|||
sums[index] = '审批通过后再付订金:' |
|||
return |
|||
} |
|||
const values = data.map(item => Number(item[column.property])) |
|||
if (column.property === 'applyForDeposit') { |
|||
sums[index] = values.reduce((prev, curr) => { |
|||
const value = Number(curr) |
|||
if (!isNaN(value)) { |
|||
return prev + curr |
|||
} else { |
|||
return prev |
|||
} |
|||
}, 0) |
|||
sums[index] += '' |
|||
this.formobj.currentAmount = sums[index] += '' |
|||
} else { |
|||
if (!values.every(value => isNaN(value))) { |
|||
sums[index] = values.reduce((prev, curr) => { |
|||
const value = Number(curr) |
|||
if (!isNaN(value)) { |
|||
return prev + curr |
|||
} else { |
|||
return prev |
|||
} |
|||
}, 0) |
|||
sums[index] += '' |
|||
this.amount = sums[index] += '' |
|||
} else { |
|||
sums[index] = '' |
|||
} |
|||
} |
|||
}) |
|||
return sums |
|||
}, |
|||
closePage() { |
|||
this.viewState = 1 |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.titwu { |
|||
font-size: 28px; |
|||
text-align: center; |
|||
padding: 30px 0 20px 0; |
|||
} |
|||
.spanOneWidth { |
|||
border-right: 0px !important; |
|||
width: 100px !important; |
|||
} |
|||
.addinputOne { |
|||
margin-left: 90px !important; |
|||
} |
|||
.rowStyle { |
|||
border-left: 0px; |
|||
} |
|||
.colStyle { |
|||
border-right: 0px !important; |
|||
border-bottom: 0px !important; |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: flex-start; |
|||
align-items: center; |
|||
} |
|||
.colOneStyle { |
|||
border-right: 0px !important; |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: flex-start; |
|||
align-items: center; |
|||
} |
|||
.addinputInfo { |
|||
margin-left: 0px !important; |
|||
} |
|||
/deep/ .colOneStyle .el-form-item .el-form-item__content { |
|||
line-height: 15px !important; |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: flex-start; |
|||
align-items: center; |
|||
} |
|||
/deep/ .colStyle .el-form-item .el-form-item__content { |
|||
line-height: 15px !important; |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: flex-start; |
|||
align-items: center; |
|||
} |
|||
</style> |
@ -0,0 +1,223 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<div class="tab-header webtop"> |
|||
<div>车型常用列表</div> |
|||
<div> |
|||
<el-button type="primary" size="small" @click="AddUpdateReturn">确定</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<div class="searchcon"> |
|||
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|||
<div v-show="isSearchShow" class="search"> |
|||
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header" label-width="100px"> |
|||
<el-form-item label="车型:"> |
|||
<el-input v-model="listQuery.params.vehicleAlias" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
<el-form-item label="常用配置:"> |
|||
<el-input v-model="listQuery.params.configName" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
<el-form-item label="内部编码:"> |
|||
<el-input v-model="listQuery.params.insideCode" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handresetting">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" ref="multipleTable" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column width="50px" type="selection" align="center"/> |
|||
<el-table-column width="80px" label="编号" type="index" :index="indexMethod" align="center"/> |
|||
<el-table-column label="品牌" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.brandName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型编码" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vehicleTypeCode }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vehicleAlias }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="配置编码" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.configCode }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="常用配置" header-align="center" align="left"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.configName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="内部编码" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.insideCode }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="销售指导价(元)" width="200" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.guidedPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import req from '@/api/kucunguanli/price' |
|||
|
|||
export default { |
|||
name: "chexingbyconfiguration", |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
isSearchShow: false, |
|||
searchxianshitit: '隐藏查询条件', |
|||
tableKey: 0, |
|||
sids: [], |
|||
list: [], |
|||
listLoading: false, |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
params: { |
|||
vehicleAlias: '', |
|||
configName: '', |
|||
useOrgSid: '', |
|||
vehicleStateValue: '', |
|||
carBrandSid: '', |
|||
insideCode: '', |
|||
sidList: [] |
|||
}, |
|||
total: 1 |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 返回 |
|||
handleReturn() { |
|||
this.$emit('doback') |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
req.configurationlistPage(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
this.listQuery.total = response.data.total |
|||
this.list = response.data.records |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
// 重置按钮 |
|||
handresetting() { |
|||
this.listQuery.current = 1 |
|||
this.listQuery.total = 0 |
|||
this.listQuery.size = 5 |
|||
this.listQuery.params.vehicleAlias = '' |
|||
this.listQuery.params.configName = '' |
|||
this.listQuery.params.useOrgSid = '' |
|||
this.listQuery.params.vehicleStateValue = '' |
|||
this.listQuery.params.insideCode = '' |
|||
this.getList() |
|||
}, |
|||
handleSelectionChange(row) { |
|||
this.sids = [] |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push({ |
|||
vehicleAlias: element.vehicleAlias, |
|||
modelSid: element.modelSid, |
|||
configName: element.configName, |
|||
configSid: element.configSid, |
|||
guidedPrice: element.guidedPrice, |
|||
insideCode: element.insideCode, |
|||
brandSid: element.brandSid, |
|||
modelConfigSid: element.modelConfigSid |
|||
}) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
showData(value, carBrandSid, createOrgSid) { |
|||
const aa = [] |
|||
if (value.length > 0) { |
|||
for (var i = 0; i < value.length; i++) { |
|||
aa.push({ |
|||
modelSid: value[i].vehicleSid, |
|||
configSid: value[i].configSid |
|||
}) |
|||
} |
|||
this.listQuery.params.sidList = aa |
|||
} else { |
|||
this.listQuery.params.sidList = [] |
|||
} |
|||
this.listQuery.current = 1 |
|||
this.listQuery.total = 0 |
|||
this.listQuery.size = 5 |
|||
this.listQuery.params.carBrandSid = carBrandSid |
|||
this.listQuery.params.useOrgSid = createOrgSid |
|||
this.getList() |
|||
}, |
|||
// 添加修改返回 |
|||
AddUpdateReturn() { |
|||
if (this.sids.length > 0) { |
|||
for (var i = 0; i < this.sids.length; i++) { |
|||
if (this.sids[i].brandSid !== this.sids[this.sids.length - 1].brandSid) { |
|||
this.$message({ showClose: true, type: 'error', message: '请选择相同品牌下的车型' }) |
|||
return |
|||
} |
|||
} |
|||
this.$emit('backData', this.sids) |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '请选择至少一条车型记录!', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,532 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<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> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class=""> |
|||
<el-form ref="form_obj" :model="purchaseForm" label-position="top" label-width="190px" class="formadd"> |
|||
<div class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px"> |
|||
<div style="margin-left: 15px;">用章信息</div> |
|||
</div> |
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">项目名称:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.project_name}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">申请日期:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.applicant_date}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">审批编号:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item prop="supplier" class="trightb_item"> |
|||
<span>{{purchaseForm.code}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">申请人:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.applicant_name}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
|
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印人:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.user_name}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
|
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印事由:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.use_reason}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">使用日期:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.use_date}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
|
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印文件名称:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.use_file_name}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">加盖何种公章:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{checkLists}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">备注:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.remarks}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
|
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印文件(附件):</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item class="trightb_item"> |
|||
<div class="Image" v-for="(item,i) in msg" :key="i"> |
|||
<div class="ImageX" > |
|||
<img v-if="item" :src=item alt="" @click="lookImg(item)"> |
|||
</div> |
|||
</div> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
<!-- 选择待办人 的弹出框--> |
|||
<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> |
|||
<el-dialog :visible.sync="dialogVisible" title="查看图片"> |
|||
<img width="100%" :src="dialogImageUrl" alt=""> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/Yjsq/index' |
|||
|
|||
export default { |
|||
name: 'commission', |
|||
components: { |
|||
}, |
|||
data() { |
|||
return { |
|||
viewState: 1, |
|||
viewTitle: '', |
|||
operation: '', // 点击操作按钮 |
|||
index: 0, |
|||
tableKey: 0, |
|||
imgList: [], |
|||
useMoney: '', // 本次需使用金额 |
|||
applyMoney: '', // 本次申请金额 |
|||
dialogList: { |
|||
comment: '' |
|||
}, |
|||
startTask: true, |
|||
current: { |
|||
taskDefKey: '', |
|||
taskName: '' // 当前环节名称 |
|||
}, |
|||
nextNode: {}, // 下一环节 |
|||
nodeDialogVisible: false, |
|||
currentLink: true, |
|||
// 表单数据 |
|||
purchaseForm: { |
|||
project_sid:'', // 项目sid |
|||
project_name:'', // 项目名称 |
|||
code:'', // 审批编号 |
|||
applicant_date:'',// 申请日期 |
|||
applicant_name:'', // 申请人name |
|||
user_name:'', // 用印章人姓名 |
|||
user_sid:'', // 当前登陆人的sid |
|||
use_date:'', // 使用日期 |
|||
use_reason:'', // 用印章事由 |
|||
use_file_name:'', // 用印文件名称 |
|||
seal_type:'', // 加盖何种公章 |
|||
file_paths:[], // 用印文件(附件) |
|||
remarks:'', // 备注 |
|||
}, |
|||
// 环节所需参数 |
|||
linkByParameter: { |
|||
businessSid: '', |
|||
comment: '', |
|||
instanceId: '', |
|||
taskId: '', |
|||
orgSidPath: '', |
|||
taskDefKey: '', |
|||
userSid: '' |
|||
}, |
|||
rules: {}, |
|||
checkLists:'', |
|||
msg:[], |
|||
dialogImageUrl:'', |
|||
dialogVisible: false, |
|||
} |
|||
}, |
|||
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)) |
|||
// 点击(同意、终止、驳回、驳回)操作时所需的参数 |
|||
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: 480 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
methods: { |
|||
showInfo(sid) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '用章详情' |
|||
req.fetchDetailsBySid(sid).then((resp) => { |
|||
var aa = '' |
|||
this.purchaseForm = resp.data |
|||
var checkList=resp.data.seal_type |
|||
for (var i = 0; i < checkList.length; i++) { |
|||
aa+=checkList[i]+ ',' |
|||
} |
|||
var str = aa.slice(0, -1); |
|||
var List=str.replace(/^,+/, ''); |
|||
this.checkLists = List |
|||
let value=resp.data.file_paths |
|||
for(let i=0;i<value.length;i++){ |
|||
this.msg.push(value[i]) |
|||
} |
|||
}).catch((e) => { |
|||
this.purchaseForm = {} |
|||
}) |
|||
}, |
|||
// 同意 |
|||
openAgree(val) { |
|||
this.operation = val |
|||
this.currentLink = true |
|||
this.dialogList.comment = '同意' |
|||
req.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 = '' |
|||
req.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.dialogList.comment = '' |
|||
this.currentLink = false |
|||
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 |
|||
this.linkByParameter.userSid='164ec725-0b27-489c-974f-18d46de7bcfb' |
|||
req.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 |
|||
} |
|||
}, '*') |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行失败', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
/** 驳回任务 */ |
|||
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 |
|||
} |
|||
}, '*') |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行失败', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
/** 终止任务 */ |
|||
handleStop() { |
|||
this.linkByParameter.comment = this.dialogList.comment |
|||
this.linkByParameter.userSid='164ec725-0b27-489c-974f-18d46de7bcfb' |
|||
console.log(this.stopList, 99999) |
|||
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 |
|||
} |
|||
}, '*') |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行失败', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
lookImg(item) { |
|||
this.dialogVisible = true |
|||
this.dialogImageUrl = item |
|||
}, |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
/deep/ .el-collapse-item__header { |
|||
height: 40px; |
|||
font-weight: bold; |
|||
font-size: 16px; |
|||
text-align: left; |
|||
color: #ffffff; |
|||
background-color: #0294d7; |
|||
} |
|||
|
|||
/deep/ .el-collapse-item__content { |
|||
padding-bottom: 0; |
|||
} |
|||
.trightb { |
|||
display: flex; |
|||
align-items: center; |
|||
text-align: center; |
|||
justify-content: center; |
|||
} |
|||
|
|||
.trightb_item { |
|||
padding-top: 5px; |
|||
} |
|||
|
|||
.span { |
|||
margin-left: 50px; |
|||
font-size: 15px; |
|||
font-weight: 400; |
|||
} |
|||
.formadd { |
|||
padding: 10px 40px 0 40px; |
|||
font-size: 16px; |
|||
} |
|||
.formadd .title { |
|||
font-weight: bold; |
|||
font-size: 16px; |
|||
background-color: #0294d7; |
|||
text-align: left; |
|||
color: #ffffff; |
|||
} |
|||
.first_row{ |
|||
border-top: 1px solid #e0e3eb; |
|||
} |
|||
.formadd .el-row { |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
border-left: 1px solid #e0e3eb; |
|||
} |
|||
.formadd .el-row .el-col { |
|||
border-right: 1px solid #e0e3eb; |
|||
border-bottom: 1px solid #e0e3eb; |
|||
padding: 0 15px; |
|||
min-height: 42px; |
|||
line-height: 1; |
|||
} |
|||
.formadd .el-row .el-col .el-form-item { |
|||
margin-bottom: 0; |
|||
line-height: 42px; |
|||
} |
|||
.addinputw { |
|||
width: 80%; |
|||
line-height: 42px; |
|||
} |
|||
.el-input__inner { |
|||
height: 36px; |
|||
} |
|||
.trightb_item .ImageX{ |
|||
width: 150px; |
|||
height: 100px; |
|||
float: left; |
|||
margin: 10px 20px 40px 10px; |
|||
} |
|||
.trightb_item .ImageX img{ |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
|||
</style> |
@ -0,0 +1,381 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="danger" size="small" @click="openRevoke()">撤 回 </el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class=""> |
|||
<el-form ref="form_obj" :model="purchaseForm" label-position="top" label-width="190px" class="formadd"> |
|||
<div class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px"> |
|||
<div style="margin-left: 15px;">用章信息</div> |
|||
</div> |
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">项目名称:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.project_name}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">申请日期:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.applicant_date}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">审批编号:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item prop="supplier" class="trightb_item"> |
|||
<span>{{purchaseForm.code}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">申请人:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.applicant_name}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
|
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印人:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.user_name}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
|
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印事由:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.use_reason}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">使用日期:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.use_date}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
|
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印文件名称:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.use_file_name}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">加盖何种公章:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{checkLists}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">备注:</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<span>{{purchaseForm.remarks}}</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印文件(附件):</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item class="trightb_item"> |
|||
<div class="Image" v-for="(item,i) in msg" :key="i"> |
|||
<div class="ImageX"> |
|||
<img v-if="item" :src=item alt="" @click="lookImg(item)"> |
|||
</div> |
|||
</div> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
</div> |
|||
<el-dialog :visible.sync="dialogVisible" title="查看图片"> |
|||
<img width="100%" :src="dialogImageUrl" alt=""> |
|||
</el-dialog> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/Yjsq/index' |
|||
|
|||
|
|||
export default { |
|||
name: 'haveDone', |
|||
components: { |
|||
|
|||
}, |
|||
data() { |
|||
return { |
|||
viewState: 1, |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
imgList: [], |
|||
// 表单数据 |
|||
purchaseForm: { |
|||
project_sid:'', // 项目sid |
|||
project_name:'', // 项目名称 |
|||
code:'', // 审批编号 |
|||
applicant_date:'',// 申请日期 |
|||
applicant_name:'', // 申请人name |
|||
user_name:'', // 用印章人姓名 |
|||
user_sid:'', // 当前登陆人的sid |
|||
use_date:'', // 使用日期 |
|||
use_reason:'', // 用印章事由 |
|||
use_file_name:'', // 用印文件名称 |
|||
seal_type:'', // 加盖何种公章 |
|||
file_paths:[], // 用印文件(附件) |
|||
remarks:'', // 备注 |
|||
}, |
|||
// 环节所需参数 |
|||
linkByParameter: { |
|||
businessSid: '', |
|||
comment: '', |
|||
instanceId: '', |
|||
taskId: '', |
|||
orgSidPath: '', |
|||
taskDefKey: '', |
|||
userSid: '' |
|||
}, |
|||
rules: {}, |
|||
checkLists:'', |
|||
msg:[], |
|||
dialogImageUrl:'', |
|||
dialogVisible: false, |
|||
} |
|||
}, |
|||
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)) |
|||
// 点击(同意、终止、驳回、驳回)操作时所需的参数 |
|||
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: 475 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
methods: { |
|||
showInfo(sid) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '厂家采购详情' |
|||
req.fetchDetailsBySid(sid).then((resp) => { |
|||
var aa = '' |
|||
this.purchaseForm = resp.data |
|||
var checkList=resp.data.seal_type |
|||
for (var i = 0; i < checkList.length; i++) { |
|||
aa+=checkList[i]+ ',' |
|||
} |
|||
var str = aa.slice(0, -1); |
|||
var List=str.replace(/^,+/, ''); |
|||
this.checkLists = List |
|||
let value=resp.data.file_paths |
|||
for(let i=0;i<value.length;i++){ |
|||
this.msg.push(value[i]) |
|||
} |
|||
}).catch((e) => { |
|||
this.purchaseForm = {} |
|||
}) |
|||
}, |
|||
/** 确认撤回任务 */ |
|||
openRevoke() { |
|||
this.$confirm('是否确认执行撤回操作', '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
this.handleRevoke() |
|||
}).catch(() => { |
|||
this.$message({ |
|||
type: 'info', |
|||
message: '已取消撤回' |
|||
}) |
|||
}) |
|||
}, |
|||
/** 撤回任务 */ |
|||
handleRevoke() { |
|||
req.revokeProcess(this.linkByParameter).then((response) => { |
|||
if (response.success) { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行成功', |
|||
type: 'success', |
|||
duration: 2000 |
|||
}) |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
}, |
|||
lookImg(item) { |
|||
this.dialogVisible = true |
|||
this.dialogImageUrl = item |
|||
}, |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
/deep/ .el-collapse-item__header { |
|||
height: 40px; |
|||
font-weight: bold; |
|||
font-size: 16px; |
|||
text-align: left; |
|||
color: #ffffff; |
|||
background-color: #0294d7; |
|||
} |
|||
|
|||
/deep/ .el-collapse-item__content { |
|||
padding-bottom: 0; |
|||
} |
|||
.trightb { |
|||
display: flex; |
|||
align-items: center; |
|||
text-align: center; |
|||
justify-content: center; |
|||
} |
|||
|
|||
.trightb_item { |
|||
padding-top: 5px; |
|||
} |
|||
|
|||
.span { |
|||
margin-left: 50px; |
|||
font-size: 15px; |
|||
font-weight: 400; |
|||
} |
|||
.formadd { |
|||
padding: 10px 40px 0 40px; |
|||
font-size: 16px; |
|||
} |
|||
.formadd .title { |
|||
font-weight: bold; |
|||
font-size: 16px; |
|||
background-color: #0294d7; |
|||
text-align: left; |
|||
color: #ffffff; |
|||
} |
|||
.first_row{ |
|||
border-top: 1px solid #e0e3eb; |
|||
} |
|||
.formadd .el-row { |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
border-left: 1px solid #e0e3eb; |
|||
} |
|||
.formadd .el-row .el-col { |
|||
border-right: 1px solid #e0e3eb; |
|||
border-bottom: 1px solid #e0e3eb; |
|||
padding: 0 15px; |
|||
min-height: 42px; |
|||
line-height: 1; |
|||
} |
|||
.formadd .el-row .el-col .el-form-item { |
|||
margin-bottom: 0; |
|||
line-height: 42px; |
|||
} |
|||
.addinputw { |
|||
width: 80%; |
|||
line-height: 42px; |
|||
} |
|||
.el-input__inner { |
|||
height: 36px; |
|||
} |
|||
.trightb_item .ImageX{ |
|||
width: 150px; |
|||
height: 100px; |
|||
float: left; |
|||
margin: 10px 20px 40px 10px; |
|||
} |
|||
.trightb_item .ImageX img{ |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
|||
</style> |
Loading…
Reference in new issue