|
@@ -28,6 +28,13 @@
|
|
|
readonly
|
|
|
:rules="[{ required: true, message: '请填写申请时间' }]"
|
|
|
/>
|
|
|
+ <van-field
|
|
|
+ v-model="formData.leaveNo"
|
|
|
+ name="请假单号"
|
|
|
+ label="请假单号"
|
|
|
+ placeholder="请假单号"
|
|
|
+ readonly
|
|
|
+ />
|
|
|
<van-field
|
|
|
v-model="formData.leaveTypeText"
|
|
|
is-link
|
|
@@ -189,15 +196,15 @@ const columns = [
|
|
|
{ text: '调休', value: '18' },
|
|
|
{ text: '其他', value: '20' },
|
|
|
];
|
|
|
-const { activityInstanceId, participantId,flowInstanceId,read } = route.query as {
|
|
|
+const { activityInstanceId, participant,flowInstanceId,read } = route.query as {
|
|
|
activityInstanceId: string;
|
|
|
- participantId: string;
|
|
|
+ participant: string;
|
|
|
flowInstanceId: string;
|
|
|
read: string;
|
|
|
};
|
|
|
const activityData: FlowDTO = {
|
|
|
activityInstanceId,
|
|
|
- participantId,
|
|
|
+ participantId: participant,
|
|
|
flowOpinion: ''
|
|
|
}
|
|
|
const onConfirm = ({ selectedOptions }) => {
|
|
@@ -206,7 +213,6 @@ const onConfirm = ({ selectedOptions }) => {
|
|
|
showPicker.value = false;
|
|
|
};
|
|
|
const submitNextActivity = async (activeOpinion: any) => {
|
|
|
- console.log(JSON.stringify(activeOpinion)) //获取意见
|
|
|
formData.value.leaveTimeCreateList.forEach((x:any) => {
|
|
|
x.startTime = Date.parse(x.startTime)
|
|
|
x.endTime = Date.parse(x.endTime)
|
|
@@ -215,9 +221,9 @@ const submitNextActivity = async (activeOpinion: any) => {
|
|
|
const result = await reqest.post("/business/Leave/update",formData.value)
|
|
|
if(result.code ===200||result.code ===0){
|
|
|
//工作流转件
|
|
|
- activityData.activityInstanceId='018f23b914660a07729e8f224db60203'
|
|
|
- activityData.participantId='018f23b9148b0a07729e8f224db60205'
|
|
|
- activityData.flowOpinion='{"id":"018f23b914970a07729e8f224db60206","opinionContent":"同意","opinionTime":"2024-04-28"}'
|
|
|
+ activityData.activityInstanceId=activityInstanceId
|
|
|
+ activityData.participantId=participant
|
|
|
+ activityData.flowOpinion=JSON.stringify(activeOpinion)
|
|
|
const result = await getNextActivity(jsonToFormData(activityData))
|
|
|
// getNextActivity(activityData).then(result => {
|
|
|
// console.log(result)
|
|
@@ -299,7 +305,7 @@ const detailView = (index:number,item:any) =>{
|
|
|
|
|
|
/** 选择框事件 */
|
|
|
const pickerClick = () =>{
|
|
|
- if(!formRead){
|
|
|
+ if(!formRead.value){
|
|
|
showPicker.value=true
|
|
|
}
|
|
|
}
|