|
|
|
@ -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;
|
|
|
|
|