洋浦学校 待办工作阶段代码提交

init
gongdi 3 years ago
parent 51b44f43e9
commit 4ba6db00e8

@ -68,10 +68,10 @@
this.twoLevelMenu = twoLevel;
}
} else {
if (oneLevel && Object.keys(oneLevel).length === 0) {
if (!oneLevel || Object.keys(oneLevel).length === 0) {
this.oneLevelMenu = '';
}
if (twoLevel && Object.keys(twoLevel).length === 0) {
if (!twoLevel || Object.keys(twoLevel).length === 0) {
this.twoLevelMenu = '';
}
}

@ -101,8 +101,10 @@
updateTs: "",//使
bizCode: "",//
useType: 0,
leaveDateTime:"",//
leaveMileage:0,//
leaveDateTime: "",//
leaveMileage: 0,//
//
nodeName:"",
}
},
methods: {
@ -173,6 +175,11 @@
case "101001"://
this.modalOk();
break;
case "103001"://
case "104001"://
console.log("办理公文")
this.$emit("clickContent", this.businessData)
break;
case "106001001"://
case "107001001"://
case "108001001"://
@ -236,8 +243,8 @@
//
this.useType = 2;
this.modalTitle = "还车处理";
let callBack = this.getCarApplyInfo(infoBox);
callBack.then((res)=>{
var callBack = this.getCarApplyInfo(infoBox);
callBack.then((res) => {
let applyInfo = res.apply_info;
console.log(applyInfo)
this.leaveMileage = applyInfo.leave_mileage;
@ -710,7 +717,7 @@
})
return
}
if(new Date(leaveTime).getTime() < new Date(this.leaveDateTime)){
if (new Date(leaveTime).getTime() < new Date(this.leaveDateTime)) {
Modal.warning({
title: "还车时间不可小于出车时间",
content: "",
@ -718,7 +725,7 @@
})
return
}
if(givebackMileage < this.leaveMileage){
if (givebackMileage < this.leaveMileage) {
Modal.warning({
title: "还车表盘里程不能小于用车时记录的表盘里程",
content: "",
@ -728,10 +735,10 @@
}
let param = {
apply_id: infoBox.apply_id,
giveback_datetime:leaveTime,
giveback_mileage:givebackMileage,
current_mileage:currentMileage,
car_info:carInfo,
giveback_datetime: leaveTime,
giveback_mileage: givebackMileage,
current_mileage: currentMileage,
car_info: carInfo,
}
if (fileList && fileList.length > 0) {
param.giveback_pic = JSON.stringify(fileList)
@ -1111,6 +1118,34 @@
}
})
},
//
calcCommitNext: function (infoBox) {
console.log("infoBox:",infoBox)
let _this = this;
let p = new Promise(function (resolve) {
let param = {
person_id:_this.BaseConfig.userInfo.person_id_cookie,
flow_id:infoBox.flow_id,
node_id:infoBox.node_id,
run_id:infoBox.run_id,
run_node_id:infoBox.run_node_id,
step_id:infoBox.step_id
}
_this.InterfaceConfig.callInterface([{
url: interConfig.calcCommitNext.url,
params: param,
method: interConfig.calcCommitNext.method,
isTestLogin: interConfig.calcCommitNext.isTestLogin
}], (result) => {
console.log("result:",result)
let res = result[0].data;
if (res.code === 2000) {
resolve(res.data)
}
})
})
return p;
},
//
getNowTime: function () {
let _this = this;
@ -1140,11 +1175,10 @@
components: {
AModal: Modal,
ApproveCom,
CarUseReturnDom
CarUseReturnDom,
}
}
</script>
<style scoped lang="scss">
.business-item-container-style {
font-size: 14px;

@ -0,0 +1,75 @@
<template>
<div class="handle-dom-style">
<div class="info-row-style">
<div class="info-left">当前节点</div>
<div class="info-right"><span class="node-name-style">{{nodeName}}</span></div>
</div>
<div class="info-row-style">
<div class="info-left">办理意见</div>
<div class="info-right">
<a-textarea placeholder="请输入办理意见最多输入200字"
class="options-textarea-style"
:auto-size="{ minRows: 2, maxRows: 6 }"
v-model="options"
>
</a-textarea>
</div>
</div>
</div>
</template>
<script>
/*
* 公文事务办理
* */
import ATextarea from "ant-design-vue/es/input/TextArea";
export default{
props: {
nodeName: {
type: String
}
},
data(){
return {
options: "",//
}
},
components:{
ATextarea
}
}
</script>
<style scoped lang="scss">
.handle-dom-style {
width: 100%;
height: calc(100% - 50px);
padding: 10px;
display: flex;
flex-direction: column;
.info-row-style {
width: 100%;
min-height: 2.5rem;
display: flex;
.info-left {
width: 25%;
text-align: right;
}
.info-right {
width: 75%;
text-align: left;
display: flex;
/*flex-direction: column;*/
.node-name-style {
color: #31a8fa;
}
.options-textarea-style {
width: 90%;
}
.select-icon-style {
cursor: pointer;
color: #31a8fa;
}
}
}
}
</style>

@ -166,11 +166,11 @@ const interConfig = {
//------------公车领用保存-----------------------
/*
* apply_id
* leave_datetime: 2021-04-19 03:20
* leave_mileage: 20
* leave_pic
* */
* apply_id
* leave_datetime: 2021-04-19 03:20
* leave_mileage: 20
* leave_pic
* */
'saveReceiveCar': {
url: '/intellioa/carManage/carApply/saveReceiveCar',
method: 'post',
@ -192,14 +192,21 @@ const interConfig = {
},
//------------我的会议已知晓-----------------------
/*
* data_id 必填 number data_id
* person_id 必填 number 人员ID
* */
* data_id 必填 number data_id
* person_id 必填 number 人员ID
* */
'saveMyMeetingKnown': {
url: '/intellioa/meetingRoom/myMeeting/saveMyMeetingKnown',
method: 'post',
isTestLogin: true,
},
//-------------公文办理--------------------------
'calcCommitNext': {
url: '/intellioa/flow/run/calc_commit_next',
method: 'get',
isTestLogin: true,
}
}
export default interConfig

Loading…
Cancel
Save